diff options
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/LlvmState.h')
-rw-r--r-- | llvm/tools/llvm-exegesis/lib/LlvmState.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/LlvmState.h b/llvm/tools/llvm-exegesis/lib/LlvmState.h index f8ef8665f44..918738551d0 100644 --- a/llvm/tools/llvm-exegesis/lib/LlvmState.h +++ b/llvm/tools/llvm-exegesis/lib/LlvmState.h @@ -15,6 +15,7 @@ #ifndef LLVM_TOOLS_LLVM_EXEGESIS_LLVMSTATE_H #define LLVM_TOOLS_LLVM_EXEGESIS_LLVMSTATE_H +#include "MCInstrDescView.h" #include "RegisterAliasing.h" #include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCInst.h" @@ -57,11 +58,13 @@ public: return *TargetMachine->getMCSubtargetInfo(); } const RegisterAliasingTrackerCache &getRATC() const { return *RATC; } + const InstructionsCache &getIC() const { return *IC; } private: const ExegesisTarget *TheExegesisTarget; std::unique_ptr<const llvm::TargetMachine> TargetMachine; std::unique_ptr<const RegisterAliasingTrackerCache> RATC; + std::unique_ptr<const InstructionsCache> IC; }; } // namespace exegesis |