numElementsVal->getType(), isValid);
assert(isValid && "Unexpectedly large array dimension in alloca!");
int64_t total = numElem * tsize;
- if (int extra= total % target.getFrameInfo()->getStackFrameSizeAlignment())
- total += target.getFrameInfo()->getStackFrameSizeAlignment() - extra;
+ if (int extra= total % SparcV9FrameInfo::StackFrameSizeAlignment)
+ total += SparcV9FrameInfo::StackFrameSizeAlignment - extra;
totalSizeVal = ConstantSInt::get(Type::IntTy, total);
} else {
// The size is not a constant. Generate code to compute it and
//
//===----------------------------------------------------------------------===//
//
-// Interface to stack frame layout info for the UltraSPARC. Starting offsets
-// for each area of the stack frame are aligned at a multiple of
-// getStackFrameSizeAlignment().
+// Interface to stack frame layout info for the UltraSPARC.
//
//===----------------------------------------------------------------------===//
// dynamic-size alloca.
pos = false;
unsigned optArgsSize = mcInfo.getInfo()->getMaxOptionalArgsSize();
- if (int extra = optArgsSize % getStackFrameSizeAlignment())
- optArgsSize += (getStackFrameSizeAlignment() - extra);
+ if (int extra = optArgsSize % 16)
+ optArgsSize += (16 - extra);
int offset = optArgsSize + FirstOptionalOutgoingArgOffsetFromSP;
- assert((offset - OFFSET) % getStackFrameSizeAlignment() == 0);
+ assert((offset - OFFSET) % 16 == 0);
return offset;
}