summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/LlvmState.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2018-10-24 11:55:06 +0000
committerGuillaume Chatelet <gchatelet@google.com>2018-10-24 11:55:06 +0000
commitda11b85606f532a1b4aac96d5f9c92eded60e568 (patch)
tree33e71f89ba50ac382c55f97db69b5194a9325df1 /llvm/tools/llvm-exegesis/lib/LlvmState.cpp
parent083addf75192ff07eccd002eceeeacd085054217 (diff)
downloadbcm5719-llvm-da11b85606f532a1b4aac96d5f9c92eded60e568.tar.gz
bcm5719-llvm-da11b85606f532a1b4aac96d5f9c92eded60e568.zip
[llvm-exegesis] Implements a cache of Instruction objects.
llvm-svn: 345130
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/LlvmState.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/LlvmState.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/LlvmState.cpp b/llvm/tools/llvm-exegesis/lib/LlvmState.cpp
index ba786cc97ce..58e9db315d5 100644
--- a/llvm/tools/llvm-exegesis/lib/LlvmState.cpp
+++ b/llvm/tools/llvm-exegesis/lib/LlvmState.cpp
@@ -38,6 +38,7 @@ LLVMState::LLVMState(const std::string &Triple, const std::string &CpuName) {
}
RATC.reset(new RegisterAliasingTrackerCache(
getRegInfo(), getFunctionReservedRegs(getTargetMachine())));
+ IC.reset(new InstructionsCache(getInstrInfo(), getRATC()));
}
LLVMState::LLVMState()
OpenPOWER on IntegriCloud