Home
last modified time | relevance | path

Searched refs:ConstantOffset (Results 1 – 11 of 11) sorted by relevance

/openbsd-src/gnu/llvm/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp575 APInt ConstantOffset = find(BO->getOperand(0), SignExtended, ZeroExtended, in findInEitherOperand() local
582 if (ConstantOffset != 0) return ConstantOffset; in findInEitherOperand()
588 ConstantOffset = find(BO->getOperand(1), SignExtended, ZeroExtended, in findInEitherOperand()
593 ConstantOffset = -ConstantOffset; in findInEitherOperand()
596 if (ConstantOffset == 0) in findInEitherOperand()
599 return ConstantOffset; in findInEitherOperand()
613 APInt ConstantOffset(BitWidth, 0); in find() local
616 ConstantOffset = CI->getValue(); in find()
620 ConstantOffset = findInEitherOperand(BO, SignExtended, ZeroExtended); in find()
622 ConstantOffset = in find()
[all …]
H A DConstraintElimination.cpp254 APInt ConstantOffset(BitWidth, 0); in decomposeGEP() local
255 if (!GEP.collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) in decomposeGEP()
263 Result.add(ConstantOffset.getSExtValue()); in decomposeGEP()
265 if (ConstantOffset.isNegative()) { in decomposeGEP()
267 int64_t ConstantOffsetI = ConstantOffset.getSExtValue(); in decomposeGEP()
281 Decomposition Result(ConstantOffset.getSExtValue(), in decomposeGEP()
H A DGVN.cpp418 APInt ConstantOffset(BitWidth, 0); in createGEPExpr() local
420 GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) { in createGEPExpr()
431 if (!ConstantOffset.isZero()) in createGEPExpr()
433 lookupOrAdd(ConstantInt::get(Context, ConstantOffset))); in createGEPExpr()
/openbsd-src/gnu/llvm/llvm/lib/IR/
H A DOperator.cpp179 APInt &ConstantOffset) const { in collectOffset()
186 ConstantOffset += Index * IndexedSize; in collectOffset()
H A DInstructions.cpp1955 APInt &ConstantOffset) const { in collectOffset()
1958 ConstantOffset); in collectOffset()
/openbsd-src/gnu/llvm/llvm/include/llvm/IR/
H A DOperator.h514 APInt &ConstantOffset) const;
H A DInstructions.h1144 APInt &ConstantOffset) const;
/openbsd-src/gnu/llvm/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp212 if (auto *ConstantOffset = in simplifyAMDGCNImageIntrinsic() local
214 if (ConstantOffset->isZero()) { in simplifyAMDGCNImageIntrinsic()
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp4683 int64_t ConstantOffset = 0; in matchOperationAddr() local
4690 ConstantOffset += SL->getElementOffset(Idx); in matchOperationAddr()
4702 ConstantOffset += CVal.getSExtValue() * TypeSize; in matchOperationAddr()
4720 AddrMode.BaseOffs += ConstantOffset; in matchOperationAddr()
4721 if (ConstantOffset == 0 || in matchOperationAddr()
4731 ConstantOffset > 0) { in matchOperationAddr()
4747 LargeOffsetGEP = std::make_pair(GEP, ConstantOffset); in matchOperationAddr()
4750 AddrMode.BaseOffs -= ConstantOffset; in matchOperationAddr()
4759 AddrMode.BaseOffs += ConstantOffset; in matchOperationAddr()
4786 AddrMode.BaseOffs += ConstantOffset; in matchOperationAddr()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/
H A DLocal.cpp1930 APInt ConstantOffset(BitWidth, 0); in getSalvageOpsForGEP() local
1931 if (!GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) in getSalvageOpsForGEP()
1945 DIExpression::appendOffset(Opcodes, ConstantOffset.getSExtValue()); in getSalvageOpsForGEP()
/openbsd-src/gnu/llvm/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp1443 APInt ConstantOffset(BitWidth, 0); in collectConstantsForGEP() local
1449 if (!GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) { in collectConstantsForGEP()
1459 Union.addToAll(ConstantOffset.getSExtValue()); in collectConstantsForGEP()