[MLGO] Add BB Profile Dump in AsmPrinter
authorAiden Grossman <agrossman154@yahoo.com>
Wed, 18 Jan 2023 09:26:42 +0000 (09:26 +0000)
committerAiden Grossman <agrossman154@yahoo.com>
Wed, 8 Feb 2023 23:13:42 +0000 (23:13 +0000)
commita95aa86b538f643cde8502a58e2ce8804e895e96
treedf53bdad881dc7f7eaf0357e75884a4849eef05e
parent8529b38f6027e698a37dd24234e1c658c8bd412a
[MLGO] Add BB Profile Dump in AsmPrinter

This patch adds a basic block profile dump option within the AsmPrinter
and dumps basic block profile information so that cost models can use
the data for downstream analysis.

Differential Revision: https://reviews.llvm.org/D143311
core [new file with mode: 0644]
llvm/include/llvm/CodeGen/AsmPrinter.h
llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
llvm/test/CodeGen/MLRegalloc/bb-profile-dump.ll [new file with mode: 0644]