MLIR  19.0.0git
Namespaces | Macros | Functions
InterpreterPass.cpp File Reference
#include "mlir/Dialect/Transform/IR/TransformDialect.h"
#include "mlir/Dialect/Transform/Interfaces/TransformInterfaces.h"
#include "mlir/Dialect/Transform/Transforms/Passes.h"
#include "mlir/Dialect/Transform/Transforms/TransformInterpreterUtils.h"
#include "mlir/Dialect/Transform/Transforms/Passes.h.inc"

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::transform
 

Macros

#define GEN_PASS_DEF_INTERPRETERPASS
 

Functions

static OperationfindPayloadRoot (Operation *passRoot, StringRef tag)
 Returns the payload operation to be used as payload root: More...
 

Macro Definition Documentation

◆ GEN_PASS_DEF_INTERPRETERPASS

#define GEN_PASS_DEF_INTERPRETERPASS

Definition at line 18 of file InterpreterPass.cpp.

Function Documentation

◆ findPayloadRoot()

static Operation* findPayloadRoot ( Operation passRoot,
StringRef  tag 
)
static

Returns the payload operation to be used as payload root:

  • the operation nested under passRoot that has the given tag attribute, must be unique;
  • the passRoot itself if the tag is empty.

Definition at line 27 of file InterpreterPass.cpp.

References mlir::get(), mlir::Operation::getContext(), and mlir::Operation::walk().