Go to the source code of this file.
|
static void | ensureDistinctSuccessors (Block &bb) |
| If the given block has the same successor with different arguments, introduce dummy successor blocks so that all successors of the given block are different. More...
|
|
◆ GEN_PASS_DEF_LLVMLEGALIZEFOREXPORT
#define GEN_PASS_DEF_LLVMLEGALIZEFOREXPORT |
◆ ensureDistinctSuccessors()
static void ensureDistinctSuccessors |
( |
Block & |
bb | ) |
|
|
static |
If the given block has the same successor with different arguments, introduce dummy successor blocks so that all successors of the given block are different.
Definition at line 30 of file LegalizeForExport.cpp.
References mlir::Block::addArgument(), mlir::Block::back(), mlir::OpBuilder::create(), mlir::OpBuilder::createBlock(), mlir::Block::empty(), mlir::Block::getArguments(), mlir::Block::getNumArguments(), mlir::Block::getParent(), mlir::Block::getSuccessor(), mlir::Block::getTerminator(), mlir::Operation::mightHaveTrait(), and mlir::Block::push_back().