MLIR  16.0.0git
Functions
DeadCodeAnalysis.cpp File Reference
#include "mlir/Analysis/DataFlow/DeadCodeAnalysis.h"
#include "mlir/Analysis/DataFlow/ConstantPropagationAnalysis.h"
#include "mlir/Interfaces/CallInterfaces.h"
#include "mlir/Interfaces/ControlFlowInterfaces.h"
+ Include dependency graph for DeadCodeAnalysis.cpp:

Go to the source code of this file.

Functions

static bool isRegionOrCallableReturn (Operation *op)
 Returns true if the operation is a returning terminator in region control-flow or the terminator of a callable region. More...
 
static Optional< SmallVector< Attribute > > getOperandValuesImpl (Operation *op, function_ref< const Lattice< ConstantValue > *(Value)> getLattice)
 Get the constant values of the operands of an operation. More...
 

Function Documentation

◆ getOperandValuesImpl()

static Optional<SmallVector<Attribute> > getOperandValuesImpl ( Operation op,
function_ref< const Lattice< ConstantValue > *(Value)>  getLattice 
)
static

◆ isRegionOrCallableReturn()

static bool isRegionOrCallableReturn ( Operation op)
static