Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

564 lines
22 KiB

  1. //===-- CodeGen/MachineFrameInfo.h - Abstract Stack Frame Rep. --*- C++ -*-===//
  2. //
  3. // The LLVM Compiler Infrastructure
  4. //
  5. // This file is distributed under the University of Illinois Open Source
  6. // License. See LICENSE.TXT for details.
  7. //
  8. //===----------------------------------------------------------------------===//
  9. //
  10. // The file defines the MachineFrameInfo class.
  11. //
  12. //===----------------------------------------------------------------------===//
  13. #ifndef LLVM_CODEGEN_MACHINEFRAMEINFO_H
  14. #define LLVM_CODEGEN_MACHINEFRAMEINFO_H
  15. #include "llvm/ADT/SmallVector.h"
  16. #include "llvm/Support/DataTypes.h"
  17. #include <cassert>
  18. #include <vector>
  19. namespace llvm {
  20. class raw_ostream;
  21. class DataLayout;
  22. class TargetRegisterClass;
  23. class Type;
  24. class MachineFunction;
  25. class MachineBasicBlock;
  26. class TargetFrameLowering;
  27. class BitVector;
  28. class Value;
  29. class AllocaInst;
  30. /// The CalleeSavedInfo class tracks the information need to locate where a
  31. /// callee saved register is in the current frame.
  32. class CalleeSavedInfo {
  33. unsigned Reg;
  34. int FrameIdx;
  35. public:
  36. explicit CalleeSavedInfo(unsigned R, int FI = 0)
  37. : Reg(R), FrameIdx(FI) {}
  38. // Accessors.
  39. unsigned getReg() const { return Reg; }
  40. int getFrameIdx() const { return FrameIdx; }
  41. void setFrameIdx(int FI) { FrameIdx = FI; }
  42. };
  43. /// The MachineFrameInfo class represents an abstract stack frame until
  44. /// prolog/epilog code is inserted. This class is key to allowing stack frame
  45. /// representation optimizations, such as frame pointer elimination. It also
  46. /// allows more mundane (but still important) optimizations, such as reordering
  47. /// of abstract objects on the stack frame.
  48. ///
  49. /// To support this, the class assigns unique integer identifiers to stack
  50. /// objects requested clients. These identifiers are negative integers for
  51. /// fixed stack objects (such as arguments passed on the stack) or nonnegative
  52. /// for objects that may be reordered. Instructions which refer to stack
  53. /// objects use a special MO_FrameIndex operand to represent these frame
  54. /// indexes.
  55. ///
  56. /// Because this class keeps track of all references to the stack frame, it
  57. /// knows when a variable sized object is allocated on the stack. This is the
  58. /// sole condition which prevents frame pointer elimination, which is an
  59. /// important optimization on register-poor architectures. Because original
  60. /// variable sized alloca's in the source program are the only source of
  61. /// variable sized stack objects, it is safe to decide whether there will be
  62. /// any variable sized objects before all stack objects are known (for
  63. /// example, register allocator spill code never needs variable sized
  64. /// objects).
  65. ///
  66. /// When prolog/epilog code emission is performed, the final stack frame is
  67. /// built and the machine instructions are modified to refer to the actual
  68. /// stack offsets of the object, eliminating all MO_FrameIndex operands from
  69. /// the program.
  70. ///
  71. /// @brief Abstract Stack Frame Information
  72. class MachineFrameInfo {
  73. // StackObject - Represent a single object allocated on the stack.
  74. struct StackObject {
  75. // SPOffset - The offset of this object from the stack pointer on entry to
  76. // the function. This field has no meaning for a variable sized element.
  77. int64_t SPOffset;
  78. // The size of this object on the stack. 0 means a variable sized object,
  79. // ~0ULL means a dead object.
  80. uint64_t Size;
  81. // Alignment - The required alignment of this stack slot.
  82. unsigned Alignment;
  83. // isImmutable - If true, the value of the stack object is set before
  84. // entering the function and is not modified inside the function. By
  85. // default, fixed objects are immutable unless marked otherwise.
  86. bool isImmutable;
  87. // isSpillSlot - If true the stack object is used as spill slot. It
  88. // cannot alias any other memory objects.
  89. bool isSpillSlot;
  90. // MayNeedSP - If true the stack object triggered the creation of the stack
  91. // protector. We should allocate this object right after the stack
  92. // protector.
  93. bool MayNeedSP;
  94. /// Alloca - If this stack object is originated from an Alloca instruction
  95. /// this value saves the original IR allocation. Can be NULL.
  96. const AllocaInst *Alloca;
  97. // PreAllocated - If true, the object was mapped into the local frame
  98. // block and doesn't need additional handling for allocation beyond that.
  99. bool PreAllocated;
  100. StackObject(uint64_t Sz, unsigned Al, int64_t SP, bool IM,
  101. bool isSS, bool NSP, const AllocaInst *Val)
  102. : SPOffset(SP), Size(Sz), Alignment(Al), isImmutable(IM),
  103. isSpillSlot(isSS), MayNeedSP(NSP), Alloca(Val), PreAllocated(false) {}
  104. };
  105. /// Objects - The list of stack objects allocated...
  106. ///
  107. std::vector<StackObject> Objects;
  108. /// NumFixedObjects - This contains the number of fixed objects contained on
  109. /// the stack. Because fixed objects are stored at a negative index in the
  110. /// Objects list, this is also the index to the 0th object in the list.
  111. ///
  112. unsigned NumFixedObjects;
  113. /// HasVarSizedObjects - This boolean keeps track of whether any variable
  114. /// sized objects have been allocated yet.
  115. ///
  116. bool HasVarSizedObjects;
  117. /// FrameAddressTaken - This boolean keeps track of whether there is a call
  118. /// to builtin \@llvm.frameaddress.
  119. bool FrameAddressTaken;
  120. /// ReturnAddressTaken - This boolean keeps track of whether there is a call
  121. /// to builtin \@llvm.returnaddress.
  122. bool ReturnAddressTaken;
  123. /// StackSize - The prolog/epilog code inserter calculates the final stack
  124. /// offsets for all of the fixed size objects, updating the Objects list
  125. /// above. It then updates StackSize to contain the number of bytes that need
  126. /// to be allocated on entry to the function.
  127. ///
  128. uint64_t StackSize;
  129. /// OffsetAdjustment - The amount that a frame offset needs to be adjusted to
  130. /// have the actual offset from the stack/frame pointer. The exact usage of
  131. /// this is target-dependent, but it is typically used to adjust between
  132. /// SP-relative and FP-relative offsets. E.G., if objects are accessed via
  133. /// SP then OffsetAdjustment is zero; if FP is used, OffsetAdjustment is set
  134. /// to the distance between the initial SP and the value in FP. For many
  135. /// targets, this value is only used when generating debug info (via
  136. /// TargetRegisterInfo::getFrameIndexOffset); when generating code, the
  137. /// corresponding adjustments are performed directly.
  138. int OffsetAdjustment;
  139. /// MaxAlignment - The prolog/epilog code inserter may process objects
  140. /// that require greater alignment than the default alignment the target
  141. /// provides. To handle this, MaxAlignment is set to the maximum alignment
  142. /// needed by the objects on the current frame. If this is greater than the
  143. /// native alignment maintained by the compiler, dynamic alignment code will
  144. /// be needed.
  145. ///
  146. unsigned MaxAlignment;
  147. /// AdjustsStack - Set to true if this function adjusts the stack -- e.g.,
  148. /// when calling another function. This is only valid during and after
  149. /// prolog/epilog code insertion.
  150. bool AdjustsStack;
  151. /// HasCalls - Set to true if this function has any function calls.
  152. bool HasCalls;
  153. /// StackProtectorIdx - The frame index for the stack protector.
  154. int StackProtectorIdx;
  155. /// FunctionContextIdx - The frame index for the function context. Used for
  156. /// SjLj exceptions.
  157. int FunctionContextIdx;
  158. /// MaxCallFrameSize - This contains the size of the largest call frame if the
  159. /// target uses frame setup/destroy pseudo instructions (as defined in the
  160. /// TargetFrameInfo class). This information is important for frame pointer
  161. /// elimination. If is only valid during and after prolog/epilog code
  162. /// insertion.
  163. ///
  164. unsigned MaxCallFrameSize;
  165. /// CSInfo - The prolog/epilog code inserter fills in this vector with each
  166. /// callee saved register saved in the frame. Beyond its use by the prolog/
  167. /// epilog code inserter, this data used for debug info and exception
  168. /// handling.
  169. std::vector<CalleeSavedInfo> CSInfo;
  170. /// CSIValid - Has CSInfo been set yet?
  171. bool CSIValid;
  172. /// TargetFrameLowering - Target information about frame layout.
  173. ///
  174. const TargetFrameLowering &TFI;
  175. /// LocalFrameObjects - References to frame indices which are mapped
  176. /// into the local frame allocation block. <FrameIdx, LocalOffset>
  177. SmallVector<std::pair<int, int64_t>, 32> LocalFrameObjects;
  178. /// LocalFrameSize - Size of the pre-allocated local frame block.
  179. int64_t LocalFrameSize;
  180. /// Required alignment of the local object blob, which is the strictest
  181. /// alignment of any object in it.
  182. unsigned LocalFrameMaxAlign;
  183. /// Whether the local object blob needs to be allocated together. If not,
  184. /// PEI should ignore the isPreAllocated flags on the stack objects and
  185. /// just allocate them normally.
  186. bool UseLocalStackAllocationBlock;
  187. /// Whether the "realign-stack" option is on.
  188. bool RealignOption;
  189. public:
  190. explicit MachineFrameInfo(const TargetFrameLowering &tfi, bool RealignOpt)
  191. : TFI(tfi), RealignOption(RealignOpt) {
  192. StackSize = NumFixedObjects = OffsetAdjustment = MaxAlignment = 0;
  193. HasVarSizedObjects = false;
  194. FrameAddressTaken = false;
  195. ReturnAddressTaken = false;
  196. AdjustsStack = false;
  197. HasCalls = false;
  198. StackProtectorIdx = -1;
  199. FunctionContextIdx = -1;
  200. MaxCallFrameSize = 0;
  201. CSIValid = false;
  202. LocalFrameSize = 0;
  203. LocalFrameMaxAlign = 0;
  204. UseLocalStackAllocationBlock = false;
  205. }
  206. /// hasStackObjects - Return true if there are any stack objects in this
  207. /// function.
  208. ///
  209. bool hasStackObjects() const { return !Objects.empty(); }
  210. /// hasVarSizedObjects - This method may be called any time after instruction
  211. /// selection is complete to determine if the stack frame for this function
  212. /// contains any variable sized objects.
  213. ///
  214. bool hasVarSizedObjects() const { return HasVarSizedObjects; }
  215. /// getStackProtectorIndex/setStackProtectorIndex - Return the index for the
  216. /// stack protector object.
  217. ///
  218. int getStackProtectorIndex() const { return StackProtectorIdx; }
  219. void setStackProtectorIndex(int I) { StackProtectorIdx = I; }
  220. /// getFunctionContextIndex/setFunctionContextIndex - Return the index for the
  221. /// function context object. This object is used for SjLj exceptions.
  222. int getFunctionContextIndex() const { return FunctionContextIdx; }
  223. void setFunctionContextIndex(int I) { FunctionContextIdx = I; }
  224. /// isFrameAddressTaken - This method may be called any time after instruction
  225. /// selection is complete to determine if there is a call to
  226. /// \@llvm.frameaddress in this function.
  227. bool isFrameAddressTaken() const { return FrameAddressTaken; }
  228. void setFrameAddressIsTaken(bool T) { FrameAddressTaken = T; }
  229. /// isReturnAddressTaken - This method may be called any time after
  230. /// instruction selection is complete to determine if there is a call to
  231. /// \@llvm.returnaddress in this function.
  232. bool isReturnAddressTaken() const { return ReturnAddressTaken; }
  233. void setReturnAddressIsTaken(bool s) { ReturnAddressTaken = s; }
  234. /// getObjectIndexBegin - Return the minimum frame object index.
  235. ///
  236. int getObjectIndexBegin() const { return -NumFixedObjects; }
  237. /// getObjectIndexEnd - Return one past the maximum frame object index.
  238. ///
  239. int getObjectIndexEnd() const { return (int)Objects.size()-NumFixedObjects; }
  240. /// getNumFixedObjects - Return the number of fixed objects.
  241. unsigned getNumFixedObjects() const { return NumFixedObjects; }
  242. /// getNumObjects - Return the number of objects.
  243. ///
  244. unsigned getNumObjects() const { return Objects.size(); }
  245. /// mapLocalFrameObject - Map a frame index into the local object block
  246. void mapLocalFrameObject(int ObjectIndex, int64_t Offset) {
  247. LocalFrameObjects.push_back(std::pair<int, int64_t>(ObjectIndex, Offset));
  248. Objects[ObjectIndex + NumFixedObjects].PreAllocated = true;
  249. }
  250. /// getLocalFrameObjectMap - Get the local offset mapping for a for an object
  251. std::pair<int, int64_t> getLocalFrameObjectMap(int i) {
  252. assert (i >= 0 && (unsigned)i < LocalFrameObjects.size() &&
  253. "Invalid local object reference!");
  254. return LocalFrameObjects[i];
  255. }
  256. /// getLocalFrameObjectCount - Return the number of objects allocated into
  257. /// the local object block.
  258. int64_t getLocalFrameObjectCount() { return LocalFrameObjects.size(); }
  259. /// setLocalFrameSize - Set the size of the local object blob.
  260. void setLocalFrameSize(int64_t sz) { LocalFrameSize = sz; }
  261. /// getLocalFrameSize - Get the size of the local object blob.
  262. int64_t getLocalFrameSize() const { return LocalFrameSize; }
  263. /// setLocalFrameMaxAlign - Required alignment of the local object blob,
  264. /// which is the strictest alignment of any object in it.
  265. void setLocalFrameMaxAlign(unsigned Align) { LocalFrameMaxAlign = Align; }
  266. /// getLocalFrameMaxAlign - Return the required alignment of the local
  267. /// object blob.
  268. unsigned getLocalFrameMaxAlign() const { return LocalFrameMaxAlign; }
  269. /// getUseLocalStackAllocationBlock - Get whether the local allocation blob
  270. /// should be allocated together or let PEI allocate the locals in it
  271. /// directly.
  272. bool getUseLocalStackAllocationBlock() {return UseLocalStackAllocationBlock;}
  273. /// setUseLocalStackAllocationBlock - Set whether the local allocation blob
  274. /// should be allocated together or let PEI allocate the locals in it
  275. /// directly.
  276. void setUseLocalStackAllocationBlock(bool v) {
  277. UseLocalStackAllocationBlock = v;
  278. }
  279. /// isObjectPreAllocated - Return true if the object was pre-allocated into
  280. /// the local block.
  281. bool isObjectPreAllocated(int ObjectIdx) const {
  282. assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
  283. "Invalid Object Idx!");
  284. return Objects[ObjectIdx+NumFixedObjects].PreAllocated;
  285. }
  286. /// getObjectSize - Return the size of the specified object.
  287. ///
  288. int64_t getObjectSize(int ObjectIdx) const {
  289. assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
  290. "Invalid Object Idx!");
  291. return Objects[ObjectIdx+NumFixedObjects].Size;
  292. }
  293. /// setObjectSize - Change the size of the specified stack object.
  294. void setObjectSize(int ObjectIdx, int64_t Size) {
  295. assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
  296. "Invalid Object Idx!");
  297. Objects[ObjectIdx+NumFixedObjects].Size = Size;
  298. }
  299. /// getObjectAlignment - Return the alignment of the specified stack object.
  300. unsigned getObjectAlignment(int ObjectIdx) const {
  301. assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
  302. "Invalid Object Idx!");
  303. return Objects[ObjectIdx+NumFixedObjects].Alignment;
  304. }
  305. /// setObjectAlignment - Change the alignment of the specified stack object.
  306. void setObjectAlignment(int ObjectIdx, unsigned Align) {
  307. assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
  308. "Invalid Object Idx!");
  309. Objects[ObjectIdx+NumFixedObjects].Alignment = Align;
  310. ensureMaxAlignment(Align);
  311. }
  312. /// getObjectAllocation - Return the underlying Alloca of the specified
  313. /// stack object if it exists. Returns 0 if none exists.
  314. const AllocaInst* getObjectAllocation(int ObjectIdx) const {
  315. assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
  316. "Invalid Object Idx!");
  317. return Objects[ObjectIdx+NumFixedObjects].Alloca;
  318. }
  319. /// NeedsStackProtector - Returns true if the object may need stack
  320. /// protectors.
  321. bool MayNeedStackProtector(int ObjectIdx) const {
  322. assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
  323. "Invalid Object Idx!");
  324. return Objects[ObjectIdx+NumFixedObjects].MayNeedSP;
  325. }
  326. /// getObjectOffset - Return the assigned stack offset of the specified object
  327. /// from the incoming stack pointer.
  328. ///
  329. int64_t getObjectOffset(int ObjectIdx) const {
  330. assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
  331. "Invalid Object Idx!");
  332. assert(!isDeadObjectIndex(ObjectIdx) &&
  333. "Getting frame offset for a dead object?");
  334. return Objects[ObjectIdx+NumFixedObjects].SPOffset;
  335. }
  336. /// setObjectOffset - Set the stack frame offset of the specified object. The
  337. /// offset is relative to the stack pointer on entry to the function.
  338. ///
  339. void setObjectOffset(int ObjectIdx, int64_t SPOffset) {
  340. assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
  341. "Invalid Object Idx!");
  342. assert(!isDeadObjectIndex(ObjectIdx) &&
  343. "Setting frame offset for a dead object?");
  344. Objects[ObjectIdx+NumFixedObjects].SPOffset = SPOffset;
  345. }
  346. /// getStackSize - Return the number of bytes that must be allocated to hold
  347. /// all of the fixed size frame objects. This is only valid after
  348. /// Prolog/Epilog code insertion has finalized the stack frame layout.
  349. ///
  350. uint64_t getStackSize() const { return StackSize; }
  351. /// setStackSize - Set the size of the stack...
  352. ///
  353. void setStackSize(uint64_t Size) { StackSize = Size; }
  354. /// Estimate and return the size of the stack frame.
  355. unsigned estimateStackSize(const MachineFunction &MF) const;
  356. /// getOffsetAdjustment - Return the correction for frame offsets.
  357. ///
  358. int getOffsetAdjustment() const { return OffsetAdjustment; }
  359. /// setOffsetAdjustment - Set the correction for frame offsets.
  360. ///
  361. void setOffsetAdjustment(int Adj) { OffsetAdjustment = Adj; }
  362. /// getMaxAlignment - Return the alignment in bytes that this function must be
  363. /// aligned to, which is greater than the default stack alignment provided by
  364. /// the target.
  365. ///
  366. unsigned getMaxAlignment() const { return MaxAlignment; }
  367. /// ensureMaxAlignment - Make sure the function is at least Align bytes
  368. /// aligned.
  369. void ensureMaxAlignment(unsigned Align);
  370. /// AdjustsStack - Return true if this function adjusts the stack -- e.g.,
  371. /// when calling another function. This is only valid during and after
  372. /// prolog/epilog code insertion.
  373. bool adjustsStack() const { return AdjustsStack; }
  374. void setAdjustsStack(bool V) { AdjustsStack = V; }
  375. /// hasCalls - Return true if the current function has any function calls.
  376. bool hasCalls() const { return HasCalls; }
  377. void setHasCalls(bool V) { HasCalls = V; }
  378. /// getMaxCallFrameSize - Return the maximum size of a call frame that must be
  379. /// allocated for an outgoing function call. This is only available if
  380. /// CallFrameSetup/Destroy pseudo instructions are used by the target, and
  381. /// then only during or after prolog/epilog code insertion.
  382. ///
  383. unsigned getMaxCallFrameSize() const { return MaxCallFrameSize; }
  384. void setMaxCallFrameSize(unsigned S) { MaxCallFrameSize = S; }
  385. /// CreateFixedObject - Create a new object at a fixed location on the stack.
  386. /// All fixed objects should be created before other objects are created for
  387. /// efficiency. By default, fixed objects are immutable. This returns an
  388. /// index with a negative value.
  389. ///
  390. int CreateFixedObject(uint64_t Size, int64_t SPOffset, bool Immutable);
  391. /// isFixedObjectIndex - Returns true if the specified index corresponds to a
  392. /// fixed stack object.
  393. bool isFixedObjectIndex(int ObjectIdx) const {
  394. return ObjectIdx < 0 && (ObjectIdx >= -(int)NumFixedObjects);
  395. }
  396. /// isImmutableObjectIndex - Returns true if the specified index corresponds
  397. /// to an immutable object.
  398. bool isImmutableObjectIndex(int ObjectIdx) const {
  399. assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
  400. "Invalid Object Idx!");
  401. return Objects[ObjectIdx+NumFixedObjects].isImmutable;
  402. }
  403. /// isSpillSlotObjectIndex - Returns true if the specified index corresponds
  404. /// to a spill slot..
  405. bool isSpillSlotObjectIndex(int ObjectIdx) const {
  406. assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
  407. "Invalid Object Idx!");
  408. return Objects[ObjectIdx+NumFixedObjects].isSpillSlot;
  409. }
  410. /// isDeadObjectIndex - Returns true if the specified index corresponds to
  411. /// a dead object.
  412. bool isDeadObjectIndex(int ObjectIdx) const {
  413. assert(unsigned(ObjectIdx+NumFixedObjects) < Objects.size() &&
  414. "Invalid Object Idx!");
  415. return Objects[ObjectIdx+NumFixedObjects].Size == ~0ULL;
  416. }
  417. /// CreateStackObject - Create a new statically sized stack object, returning
  418. /// a nonnegative identifier to represent it.
  419. ///
  420. int CreateStackObject(uint64_t Size, unsigned Alignment, bool isSS,
  421. bool MayNeedSP = false, const AllocaInst *Alloca = 0);
  422. /// CreateSpillStackObject - Create a new statically sized stack object that
  423. /// represents a spill slot, returning a nonnegative identifier to represent
  424. /// it.
  425. ///
  426. int CreateSpillStackObject(uint64_t Size, unsigned Alignment);
  427. /// RemoveStackObject - Remove or mark dead a statically sized stack object.
  428. ///
  429. void RemoveStackObject(int ObjectIdx) {
  430. // Mark it dead.
  431. Objects[ObjectIdx+NumFixedObjects].Size = ~0ULL;
  432. }
  433. /// CreateVariableSizedObject - Notify the MachineFrameInfo object that a
  434. /// variable sized object has been created. This must be created whenever a
  435. /// variable sized object is created, whether or not the index returned is
  436. /// actually used.
  437. ///
  438. int CreateVariableSizedObject(unsigned Alignment);
  439. /// getCalleeSavedInfo - Returns a reference to call saved info vector for the
  440. /// current function.
  441. const std::vector<CalleeSavedInfo> &getCalleeSavedInfo() const {
  442. return CSInfo;
  443. }
  444. /// setCalleeSavedInfo - Used by prolog/epilog inserter to set the function's
  445. /// callee saved information.
  446. void setCalleeSavedInfo(const std::vector<CalleeSavedInfo> &CSI) {
  447. CSInfo = CSI;
  448. }
  449. /// isCalleeSavedInfoValid - Has the callee saved info been calculated yet?
  450. bool isCalleeSavedInfoValid() const { return CSIValid; }
  451. void setCalleeSavedInfoValid(bool v) { CSIValid = v; }
  452. /// getPristineRegs - Return a set of physical registers that are pristine on
  453. /// entry to the MBB.
  454. ///
  455. /// Pristine registers hold a value that is useless to the current function,
  456. /// but that must be preserved - they are callee saved registers that have not
  457. /// been saved yet.
  458. ///
  459. /// Before the PrologueEpilogueInserter has placed the CSR spill code, this
  460. /// method always returns an empty set.
  461. BitVector getPristineRegs(const MachineBasicBlock *MBB) const;
  462. /// print - Used by the MachineFunction printer to print information about
  463. /// stack objects. Implemented in MachineFunction.cpp
  464. ///
  465. void print(const MachineFunction &MF, raw_ostream &OS) const;
  466. /// dump - Print the function to stderr.
  467. void dump(const MachineFunction &MF) const;
  468. };
  469. } // End llvm namespace
  470. #endif