[llvm-commits] CVS: llvm/include/llvm/Target/TargetMachine.h

Chris Lattner lattner at cs.uiuc.edu
Tue Oct 29 14:52:04 PST 2002


Changes in directory llvm/include/llvm/Target:

TargetMachine.h updated: 1.14 -> 1.15

---
Log message:

Add hook for JIT compiler


---
Diffs of the changes:

Index: llvm/include/llvm/Target/TargetMachine.h
diff -u llvm/include/llvm/Target/TargetMachine.h:1.14 llvm/include/llvm/Target/TargetMachine.h:1.15
--- llvm/include/llvm/Target/TargetMachine.h:1.14	Sun Oct 27 19:02:24 2002
+++ llvm/include/llvm/Target/TargetMachine.h	Tue Oct 29 14:51:10 2002
@@ -78,6 +78,12 @@
   ///
   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;





More information about the llvm-commits mailing list