Home
last modified time | relevance | path

Searched refs:TmpOffset (Results 1 – 20 of 20) sorted by relevance

/external/llvm-project/llvm/lib/Analysis/
DPtrUseVisitor.cpp37 APInt TmpOffset(DL.getIndexTypeSizeInBits(GEPI.getType()), 0); in adjustOffsetForGEP() local
38 if (GEPI.accumulateConstantOffset(DL, TmpOffset)) { in adjustOffsetForGEP()
39 Offset += TmpOffset.sextOrTrunc(Offset.getBitWidth()); in adjustOffsetForGEP()
DConstantFolding.cpp335 APInt TmpOffset(BitWidth, 0); in IsConstantOffsetFromGlobal() local
338 if (!IsConstantOffsetFromGlobal(CE->getOperand(0), GV, TmpOffset, DL, in IsConstantOffsetFromGlobal()
343 if (!GEP->accumulateConstantOffset(DL, TmpOffset)) in IsConstantOffsetFromGlobal()
346 Offset = TmpOffset; in IsConstantOffsetFromGlobal()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DPtrUseVisitor.cpp37 APInt TmpOffset(DL.getIndexTypeSizeInBits(GEPI.getType()), 0); in adjustOffsetForGEP() local
38 if (GEPI.accumulateConstantOffset(DL, TmpOffset)) { in adjustOffsetForGEP()
39 Offset += TmpOffset.sextOrTrunc(Offset.getBitWidth()); in adjustOffsetForGEP()
DConstantFolding.cpp314 APInt TmpOffset(BitWidth, 0); in IsConstantOffsetFromGlobal() local
317 if (!IsConstantOffsetFromGlobal(CE->getOperand(0), GV, TmpOffset, DL)) in IsConstantOffsetFromGlobal()
321 if (!GEP->accumulateConstantOffset(DL, TmpOffset)) in IsConstantOffsetFromGlobal()
324 Offset = TmpOffset; in IsConstantOffsetFromGlobal()
/external/llvm-project/llvm/lib/Target/WebAssembly/
DWebAssemblyFastISel.cpp265 uint64_t TmpOffset = Addr.getOffset(); in computeAddress() local
277 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
283 TmpOffset += CI->getSExtValue() * S; in computeAddress()
297 TmpOffset += CI->getSExtValue() * S; in computeAddress()
308 if (int64_t(TmpOffset) >= 0) { in computeAddress()
310 Addr.setOffset(TmpOffset); in computeAddress()
342 uint64_t TmpOffset = Addr.getOffset() + CI->getSExtValue(); in computeAddress() local
343 if (int64_t(TmpOffset) >= 0) { in computeAddress()
344 Addr.setOffset(TmpOffset); in computeAddress()
362 int64_t TmpOffset = Addr.getOffset() - CI->getSExtValue(); in computeAddress() local
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyFastISel.cpp264 uint64_t TmpOffset = Addr.getOffset(); in computeAddress() local
276 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
282 TmpOffset += CI->getSExtValue() * S; in computeAddress()
296 TmpOffset += CI->getSExtValue() * S; in computeAddress()
307 if (int64_t(TmpOffset) >= 0) { in computeAddress()
309 Addr.setOffset(TmpOffset); in computeAddress()
341 uint64_t TmpOffset = Addr.getOffset() + CI->getSExtValue(); in computeAddress() local
342 if (int64_t(TmpOffset) >= 0) { in computeAddress()
343 Addr.setOffset(TmpOffset); in computeAddress()
361 int64_t TmpOffset = Addr.getOffset() - CI->getSExtValue(); in computeAddress() local
[all …]
/external/llvm/lib/Target/WebAssembly/
DWebAssemblyFastISel.cpp231 uint64_t TmpOffset = Addr.getOffset(); in computeAddress() local
240 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
246 TmpOffset += CI->getSExtValue() * S; in computeAddress()
258 TmpOffset += CI->getSExtValue() * S; in computeAddress()
269 Addr.setOffset(TmpOffset); in computeAddress()
/external/llvm/lib/Target/Mips/
DMipsFastISel.cpp446 uint64_t TmpOffset = Addr.getOffset(); in computeAddress() local
456 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
462 TmpOffset += CI->getSExtValue() * S; in computeAddress()
469 TmpOffset += CI->getSExtValue() * S; in computeAddress()
480 Addr.setOffset(TmpOffset); in computeAddress()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Mips/
DMipsFastISel.cpp488 int64_t TmpOffset = Addr.getOffset(); in computeAddress() local
498 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
504 TmpOffset += CI->getSExtValue() * S; in computeAddress()
511 TmpOffset += CI->getSExtValue() * S; in computeAddress()
522 Addr.setOffset(TmpOffset); in computeAddress()
/external/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp353 long TmpOffset = Addr.Offset; in PPCComputeAddress() local
364 TmpOffset += SL->getElementOffset(Idx); in PPCComputeAddress()
370 TmpOffset += CI->getSExtValue() * S; in PPCComputeAddress()
377 TmpOffset += CI->getSExtValue() * S; in PPCComputeAddress()
389 Addr.Offset = TmpOffset; in PPCComputeAddress()
/external/llvm-project/llvm/lib/Target/Mips/
DMipsFastISel.cpp488 int64_t TmpOffset = Addr.getOffset(); in computeAddress() local
498 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
504 TmpOffset += CI->getSExtValue() * S; in computeAddress()
511 TmpOffset += CI->getSExtValue() * S; in computeAddress()
522 Addr.setOffset(TmpOffset); in computeAddress()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp345 long TmpOffset = Addr.Offset; in PPCComputeAddress() local
356 TmpOffset += SL->getElementOffset(Idx); in PPCComputeAddress()
362 TmpOffset += CI->getSExtValue() * S; in PPCComputeAddress()
369 TmpOffset += CI->getSExtValue() * S; in PPCComputeAddress()
381 Addr.Offset = TmpOffset; in PPCComputeAddress()
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCFastISel.cpp346 long TmpOffset = Addr.Offset; in PPCComputeAddress() local
357 TmpOffset += SL->getElementOffset(Idx); in PPCComputeAddress()
363 TmpOffset += CI->getSExtValue() * S; in PPCComputeAddress()
370 TmpOffset += CI->getSExtValue() * S; in PPCComputeAddress()
382 Addr.Offset = TmpOffset; in PPCComputeAddress()
/external/llvm/lib/Analysis/
DConstantFolding.cpp266 APInt TmpOffset(BitWidth, 0); in IsConstantOffsetFromGlobal() local
269 if (!IsConstantOffsetFromGlobal(CE->getOperand(0), GV, TmpOffset, DL)) in IsConstantOffsetFromGlobal()
273 if (!GEP->accumulateConstantOffset(DL, TmpOffset)) in IsConstantOffsetFromGlobal()
276 Offset = TmpOffset; in IsConstantOffsetFromGlobal()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DARMFastISel.cpp755 int TmpOffset = Addr.Offset; in ARMComputeAddress() local
766 TmpOffset += SL->getElementOffset(Idx); in ARMComputeAddress()
772 TmpOffset += CI->getSExtValue() * S; in ARMComputeAddress()
779 TmpOffset += CI->getSExtValue() * S; in ARMComputeAddress()
791 Addr.Offset = TmpOffset; in ARMComputeAddress()
/external/llvm/lib/Target/ARM/
DARMFastISel.cpp759 int TmpOffset = Addr.Offset; in ARMComputeAddress() local
770 TmpOffset += SL->getElementOffset(Idx); in ARMComputeAddress()
776 TmpOffset += CI->getSExtValue() * S; in ARMComputeAddress()
783 TmpOffset += CI->getSExtValue() * S; in ARMComputeAddress()
795 Addr.Offset = TmpOffset; in ARMComputeAddress()
/external/llvm-project/llvm/lib/Target/ARM/
DARMFastISel.cpp742 int TmpOffset = Addr.Offset; in ARMComputeAddress() local
753 TmpOffset += SL->getElementOffset(Idx); in ARMComputeAddress()
759 TmpOffset += CI->getSExtValue() * S; in ARMComputeAddress()
766 TmpOffset += CI->getSExtValue() * S; in ARMComputeAddress()
778 Addr.Offset = TmpOffset; in ARMComputeAddress()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp624 uint64_t TmpOffset = Addr.getOffset(); in computeAddress() local
634 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
640 TmpOffset += CI->getSExtValue() * S; in computeAddress()
647 TmpOffset += CI->getSExtValue() * S; in computeAddress()
659 Addr.setOffset(TmpOffset); in computeAddress()
/external/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp550 uint64_t TmpOffset = Addr.getOffset(); in computeAddress() local
560 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
566 TmpOffset += CI->getSExtValue() * S; in computeAddress()
573 TmpOffset += CI->getSExtValue() * S; in computeAddress()
585 Addr.setOffset(TmpOffset); in computeAddress()
/external/llvm-project/llvm/lib/Target/AArch64/
DAArch64FastISel.cpp622 uint64_t TmpOffset = Addr.getOffset(); in computeAddress() local
632 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
638 TmpOffset += CI->getSExtValue() * S; in computeAddress()
645 TmpOffset += CI->getSExtValue() * S; in computeAddress()
657 Addr.setOffset(TmpOffset); in computeAddress()