Home
last modified time | relevance | path

Searched refs:BaseAlign (Results 1 – 8 of 8) sorted by relevance

/external/llvm/lib/Analysis/
DLoads.cpp30 APInt BaseAlign(Offset.getBitWidth(), Base->getPointerAlignment(DL)); in isAligned() local
32 if (!BaseAlign) { in isAligned()
36 BaseAlign = DL.getABITypeAlignment(Ty); in isAligned()
42 return BaseAlign.uge(Alignment) && !(Offset & (Alignment-1)); in isAligned()
207 unsigned BaseAlign = 0; in isSafeToLoadUnconditionally() local
211 BaseAlign = AI->getAlignment(); in isSafeToLoadUnconditionally()
218 BaseAlign = GV->getAlignment(); in isSafeToLoadUnconditionally()
230 if (BaseAlign == 0) in isSafeToLoadUnconditionally()
231 BaseAlign = DL.getPrefTypeAlignment(BaseType); in isSafeToLoadUnconditionally()
233 if (Align <= BaseAlign) { in isSafeToLoadUnconditionally()
DLint.cpp425 unsigned BaseAlign = 0; in visitMemoryReference() local
431 BaseAlign = AI->getAlignment(); in visitMemoryReference()
432 if (BaseAlign == 0 && ATy->isSized()) in visitMemoryReference()
433 BaseAlign = DL->getABITypeAlignment(ATy); in visitMemoryReference()
441 BaseAlign = GV->getAlignment(); in visitMemoryReference()
442 if (BaseAlign == 0 && GTy->isSized()) in visitMemoryReference()
443 BaseAlign = DL->getABITypeAlignment(GTy); in visitMemoryReference()
458 Assert(!BaseAlign || Align <= MinAlign(BaseAlign, Offset), in visitMemoryReference()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DLint.cpp468 unsigned BaseAlign = 0; in visitMemoryReference() local
474 BaseAlign = AI->getAlignment(); in visitMemoryReference()
475 if (BaseAlign == 0 && ATy->isSized()) in visitMemoryReference()
476 BaseAlign = DL->getABITypeAlignment(ATy); in visitMemoryReference()
484 BaseAlign = GV->getAlignment(); in visitMemoryReference()
485 if (BaseAlign == 0 && GTy->isSized()) in visitMemoryReference()
486 BaseAlign = DL->getABITypeAlignment(GTy); in visitMemoryReference()
501 Assert(!BaseAlign || Align <= MinAlign(BaseAlign, Offset), in visitMemoryReference()
/external/clang/lib/AST/
DRecordLayoutBuilder.cpp967 CharUnits BaseAlign = (Packed) ? CharUnits::One() : UnpackedBaseAlign; in EnsureVTablePointerAlignment() local
971 BaseAlign = std::min(BaseAlign, MaxFieldAlignment); in EnsureVTablePointerAlignment()
976 setSize(getSize().alignTo(BaseAlign)); in EnsureVTablePointerAlignment()
980 UpdateAlignment(BaseAlign, UnpackedBaseAlign); in EnsureVTablePointerAlignment()
1177 CharUnits BaseAlign = (Packed) ? CharUnits::One() : UnpackedBaseAlign; in LayoutBase() local
1184 UpdateAlignment(BaseAlign, UnpackedBaseAlign); in LayoutBase()
1191 BaseAlign = std::min(BaseAlign, MaxFieldAlignment); in LayoutBase()
1197 Offset = getDataSize().alignTo(BaseAlign); in LayoutBase()
1201 Offset += BaseAlign; in LayoutBase()
1207 if (InferAlignment && Offset < getDataSize().alignTo(BaseAlign)) { in LayoutBase()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/
DSROA.cpp3279 Align BaseAlign; member in __anonb33640d10b11::AggLoadStoreRewriter::OpSplitter
3288 Align BaseAlign, const DataLayout &DL) in OpSplitter() argument
3290 BaseTy(BaseTy), BaseAlign(BaseAlign), DL(DL) {} in OpSplitter()
3310 Ty, Agg, commonAlignment(BaseAlign, Offset), Name); in emitSplitOps()
3351 AAMDNodes AATags, Align BaseAlign, const DataLayout &DL) in LoadOpSplitter()
3352 : OpSplitter<LoadOpSplitter>(InsertionPoint, Ptr, BaseTy, BaseAlign, in LoadOpSplitter()
3392 AAMDNodes AATags, Align BaseAlign, const DataLayout &DL) in StoreOpSplitter()
3393 : OpSplitter<StoreOpSplitter>(InsertionPoint, Ptr, BaseTy, BaseAlign, in StoreOpSplitter()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DIRTranslator.cpp892 unsigned BaseAlign = getMemOpAlignment(LI); in translateLoad() local
897 MinAlign(BaseAlign, Offsets[i] / 8), AAMetadata, Ranges, in translateLoad()
935 unsigned BaseAlign = getMemOpAlignment(SI); in translateStore() local
940 MinAlign(BaseAlign, Offsets[i] / 8), AAMetadata, nullptr, in translateStore()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp1085 unsigned BaseAlign = Load->getAlignment(); in SplitVectorLoad() local
1086 unsigned HiAlign = MinAlign(BaseAlign, Size); in SplitVectorLoad()
1093 Load->isInvariant(), BaseAlign); in SplitVectorLoad()
1204 unsigned BaseAlign = Store->getAlignment(); in SplitVectorStore() local
1206 unsigned HiAlign = MinAlign(BaseAlign, Size); in SplitVectorStore()
1215 BaseAlign); in SplitVectorStore()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUISelLowering.cpp1424 unsigned BaseAlign = Load->getAlignment(); in SplitVectorLoad() local
1425 unsigned HiAlign = MinAlign(BaseAlign, Size); in SplitVectorLoad()
1429 BaseAlign, Load->getMemOperand()->getFlags()); in SplitVectorLoad()
1466 unsigned BaseAlign = Load->getAlignment(); in WidenVectorLoad() local
1474 WideMemVT, BaseAlign, Load->getMemOperand()->getFlags()); in WidenVectorLoad()
1509 unsigned BaseAlign = Store->getAlignment(); in SplitVectorStore() local
1511 unsigned HiAlign = MinAlign(BaseAlign, Size); in SplitVectorStore()
1514 DAG.getTruncStore(Chain, SL, Lo, BasePtr, SrcValue, LoMemVT, BaseAlign, in SplitVectorStore()