Searched refs:BaseAlign (Results 1 – 8 of 8) sorted by relevance
/external/llvm/lib/Analysis/ |
D | Loads.cpp | 30 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()
|
D | Lint.cpp | 425 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-7.0/llvm/lib/Analysis/ |
D | Loads.cpp | 30 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() 223 unsigned BaseAlign = 0; in isSafeToLoadUnconditionally() local 227 BaseAlign = AI->getAlignment(); in isSafeToLoadUnconditionally() 234 BaseAlign = GV->getAlignment(); in isSafeToLoadUnconditionally() 246 if (BaseAlign == 0) in isSafeToLoadUnconditionally() 247 BaseAlign = DL.getPrefTypeAlignment(BaseType); in isSafeToLoadUnconditionally() 249 if (Align <= BaseAlign) { in isSafeToLoadUnconditionally()
|
D | Lint.cpp | 464 unsigned BaseAlign = 0; in visitMemoryReference() local 470 BaseAlign = AI->getAlignment(); in visitMemoryReference() 471 if (BaseAlign == 0 && ATy->isSized()) in visitMemoryReference() 472 BaseAlign = DL->getABITypeAlignment(ATy); in visitMemoryReference() 480 BaseAlign = GV->getAlignment(); in visitMemoryReference() 481 if (BaseAlign == 0 && GTy->isSized()) in visitMemoryReference() 482 BaseAlign = DL->getABITypeAlignment(GTy); in visitMemoryReference() 497 Assert(!BaseAlign || Align <= MinAlign(BaseAlign, Offset), in visitMemoryReference()
|
/external/clang/lib/AST/ |
D | RecordLayoutBuilder.cpp | 967 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-7.0/llvm/lib/CodeGen/GlobalISel/ |
D | IRTranslator.cpp | 441 unsigned BaseAlign = getMemOpAlignment(LI); in translateLoad() local 444 MinAlign(BaseAlign, Offsets[i] / 8), AAMDNodes(), nullptr, in translateLoad() 470 unsigned BaseAlign = getMemOpAlignment(SI); in translateStore() local 473 MinAlign(BaseAlign, Offsets[i] / 8), AAMDNodes(), nullptr, in translateStore()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 1085 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-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUISelLowering.cpp | 1381 unsigned BaseAlign = Load->getAlignment(); in SplitVectorLoad() local 1382 unsigned HiAlign = MinAlign(BaseAlign, Size); in SplitVectorLoad() 1386 BaseAlign, Load->getMemOperand()->getFlags()); in SplitVectorLoad() 1429 unsigned BaseAlign = Store->getAlignment(); in SplitVectorStore() local 1431 unsigned HiAlign = MinAlign(BaseAlign, Size); in SplitVectorStore() 1434 DAG.getTruncStore(Chain, SL, Lo, BasePtr, SrcValue, LoMemVT, BaseAlign, in SplitVectorStore()
|