CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
88 lines
4.1 KiB
Plaintext
88 lines
4.1 KiB
Plaintext
; REQUIRES: x86_64-linux
|
|
|
|
; RUN: mkdir -p %t
|
|
; RUN: llvm-ctxprof-util fromYAML --input %S/Inputs/empty.yaml -output %t/empty.bitstream
|
|
; RUN: llvm-bcanalyzer --dump %t/empty.bitstream | FileCheck %s --check-prefix=EMPTY
|
|
|
|
; RUN: llvm-ctxprof-util fromYAML -input %S/Inputs/valid.yaml -output %t/valid.bitstream
|
|
; RUN: llvm-ctxprof-util toYAML -input %t/valid.bitstream -output %t/valid2.yaml
|
|
; RUN: diff %t/valid2.yaml %S/Inputs/valid.yaml
|
|
|
|
|
|
; RUN: llvm-ctxprof-util fromYAML -input %S/Inputs/valid-ctx-only.yaml -output %t/valid-ctx-only.bitstream
|
|
; RUN: llvm-ctxprof-util toYAML -input %t/valid-ctx-only.bitstream -output %t/valid-ctx-only.yaml
|
|
; RUN: diff %t/valid-ctx-only.yaml %S/Inputs/valid-ctx-only.yaml
|
|
|
|
; RUN: llvm-ctxprof-util fromYAML -input %S/Inputs/valid-flat-only.yaml -output %t/valid-flat-only.bitstream
|
|
; RUN: llvm-ctxprof-util toYAML -input %t/valid-flat-only.bitstream -output %t/valid-flat-only.yaml
|
|
; RUN: diff %t/valid-flat-only.yaml %S/Inputs/valid-flat-only.yaml
|
|
|
|
; This case is the "valid.yaml" case but with the flat profile first.
|
|
; The output, though, should match valid.yaml
|
|
; RUN: llvm-ctxprof-util fromYAML -input %S/Inputs/valid-flat-first.yaml -output %t/valid-flat-first.bitstream
|
|
; RUN: llvm-ctxprof-util toYAML -input %t/valid-flat-first.bitstream -output %t/valid-flat-first.yaml
|
|
; RUN: diff %t/valid-flat-first.yaml %S/Inputs/valid.yaml
|
|
|
|
; A variant with unhandled contexts:
|
|
; RUN: llvm-ctxprof-util fromYAML -input %S/Inputs/valid-with-unhandled.yaml -output %t/valid-with-unhandled.bitstream
|
|
; RUN: llvm-ctxprof-util toYAML -input %t/valid-with-unhandled.bitstream -output %t/valid-with-unhandled.yaml
|
|
; RUN: diff %t/valid-with-unhandled.yaml %S/Inputs/valid-with-unhandled.yaml
|
|
|
|
; For the valid case, check against a reference output.
|
|
; Note that uint64_t are printed as signed values by llvm-bcanalyzer:
|
|
; * 18446744073709551613 in yaml is -3 in the output
|
|
; * 18446744073709551612 in yaml is -4 in the output
|
|
; Also we have no callee/context at index 0, 2 callsites for index 1, and one for
|
|
; index 2.
|
|
; RUN: llvm-bcanalyzer --dump %t/valid.bitstream | FileCheck %s --check-prefix=VALID
|
|
|
|
; EMPTY: <BLOCKINFO_BLOCK/>
|
|
; EMPTY-NEXT: <Metadata NumWords=1 BlockCodeSize=2>
|
|
; EMPTY-NEXT: <Version op0=4/>
|
|
; EMPTY-NEXT: </Metadata>
|
|
|
|
; VALID: <BLOCKINFO_BLOCK/>
|
|
; VALID-NEXT: <Metadata NumWords=53 BlockCodeSize=2>
|
|
; VALID-NEXT: <Version op0=4/>
|
|
; VALID-NEXT: <Contexts NumWords=37 BlockCodeSize=2>
|
|
; VALID-NEXT: <Root NumWords=23 BlockCodeSize=2>
|
|
; VALID-NEXT: <GUID op0=1000/>
|
|
; VALID-NEXT: <TotalRootEntryCount op0=5/>
|
|
; VALID-NEXT: <Counters op0=1 op1=2 op2=3/>
|
|
; VALID-NEXT: <Unhandled NumWords=1 BlockCodeSize=2>
|
|
; VALID-NEXT: </Unhandled>
|
|
; VALID-NEXT: <Context NumWords=5 BlockCodeSize=2>
|
|
; VALID-NEXT: <GUID op0=-3/>
|
|
; VALID-NEXT: <CalleeIndex op0=1/>
|
|
; VALID-NEXT: <Counters op0=6 op1=7 op2=8/>
|
|
; VALID-NEXT: </Context>
|
|
; VALID-NEXT: <Context NumWords=3 BlockCodeSize=2>
|
|
; VALID-NEXT: <GUID op0=2000/>
|
|
; VALID-NEXT: <CalleeIndex op0=1/>
|
|
; VALID-NEXT: <Counters op0=4 op1=5/>
|
|
; VALID-NEXT: </Context>
|
|
; VALID-NEXT: <Context NumWords=3 BlockCodeSize=2>
|
|
; VALID-NEXT: <GUID op0=3000/>
|
|
; VALID-NEXT: <CalleeIndex op0=2/>
|
|
; VALID-NEXT: <Counters op0=40 op1=50/>
|
|
; VALID-NEXT: </Context>
|
|
; VALID-NEXT: </Root>
|
|
; VALID-NEXT: <Root NumWords=9 BlockCodeSize=2>
|
|
; VALID-NEXT: <GUID op0=-4/>
|
|
; VALID-NEXT: <TotalRootEntryCount op0=45/>
|
|
; VALID-NEXT: <Counters op0=5 op1=9 op2=10/>
|
|
; VALID-NEXT: <Unhandled NumWords=1 BlockCodeSize=2>
|
|
; VALID-NEXT: </Unhandled>
|
|
; VALID-NEXT: </Root>
|
|
; VALID-NEXT: </Contexts>
|
|
; VALID-NEXT: <FlatProfiles NumWords=10 BlockCodeSize=2>
|
|
; VALID-NEXT: <Flat NumWords=3 BlockCodeSize=2>
|
|
; VALID-NEXT: <GUID op0=1234/>
|
|
; VALID-NEXT: <Counters op0=5 op1=6 op2=7/>
|
|
; VALID-NEXT: </Flat>
|
|
; VALID-NEXT: <Flat NumWords=2 BlockCodeSize=2>
|
|
; VALID-NEXT: <GUID op0=5555/>
|
|
; VALID-NEXT: <Counters op0=1/>
|
|
; VALID-NEXT: </Flat>
|
|
; VALID-NEXT: </FlatProfiles>
|
|
; VALID-NEXT: </Metadata> |