MLIR: lib/Dialect/Transform/IR/Utils.cpp File Reference (original) (raw)

Go to the source code of this file.

Functions
static bool canMergeInto (FunctionOpInterface func1, FunctionOpInterface func2)
Return whether func1 can be merged into func2. More...
static InFlightDiagnostic mergeInto (FunctionOpInterface func1, FunctionOpInterface func2)
Merge func1 into func2. More...

DBGS

#define DBGS ( ) (llvm::dbgs() << "[" DEBUG_TYPE << "]: ")

DEBUG_TYPE

#define DEBUG_TYPE "transform-dialect-utils"

canMergeInto()

static bool canMergeInto ( FunctionOpInterface func1, FunctionOpInterface func2 ) static

Return whether func1 can be merged into func2.

For that to work func1 has to be a declaration (aka has to be external) and func2 either has to be a declaration as well, or it has to be public (otherwise, it wouldn't be visible by func1).

Definition at line 24 of file Utils.cpp.

Referenced by mergeInto(), and mlir::transform::detail::mergeSymbolsInto().

mergeInto()

static InFlightDiagnostic mergeInto ( FunctionOpInterface func1, FunctionOpInterface func2 ) static