aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Sparc/SparcTargetMachine.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-10-09 05:57:01 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-10-09 05:57:01 +0000
commit0e2d466ce9b5e1b2d35f53993cd5d1ba64e4b45d (patch)
tree96bcc3285c61c4233890699b0d26ce5ebd12e92b /lib/Target/Sparc/SparcTargetMachine.h
parent930f475604bcd8835197df0dac0c63235f8f1bb3 (diff)
Implement getModuleMatchQuality and getJITMatchQuality so that v8 will be the
default 32/BE target on sparc hosts, and ppc will continue to be the default on other hosts. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16865 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc/SparcTargetMachine.h')
-rw-r--r--lib/Target/Sparc/SparcTargetMachine.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/Sparc/SparcTargetMachine.h b/lib/Target/Sparc/SparcTargetMachine.h
index cbb8e043dd..86bfa8d990 100644
--- a/lib/Target/Sparc/SparcTargetMachine.h
+++ b/lib/Target/Sparc/SparcTargetMachine.h
@@ -23,6 +23,7 @@
namespace llvm {
class IntrinsicLowering;
+class Module;
class SparcV8TargetMachine : public TargetMachine {
SparcV8InstrInfo InstrInfo;
@@ -40,6 +41,9 @@ public:
return &JITInfo;
}
+ static unsigned getModuleMatchQuality(const Module &M);
+ static unsigned getJITMatchQuality();
+
/// addPassesToEmitMachineCode - Add passes to the specified pass manager to
/// get machine code emitted. This uses a MachineCodeEmitter object to handle
/// actually outputting the machine code and resolving things like the address