From 77f2f0f9b7c7c1bd56879c86a0c63ffdd5e8166e Mon Sep 17 00:00:00 2001 From: Marcos Horro Date: Fri, 16 Jul 2021 09:10:50 +0200 Subject: [llvm-mca][JSON] Store extra information about driver flags used for the simulation Added information stored in PipelineOptions and the MCSubtargetInfo. Bug: https://bugs.llvm.org/show_bug.cgi?id=51041 Reviewed By: andreadb Differential Revision: https://reviews.llvm.org/D106077 --- llvm/tools/llvm-mca/llvm-mca.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp') diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp index a155733..a473cd8 100644 --- a/llvm/tools/llvm-mca/llvm-mca.cpp +++ b/llvm/tools/llvm-mca/llvm-mca.cpp @@ -569,7 +569,7 @@ int main(int argc, char **argv) { P->appendStage(std::make_unique(S)); P->appendStage(std::make_unique(SM)); - mca::PipelinePrinter Printer(*P, *Region, RegionIdx, *STI); + mca::PipelinePrinter Printer(*P, *Region, RegionIdx, *STI, PO); if (PrintJson) { Printer.addView( std::make_unique(*STI, *IP, Insts)); @@ -608,7 +608,7 @@ int main(int argc, char **argv) { // Create a basic pipeline simulating an out-of-order backend. auto P = MCA.createDefaultPipeline(PO, S, *CB); - mca::PipelinePrinter Printer(*P, *Region, RegionIdx, *STI); + mca::PipelinePrinter Printer(*P, *Region, RegionIdx, *STI, PO); // When we output JSON, we add a view that contains the instructions // and CPU resource information. -- cgit v1.1