MLIR  15.0.0git
Macros | Functions
TransformOps.cpp File Reference
#include "mlir/Dialect/Transform/IR/TransformOps.h"
#include "mlir/Dialect/PDL/IR/PDLOps.h"
#include "mlir/Dialect/Transform/IR/TransformDialect.h"
#include "mlir/Dialect/Transform/IR/TransformInterfaces.h"
#include "mlir/IR/OpImplementation.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/Interfaces/ControlFlowInterfaces.h"
#include "mlir/Rewrite/FrozenRewritePatternSet.h"
#include "mlir/Rewrite/PatternApplicator.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/Support/Debug.h"
#include "mlir/Dialect/Transform/IR/TransformOps.cpp.inc"
+ Include dependency graph for TransformOps.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "transform-dialect"
 
#define DBGS()   (llvm::dbgs() << "[" DEBUG_TYPE "] ")
 
#define GET_OP_CLASSES
 

Functions

static void forwardTerminatorOperands (Block *block, transform::TransformState &state, transform::TransformResults &results)
 
static bool isValueUsePotentialConsumer (OpOperand &use)
 Returns true if the given op operand may be consuming the handle value in the Transform IR. More...
 
LogicalResult checkDoubleConsume (Value value, function_ref< InFlightDiagnostic()> reportError)
 

Macro Definition Documentation

◆ DBGS

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

Definition at line 22 of file TransformOps.cpp.

Referenced by forwardTerminatorOperands().

◆ DEBUG_TYPE

#define DEBUG_TYPE   "transform-dialect"

Definition at line 21 of file TransformOps.cpp.

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 26 of file TransformOps.cpp.

Function Documentation

◆ checkDoubleConsume()

LogicalResult checkDoubleConsume ( Value  value,
function_ref< InFlightDiagnostic()>  reportError 
)

◆ forwardTerminatorOperands()

static void forwardTerminatorOperands ( Block block,
transform::TransformState state,
transform::TransformResults results 
)
static

◆ isValueUsePotentialConsumer()

static bool isValueUsePotentialConsumer ( OpOperand use)
static

Returns true if the given op operand may be consuming the handle value in the Transform IR.

That is, if it may have a Free effect on it.

Definition at line 339 of file TransformOps.cpp.

References mlir::IROperand< DerivedT, IRValueT >::get(), mlir::SideEffects::EffectInstance< EffectT >::getEffect(), mlir::detail::IROperandBase::getOwner(), and mlir::SideEffects::EffectInstance< EffectT >::getResource().

Referenced by checkDoubleConsume().