MLIR
15.0.0git
|
A utility result that is used to signal how to proceed with an ongoing walk: More...
#include "mlir/IR/Visitors.h"
Public Member Functions | |
WalkResult (ResultEnum result) | |
WalkResult (LogicalResult result) | |
Allow LogicalResult to interrupt the walk on failure. More... | |
WalkResult (Diagnostic &&) | |
Allow diagnostics to interrupt the walk. More... | |
WalkResult (InFlightDiagnostic &&) | |
bool | operator== (const WalkResult &rhs) const |
bool | wasInterrupted () const |
Returns true if the walk was interrupted. More... | |
bool | wasSkipped () const |
Returns true if the walk was skipped. More... | |
Static Public Member Functions | |
static WalkResult | interrupt () |
static WalkResult | advance () |
static WalkResult | skip () |
A utility result that is used to signal how to proceed with an ongoing walk:
Definition at line 34 of file Visitors.h.
|
inline |
Definition at line 38 of file Visitors.h.
Referenced by mlir::detail::walk().
|
inline |
Allow LogicalResult to interrupt the walk on failure.
Definition at line 41 of file Visitors.h.
|
inline |
Allow diagnostics to interrupt the walk.
Definition at line 45 of file Visitors.h.
|
inline |
Definition at line 46 of file Visitors.h.
|
inlinestatic |
Definition at line 51 of file Visitors.h.
Referenced by areInnerBoundsInvariant(), assertDestinationPassingStyle(), canBeHoisted(), checkAliasInfoConsistency(), checkAndUpdateCapabilityRequirements(), collectLocationsFromLoc(), computeMemRefRankReductionMask(), convertToLaunchFuncOp(), mlir::bufferization::createAllocDeallocOps(), mlir::bufferization::deallocateBuffers(), mlir::bufferization::eliminateAllocTensors(), equivalenceAnalysis(), funcsToCoroutines(), mlir::bufferization::OneShotAnalysisState::gatherUndefinedTensorUses(), mlir::bufferization::OneShotAnalysisState::gatherYieldedTensors(), getFileLineColLoc(), getLastDependentOpInRange(), getLocationFromLoc(), mlir::getLoopNestStats(), getMemoryFootprintBytes(), getSymbolUsesImpl(), hasNonAffineUsersOnThePath(), haveNoReadsAfterWriteExceptSameIndex(), hoistAffineIfOp(), mlir::linalg::hoistRedundantVectorTransfers(), mlir::linalg::hoistRedundantVectorTransfersOnTensor(), interruptIfValidLocation(), mlir::isLoopMemoryParallel(), isMemRefNormalizable(), AllocaScopeInliner::matchAndRewrite(), AllocaScopeHoister::matchAndRewrite(), mlir::bufferization::OneShotAnalysisState::OneShotAnalysisState(), GpuAsyncRegionPass::ThreadTokenCallback::operator()(), printOperation(), replaceAllSymbolUsesImpl(), mlir::sortTopologically(), symbolKnownUseEmptyImpl(), mlir::LLVM::detail::DebugTranslation::translate(), validateSupportedControlFlow(), vectorizeLoopNest(), verifyConstantType(), verifyResultTypesAreInferrable(), mlir::detail::verifySymbolTable(), mlir::LocationAttr::walk(), mlir::detail::walk(), mlir::Region::walk(), walkReferenceCountedValues(), walkSymbolRefs(), walkSymbolTable(), and walkSymbolUses().
|
inlinestatic |
Definition at line 50 of file Visitors.h.
Referenced by areInnerBoundsInvariant(), canBeHoisted(), checkAliasInfoConsistency(), checkAndUpdateCapabilityRequirements(), computeMemRefRankReductionMask(), convertOmpReductionOp(), mlir::bufferization::createAllocDeallocOps(), mlir::bufferization::deallocateBuffers(), findAllocaInsertPoint(), funcsToCoroutines(), getLastDependentOpInRange(), getLocationFromLoc(), mlir::getLoopNestStats(), hasNestedParallelOp(), hasNonAffineUsersOnThePath(), haveNoReadsAfterWriteExceptSameIndex(), hoistAffineIfOp(), mlir::linalg::hoistRedundantVectorTransfers(), mlir::linalg::hoistRedundantVectorTransfersOnTensor(), interruptIfValidLocation(), isInnermostAffineForOp(), mlir::isLoopMemoryParallel(), isMemRefNormalizable(), AllocaScopeInliner::matchAndRewrite(), GpuAsyncRegionPass::ThreadTokenCallback::operator()(), mlir::sortTopologically(), mlir::LLVM::detail::DebugTranslation::translate(), vectorizeLoopNest(), verifyResultTypesAreInferrable(), mlir::LocationAttr::walk(), mlir::detail::walk(), mlir::Region::walk(), walkReferenceCountedValues(), walkSymbolRefs(), and walkSymbolUses().
|
inline |
Definition at line 48 of file Visitors.h.
|
inlinestatic |
Definition at line 52 of file Visitors.h.
Referenced by mlir::bufferization::createAllocDeallocOps(), mlir::bufferization::eliminateAllocTensors(), equivalenceAnalysis(), mlir::bufferization::OneShotAnalysisState::gatherUndefinedTensorUses(), AllocaScopeInliner::matchAndRewrite(), AllocaScopeHoister::matchAndRewrite(), and mlir::bufferization::OneShotAnalysisState::OneShotAnalysisState().
|
inline |
Returns true if the walk was interrupted.
Definition at line 55 of file Visitors.h.
Referenced by checkAliasInfoConsistency(), checkAndUpdateCapabilityRequirements(), mlir::bufferization::createAllocDeallocOps(), mlir::bufferization::deallocateBuffers(), mlir::bufferization::eliminateAllocTensors(), findAllocaInsertPoint(), printOperation(), mlir::sortTopologically(), mlir::LLVM::ModuleTranslation::stackWalk(), verifyResultTypesAreInferrable(), mlir::detail::walk(), walkReferenceCountedValues(), and walkSymbolRefs().
|
inline |
Returns true if the walk was skipped.
Definition at line 58 of file Visitors.h.
Referenced by validateSupportedControlFlow(), and mlir::detail::walk().