summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-06-19 10:39:50 +0000
committerClement Courbet <courbet@google.com>2018-06-19 10:39:50 +0000
commit6780b5f97d28ff1f0266fc3780a35396db286e7a (patch)
treeeb42972070e3b7e44ebef97eaa0f198caad9599c /llvm/tools/llvm-exegesis/llvm-exegesis.cpp
parentb1ce7765be157bc5c825362f1f0804350e56c468 (diff)
downloadbcm5719-llvm-6780b5f97d28ff1f0266fc3780a35396db286e7a.tar.gz
bcm5719-llvm-6780b5f97d28ff1f0266fc3780a35396db286e7a.zip
[llvm-exegesis] A mechanism to add target-specific functionality.
Summary: This is a step towards implementing memory operands and X87. Reviewers: gchatelet Subscribers: mgorny, tschuett, llvm-commits Differential Revision: https://reviews.llvm.org/D48210 llvm-svn: 335038
Diffstat (limited to 'llvm/tools/llvm-exegesis/llvm-exegesis.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/llvm-exegesis.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
index 7e2caf3198e..2ac92965a96 100644
--- a/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
+++ b/llvm/tools/llvm-exegesis/llvm-exegesis.cpp
@@ -86,6 +86,10 @@ namespace exegesis {
static llvm::ExitOnError ExitOnErr;
+#ifdef LLVM_EXEGESIS_INITIALIZE_NATIVE_TARGET
+void LLVM_EXEGESIS_INITIALIZE_NATIVE_TARGET();
+#endif
+
static unsigned GetOpcodeOrDie(const llvm::MCInstrInfo &MCInstrInfo) {
if (OpcodeName.empty() && (OpcodeIndex == 0))
llvm::report_fatal_error(
@@ -120,6 +124,9 @@ void benchmarkMain() {
llvm::InitializeNativeTarget();
llvm::InitializeNativeTargetAsmPrinter();
+#ifdef LLVM_EXEGESIS_INITIALIZE_NATIVE_TARGET
+ LLVM_EXEGESIS_INITIALIZE_NATIVE_TARGET();
+#endif
// FIXME: Target-specific filter.
X86Filter Filter;
OpenPOWER on IntegriCloud