Home
last modified time | relevance | path

Searched refs:PrefAlign (Results 1 – 21 of 21) sorted by relevance

/external/llvm/lib/IR/
DDataLayout.cpp108 retval.PrefAlign = pref_align; in get()
117 && PrefAlign == rhs.PrefAlign in operator ==()
130 unsigned PrefAlign, uint32_t TypeByteWidth) { in get() argument
131 assert(ABIAlign <= PrefAlign && "Preferred alignment worse than ABI!"); in get()
135 retval.PrefAlign = PrefAlign; in get()
144 && PrefAlign == rhs.PrefAlign in operator ==()
188 setAlignment((AlignTypeEnum)E.AlignType, E.ABIAlign, E.PrefAlign, in reset()
321 unsigned PrefAlign = ABIAlign; in parseSpecifier() local
324 PrefAlign = inBytes(getInt(Tok)); in parseSpecifier()
327 setAlignment(AlignType, ABIAlign, PrefAlign, Size); in parseSpecifier()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
DDataLayout.cpp113 retval.PrefAlign = pref_align; in get()
122 && PrefAlign == rhs.PrefAlign in operator ==()
132 unsigned PrefAlign, uint32_t TypeByteWidth, in get() argument
134 assert(ABIAlign <= PrefAlign && "Preferred alignment worse than ABI!"); in get()
138 retval.PrefAlign = PrefAlign; in get()
148 && PrefAlign == rhs.PrefAlign in operator ==()
193 setAlignment((AlignTypeEnum)E.AlignType, E.ABIAlign, E.PrefAlign, in reset()
357 unsigned PrefAlign = ABIAlign; in parseSpecifier() local
360 PrefAlign = inBytes(getInt(Tok)); in parseSpecifier()
363 setAlignment(AlignType, ABIAlign, PrefAlign, Size); in parseSpecifier()
[all …]
/external/swiftshader/third_party/LLVM/lib/Target/
DTargetData.cpp107 retval.PrefAlign = pref_align; in get()
116 && PrefAlign == rhs.PrefAlign in operator ==()
206 unsigned PrefAlign = getInt(Split.first) / 8; in init() local
207 if (PrefAlign == 0) in init()
208 PrefAlign = ABIAlign; in init()
209 setAlignment(AlignType, ABIAlign, PrefAlign, Size); in init()
257 Alignments[i].PrefAlign = pref_align; in setAlignment()
277 return ABIInfo ? Alignments[i].ABIAlign : Alignments[i].PrefAlign; in getAlignmentInfo()
318 : Alignments[BestMatchIdx].PrefAlign; in getAlignmentInfo()
387 << AI.ABIAlign*8 << ':' << AI.PrefAlign*8; in getStringRepresentation()
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLocal.cpp724 unsigned PrefAlign, const TargetData *TD) { in enforceKnownAlignment() argument
730 if (TD && TD->exceedsNaturalStackAlignment(PrefAlign)) in enforceKnownAlignment()
733 if (AI->getAlignment() >= PrefAlign) in enforceKnownAlignment()
735 AI->setAlignment(PrefAlign); in enforceKnownAlignment()
736 return PrefAlign; in enforceKnownAlignment()
744 if (GV->getAlignment() >= PrefAlign) in enforceKnownAlignment()
751 GV->setAlignment(PrefAlign); in enforceKnownAlignment()
762 unsigned llvm::getOrEnforceKnownAlignment(Value *V, unsigned PrefAlign, in getOrEnforceKnownAlignment() argument
781 if (PrefAlign > Align) in getOrEnforceKnownAlignment()
782 Align = enforceKnownAlignment(V, Align, PrefAlign, TD); in getOrEnforceKnownAlignment()
/external/llvm/include/llvm/IR/
DDataLayout.h70 unsigned PrefAlign : 16; member
85 unsigned PrefAlign; member
91 unsigned PrefAlign, uint32_t TypeByteWidth);
152 unsigned PrefAlign, uint32_t TypeByteWidth);
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DDataLayout.h76 unsigned PrefAlign : 16; member
92 unsigned PrefAlign; member
99 unsigned PrefAlign, uint32_t TypeByteWidth,
171 unsigned PrefAlign, uint32_t TypeByteWidth,
/external/llvm/lib/Transforms/Utils/
DLocal.cpp959 unsigned PrefAlign, in enforceKnownAlignment() argument
961 assert(PrefAlign > Align); in enforceKnownAlignment()
973 if (PrefAlign <= Align) in enforceKnownAlignment()
978 if (DL.exceedsNaturalStackAlignment(PrefAlign)) in enforceKnownAlignment()
980 AI->setAlignment(PrefAlign); in enforceKnownAlignment()
981 return PrefAlign; in enforceKnownAlignment()
987 if (PrefAlign <= Align) in enforceKnownAlignment()
997 GO->setAlignment(PrefAlign); in enforceKnownAlignment()
998 return PrefAlign; in enforceKnownAlignment()
1008 unsigned llvm::getOrEnforceKnownAlignment(Value *V, unsigned PrefAlign, in getOrEnforceKnownAlignment() argument
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DLocal.cpp1120 unsigned PrefAlign, in enforceKnownAlignment() argument
1122 assert(PrefAlign > Align); in enforceKnownAlignment()
1134 if (PrefAlign <= Align) in enforceKnownAlignment()
1139 if (DL.exceedsNaturalStackAlignment(PrefAlign)) in enforceKnownAlignment()
1141 AI->setAlignment(PrefAlign); in enforceKnownAlignment()
1142 return PrefAlign; in enforceKnownAlignment()
1148 if (PrefAlign <= Align) in enforceKnownAlignment()
1158 GO->setAlignment(PrefAlign); in enforceKnownAlignment()
1159 return PrefAlign; in enforceKnownAlignment()
1165 unsigned llvm::getOrEnforceKnownAlignment(Value *V, unsigned PrefAlign, in getOrEnforceKnownAlignment() argument
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/
DLocal.h155 unsigned getOrEnforceKnownAlignment(Value *V, unsigned PrefAlign,
/external/swiftshader/third_party/LLVM/include/llvm/Target/
DTargetData.h58 unsigned PrefAlign; //< Pref. alignment for this type/bitw member
/external/llvm/include/llvm/Transforms/Utils/
DLocal.h168 unsigned getOrEnforceKnownAlignment(Value *V, unsigned PrefAlign,
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Transforms/Utils/
DLocal.h253 unsigned getOrEnforceKnownAlignment(Value *V, unsigned PrefAlign,
/external/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1757 unsigned MinSize, PrefAlign; in optimizeCallInst() local
1758 if (TLI && TLI->shouldAlignPointerArgs(CI, MinSize, PrefAlign)) { in optimizeCallInst()
1771 if ((Offset2 & (PrefAlign-1)) != 0) in optimizeCallInst()
1774 if ((AI = dyn_cast<AllocaInst>(Val)) && AI->getAlignment() < PrefAlign && in optimizeCallInst()
1776 AI->setAlignment(PrefAlign); in optimizeCallInst()
1783 GV->getAlignment() < PrefAlign && in optimizeCallInst()
1786 GV->setAlignment(PrefAlign); in optimizeCallInst()
/external/llvm/lib/Target/ARM/
DARMISelLowering.h397 unsigned &PrefAlign) const override;
DARMISelLowering.cpp1277 unsigned &PrefAlign) const { in shouldAlignPointerArgs()
1283 PrefAlign = (Subtarget->hasV6Ops() && !Subtarget->isMClass() ? 8 : 4); in shouldAlignPointerArgs()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DCodeGenPrepare.cpp1620 unsigned MinSize, PrefAlign; in optimizeCallInst() local
1621 if (TLI && TLI->shouldAlignPointerArgs(CI, MinSize, PrefAlign)) { in optimizeCallInst()
1634 if ((Offset2 & (PrefAlign-1)) != 0) in optimizeCallInst()
1637 if ((AI = dyn_cast<AllocaInst>(Val)) && AI->getAlignment() < PrefAlign && in optimizeCallInst()
1639 AI->setAlignment(PrefAlign); in optimizeCallInst()
1646 GV->getPointerAlignment(*DL) < PrefAlign && in optimizeCallInst()
1649 GV->setAlignment(PrefAlign); in optimizeCallInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/ARM/
DARMISelLowering.h462 unsigned &PrefAlign) const override;
DARMISelLowering.cpp1420 unsigned &PrefAlign) const { in shouldAlignPointerArgs()
1426 PrefAlign = (Subtarget->hasV6Ops() && !Subtarget->isMClass() ? 8 : 4); in shouldAlignPointerArgs()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/NVPTX/
DNVPTXISelLowering.cpp2164 unsigned PrefAlign = in LowerSTOREVector() local
2166 if (Align < PrefAlign) { in LowerSTOREVector()
4491 unsigned PrefAlign = in ReplaceLoadVector() local
4493 if (Align < PrefAlign) { in ReplaceLoadVector()
/external/llvm/lib/Target/NVPTX/
DNVPTXISelLowering.cpp1945 unsigned PrefAlign = in LowerSTOREVector() local
1947 if (Align < PrefAlign) { in LowerSTOREVector()
4319 unsigned PrefAlign = in ReplaceLoadVector() local
4321 if (Align < PrefAlign) { in ReplaceLoadVector()
/external/clang/lib/CodeGen/
DCGCall.cpp1039 auto PrefAlign = CGF.CGM.getDataLayout().getPrefTypeAlignment(Ty); in CreateTempAllocaForCoercion() local
1040 CharUnits Align = std::max(MinAlign, CharUnits::fromQuantity(PrefAlign)); in CreateTempAllocaForCoercion()