Home
last modified time | relevance | path

Searched refs:StackAlignment (Results 1 – 25 of 29) sorted by relevance

12

/freebsd/contrib/llvm-project/llvm/lib/CodeGen/
H A DMachineFrameInfo.cpp33 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 DSafeStackLayout.h56 StackLayout(Align StackAlignment) : MaxAlignment(StackAlignment) {} in StackLayout() argument
H A DSafeStack.cpp130 static constexpr Align StackAlignment = Align::Constant<16>(); member in __anon0b441ea90111::SafeStack
203 constexpr Align SafeStack::StackAlignment; member in __anon0b441ea90111::SafeStack
517 StackLayout SSL(StackAlignment); in moveStaticAllocasToUnsafeStack()
556 if (FrameAlignment > StackAlignment) { in moveStaticAllocasToUnsafeStack()
643 unsigned FrameSize = alignTo(SSL.getFrameSize(), StackAlignment); in moveStaticAllocasToUnsafeStack()
685 StackAlignment); in moveDynamicAllocasToUnsafeStack()
H A DMachineFunction.cpp200 bool ForceRealignSP = F.hasFnAttribute(Attribute::StackAlignment) || in init()
208 if (F.hasFnAttribute(Attribute::StackAlignment)) in init()
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/
H A DTargetFrameLowering.h78 Align StackAlignment; variable
85 : StackDir(D), StackAlignment(StackAl), TransientStackAlignment(TransAl), in StackDir()
101 unsigned getStackAlignment() const { return StackAlignment.value(); } in getStackAlignment()
106 Align getStackAlign() const { return StackAlignment; } in getStackAlign()
117 SPAdj = -alignTo(-SPAdj, StackAlignment); in alignSPAdjust()
119 SPAdj = alignTo(SPAdj, StackAlignment); in alignSPAdjust()
H A DMachineFrameInfo.h195 Align StackAlignment; variable
344 explicit MachineFrameInfo(Align StackAlignment, bool StackRealignable, in MachineFrameInfo() argument
346 : StackAlignment(StackAlignment), in MachineFrameInfo()
613 return ForcedRealign || MaxAlignment > StackAlignment; in shouldRealignStack()
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/
H A DPPCSubtarget.h86 Align StackAlignment; variable
135 Align getStackAlignment() const { return StackAlignment; } in getStackAlignment()
H A DPPCSubtarget.cpp80 StackAlignment = Align(16); in initializeEnvironment()
123 StackAlignment = getPlatformStackAlignment(); in initSubtargetFeatures()
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMipsCallLowering.cpp526 unsigned StackAlignment = F.getParent()->getOverrideStackAlignment(); in lowerCall() local
527 if (!StackAlignment) { in lowerCall()
529 StackAlignment = TFL->getStackAlignment(); in lowerCall()
531 StackSize = alignTo(StackSize, StackAlignment); in lowerCall()
H A DMipsISelLowering.cpp3427 unsigned StackAlignment = TFL->getStackAlignment(); in LowerCall() local
3428 StackSize = alignTo(StackSize, StackAlignment); in LowerCall()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/
H A DDXILPrepare.cpp75 Attribute::StackAlignment, in isValidForDXIL()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DAttributes.cpp241 return get(Context, StackAlignment, A.value()); in getWithStackAlignment()
442 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
568 if (hasAttribute(Attribute::StackAlignment)) in getAsString()
1333 if (auto A = findEnumAttribute(Attribute::StackAlignment)) in getStackAlignment()
2180 return addRawIntAttr(Attribute::StackAlignment, Align->value()); in addStackAlignmentAttr()
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/
H A DM68kISelLowering.cpp1208 unsigned StackAlignment = TFI.getStackAlignment(); in GetAlignedArgumentStackSize() local
1209 uint64_t AlignMask = StackAlignment - 1; in GetAlignedArgumentStackSize()
1212 if ((Offset & AlignMask) <= (StackAlignment - SlotSize)) { in GetAlignedArgumentStackSize()
1214 Offset += ((StackAlignment - SlotSize) - (Offset & AlignMask)); in GetAlignedArgumentStackSize()
1218 ((~AlignMask) & Offset) + StackAlignment + (StackAlignment - SlotSize); in GetAlignedArgumentStackSize()
/freebsd/contrib/llvm-project/llvm/lib/FuzzMutate/
H A DIRMutator.cpp421 Attribute::StackAlignment, Attribute::SwiftSelf, in isUnsupportedFunction()
/freebsd/contrib/llvm-project/llvm/lib/Target/Xtensa/
H A DXtensaISelLowering.cpp605 Align StackAlignment = TFL->getStackAlign(); in LowerCall() local
606 unsigned NextStackOffset = alignTo(NumBytes, StackAlignment); in LowerCall()
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/
H A DAttributes.h1163 return MaybeAlign(getRawIntAttr(Attribute::StackAlignment).value_or(0));
H A DAttributes.td297 def StackAlignment : IntAttr<"alignstack", IntersectPreserve, [FnAttr, ParamAttr, RetAttr]>;
/freebsd/contrib/llvm-project/clang/include/clang/Basic/
H A DCodeGenOptions.def348 VALUE_CODEGENOPT(StackAlignment , 32, 0, Benign) ///< Overrides default stack
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86ISelLoweringCall.cpp2677 const Align StackAlignment = Subtarget.getFrameLowering()->getStackAlign(); in GetAlignedArgumentStackSize() local
2681 return alignTo(StackSize + SlotSize, StackAlignment) - SlotSize; in GetAlignedArgumentStackSize()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp927 case Attribute::StackAlignment: in constructFunctionDeclaration()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp1862 case Attribute::StackAlignment: return 7 << 26; in getRawAttributeMask()
1918 else if (I == Attribute::StackAlignment) in addRawAttributeValue()
2166 return Attribute::StackAlignment; in getAttrFromCode()
2377 else if (Kind == Attribute::StackAlignment) in parseAttributeGroupBlock()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp1103 CGM.getCodeGenOpts().StackAlignment)) in StartFunction()
H A DCodeGenModule.cpp1539 if (getCodeGenOpts().StackAlignment) in Release()
1540 getModule().setOverrideStackAlignment(getCodeGenOpts().StackAlignment); in Release()
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/DXILWriter/
H A DDXILBitcodeWriter.cpp690 case Attribute::StackAlignment: in getAttrKindEncoding()
/freebsd/contrib/llvm-project/llvm/lib/Bitcode/Writer/
H A DBitcodeWriter.cpp867 case Attribute::StackAlignment: in getAttrKindEncoding()

12