LLVM  16.0.0git
ARMMachineFunctionInfo.h
Go to the documentation of this file.
1 //===-- ARMMachineFunctionInfo.h - ARM machine function info ----*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file declares ARM-specific per-machine-function information.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_LIB_TARGET_ARM_ARMMACHINEFUNCTIONINFO_H
14 #define LLVM_LIB_TARGET_ARM_ARMMACHINEFUNCTIONINFO_H
15 
16 #include "llvm/ADT/DenseMap.h"
17 #include "llvm/ADT/SmallPtrSet.h"
19 #include "llvm/IR/GlobalVariable.h"
21 #include <utility>
22 
23 namespace llvm {
24 
25 /// ARMFunctionInfo - This class is derived from MachineFunctionInfo and
26 /// contains private ARM-specific information for each MachineFunction.
28  virtual void anchor();
29 
30  /// isThumb - True if this function is compiled under Thumb mode.
31  /// Used to initialized Align, so must precede it.
32  bool isThumb = false;
33 
34  /// hasThumb2 - True if the target architecture supports Thumb2. Do not use
35  /// to determine if function is compiled under Thumb mode, for that use
36  /// 'isThumb'.
37  bool hasThumb2 = false;
38 
39  /// StByValParamsPadding - For parameter that is split between
40  /// GPRs and memory; while recovering GPRs part, when
41  /// StackAlignment > 4, and GPRs-part-size mod StackAlignment != 0,
42  /// we need to insert gap before parameter start address. It allows to
43  /// "attach" GPR-part to the part that was passed via stack.
44  unsigned StByValParamsPadding = 0;
45 
46  /// ArgsRegSaveSize - Size of the register save area for vararg functions or
47  /// those making guaranteed tail calls that need more stack argument space
48  /// than is provided by this functions incoming parameters.
49  ///
50  unsigned ArgRegsSaveSize = 0;
51 
52  /// ReturnRegsCount - Number of registers used up in the return.
53  unsigned ReturnRegsCount = 0;
54 
55  /// HasStackFrame - True if this function has a stack frame. Set by
56  /// determineCalleeSaves().
57  bool HasStackFrame = false;
58 
59  /// RestoreSPFromFP - True if epilogue should restore SP from FP. Set by
60  /// emitPrologue.
61  bool RestoreSPFromFP = false;
62 
63  /// LRSpilled - True if the LR register has been for spilled for
64  /// any reason, so it's legal to emit an ARM::tBfar (i.e. "bl").
65  bool LRSpilled = false;
66 
67  /// FramePtrSpillOffset - If HasStackFrame, this records the frame pointer
68  /// spill stack offset.
69  unsigned FramePtrSpillOffset = 0;
70 
71  /// GPRCS1Offset, GPRCS2Offset, DPRCSOffset - Starting offset of callee saved
72  /// register spills areas. For Mac OS X:
73  ///
74  /// GPR callee-saved (1) : r4, r5, r6, r7, lr
75  /// --------------------------------------------
76  /// GPR callee-saved (2) : r8, r10, r11
77  /// --------------------------------------------
78  /// DPR callee-saved : d8 - d15
79  ///
80  /// Also see AlignedDPRCSRegs below. Not all D-regs need to go in area 3.
81  /// Some may be spilled after the stack has been realigned.
82  unsigned GPRCS1Offset = 0;
83  unsigned GPRCS2Offset = 0;
84  unsigned DPRCSOffset = 0;
85 
86  /// GPRCS1Size, GPRCS2Size, DPRCSSize - Sizes of callee saved register spills
87  /// areas.
88  unsigned FPCXTSaveSize = 0;
89  unsigned FRSaveSize = 0;
90  unsigned GPRCS1Size = 0;
91  unsigned GPRCS2Size = 0;
92  unsigned DPRCSAlignGapSize = 0;
93  unsigned DPRCSSize = 0;
94 
95  /// NumAlignedDPRCS2Regs - The number of callee-saved DPRs that are saved in
96  /// the aligned portion of the stack frame. This is always a contiguous
97  /// sequence of D-registers starting from d8.
98  ///
99  /// We do not keep track of the frame indices used for these registers - they
100  /// behave like any other frame index in the aligned stack frame. These
101  /// registers also aren't included in DPRCSSize above.
102  unsigned NumAlignedDPRCS2Regs = 0;
103 
104  unsigned PICLabelUId = 0;
105 
106  /// VarArgsFrameIndex - FrameIndex for start of varargs area.
107  int VarArgsFrameIndex = 0;
108 
109  /// HasITBlocks - True if IT blocks have been inserted.
110  bool HasITBlocks = false;
111 
112  // Security Extensions
113  bool IsCmseNSEntry;
114  bool IsCmseNSCall;
115 
116  /// CPEClones - Track constant pool entries clones created by Constant Island
117  /// pass.
119 
120  /// ArgumentStackSize - amount of bytes on stack consumed by the arguments
121  /// being passed on the stack
122  unsigned ArgumentStackSize = 0;
123 
124  /// ArgumentStackToRestore - amount of bytes on stack consumed that we must
125  /// restore on return.
126  unsigned ArgumentStackToRestore = 0;
127 
128  /// CoalescedWeights - mapping of basic blocks to the rolling counter of
129  /// coalesced weights.
131 
132  /// True if this function has a subset of CSRs that is handled explicitly via
133  /// copies.
134  bool IsSplitCSR = false;
135 
136  /// Globals that have had their storage promoted into the constant pool.
137  SmallPtrSet<const GlobalVariable*,2> PromotedGlobals;
138 
139  /// The amount the literal pool has been increasedby due to promoted globals.
140  int PromotedGlobalsIncrease = 0;
141 
142  /// True if r0 will be preserved by a call to this function (e.g. C++
143  /// con/destructors).
144  bool PreservesR0 = false;
145 
146  /// True if the function should sign its return address.
147  bool SignReturnAddress = false;
148 
149  /// True if the fucntion should sign its return address, even if LR is not
150  /// saved.
151  bool SignReturnAddressAll = false;
152 
153  /// True if BTI instructions should be placed at potential indirect jump
154  /// destinations.
155  bool BranchTargetEnforcement = false;
156 
157 public:
158  ARMFunctionInfo() = default;
159 
160  explicit ARMFunctionInfo(MachineFunction &MF);
161 
165  const override;
166 
167  bool isThumbFunction() const { return isThumb; }
168  bool isThumb1OnlyFunction() const { return isThumb && !hasThumb2; }
169  bool isThumb2Function() const { return isThumb && hasThumb2; }
170 
171  bool isCmseNSEntryFunction() const { return IsCmseNSEntry; }
172  bool isCmseNSCallFunction() const { return IsCmseNSCall; }
173 
174  unsigned getStoredByValParamsPadding() const { return StByValParamsPadding; }
175  void setStoredByValParamsPadding(unsigned p) { StByValParamsPadding = p; }
176 
177  unsigned getArgRegsSaveSize() const { return ArgRegsSaveSize; }
178  void setArgRegsSaveSize(unsigned s) { ArgRegsSaveSize = s; }
179 
180  unsigned getReturnRegsCount() const { return ReturnRegsCount; }
181  void setReturnRegsCount(unsigned s) { ReturnRegsCount = s; }
182 
183  bool hasStackFrame() const { return HasStackFrame; }
184  void setHasStackFrame(bool s) { HasStackFrame = s; }
185 
186  bool shouldRestoreSPFromFP() const { return RestoreSPFromFP; }
187  void setShouldRestoreSPFromFP(bool s) { RestoreSPFromFP = s; }
188 
189  bool isLRSpilled() const { return LRSpilled; }
190  void setLRIsSpilled(bool s) { LRSpilled = s; }
191 
192  unsigned getFramePtrSpillOffset() const { return FramePtrSpillOffset; }
193  void setFramePtrSpillOffset(unsigned o) { FramePtrSpillOffset = o; }
194 
195  unsigned getNumAlignedDPRCS2Regs() const { return NumAlignedDPRCS2Regs; }
196  void setNumAlignedDPRCS2Regs(unsigned n) { NumAlignedDPRCS2Regs = n; }
197 
198  unsigned getGPRCalleeSavedArea1Offset() const { return GPRCS1Offset; }
199  unsigned getGPRCalleeSavedArea2Offset() const { return GPRCS2Offset; }
200  unsigned getDPRCalleeSavedAreaOffset() const { return DPRCSOffset; }
201 
202  void setGPRCalleeSavedArea1Offset(unsigned o) { GPRCS1Offset = o; }
203  void setGPRCalleeSavedArea2Offset(unsigned o) { GPRCS2Offset = o; }
204  void setDPRCalleeSavedAreaOffset(unsigned o) { DPRCSOffset = o; }
205 
206  unsigned getFPCXTSaveAreaSize() const { return FPCXTSaveSize; }
207  unsigned getFrameRecordSavedAreaSize() const { return FRSaveSize; }
208  unsigned getGPRCalleeSavedArea1Size() const { return GPRCS1Size; }
209  unsigned getGPRCalleeSavedArea2Size() const { return GPRCS2Size; }
210  unsigned getDPRCalleeSavedGapSize() const { return DPRCSAlignGapSize; }
211  unsigned getDPRCalleeSavedAreaSize() const { return DPRCSSize; }
212 
213  void setFPCXTSaveAreaSize(unsigned s) { FPCXTSaveSize = s; }
214  void setFrameRecordSavedAreaSize(unsigned s) { FRSaveSize = s; }
215  void setGPRCalleeSavedArea1Size(unsigned s) { GPRCS1Size = s; }
216  void setGPRCalleeSavedArea2Size(unsigned s) { GPRCS2Size = s; }
217  void setDPRCalleeSavedGapSize(unsigned s) { DPRCSAlignGapSize = s; }
218  void setDPRCalleeSavedAreaSize(unsigned s) { DPRCSSize = s; }
219 
220  unsigned getArgumentStackSize() const { return ArgumentStackSize; }
221  void setArgumentStackSize(unsigned size) { ArgumentStackSize = size; }
222 
223  unsigned getArgumentStackToRestore() const { return ArgumentStackToRestore; }
224  void setArgumentStackToRestore(unsigned v) { ArgumentStackToRestore = v; }
225 
226  void initPICLabelUId(unsigned UId) {
227  PICLabelUId = UId;
228  }
229 
230  unsigned getNumPICLabels() const {
231  return PICLabelUId;
232  }
233 
234  unsigned createPICLabelUId() {
235  return PICLabelUId++;
236  }
237 
238  int getVarArgsFrameIndex() const { return VarArgsFrameIndex; }
239  void setVarArgsFrameIndex(int Index) { VarArgsFrameIndex = Index; }
240 
241  bool hasITBlocks() const { return HasITBlocks; }
242  void setHasITBlocks(bool h) { HasITBlocks = h; }
243 
244  bool isSplitCSR() const { return IsSplitCSR; }
245  void setIsSplitCSR(bool s) { IsSplitCSR = s; }
246 
247  void recordCPEClone(unsigned CPIdx, unsigned CPCloneIdx) {
248  if (!CPEClones.insert(std::make_pair(CPCloneIdx, CPIdx)).second)
249  llvm_unreachable("Duplicate entries!");
250  }
251 
252  unsigned getOriginalCPIdx(unsigned CloneIdx) const {
254  if (I != CPEClones.end())
255  return I->second;
256  else
257  return -1U;
258  }
259 
262  auto It = CoalescedWeights.find(MBB);
263  if (It == CoalescedWeights.end()) {
264  It = CoalescedWeights.insert(std::make_pair(MBB, 0)).first;
265  }
266  return It;
267  }
268 
269  /// Indicate to the backend that \c GV has had its storage changed to inside
270  /// a constant pool. This means it no longer needs to be emitted as a
271  /// global variable.
273  PromotedGlobals.insert(GV);
274  }
276  return PromotedGlobals;
277  }
279  return PromotedGlobalsIncrease;
280  }
282  PromotedGlobalsIncrease = Sz;
283  }
284 
287 
288  void setPreservesR0() { PreservesR0 = true; }
289  bool getPreservesR0() const { return PreservesR0; }
290 
291  bool shouldSignReturnAddress() const {
292  return shouldSignReturnAddress(LRSpilled);
293  }
294 
295  bool shouldSignReturnAddress(bool SpillsLR) const {
296  if (!SignReturnAddress)
297  return false;
298  if (SignReturnAddressAll)
299  return true;
300  return SpillsLR;
301  }
302 
303  bool branchTargetEnforcement() const { return BranchTargetEnforcement; }
304 };
305 
306 } // end namespace llvm
307 
308 #endif // LLVM_LIB_TARGET_ARM_ARMMACHINEFUNCTIONINFO_H
llvm::ARMFunctionInfo::isCmseNSCallFunction
bool isCmseNSCallFunction() const
Definition: ARMMachineFunctionInfo.h:172
llvm::ARMFunctionInfo::getReturnRegsCount
unsigned getReturnRegsCount() const
Definition: ARMMachineFunctionInfo.h:180
llvm::ARMFunctionInfo
ARMFunctionInfo - This class is derived from MachineFunctionInfo and contains private ARM-specific in...
Definition: ARMMachineFunctionInfo.h:27
llvm::ARMFunctionInfo::getFrameRecordSavedAreaSize
unsigned getFrameRecordSavedAreaSize() const
Definition: ARMMachineFunctionInfo.h:207
llvm::ARMFunctionInfo::isLRSpilled
bool isLRSpilled() const
Definition: ARMMachineFunctionInfo.h:189
llvm
This is an optimization pass for GlobalISel generic memory operations.
Definition: AddressRanges.h:18
llvm::ARMFunctionInfo::isSplitCSR
bool isSplitCSR() const
Definition: ARMMachineFunctionInfo.h:244
llvm::ARMFunctionInfo::setGPRCalleeSavedArea2Size
void setGPRCalleeSavedArea2Size(unsigned s)
Definition: ARMMachineFunctionInfo.h:216
llvm::ARMFunctionInfo::setDPRCalleeSavedGapSize
void setDPRCalleeSavedGapSize(unsigned s)
Definition: ARMMachineFunctionInfo.h:217
llvm::ARMFunctionInfo::getNumPICLabels
unsigned getNumPICLabels() const
Definition: ARMMachineFunctionInfo.h:230
llvm::ARMFunctionInfo::shouldRestoreSPFromFP
bool shouldRestoreSPFromFP() const
Definition: ARMMachineFunctionInfo.h:186
llvm::ARMFunctionInfo::setGPRCalleeSavedArea1Size
void setGPRCalleeSavedArea1Size(unsigned s)
Definition: ARMMachineFunctionInfo.h:215
llvm::ARMFunctionInfo::initPICLabelUId
void initPICLabelUId(unsigned UId)
Definition: ARMMachineFunctionInfo.h:226
llvm::ARMFunctionInfo::EHPrologueOffsetInRegs
DenseMap< unsigned, unsigned > EHPrologueOffsetInRegs
Definition: ARMMachineFunctionInfo.h:286
llvm::ARMFunctionInfo::isThumb1OnlyFunction
bool isThumb1OnlyFunction() const
Definition: ARMMachineFunctionInfo.h:168
ErrorHandling.h
llvm::ARMFunctionInfo::createPICLabelUId
unsigned createPICLabelUId()
Definition: ARMMachineFunctionInfo.h:234
llvm::ARMFunctionInfo::getGPRCalleeSavedArea1Size
unsigned getGPRCalleeSavedArea1Size() const
Definition: ARMMachineFunctionInfo.h:208
llvm::GlobalVariable
Definition: GlobalVariable.h:39
llvm::ARMFunctionInfo::setNumAlignedDPRCS2Regs
void setNumAlignedDPRCS2Regs(unsigned n)
Definition: ARMMachineFunctionInfo.h:196
llvm::ARMFunctionInfo::getOriginalCPIdx
unsigned getOriginalCPIdx(unsigned CloneIdx) const
Definition: ARMMachineFunctionInfo.h:252
llvm::ARMFunctionInfo::getGPRCalleeSavedArea2Size
unsigned getGPRCalleeSavedArea2Size() const
Definition: ARMMachineFunctionInfo.h:209
llvm::ARMFunctionInfo::getArgumentStackToRestore
unsigned getArgumentStackToRestore() const
Definition: ARMMachineFunctionInfo.h:223
llvm::DenseMapIterator
Definition: DenseMap.h:57
DenseMap.h
llvm::SmallPtrSet
SmallPtrSet - This class implements a set which is optimized for holding SmallSize or less elements.
Definition: SmallPtrSet.h:450
p
the resulting code requires compare and branches when and if * p
Definition: README.txt:396
llvm::ARMFunctionInfo::getDPRCalleeSavedAreaSize
unsigned getDPRCalleeSavedAreaSize() const
Definition: ARMMachineFunctionInfo.h:211
llvm::ARMFunctionInfo::setArgumentStackToRestore
void setArgumentStackToRestore(unsigned v)
Definition: ARMMachineFunctionInfo.h:224
llvm::ARMFunctionInfo::EHPrologueRemappedRegs
DenseMap< unsigned, unsigned > EHPrologueRemappedRegs
Definition: ARMMachineFunctionInfo.h:285
llvm::ARMFunctionInfo::isCmseNSEntryFunction
bool isCmseNSEntryFunction() const
Definition: ARMMachineFunctionInfo.h:171
llvm::ARMFunctionInfo::setStoredByValParamsPadding
void setStoredByValParamsPadding(unsigned p)
Definition: ARMMachineFunctionInfo.h:175
llvm::ARMFunctionInfo::setShouldRestoreSPFromFP
void setShouldRestoreSPFromFP(bool s)
Definition: ARMMachineFunctionInfo.h:187
llvm::ARMFunctionInfo::getDPRCalleeSavedGapSize
unsigned getDPRCalleeSavedGapSize() const
Definition: ARMMachineFunctionInfo.h:210
llvm::ARMFunctionInfo::getGPRCalleeSavedArea2Offset
unsigned getGPRCalleeSavedArea2Offset() const
Definition: ARMMachineFunctionInfo.h:199
llvm::ARMFunctionInfo::setFrameRecordSavedAreaSize
void setFrameRecordSavedAreaSize(unsigned s)
Definition: ARMMachineFunctionInfo.h:214
llvm::ARMFunctionInfo::setDPRCalleeSavedAreaSize
void setDPRCalleeSavedAreaSize(unsigned s)
Definition: ARMMachineFunctionInfo.h:218
llvm::ARMFunctionInfo::setPreservesR0
void setPreservesR0()
Definition: ARMMachineFunctionInfo.h:288
llvm::ARMFunctionInfo::getPromotedConstpoolIncrease
int getPromotedConstpoolIncrease() const
Definition: ARMMachineFunctionInfo.h:278
llvm::dwarf::Index
Index
Definition: Dwarf.h:472
llvm::ARMFunctionInfo::getFramePtrSpillOffset
unsigned getFramePtrSpillOffset() const
Definition: ARMMachineFunctionInfo.h:192
llvm::ARMFunctionInfo::ARMFunctionInfo
ARMFunctionInfo()=default
llvm::ARMFunctionInfo::setVarArgsFrameIndex
void setVarArgsFrameIndex(int Index)
Definition: ARMMachineFunctionInfo.h:239
SmallPtrSet.h
llvm::ARMFunctionInfo::setHasStackFrame
void setHasStackFrame(bool s)
Definition: ARMMachineFunctionInfo.h:184
llvm::ARMFunctionInfo::isThumbFunction
bool isThumbFunction() const
Definition: ARMMachineFunctionInfo.h:167
llvm::ARMFunctionInfo::setArgRegsSaveSize
void setArgRegsSaveSize(unsigned s)
Definition: ARMMachineFunctionInfo.h:178
llvm::MachineBasicBlock
Definition: MachineBasicBlock.h:94
llvm::ARMFunctionInfo::getCoalescedWeight
DenseMap< const MachineBasicBlock *, unsigned >::iterator getCoalescedWeight(MachineBasicBlock *MBB)
Definition: ARMMachineFunctionInfo.h:260
llvm::ARMFunctionInfo::setIsSplitCSR
void setIsSplitCSR(bool s)
Definition: ARMMachineFunctionInfo.h:245
Index
uint32_t Index
Definition: ELFObjHandler.cpp:83
llvm::ARMFunctionInfo::getVarArgsFrameIndex
int getVarArgsFrameIndex() const
Definition: ARMMachineFunctionInfo.h:238
llvm::ARMFunctionInfo::getFPCXTSaveAreaSize
unsigned getFPCXTSaveAreaSize() const
Definition: ARMMachineFunctionInfo.h:206
llvm::ARMFunctionInfo::branchTargetEnforcement
bool branchTargetEnforcement() const
Definition: ARMMachineFunctionInfo.h:303
s
multiplies can be turned into SHL s
Definition: README.txt:370
llvm::BumpPtrAllocatorImpl
Allocate memory in an ever growing pool, as if by bump-pointer.
Definition: Allocator.h:63
llvm::DenseMap< unsigned, unsigned >
I
#define I(x, y, z)
Definition: MD5.cpp:58
llvm::ARMFunctionInfo::setHasITBlocks
void setHasITBlocks(bool h)
Definition: ARMMachineFunctionInfo.h:242
llvm::ARMFunctionInfo::setFPCXTSaveAreaSize
void setFPCXTSaveAreaSize(unsigned s)
Definition: ARMMachineFunctionInfo.h:213
llvm::ARMFunctionInfo::setReturnRegsCount
void setReturnRegsCount(unsigned s)
Definition: ARMMachineFunctionInfo.h:181
llvm::DenseMapBase::find
iterator find(const_arg_type_t< KeyT > Val)
Definition: DenseMap.h:150
llvm::ARMFunctionInfo::getDPRCalleeSavedAreaOffset
unsigned getDPRCalleeSavedAreaOffset() const
Definition: ARMMachineFunctionInfo.h:200
llvm::ARMFunctionInfo::getGlobalsPromotedToConstantPool
SmallPtrSet< const GlobalVariable *, 2 > & getGlobalsPromotedToConstantPool()
Definition: ARMMachineFunctionInfo.h:275
llvm::MachineFunction
Definition: MachineFunction.h:257
llvm::ARMFunctionInfo::getStoredByValParamsPadding
unsigned getStoredByValParamsPadding() const
Definition: ARMMachineFunctionInfo.h:174
llvm::size
auto size(R &&Range, std::enable_if_t< std::is_base_of< std::random_access_iterator_tag, typename std::iterator_traits< decltype(Range.begin())>::iterator_category >::value, void > *=nullptr)
Get the size of a range.
Definition: STLExtras.h:1690
llvm::ARMFunctionInfo::recordCPEClone
void recordCPEClone(unsigned CPIdx, unsigned CPCloneIdx)
Definition: ARMMachineFunctionInfo.h:247
llvm::ARMFunctionInfo::setFramePtrSpillOffset
void setFramePtrSpillOffset(unsigned o)
Definition: ARMMachineFunctionInfo.h:193
llvm_unreachable
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
Definition: ErrorHandling.h:143
llvm::ARMFunctionInfo::shouldSignReturnAddress
bool shouldSignReturnAddress() const
Definition: ARMMachineFunctionInfo.h:291
llvm::ARMFunctionInfo::setGPRCalleeSavedArea2Offset
void setGPRCalleeSavedArea2Offset(unsigned o)
Definition: ARMMachineFunctionInfo.h:203
llvm::ARMFunctionInfo::setArgumentStackSize
void setArgumentStackSize(unsigned size)
Definition: ARMMachineFunctionInfo.h:221
llvm::DenseMapBase::insert
std::pair< iterator, bool > insert(const std::pair< KeyT, ValueT > &KV)
Definition: DenseMap.h:207
llvm::ARMFunctionInfo::setGPRCalleeSavedArea1Offset
void setGPRCalleeSavedArea1Offset(unsigned o)
Definition: ARMMachineFunctionInfo.h:202
llvm::ARMFunctionInfo::setPromotedConstpoolIncrease
void setPromotedConstpoolIncrease(int Sz)
Definition: ARMMachineFunctionInfo.h:281
MBB
MachineBasicBlock & MBB
Definition: AArch64SLSHardening.cpp:74
llvm::ARMFunctionInfo::shouldSignReturnAddress
bool shouldSignReturnAddress(bool SpillsLR) const
Definition: ARMMachineFunctionInfo.h:295
llvm::DenseMapBase::end
iterator end()
Definition: DenseMap.h:84
GlobalVariable.h
llvm::ARMFunctionInfo::setDPRCalleeSavedAreaOffset
void setDPRCalleeSavedAreaOffset(unsigned o)
Definition: ARMMachineFunctionInfo.h:204
llvm::ARMFunctionInfo::setLRIsSpilled
void setLRIsSpilled(bool s)
Definition: ARMMachineFunctionInfo.h:190
llvm::ARMFunctionInfo::getArgumentStackSize
unsigned getArgumentStackSize() const
Definition: ARMMachineFunctionInfo.h:220
llvm::ARMFunctionInfo::getGPRCalleeSavedArea1Offset
unsigned getGPRCalleeSavedArea1Offset() const
Definition: ARMMachineFunctionInfo.h:198
llvm::ARMFunctionInfo::getNumAlignedDPRCS2Regs
unsigned getNumAlignedDPRCS2Regs() const
Definition: ARMMachineFunctionInfo.h:195
Allocator
Basic Register Allocator
Definition: RegAllocBasic.cpp:143
llvm::ARMFunctionInfo::hasStackFrame
bool hasStackFrame() const
Definition: ARMMachineFunctionInfo.h:183
llvm::ARMFunctionInfo::getArgRegsSaveSize
unsigned getArgRegsSaveSize() const
Definition: ARMMachineFunctionInfo.h:177
h
the multiplication has a latency of four as opposed to two cycles for the movl lea variant It appears gcc place string data with linkonce linkage in section coalesced instead of section coalesced Take a look at darwin h
Definition: README.txt:261
llvm::ARMFunctionInfo::getPreservesR0
bool getPreservesR0() const
Definition: ARMMachineFunctionInfo.h:289
llvm::ARMFunctionInfo::hasITBlocks
bool hasITBlocks() const
Definition: ARMMachineFunctionInfo.h:241
llvm::ARMFunctionInfo::markGlobalAsPromotedToConstantPool
void markGlobalAsPromotedToConstantPool(const GlobalVariable *GV)
Indicate to the backend that GV has had its storage changed to inside a constant pool.
Definition: ARMMachineFunctionInfo.h:272
n
The same transformation can work with an even modulo with the addition of a and shrink the compare RHS by the same amount Unless the target supports that transformation probably isn t worthwhile The transformation can also easily be made to work with non zero equality for n
Definition: README.txt:685
MachineFunction.h
llvm::ARMFunctionInfo::clone
MachineFunctionInfo * clone(BumpPtrAllocator &Allocator, MachineFunction &DestMF, const DenseMap< MachineBasicBlock *, MachineBasicBlock * > &Src2DstMBB) const override
Make a functionally equivalent copy of this MachineFunctionInfo in MF.
Definition: ARMMachineFunctionInfo.cpp:78
llvm::ARMFunctionInfo::isThumb2Function
bool isThumb2Function() const
Definition: ARMMachineFunctionInfo.h:169
llvm::MachineFunctionInfo
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...
Definition: MachineFunction.h:95
llvm::SmallPtrSetImpl::insert
std::pair< iterator, bool > insert(PtrType Ptr)
Inserts Ptr if and only if there is no element in the container equal to Ptr.
Definition: SmallPtrSet.h:365