From 5c1b5244b956a28667bc2a9e7a84fa39697ba715 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 29 Oct 2002 20:51:10 +0000 Subject: [PATCH] Add hook for JIT compiler git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4411 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Target/TargetMachine.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/llvm/Target/TargetMachine.h b/include/llvm/Target/TargetMachine.h index 90be55ffa63..16bb97f0008 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;