MLIR  19.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::detail::PassExecutionState Struct Reference

The state for a single execution of a pass. More...

#include "mlir/Pass/Pass.h"

Public Member Functions

 PassExecutionState (Operation *ir, AnalysisManager analysisManager, function_ref< LogicalResult(OpPassManager &, Operation *)> pipelineExecutor)
 

Public Attributes

llvm::PointerIntPair< Operation *, 1, bool > irAndPassFailed
 The current operation being transformed and a bool for if the pass signaled a failure. More...
 
AnalysisManager analysisManager
 The analysis manager for the operation. More...
 
detail::PreservedAnalyses preservedAnalyses
 The set of preserved analyses for the current execution. More...
 
function_ref< LogicalResult(OpPassManager &, Operation *)> pipelineExecutor
 This is a callback in the PassManager that allows to schedule dynamic pipelines that will be rooted at the provided operation. More...
 

Detailed Description

The state for a single execution of a pass.

This provides a unified interface for accessing and initializing necessary state for pass execution.

Definition at line 27 of file Pass.h.

Constructor & Destructor Documentation

◆ PassExecutionState()

mlir::detail::PassExecutionState::PassExecutionState ( Operation ir,
AnalysisManager  analysisManager,
function_ref< LogicalResult(OpPassManager &, Operation *)>  pipelineExecutor 
)
inline

Definition at line 28 of file Pass.h.

Member Data Documentation

◆ analysisManager

AnalysisManager mlir::detail::PassExecutionState::analysisManager

The analysis manager for the operation.

Definition at line 39 of file Pass.h.

Referenced by mlir::Pass::getAnalysisManager().

◆ irAndPassFailed

llvm::PointerIntPair<Operation *, 1, bool> mlir::detail::PassExecutionState::irAndPassFailed

The current operation being transformed and a bool for if the pass signaled a failure.

Definition at line 36 of file Pass.h.

Referenced by mlir::Pass::getOperation(), and mlir::Pass::signalPassFailure().

◆ pipelineExecutor

function_ref<LogicalResult(OpPassManager &, Operation *)> mlir::detail::PassExecutionState::pipelineExecutor

This is a callback in the PassManager that allows to schedule dynamic pipelines that will be rooted at the provided operation.

Definition at line 46 of file Pass.h.

◆ preservedAnalyses

detail::PreservedAnalyses mlir::detail::PassExecutionState::preservedAnalyses

The set of preserved analyses for the current execution.

Definition at line 42 of file Pass.h.

Referenced by mlir::Pass::markAllAnalysesPreserved(), and mlir::Pass::markAnalysesPreserved().


The documentation for this struct was generated from the following file: