[Mlir-commits] [mlir] [mlir][IR] Mark `getParentBlock()` and `getParentRegion()` as const (NFC) (PR #151915)
Longsheng Mou
llvmlistbot at llvm.org
Mon Aug 4 02:02:15 PDT 2025
CoTinker wrote:
The reason behind this change is that `Value::getParentOp()` is already const, and since `ValueComparator::operator()` takes const Values, it makes sense for `getParentBlock()` and `getParentRegion()` to be const as well.
https://github.com/llvm/llvm-project/blob/19803d824971826fb6961059cce160da2094ab6b/mlir/lib/Dialect/Bufferization/IR/BufferDeallocationOpInterface.cpp#L222
https://github.com/llvm/llvm-project/pull/151915
More information about the Mlir-commits
mailing list