Displaying 1 result from an estimated 1 matches for "getwithstackalignment".
2017 Oct 23
3
maximum value for alignstack function attribute?
...h:
fn fnWithAlignedStack() -> i32 {
@setAlignStack(1024);
return 1234;
}
It sets alignstack=1024 in the function attributes (see
http://llvm.org/docs/LangRef.html#function-attributes). It's tripping an
assert:
llvm/lib/IR/Attributes.cpp:134: static llvm::Attribute
llvm::Attribute::getWithStackAlignment(llvm::LLVMContext&, uint64_t):
Assertion `Align <= 0x100 && "Alignment too large."'
Is 0x100 the correct maximum alignstack value? Can I submit a patch to
document this in LangRef.html?
Regards,
Andrew Kelley
-------------- next part --------------
An HTML attachment...