MLIR  16.0.0git
Macros | Functions
TransformInterfaces.cpp File Reference
#include "mlir/Dialect/Transform/IR/TransformInterfaces.h"
#include "mlir/Dialect/Transform/IR/TransformTypes.h"
#include "mlir/IR/Diagnostics.h"
#include "mlir/IR/Operation.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/ErrorHandling.h"
#include "mlir/Dialect/Transform/IR/TransformInterfaces.cpp.inc"
+ Include dependency graph for TransformInterfaces.cpp:

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "transform-dialect"
 
#define DEBUG_PRINT_AFTER_ALL   "transform-dialect-print-top-level-after-all"
 
#define DBGS()   (llvm::dbgs() << "[" DEBUG_TYPE "] ")
 

Functions

template<typename EffectTy , typename ResourceTy = SideEffects::DefaultResource>
static bool hasEffect (ArrayRef< MemoryEffects::EffectInstance > effects)
 Returns true if the given list of effects instances contains an instance with the effect type specified as template parameter. More...
 

Macro Definition Documentation

◆ DBGS

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

Definition at line 19 of file TransformInterfaces.cpp.

◆ DEBUG_PRINT_AFTER_ALL

#define DEBUG_PRINT_AFTER_ALL   "transform-dialect-print-top-level-after-all"

Definition at line 18 of file TransformInterfaces.cpp.

◆ DEBUG_TYPE

#define DEBUG_TYPE   "transform-dialect"

Definition at line 17 of file TransformInterfaces.cpp.

Function Documentation

◆ hasEffect()

template<typename EffectTy , typename ResourceTy = SideEffects::DefaultResource>
static bool hasEffect ( ArrayRef< MemoryEffects::EffectInstance effects)
static

Returns true if the given list of effects instances contains an instance with the effect type specified as template parameter.

Definition at line 405 of file TransformInterfaces.cpp.

References mlir::SideEffects::EffectInstance< EffectT >::getEffect(), and mlir::SideEffects::EffectInstance< EffectT >::getResource().