[llvm-commits] CVS: llvm/include/llvm/Target/TargetMachine.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Jul 10 21:44:02 PDT 2004
Changes in directory llvm/include/llvm/Target:
TargetMachine.h updated: 1.47 -> 1.48
---
Log message:
Add two new "virtual static" methods to the TargetMachine class
---
Diffs of the changes: (+14 -0)
Index: llvm/include/llvm/Target/TargetMachine.h
diff -u llvm/include/llvm/Target/TargetMachine.h:1.47 llvm/include/llvm/Target/TargetMachine.h:1.48
--- llvm/include/llvm/Target/TargetMachine.h:1.47 Thu Jul 1 15:42:00 2004
+++ llvm/include/llvm/Target/TargetMachine.h Sat Jul 10 21:43:07 2004
@@ -62,6 +62,20 @@
public:
virtual ~TargetMachine();
+ /// getModuleMatchQuality - This static method should be implemented by
+ /// targets to indicate how closely they match the specified module. This is
+ /// used by the LLC tool to determine which target to use when an explicit
+ /// -march option is not specified. If a target returns zero, it will never
+ /// be chosen without an explicit -march option.
+ static unsigned getModuleMatchQuality(const Module &M) { return 0; }
+
+ /// getJITMatchQuality - This static method should be implemented by targets
+ /// that provide JIT capabilities to indicate how suitable they are for
+ /// execution on the current host. If a value of 0 is returned, the target
+ /// will not be used unless an explicit -march option is used.
+ static unsigned getJITMatchQuality() { return 0; }
+
+
const std::string &getName() const { return Name; }
/// getIntrinsicLowering - This method returns a reference to an
More information about the llvm-commits
mailing list