[Mlir-commits] [llvm] [mlir] Give each mlir::Block a stable ID within its parent region (PR #207617)
Fangrui Song
llvmlistbot at llvm.org
Wed Jul 8 19:34:45 PDT 2026
================
@@ -422,6 +435,10 @@ class alignas(8) Block : public IRObjectWithUseList<BlockOperand>,
/// the operations within this block have a valid ordering.
llvm::PointerIntPair<Region *, /*IntBits=*/1, bool> parentValidOpOrderPair;
+ /// Unique number of this block within its parent region, assigned when the
+ /// block is added to a region. See getNumber().
+ unsigned blockNumber = 0;
----------------
MaskRay wrote:
Done
https://github.com/llvm/llvm-project/pull/207617
More information about the Mlir-commits
mailing list