[Mlir-commits] [mlir] [MLIR][LLVM] Support inrange in GEP (PR #220424)
Tobias Gysi
llvmlistbot at llvm.org
Tue Sep 22 22:26:34 PDT 2026
================
@@ -829,6 +829,11 @@ LogicalResult LLVM::GEPOp::verify() {
if (getNoWrapFlags() == GEPNoWrapFlags::inboundsFlag)
return emitOpError("'inbounds_flag' cannot be used directly.");
+ if (auto inrange = getInrangeAttr()) {
+ if (inrange.getLower().sge(inrange.getUpper()))
+ return emitOpError("expected 'inrange' end to be larger than start");
----------------
gysit wrote:
ok, I am fine with avoiding the constant check.
https://github.com/llvm/llvm-project/pull/220424
More information about the Mlir-commits
mailing list