Home
last modified time | relevance | path

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

/src/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp588 APInt ConstantOffset = find(BO->getOperand(0), SignExtended, ZeroExtended, in findInEitherOperand() local
595 if (ConstantOffset != 0) return ConstantOffset; in findInEitherOperand()
601 ConstantOffset = find(BO->getOperand(1), SignExtended, ZeroExtended, in findInEitherOperand()
606 ConstantOffset = -ConstantOffset; in findInEitherOperand()
609 if (ConstantOffset == 0) in findInEitherOperand()
612 return ConstantOffset; in findInEitherOperand()
626 APInt ConstantOffset(BitWidth, 0); in find() local
629 ConstantOffset = CI->getValue(); in find()
633 ConstantOffset = findInEitherOperand(BO, SignExtended, ZeroExtended); in find()
635 ConstantOffset = in find()
[all …]
H A DJumpTableToSwitch.cpp60 APInt ConstantOffset(BitWidth, 0); in parseJumpTable() local
61 if (!GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) in parseJumpTable()
66 if (!ConstantOffset.isZero()) in parseJumpTable()
H A DEarlyCSE.cpp565 std::optional<int64_t> ConstantOffset; member
571 GEPValue(Instruction *I, std::optional<int64_t> ConstantOffset) in GEPValue()
572 : Inst(I), ConstantOffset(ConstantOffset) { in GEPValue()
607 if (Val.ConstantOffset.has_value()) in getHashValue()
609 Val.ConstantOffset.value()); in getHashValue()
622 if (LHS.ConstantOffset.has_value() && RHS.ConstantOffset.has_value()) in isEqual()
623 return LHS.ConstantOffset.value() == RHS.ConstantOffset.value(); in isEqual()
H A DConstraintElimination.cpp387 APInt ConstantOffset; member
391 OffsetResult() : BasePtr(nullptr), ConstantOffset(0, uint64_t(0)) {} in OffsetResult()
395 ConstantOffset = APInt(DL.getIndexTypeSizeInBits(BasePtr->getType()), 0); in OffsetResult()
405 unsigned BitWidth = Result.ConstantOffset.getBitWidth(); in collectOffsets()
407 Result.ConstantOffset)) in collectOffsets()
425 Result.ConstantOffset += ConstantOffset2; in collectOffsets()
452 const auto &[BasePtr, ConstantOffset, VariableOffsets, AllInbounds] = in decomposeGEP()
457 Decomposition Result(ConstantOffset.getSExtValue(), DecompEntry(1, BasePtr)); in decomposeGEP()
H A DGVN.cpp426 APInt ConstantOffset(BitWidth, 0); in createGEPExpr() local
427 if (GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) { in createGEPExpr()
438 if (!ConstantOffset.isZero()) in createGEPExpr()
440 lookupOrAdd(ConstantInt::get(Context, ConstantOffset))); in createGEPExpr()
/src/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp205 APInt &ConstantOffset) const { in collectOffset()
212 ConstantOffset += Index * IndexedSize; in collectOffset()
H A DInstructions.cpp1592 APInt &ConstantOffset) const { in collectOffset()
1595 ConstantOffset); in collectOffset()
/src/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h532 APInt &ConstantOffset) const;
H A DInstructions.h1104 APInt &ConstantOffset) const;
/src/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp4914 int64_t ConstantOffset = 0; in matchOperationAddr() local
4921 ConstantOffset += SL->getElementOffset(Idx); in matchOperationAddr()
4933 ConstantOffset += CVal.getSExtValue() * TypeSize; in matchOperationAddr()
4951 AddrMode.BaseOffs += ConstantOffset; in matchOperationAddr()
4957 AddrMode.BaseOffs -= ConstantOffset; in matchOperationAddr()
4961 ConstantOffset > 0) { in matchOperationAddr()
4977 LargeOffsetGEP = std::make_pair(GEP, ConstantOffset); in matchOperationAddr()
4989 AddrMode.BaseOffs += ConstantOffset; in matchOperationAddr()
5016 AddrMode.BaseOffs += ConstantOffset; in matchOperationAddr()
/src/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp213 if (auto *ConstantOffset = in simplifyAMDGCNImageIntrinsic() local
215 if (ConstantOffset->isZero()) { in simplifyAMDGCNImageIntrinsic()
/src/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp2402 APInt ConstantOffset(BitWidth, 0); in getSalvageOpsForGEP() local
2403 if (!GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) in getSalvageOpsForGEP()
2417 DIExpression::appendOffset(Opcodes, ConstantOffset.getSExtValue()); in getSalvageOpsForGEP()
/src/contrib/llvm-project/llvm/lib/Target/RISCV/
H A DRISCVISelDAGToDAG.cpp1544 if (auto ConstantOffset = dyn_cast<ConstantSDNode>(Offset)) { in Select() local
1545 int ConstantVal = ConstantOffset->getSExtValue(); in Select()
/src/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp1538 APInt ConstantOffset(BitWidth, 0); in collectConstantsForGEP() local
1544 if (!GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) { in collectConstantsForGEP()
1554 Union.addToAll(ConstantOffset.getSExtValue()); in collectConstantsForGEP()