llvm.org GIT mirror llvm / be7d83e
allow 64-bit stack objects git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36419 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
7676 // StackObject - Represent a single object allocated on the stack.
7777 struct StackObject {
7878 // The size of this object on the stack. 0 means a variable sized object
79 unsigned Size;
79 uint64_t Size;
8080
8181 // Alignment - The required alignment of this stack slot.
8282 unsigned Alignment;
8585 // the function. This field has no meaning for a variable sized element.
8686 int SPOffset;
8787
88 StackObject(unsigned Sz, unsigned Al, int SP)
88 StackObject(uint64_t Sz, unsigned Al, int SP)
8989 : Size(Sz), Alignment(Al), SPOffset(SP) {}
9090 };
9191
109109 /// above. It then updates StackSize to contain the number of bytes that need
110110 /// to be allocated on entry to the function.
111111 ///
112 unsigned StackSize;
112 uint64_t StackSize;
113113
114114 /// OffsetAdjustment - The amount that a frame offset needs to be adjusted to
115115 /// have the actual offset from the stack/frame pointer. The calculation is
256256 /// All fixed objects should be created before other objects are created for
257257 /// efficiency. This returns an index with a negative value.
258258 ///
259 int CreateFixedObject(unsigned Size, int SPOffset) {
259 int CreateFixedObject(uint64_t Size, int SPOffset) {
260260 assert(Size != 0 && "Cannot allocate zero size fixed stack objects!");
261261 Objects.insert(Objects.begin(), StackObject(Size, 1, SPOffset));
262262 return -++NumFixedObjects;
271271 /// CreateStackObject - Create a new statically sized stack object, returning
272272 /// a postive identifier to represent it.
273273 ///
274 int CreateStackObject(unsigned Size, unsigned Alignment) {
274 int CreateStackObject(uint64_t Size, unsigned Alignment) {
275275 // Keep track of the maximum alignment.
276276 if (MaxAlignment < Alignment) MaxAlignment = Alignment;
277277