MLIR  16.0.0git
Functions
LegalizeForExport.cpp File Reference
#include "mlir/Dialect/LLVMIR/Transforms/LegalizeForExport.h"
#include "PassDetail.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/IR/Block.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinOps.h"
+ Include dependency graph for LegalizeForExport.cpp:

Go to the source code of this file.

Functions

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...
 

Function Documentation

◆ 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 21 of file LegalizeForExport.cpp.

References mlir::Block::addArgument(), mlir::Block::back(), 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().

Referenced by mlir::LLVM::ensureDistinctSuccessors().