[llvm] [SHT_LLVM_BB_ADDR_MAP] Adds pretty printing of BFI and BPI for PGO Analysis Map in tools. (PR #82292)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 00:16:56 PST 2024


================
@@ -48,6 +48,8 @@ Symbols:
 # RUN: yaml2obj %s --docnum=2 -o %t2
 # RUN: llvm-objdump %t2 -d --symbolize-operands --no-show-raw-insn --no-leading-addr | \
 # RUN:   FileCheck %s --check-prefix=ENTRYCOUNT-BLOCKFREQ
+# RUN: llvm-objdump %t2 -d --symbolize-operands --pretty-pgo-analysis-map --no-show-raw-insn --no-leading-addr | \
+# RUN:   FileCheck %s --check-prefix=ENTRYCOUNT-BLOCKFREQ-PRETTY
----------------
jh7370 wrote:

I think when checking the formatting of a new dumping option, you should probably use `--strict-whitespace` and `--match-full-lines`. In some cases, it even makes sense to do `--implicit-check-not={{.}}`.

https://github.com/llvm/llvm-project/pull/82292


More information about the llvm-commits mailing list