[llvm-commits] CVS: llvm/include/llvm/Target/TargetMachineImpls.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 24 14:50:28 PDT 2003
Changes in directory llvm/include/llvm/Target:
TargetMachineImpls.h updated: 1.4 -> 1.5
---
Log message:
Targets should configure themselves based on the module, not some wierd flags
---
Diffs of the changes:
Index: llvm/include/llvm/Target/TargetMachineImpls.h
diff -u llvm/include/llvm/Target/TargetMachineImpls.h:1.4 llvm/include/llvm/Target/TargetMachineImpls.h:1.5
--- llvm/include/llvm/Target/TargetMachineImpls.h:1.4 Tue May 27 16:46:07 2003
+++ llvm/include/llvm/Target/TargetMachineImpls.h Sun Aug 24 14:49:07 2003
@@ -8,32 +8,19 @@
#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;
+class Module;
// allocateSparcTargetMachine - Allocate and return a subclass of TargetMachine
// that implements the Sparc backend.
//
-TargetMachine *allocateSparcTargetMachine(unsigned Configuration =
- TM::PtrSize64|TM::BigEndian);
+TargetMachine *allocateSparcTargetMachine(const Module &M);
// allocateX86TargetMachine - Allocate and return a subclass of TargetMachine
// 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(unsigned Configuration =
- TM::PtrSize32|TM::LittleEndian);
+TargetMachine *allocateX86TargetMachine(const Module &M);
#endif
More information about the llvm-commits
mailing list