llvm.org GIT mirror llvm / 19ad3e2
PPCSubtarget.h: Whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166931 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 7 years ago
1 changed file(s) with 22 addition(s) and 22 deletion(s). Raw diff Collapse all Expand all
3232 enum {
3333 DIR_NONE,
3434 DIR_32,
35 DIR_440,
36 DIR_601,
37 DIR_602,
38 DIR_603,
35 DIR_440,
36 DIR_601,
37 DIR_602,
38 DIR_603,
3939 DIR_7400,
40 DIR_750,
41 DIR_970,
40 DIR_750,
41 DIR_970,
4242 DIR_A2,
4343 DIR_E500mc,
4444 DIR_E5500,
4545 DIR_PWR6,
4646 DIR_PWR7,
47 DIR_64
47 DIR_64
4848 };
4949 }
5050
5151 class GlobalValue;
5252 class TargetMachine;
53
53
5454 class PPCSubtarget : public PPCGenSubtargetInfo {
5555 protected:
5656 /// stackAlignment - The minimum alignment known to hold of the stack frame on
5757 /// entry to the function and which must be maintained by every function.
5858 unsigned StackAlignment;
59
59
6060 /// Selected instruction itineraries (one entry per itinerary class.)
6161 InstrItineraryData InstrItins;
62
62
6363 /// Which cpu directive was used.
6464 unsigned DarwinDirective;
6565
7575 bool IsBookE;
7676 bool HasLazyResolverStubs;
7777 bool IsJITCodeModel;
78
78
7979 /// TargetTriple - What processor and OS we're targeting.
8080 Triple TargetTriple;
8181
8585 ///
8686 PPCSubtarget(const std::string &TT, const std::string &CPU,
8787 const std::string &FS, bool is64Bit);
88
89 /// ParseSubtargetFeatures - Parses features string setting specified
88
89 /// ParseSubtargetFeatures - Parses features string setting specified
9090 /// subtarget options. Definition of function is auto generated by tblgen.
9191 void ParseSubtargetFeatures(StringRef CPU, StringRef FS);
92
92
9393 /// SetJITMode - This is called to inform the subtarget info that we are
9494 /// producing code for the JIT.
9595 void SetJITMode();
9898 /// stack frame on entry to the function and which must be maintained by every
9999 /// function for this subtarget.
100100 unsigned getStackAlignment() const { return StackAlignment; }
101
101
102102 /// getDarwinDirective - Returns the -m directive specified for the cpu.
103103 ///
104104 unsigned getDarwinDirective() const { return DarwinDirective; }
105
106 /// getInstrItins - Return the instruction itineraies based on subtarget
105
106 /// getInstrItins - Return the instruction itineraies based on subtarget
107107 /// selection.
108108 const InstrItineraryData &getInstrItineraryData() const { return InstrItins; }
109109
125125 /// isPPC64 - Return true if we are generating code for 64-bit pointer mode.
126126 ///
127127 bool isPPC64() const { return IsPPC64; }
128
128
129129 /// has64BitSupport - Return true if the selected CPU supports 64-bit
130130 /// instructions, regardless of whether we are in 32-bit or 64-bit mode.
131131 bool has64BitSupport() const { return Has64BitSupport; }
132
132
133133 /// use64BitRegs - Return true if in 64-bit mode or if we should use 64-bit
134134 /// registers in 32-bit mode when possible. This can only true if
135135 /// has64BitSupport() returns true.
136136 bool use64BitRegs() const { return Use64BitRegs; }
137
137
138138 /// hasLazyResolverStub - Return true if accesses to the specified global have
139139 /// to go through a dyld lazy resolution stub. This means that an extra load
140140 /// is required to get the address of the global.
141 bool hasLazyResolverStub(const GlobalValue *GV,
141 bool hasLazyResolverStub(const GlobalValue *GV,
142142 const TargetMachine &TM) const;
143
143
144144 // isJITCodeModel - True if we're generating code for the JIT
145145 bool isJITCodeModel() const { return IsJITCodeModel; }
146146