Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/llvm/lib/Analysis/
H A DPtrUseVisitor.cpp36 APInt TmpOffset(DL.getIndexTypeSizeInBits(GEPI.getType()), 0); in adjustOffsetForGEP() local
37 if (GEPI.accumulateConstantOffset(DL, TmpOffset)) { in adjustOffsetForGEP()
38 Offset += TmpOffset.sextOrTrunc(Offset.getBitWidth()); in adjustOffsetForGEP()
H A DConstantFolding.cpp333 APInt TmpOffset(BitWidth, 0); in IsConstantOffsetFromGlobal() local
336 if (!IsConstantOffsetFromGlobal(CE->getOperand(0), GV, TmpOffset, DL, in IsConstantOffsetFromGlobal()
341 if (!GEP->accumulateConstantOffset(DL, TmpOffset)) in IsConstantOffsetFromGlobal()
344 Offset = TmpOffset; in IsConstantOffsetFromGlobal()
/openbsd/gnu/llvm/llvm/lib/Target/WebAssembly/
H A DWebAssemblyFastISel.cpp267 uint64_t TmpOffset = Addr.getOffset(); in computeAddress() local
279 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
285 TmpOffset += CI->getSExtValue() * S; in computeAddress()
299 TmpOffset += CI->getSExtValue() * S; in computeAddress()
310 if (int64_t(TmpOffset) >= 0) { in computeAddress()
312 Addr.setOffset(TmpOffset); in computeAddress()
345 if (int64_t(TmpOffset) >= 0) { in computeAddress()
346 Addr.setOffset(TmpOffset); in computeAddress()
364 int64_t TmpOffset = Addr.getOffset() - CI->getSExtValue(); in computeAddress() local
365 if (TmpOffset >= 0) { in computeAddress()
[all …]
/openbsd/gnu/llvm/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp110 APInt TmpOffset = OrigOffset; in createByteGEP() local
113 DL.getGEPIndicesForOffset(TmpTy, TmpOffset); in createByteGEP()
114 if (TmpOffset == 0) { in createByteGEP()
/openbsd/gnu/llvm/llvm/lib/Target/Mips/
H A DMipsFastISel.cpp483 int64_t TmpOffset = Addr.getOffset(); in computeAddress() local
493 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
499 TmpOffset += CI->getSExtValue() * S; in computeAddress()
506 TmpOffset += CI->getSExtValue() * S; in computeAddress()
517 Addr.setOffset(TmpOffset); in computeAddress()
/openbsd/gnu/llvm/llvm/lib/Target/PowerPC/
H A DPPCFastISel.cpp340 int64_t TmpOffset = Addr.Offset; in PPCComputeAddress() local
351 TmpOffset += SL->getElementOffset(Idx); in PPCComputeAddress()
357 TmpOffset += CI->getSExtValue() * S; in PPCComputeAddress()
364 TmpOffset += CI->getSExtValue() * S; in PPCComputeAddress()
376 Addr.Offset = TmpOffset; in PPCComputeAddress()
/openbsd/gnu/llvm/llvm/lib/Target/ARM/
H A DARMFastISel.cpp737 int TmpOffset = Addr.Offset; in ARMComputeAddress() local
748 TmpOffset += SL->getElementOffset(Idx); in ARMComputeAddress()
754 TmpOffset += CI->getSExtValue() * S; in ARMComputeAddress()
761 TmpOffset += CI->getSExtValue() * S; in ARMComputeAddress()
773 Addr.Offset = TmpOffset; in ARMComputeAddress()
/openbsd/gnu/llvm/llvm/lib/Target/AArch64/
H A DAArch64FastISel.cpp633 uint64_t TmpOffset = Addr.getOffset(); in computeAddress() local
643 TmpOffset += SL->getElementOffset(Idx); in computeAddress()
649 TmpOffset += CI->getSExtValue() * S; in computeAddress()
656 TmpOffset += CI->getSExtValue() * S; in computeAddress()
668 Addr.setOffset(TmpOffset); in computeAddress()
/openbsd/gnu/llvm/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp1756 APInt TmpOffset(DL.getIndexTypeSizeInBits(Arg->getType()), 0, false); in collectEscapedLocals() local
1758 Arg->stripAndAccumulateConstantOffsets(DL, TmpOffset, true)); in collectEscapedLocals()