MLIR
17.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 | 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.
|
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 52 of file Visitors.h.
Referenced by mlir::AttrTypeReplacer::addReplacement(), areInnerBoundsInvariant(), canBeHoisted(), collectLocationsFromLoc(), mlir::bufferization::deallocateBuffers(), mlir::bufferization::dropEquivalentBufferResults(), mlir::bufferization::eliminateEmptyTensors(), equivalenceAnalysis(), mlir::LocationAttr::findInstanceOf(), mlir::transform::gpu::findTopLevelForeachThreadOp(), mlir::bufferization::OneShotAnalysisState::gatherUndefinedTensorUses(), mlir::bufferization::OneShotAnalysisState::gatherYieldedTensors(), getFuncOpsOrderedByCalls(), getLastDependentOpInRange(), getLocationFromLoc(), mlir::getLoopNestStats(), getMemoryFootprintBytes(), getSingleOpOfType(), getSymbolUsesImpl(), hasNonAffineUsersOnThePath(), haveNoReadsAfterWriteExceptSameIndex(), hoistAffineIfOp(), mlir::linalg::hoistRedundantVectorTransfers(), mlir::linalg::hoistRedundantVectorTransfersOnTensor(), mlir::bufferization::insertTensorCopies(), interruptIfValidLocation(), mlir::isLoopMemoryParallel(), isOpReady(), mlir::transform::gpu::mapNestedForeachToThreadsImpl(), AllocaScopeInliner::matchAndRewrite(), AllocaScopeHoister::matchAndRewrite(), mlir::bufferization::OneShotAnalysisState::OneShotAnalysisState(), GpuAsyncRegionPass::ThreadTokenCallback::operator()(), printOperation(), replaceAllSymbolUsesImpl(), resolveUsesInRepetitiveRegions(), rewriteAffineOpAfterPeeling(), mlir::LLVM::ModuleTranslation::stackWalk(), symbolKnownUseEmptyImpl(), mlir::LLVM::detail::DebugTranslation::translate(), validateSupportedControlFlow(), vectorizeLoopNest(), mlir::detail::verifySymbolTable(), mlir::Block::walk(), mlir::Region::walk(), mlir::LocationAttr::walk(), mlir::detail::walk(), walkReferenceCountedValues(), walkSymbolRefs(), walkSymbolTable(), and walkSymbolUses().
|
inlinestatic |
Definition at line 51 of file Visitors.h.
Referenced by canBeHoisted(), convertOmpReductionOp(), mlir::bufferization::deallocateBuffers(), findAllocaInsertPoint(), mlir::LocationAttr::findInstanceOf(), mlir::transform::gpu::findTopLevelForeachThreadOp(), getLastDependentOpInRange(), getLocationFromLoc(), mlir::getLoopNestStats(), getSingleOpOfType(), hasNestedParallelOp(), hasNonAffineUsersOnThePath(), haveNoReadsAfterWriteExceptSameIndex(), hoistAffineIfOp(), mlir::linalg::hoistRedundantVectorTransfers(), mlir::linalg::hoistRedundantVectorTransfersOnTensor(), mlir::bufferization::insertTensorCopies(), interruptIfValidLocation(), isInnermostAffineForOp(), mlir::isLoopMemoryParallel(), isOpReady(), mlir::transform::gpu::mapNestedForeachToThreadsImpl(), AllocaScopeInliner::matchAndRewrite(), GpuAsyncRegionPass::ThreadTokenCallback::operator()(), mlir::LLVM::detail::DebugTranslation::translate(), vectorizeLoopNest(), mlir::Block::walk(), mlir::Region::walk(), mlir::LocationAttr::walk(), mlir::detail::walk(), walkReferenceCountedValues(), walkSymbolRefs(), and walkSymbolUses().
|
inline |
Definition at line 49 of file Visitors.h.
|
inline |
Definition at line 48 of file Visitors.h.
|
inlinestatic |
Definition at line 53 of file Visitors.h.
Referenced by mlir::bufferization::dropEquivalentBufferResults(), equivalenceAnalysis(), mlir::bufferization::OneShotAnalysisState::gatherUndefinedTensorUses(), mlir::bufferization::insertTensorCopies(), AllocaScopeInliner::matchAndRewrite(), AllocaScopeHoister::matchAndRewrite(), mlir::bufferization::OneShotAnalysisState::OneShotAnalysisState(), replaceAllSymbolUsesImpl(), and mlir::LLVM::ModuleTranslation::stackWalk().
|
inline |
Returns true if the walk was interrupted.
Definition at line 56 of file Visitors.h.
Referenced by mlir::bufferization::deallocateBuffers(), findAllocaInsertPoint(), isOpReady(), printOperation(), mlir::LLVM::ModuleTranslation::stackWalk(), mlir::detail::walk(), walkReferenceCountedValues(), and walkSymbolRefs().
|
inline |
Returns true if the walk was skipped.
Definition at line 59 of file Visitors.h.
Referenced by validateSupportedControlFlow(), and mlir::detail::walk().