Change the way unused regs. are marked and found to consider regType
[oota-llvm.git] / include / llvm / Target / TargetMachineImpls.h
index e9156c7b2dc6351a3185a2b3f20bd1da447ba73c..5e10c5c951ca06311078273ca20a467ef5b851cb 100644 (file)
@@ -8,16 +8,32 @@
 #ifndef LLVM_TARGET_TARGETMACHINEIMPLS_H
 #define LLVM_TARGET_TARGETMACHINEIMPLS_H
 
+namespace TM {
+  enum {
+    PtrSizeMask  = 1,
+    PtrSize32    = 0,
+    PtrSize64    = 1,
+
+    EndianMask   = 2,
+    LittleEndian = 0,
+    BigEndian    = 2,
+  };
+}
+
 class TargetMachine;
 
 // allocateSparcTargetMachine - Allocate and return a subclass of TargetMachine
 // that implements the Sparc backend.
 //
-TargetMachine *allocateSparcTargetMachine();
+TargetMachine *allocateSparcTargetMachine(unsigned Configuration =
+                                          TM::PtrSize64|TM::BigEndian);
 
 // allocateX86TargetMachine - Allocate and return a subclass of TargetMachine
-// that implements the X86 backend.
+// that implements the X86 backend.  The X86 target machine can run in
+// "emulation" mode, where it is capable of emulating machines of larger pointer
+// size and different endianness if desired.
 //
-TargetMachine *allocateX86TargetMachine();
+TargetMachine *allocateX86TargetMachine(unsigned Configuration =
+                                        TM::PtrSize32|TM::LittleEndian);
 
 #endif