| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | MachineFrameInfo.cpp | 33 assert(Alignment <= StackAlignment && in ensureMaxAlignment() 41 Align StackAlignment) { in clampStackAlignment() argument 42 if (!ShouldClamp || Alignment <= StackAlignment) in clampStackAlignment() 46 << DebugStr(StackAlignment) in clampStackAlignment() 48 return StackAlignment; in clampStackAlignment() 56 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateStackObject() 67 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateSpillStackObject() 77 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateVariableSizedObject() 93 commonAlignment(ForcedRealign ? Align(1) : StackAlignment, SPOffset); in CreateFixedObject() 94 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateFixedObject() [all …]
|
| H A D | SafeStackLayout.h | 55 StackLayout(Align StackAlignment) : MaxAlignment(StackAlignment) {} in StackLayout() argument
|
| H A D | SafeStack.cpp | 130 static constexpr Align StackAlignment = Align::Constant<16>(); member in __anon8a0c7bd90111::SafeStack 204 constexpr Align SafeStack::StackAlignment; member in __anon8a0c7bd90111::SafeStack 510 StackLayout SSL(StackAlignment); in moveStaticAllocasToUnsafeStack() 549 if (FrameAlignment > StackAlignment) { in moveStaticAllocasToUnsafeStack() 635 unsigned FrameSize = alignTo(SSL.getFrameSize(), StackAlignment); in moveStaticAllocasToUnsafeStack() 677 StackAlignment); in moveDynamicAllocasToUnsafeStack()
|
| H A D | TargetRegisterInfo.cpp | 489 F.hasFnAttribute(Attribute::StackAlignment); in shouldRealignStack()
|
| H A D | MachineFunction.cpp | 197 F.hasFnAttribute(Attribute::StackAlignment)); in init() 201 if (F.hasFnAttribute(Attribute::StackAlignment)) in init()
|
| /llvm-project-15.0.7/llvm/include/llvm/CodeGen/ |
| H A D | TargetFrameLowering.h | 72 Align StackAlignment; variable 79 : StackDir(D), StackAlignment(StackAl), TransientStackAlignment(TransAl), in StackDir() 95 unsigned getStackAlignment() const { return StackAlignment.value(); } in getStackAlignment() 100 Align getStackAlign() const { return StackAlignment; } in getStackAlign() 107 SPAdj = -alignTo(-SPAdj, StackAlignment); in alignSPAdjust() 109 SPAdj = alignTo(SPAdj, StackAlignment); in alignSPAdjust()
|
| H A D | MachineFrameInfo.h | 192 Align StackAlignment; variable 341 explicit MachineFrameInfo(Align StackAlignment, bool StackRealignable, in MachineFrameInfo() argument 343 : StackAlignment(StackAlignment), in MachineFrameInfo()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | AttributesTest.cpp | 107 EXPECT_TRUE(AL.hasRetAttr(Attribute::StackAlignment)); in TEST() 118 EXPECT_TRUE(AL.hasRetAttr(Attribute::StackAlignment)); in TEST() 122 AL = AL.removeRetAttribute(C, Attribute::StackAlignment); in TEST() 125 EXPECT_FALSE(AL.hasRetAttr(Attribute::StackAlignment)); in TEST() 135 EXPECT_TRUE(AL2.hasRetAttr(Attribute::StackAlignment)); in TEST() 142 EXPECT_FALSE(AL2.hasRetAttr(Attribute::StackAlignment)); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCSubtarget.cpp | 72 StackAlignment = Align(16); in initializeEnvironment() 197 StackAlignment = getPlatformStackAlignment(); in initSubtargetFeatures()
|
| H A D | PPCSubtarget.h | 85 Align StackAlignment; variable 202 Align getStackAlignment() const { return StackAlignment; } in getStackAlignment()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/Thumb/ |
| H A D | stack-mis-alignment.ll | 3 ; For noreturn function with StackAlignment 8 (function contains call/alloc),
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/ |
| H A D | MipsCallLowering.cpp | 528 unsigned StackAlignment = F.getParent()->getOverrideStackAlignment(); in lowerCall() local 529 if (!StackAlignment) { in lowerCall() 531 StackAlignment = TFL->getStackAlignment(); in lowerCall() 533 NextStackOffset = alignTo(NextStackOffset, StackAlignment); in lowerCall()
|
| H A D | MipsISelLowering.cpp | 3251 unsigned StackAlignment = TFL->getStackAlignment(); in LowerCall() local 3252 NextStackOffset = alignTo(NextStackOffset, StackAlignment); in LowerCall()
|
| /llvm-project-15.0.7/llvm/lib/Target/DirectX/ |
| H A D | DXILPrepare.cpp | 68 Attribute::StackAlignment, in isValidForDXIL()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Attributes.cpp | 171 return get(Context, StackAlignment, A.value()); in getWithStackAlignment() 335 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment() 416 if (hasAttribute(Attribute::StackAlignment)) in getAsString() 891 if (auto A = findEnumAttribute(Attribute::StackAlignment)) in getStackAlignment() 1678 return addRawIntAttr(Attribute::StackAlignment, Align->value()); in addStackAlignmentAttr()
|
| /llvm-project-15.0.7/llvm/lib/Target/M68k/ |
| H A D | M68kISelLowering.cpp | 1150 unsigned StackAlignment = TFI.getStackAlignment(); in GetAlignedArgumentStackSize() local 1151 uint64_t AlignMask = StackAlignment - 1; in GetAlignedArgumentStackSize() 1154 if ((Offset & AlignMask) <= (StackAlignment - SlotSize)) { in GetAlignedArgumentStackSize() 1156 Offset += ((StackAlignment - SlotSize) - (Offset & AlignMask)); in GetAlignedArgumentStackSize() 1160 ((~AlignMask) & Offset) + StackAlignment + (StackAlignment - SlotSize); in GetAlignedArgumentStackSize()
|
| /llvm-project-15.0.7/llvm/test/CodeGen/WebAssembly/ |
| H A D | bulk-memory.ll | 150 ; arithmetic. This will require forcing the use of StackAlignment in
|
| H A D | bulk-memory64.ll | 153 ; arithmetic. This will require forcing the use of StackAlignment in
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Attributes.td | 239 def StackAlignment : IntAttr<"alignstack", [FnAttr, ParamAttr]>;
|
| H A D | Attributes.h | 1107 return MaybeAlign(getRawIntAttr(Attribute::StackAlignment));
|
| /llvm-project-15.0.7/clang/include/clang/Basic/ |
| H A D | CodeGenOptions.def | 323 VALUE_CODEGENOPT(StackAlignment , 32, 0) ///< Overrides default stack
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | CodeExtractor.cpp | 920 case Attribute::StackAlignment: in constructFunction()
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 1688 case Attribute::StackAlignment: return 7 << 26; in getRawAttributeMask() 1744 else if (I == Attribute::StackAlignment) in addRawAttributeValue() 1949 return Attribute::StackAlignment; in getAttrFromCode() 2098 else if (Kind == Attribute::StackAlignment) in parseAttributeGroupBlock()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenFunction.cpp | 984 CGM.getCodeGenOpts().StackAlignment)) in StartFunction()
|
| H A D | CodeGenModule.cpp | 931 if (getCodeGenOpts().StackAlignment) in Release() 932 getModule().setOverrideStackAlignment(getCodeGenOpts().StackAlignment); in Release()
|