diff options
author | Marcos Horro <marcos.horro@udc.es> | 2021-07-16 09:10:50 +0200 |
---|---|---|
committer | Marcos Horro <marcos.horro@udc.es> | 2021-07-16 09:18:40 +0200 |
commit | 77f2f0f9b7c7c1bd56879c86a0c63ffdd5e8166e (patch) | |
tree | fd21810d1f574a86c28c03a9c55ad9269213d4ba /llvm/tools/llvm-mca/llvm-mca.cpp | |
parent | 13fe78212fe7fa3a4491ffbbac6f0c58cb1e0573 (diff) | |
download | llvm-77f2f0f9b7c7c1bd56879c86a0c63ffdd5e8166e.zip llvm-77f2f0f9b7c7c1bd56879c86a0c63ffdd5e8166e.tar.gz llvm-77f2f0f9b7c7c1bd56879c86a0c63ffdd5e8166e.tar.bz2 |
[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
Diffstat (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp')
-rw-r--r-- | llvm/tools/llvm-mca/llvm-mca.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<mca::EntryStage>(S)); P->appendStage(std::make_unique<mca::InstructionTables>(SM)); - mca::PipelinePrinter Printer(*P, *Region, RegionIdx, *STI); + mca::PipelinePrinter Printer(*P, *Region, RegionIdx, *STI, PO); if (PrintJson) { Printer.addView( std::make_unique<mca::InstructionView>(*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. |