Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DSeparateConstOffsetFromGEP.cpp594 if (ConstantOffset != 0) return ConstantOffset; in findInEitherOperand()
605 ConstantOffset = -ConstantOffset; in findInEitherOperand()
608 if (ConstantOffset == 0) in findInEitherOperand()
611 return ConstantOffset; in findInEitherOperand()
634 ConstantOffset = in find()
645 ConstantOffset = in find()
653 if (ConstantOffset != 0) in find()
655 return ConstantOffset; in find()
785 APInt ConstantOffset = in Extract() local
788 if (ConstantOffset == 0) { in Extract()
[all …]
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.cpp386 APInt ConstantOffset; member
390 OffsetResult() : BasePtr(nullptr), ConstantOffset(0, uint64_t(0)) {} in OffsetResult()
394 ConstantOffset = APInt(DL.getIndexTypeSizeInBits(BasePtr->getType()), 0); in OffsetResult()
404 unsigned BitWidth = Result.ConstantOffset.getBitWidth(); in collectOffsets()
406 Result.ConstantOffset)) in collectOffsets()
424 Result.ConstantOffset += ConstantOffset2; in collectOffsets()
451 const auto &[BasePtr, ConstantOffset, VariableOffsets, AllInbounds] = in decomposeGEP()
456 Decomposition Result(ConstantOffset.getSExtValue(), DecompEntry(1, BasePtr)); in decomposeGEP()
H A DGVN.cpp425 APInt ConstantOffset(BitWidth, 0); in createGEPExpr() local
426 if (GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) { in createGEPExpr()
437 if (!ConstantOffset.isZero()) in createGEPExpr()
439 lookupOrAdd(ConstantInt::get(Context, ConstantOffset))); in createGEPExpr()
/freebsd-14.2/contrib/llvm-project/llvm/lib/IR/
H A DOperator.cpp182 APInt &ConstantOffset) const { in collectOffset()
189 ConstantOffset += Index * IndexedSize; in collectOffset()
H A DInstructions.cpp1820 APInt &ConstantOffset) const { in collectOffset()
1823 ConstantOffset); in collectOffset()
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DOperator.h506 APInt &ConstantOffset) const;
H A DInstructions.h1139 APInt &ConstantOffset) const;
/freebsd-14.2/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPUInstCombineIntrinsic.cpp213 if (auto *ConstantOffset = in simplifyAMDGCNImageIntrinsic() local
215 if (ConstantOffset->isZero()) { in simplifyAMDGCNImageIntrinsic()
/freebsd-14.2/contrib/llvm-project/llvm/lib/CodeGen/
H A DCodeGenPrepare.cpp4819 int64_t ConstantOffset = 0; in matchOperationAddr() local
4826 ConstantOffset += SL->getElementOffset(Idx); in matchOperationAddr()
4838 ConstantOffset += CVal.getSExtValue() * TypeSize; in matchOperationAddr()
4856 AddrMode.BaseOffs += ConstantOffset; in matchOperationAddr()
4862 AddrMode.BaseOffs -= ConstantOffset; in matchOperationAddr()
4866 ConstantOffset > 0) { in matchOperationAddr()
4882 LargeOffsetGEP = std::make_pair(GEP, ConstantOffset); in matchOperationAddr()
4894 AddrMode.BaseOffs += ConstantOffset; in matchOperationAddr()
4921 AddrMode.BaseOffs += ConstantOffset; in matchOperationAddr()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DLocal.cpp2374 APInt ConstantOffset(BitWidth, 0); in getSalvageOpsForGEP() local
2375 if (!GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) in getSalvageOpsForGEP()
2389 DIExpression::appendOffset(Opcodes, ConstantOffset.getSExtValue()); in getSalvageOpsForGEP()
/freebsd-14.2/contrib/llvm-project/llvm/lib/Transforms/IPO/
H A DAttributorAttributes.cpp1537 APInt ConstantOffset(BitWidth, 0); in collectConstantsForGEP() local
1543 if (!GEP->collectOffset(DL, BitWidth, VariableOffsets, ConstantOffset)) { in collectConstantsForGEP()
1553 Union.addToAll(ConstantOffset.getSExtValue()); in collectConstantsForGEP()