[Mlir-commits] [llvm] [mlir] Number MLIR blocks; require GraphHasNodeNumbers in llvm::LoopInfoBase (PR #207617)
Alexis Engelke
llvmlistbot at llvm.org
Mon Jul 6 00:25:59 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;
----------------
aengelke wrote:
Initialize with -1u to signal "invalid number". Is there no way blocks can be removed without being erased from a region?
https://github.com/llvm/llvm-project/pull/207617
More information about the Mlir-commits
mailing list