summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2011-05-06 22:05:43 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2011-05-06 22:05:43 +0000
commitfed7f0b3a0bda0f649be3c8ce16565f3ca063274 (patch)
treeb6f55fa22f92375d90509a1bbc0c8148d3b08201 /llvm/include
parenta5c889982a5d1f5695298162474de4d1e1888065 (diff)
downloadbcm5719-llvm-fed7f0b3a0bda0f649be3c8ce16565f3ca063274.tar.gz
bcm5719-llvm-fed7f0b3a0bda0f649be3c8ce16565f3ca063274.zip
ExecutionEngine: fix JIT/MCJIT selectTarget() duplication
This prepares for making JITCtor/MCJITCtor take a TargetMachine* directly from clients like EngineBuilder. llvm-svn: 131025
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/ExecutionEngine/ExecutionEngine.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h b/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
index a01ad3ae775..fdc2ad9bf77 100644
--- a/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
+++ b/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h
@@ -210,6 +210,14 @@ public:
CodeModel::Model CMM =
CodeModel::Default);
+ /// selectTarget - Pick a target either via -march or by guessing the native
+ /// arch. Add any CPU features specified via -mcpu or -mattr.
+ static TargetMachine *selectTarget(Module *M,
+ StringRef MArch,
+ StringRef MCPU,
+ const SmallVectorImpl<std::string>& MAttrs,
+ std::string *Err);
+
/// addModule - Add a Module to the list of modules that we can JIT from.
/// Note that this takes ownership of the Module: when the ExecutionEngine is
/// destroyed, it destroys the Module as well.
OpenPOWER on IntegriCloud