summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/llvm-mca.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp')
-rw-r--r--llvm/tools/llvm-mca/llvm-mca.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp
index 0ae9c8849bb..5c085af9685 100644
--- a/llvm/tools/llvm-mca/llvm-mca.cpp
+++ b/llvm/tools/llvm-mca/llvm-mca.cpp
@@ -321,8 +321,12 @@ int main(int argc, char **argv) {
if (DispatchWidth)
Width = DispatchWidth;
+ // Create an instruction builder.
+ std::unique_ptr<mca::InstrBuilder> IB =
+ llvm::make_unique<mca::InstrBuilder>(*STI, *MCII);
+
std::unique_ptr<mca::Backend> B = llvm::make_unique<mca::Backend>(
- *STI, *MCII, *MRI, *S, Width, RegisterFileSize, MaxRetirePerCycle,
+ *STI, *MRI, *IB, *S, Width, RegisterFileSize, MaxRetirePerCycle,
LoadQueueSize, StoreQueueSize, AssumeNoAlias);
std::unique_ptr<mca::BackendPrinter> Printer =
OpenPOWER on IntegriCloud