Can block have name attribute?

I found that we can’t set name for a block.
however, when dumping block, there are generated name such as ^bb0 ^bb1…

is there way to set or modify block name?

The enclosing op can control this with the OpAsmOpInterface method getAsmBlockNames.

2 Likes