Home
last modified time | relevance | path

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

1234

/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineFrameInfo.cpp33 assert(Alignment <= StackAlignment && in ensureMaxAlignment()
41 Align StackAlignment) { in clampStackAlignment() argument
42 if (!ShouldClamp || Alignment <= StackAlignment) in clampStackAlignment()
45 << " exceeds the stack alignment " << StackAlignment.value() in clampStackAlignment()
47 return StackAlignment; in clampStackAlignment()
55 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateStackObject()
66 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateSpillStackObject()
76 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateVariableSizedObject()
92 commonAlignment(ForcedRealign ? Align::None() : StackAlignment, SPOffset); in CreateFixedObject()
93 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateFixedObject()
[all …]
DSafeStackLayout.h54 StackLayout(unsigned StackAlignment) : MaxAlignment(StackAlignment) {} in StackLayout() argument
/external/llvm-project/llvm/lib/CodeGen/
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 …]
DSafeStackLayout.h54 StackLayout(unsigned StackAlignment) : MaxAlignment(StackAlignment) {} in StackLayout() argument
/external/llvm-project/llvm/include/llvm/CodeGen/
DTargetFrameLowering.h71 Align StackAlignment; variable
78 : StackDir(D), StackAlignment(StackAl), TransientStackAlignment(TransAl), in StackDir()
94 unsigned getStackAlignment() const { return StackAlignment.value(); } in getStackAlignment()
99 Align getStackAlign() const { return StackAlignment; } in getStackAlign()
106 SPAdj = -alignTo(-SPAdj, StackAlignment); in alignSPAdjust()
108 SPAdj = alignTo(SPAdj, StackAlignment); in alignSPAdjust()
DMachineFrameInfo.h193 Align StackAlignment; variable
339 explicit MachineFrameInfo(unsigned StackAlignment, bool StackRealignable, in MachineFrameInfo() argument
341 : StackAlignment(assumeAligned(StackAlignment)), in MachineFrameInfo()
/external/llvm/include/llvm/Target/
DTargetFrameLowering.h48 unsigned StackAlignment; variable
55 : StackDir(D), StackAlignment(StackAl), TransientStackAlignment(TransAl), in StackDir()
71 unsigned getStackAlignment() const { return StackAlignment; } in getStackAlignment()
78 SPAdj = -alignTo(-SPAdj, StackAlignment); in alignSPAdjust()
80 SPAdj = alignTo(SPAdj, StackAlignment); in alignSPAdjust()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DTargetFrameLowering.h57 Align StackAlignment; variable
64 : StackDir(D), StackAlignment(StackAl), TransientStackAlignment(TransAl), in StackDir()
80 unsigned getStackAlignment() const { return StackAlignment.value(); } in getStackAlignment()
87 SPAdj = -alignTo(-SPAdj, StackAlignment); in alignSPAdjust()
89 SPAdj = alignTo(SPAdj, StackAlignment); in alignSPAdjust()
DMachineFrameInfo.h193 Align StackAlignment; variable
339 explicit MachineFrameInfo(unsigned StackAlignment, bool StackRealignable, in MachineFrameInfo() argument
341 : StackAlignment(assumeAligned(StackAlignment)), in MachineFrameInfo()
/external/llvm/lib/IR/
DAttributes.cpp118 return get(Context, StackAlignment, Align); in getWithStackAlignment()
201 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
351 if (hasAttribute(Attribute::StackAlignment)) in getAsString()
496 case Attribute::StackAlignment: return 7 << 26; in getAttrMask()
607 if (I.hasAttribute(Attribute::StackAlignment)) in getStackAlignment()
665 else if (Kind == Attribute::StackAlignment) in Raw()
775 case Attribute::StackAlignment: in get()
1238 : Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0), in AttrBuilder()
1257 Alignment = StackAlignment = DerefBytes = DerefOrNullBytes = 0; in clear()
1263 assert(Val != Attribute::Alignment && Val != Attribute::StackAlignment && in addAttribute()
[all …]
/external/llvm-project/llvm/unittests/IR/
DAttributesTest.cpp102 EXPECT_TRUE(AL.hasAttribute(0, Attribute::StackAlignment)); in TEST()
113 EXPECT_TRUE(AL.hasAttribute(0, Attribute::StackAlignment)); in TEST()
117 AL = AL.removeAttribute(C, 0, Attribute::StackAlignment); in TEST()
120 EXPECT_FALSE(AL.hasAttribute(0, Attribute::StackAlignment)); in TEST()
130 EXPECT_TRUE(AL2.hasAttribute(0, Attribute::StackAlignment)); in TEST()
137 EXPECT_FALSE(AL2.hasAttribute(0, Attribute::StackAlignment)); in TEST()
/external/llvm/lib/CodeGen/
DSafeStackLayout.h45 StackLayout(unsigned StackAlignment) : MaxAlignment(StackAlignment) {} in StackLayout() argument
DMachineFunction.cpp94 if (Fn->hasFnAttribute(Attribute::StackAlignment)) in getFnStackAlignment()
119 F->hasFnAttribute(Attribute::StackAlignment)); in MachineFunction()
121 if (Fn->hasFnAttribute(Attribute::StackAlignment)) in MachineFunction()
565 assert(Align <= StackAlignment && in ensureMaxAlignment()
586 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateStackObject()
599 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateSpillStackObject()
612 Alignment = clampStackAlignment(!StackRealignable, Alignment, StackAlignment); in CreateVariableSizedObject()
631 unsigned Align = MinAlign(SPOffset, ForcedRealign ? 1 : StackAlignment); in CreateFixedObject()
632 Align = clampStackAlignment(!StackRealignable, Align, StackAlignment); in CreateFixedObject()
643 unsigned Align = MinAlign(SPOffset, ForcedRealign ? 1 : StackAlignment); in CreateFixedSpillStackObject()
[all …]
DSafeStack.cpp125 enum { StackAlignment = 16 }; enumerator
527 StackLayout SSL(StackAlignment); in moveStaticAllocasToUnsafeStack()
566 if (FrameAlignment > StackAlignment) { in moveStaticAllocasToUnsafeStack()
659 unsigned FrameSize = alignTo(SSL.getFrameSize(), StackAlignment); in moveStaticAllocasToUnsafeStack()
694 (unsigned)StackAlignment); in moveDynamicAllocasToUnsafeStack()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAttributes.cpp152 return get(Context, StackAlignment, A.value()); in getWithStackAlignment()
251 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
436 if (hasAttribute(Attribute::StackAlignment)) in getAsString()
785 case Attribute::StackAlignment: in get()
847 if (I.hasAttribute(Attribute::StackAlignment)) in getStackAlignment()
1440 StackAlignment.reset(); in clear()
1448 assert(Val != Attribute::Alignment && Val != Attribute::StackAlignment && in addAttribute()
1466 else if (Kind == Attribute::StackAlignment) in addAttribute()
1467 StackAlignment = Attr.getStackAlignment(); in addAttribute()
1490 else if (Val == Attribute::StackAlignment) in removeAttribute()
[all …]
/external/llvm/include/llvm/IR/
DAttributes.h447 uint64_t StackAlignment;
454 : Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0),
457 : Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0),
462 : Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0),
522 uint64_t getStackAlignment() const { return StackAlignment; }
/external/llvm-project/llvm/lib/IR/
DAttributes.cpp156 return get(Context, StackAlignment, A.value()); in getWithStackAlignment()
220 AttrKind == Attribute::StackAlignment || in doesAttrKindHaveArgument()
306 assert(hasAttribute(Attribute::StackAlignment) && in getStackAlignment()
509 if (hasAttribute(Attribute::StackAlignment)) in getAsString()
875 case Attribute::StackAlignment: in get()
943 if (auto A = findEnumAttribute(Attribute::StackAlignment)) in getStackAlignment()
1576 StackAlignment.reset(); in clear()
1596 else if (Kind == Attribute::StackAlignment) in addAttribute()
1597 StackAlignment = Attr.getStackAlignment(); in addAttribute()
1626 else if (Val == Attribute::StackAlignment) in removeAttribute()
[all …]
/external/llvm/include/llvm/CodeGen/
DMachineFrameInfo.h139 unsigned StackAlignment; variable
282 explicit MachineFrameInfo(unsigned StackAlignment, bool StackRealignable, in MachineFrameInfo() argument
284 : StackAlignment(StackAlignment), StackRealignable(StackRealignable), in MachineFrameInfo()
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DAttributes.h449 uint64_t StackAlignment;
456 : Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0),
459 : Attrs(0), Alignment(0), StackAlignment(0), DerefBytes(0),
519 uint64_t getStackAlignment() const { return StackAlignment; }
/external/llvm/lib/Target/PowerPC/
DPPCSubtarget.cpp59 StackAlignment = 16; in initializeEnvironment()
142 StackAlignment = getPlatformStackAlignment(); in initSubtargetFeatures()
DPPCSubtarget.h81 unsigned StackAlignment; variable
163 unsigned getStackAlignment() const { return StackAlignment; } in getStackAlignment()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCSubtarget.cpp63 StackAlignment = Align(16); in initializeEnvironment()
170 StackAlignment = getPlatformStackAlignment(); in initSubtargetFeatures()
DPPCSubtarget.h82 Align StackAlignment; variable
171 Align getStackAlignment() const { return StackAlignment; } in getStackAlignment()
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCSubtarget.cpp71 StackAlignment = Align(16); in initializeEnvironment()
178 StackAlignment = getPlatformStackAlignment(); in initSubtargetFeatures()
/external/llvm-project/llvm/test/CodeGen/Thumb/
Dstack-mis-alignment.ll3 ; For noreturn function with StackAlignment 8 (function contains call/alloc),

1234