[llvm] [ctx_prof] test tool: generate ctxprof bistream from json (PR #100379)
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 17:15:11 PDT 2024
================
@@ -0,0 +1,39 @@
+; RUN: mkdir -p %t
+; RUN: llvm-ctxprof-util fromJSON --input %S/Inputs/empty.json -output %t/empty.bitstream
+; RUN: llvm-bcanalyzer --dump %t/empty.bitstream | FileCheck %s --check-prefix=EMPTY
+
+; RUN: llvm-ctxprof-util fromJSON --input %S/Inputs/valid.json -output %t/valid.bitstream
+; 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=1/>
+; EMPTY-NEXT: </Metadata>
+
+; Note that uin64_t are printed as signed values by llvm-bcanalyzer
----------------
teresajohnson wrote:
typo "uin64_t"
https://github.com/llvm/llvm-project/pull/100379
More information about the llvm-commits
mailing list