summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-10-29 20:51:10 +0000
committerChris Lattner <sabre@nondot.org>2002-10-29 20:51:10 +0000
commit5c1b5244b956a28667bc2a9e7a84fa39697ba715 (patch)
tree21791f24a8cf151f47f5310b6fb685254b6ee000 /include
parent33f53b554acfff0b15f08d551fce5b0701b443c0 (diff)
downloadllvm-5c1b5244b956a28667bc2a9e7a84fa39697ba715.tar.gz
llvm-5c1b5244b956a28667bc2a9e7a84fa39697ba715.tar.bz2
llvm-5c1b5244b956a28667bc2a9e7a84fa39697ba715.tar.xz
Add hook for JIT compiler
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4411 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Target/TargetMachine.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h
index 90be55ffa6..16bb97f000 100644
--- a/include/llvm/Target/TargetMachine.h
+++ b/include/llvm/Target/TargetMachine.h
@@ -78,6 +78,12 @@ public:
///
virtual void addPassesToEmitAssembly(PassManager &PM, std::ostream &Out) = 0;
+ /// addPassesToJITCompile - Add passes to the specified pass manager to
+ /// implement a fast dynamic compiler for this target. Return true if this is
+ /// not supported for this target.
+ ///
+ virtual bool addPassesToJITCompile(PassManager &PM) { return true; }
+
/// getPrologEpilogCodeInserter - Create pass to insert prolog/epilog code.
///
virtual Pass* getPrologEpilogInsertionPass() = 0;