llvm.org GIT mirror llvm / e3ac756
Targets should configure themselves based on the module, not some wierd flags git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8131 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 17 years ago
1 changed file(s) with 3 addition(s) and 16 deletion(s). Raw diff Collapse all Expand all
77 #ifndef LLVM_TARGET_TARGETMACHINEIMPLS_H
88 #define LLVM_TARGET_TARGETMACHINEIMPLS_H
99
10 namespace TM {
11 enum {
12 PtrSizeMask = 1,
13 PtrSize32 = 0,
14 PtrSize64 = 1,
15
16 EndianMask = 2,
17 LittleEndian = 0,
18 BigEndian = 2,
19 };
20 }
21
2210 class TargetMachine;
11 class Module;
2312
2413 // allocateSparcTargetMachine - Allocate and return a subclass of TargetMachine
2514 // that implements the Sparc backend.
2615 //
27 TargetMachine *allocateSparcTargetMachine(unsigned Configuration =
28 TM::PtrSize64|TM::BigEndian);
16 TargetMachine *allocateSparcTargetMachine(const Module &M);
2917
3018 // allocateX86TargetMachine - Allocate and return a subclass of TargetMachine
3119 // that implements the X86 backend. The X86 target machine can run in
3220 // "emulation" mode, where it is capable of emulating machines of larger pointer
3321 // size and different endianness if desired.
3422 //
35 TargetMachine *allocateX86TargetMachine(unsigned Configuration =
36 TM::PtrSize32|TM::LittleEndian);
23 TargetMachine *allocateX86TargetMachine(const Module &M);
3724
3825 #endif