[llvm] [SCEV] Expose getGEPExpr without needing to pass GEPOperator* (NFC) (PR #164487)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 22 01:56:40 PDT 2025
================
@@ -640,6 +640,9 @@ class ScalarEvolution {
/// \p IndexExprs The expressions for the indices.
LLVM_ABI const SCEV *
getGEPExpr(GEPOperator *GEP, const SmallVectorImpl<const SCEV *> &IndexExprs);
+ LLVM_ABI const SCEV *getGEPExpr(
+ const SCEV *BaseExpr, const SmallVectorImpl<const SCEV *> &IndexExprs,
+ Type *SrcElementTy, SCEV::NoWrapFlags OffsetWrap = SCEV::FlagAnyWrap);
----------------
fhahn wrote:
Updated, although currently I think the behavior currently stays the same, as OffsetWrap would be set to match the GEPNoWrapFlags (although with NSW instead of hasNoUnsignedSignedWrap)?
https://github.com/llvm/llvm-project/pull/164487
More information about the llvm-commits
mailing list