MLIR
20.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=Advance) | |
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 33 of file Visitors.h.
|
inline |
Definition at line 37 of file Visitors.h.
|
inline |
Allow LogicalResult to interrupt the walk on failure.
Definition at line 40 of file Visitors.h.
|
inline |
Allow diagnostics to interrupt the walk.
Definition at line 44 of file Visitors.h.
|
inline |
Definition at line 45 of file Visitors.h.
|
inlinestatic |
Definition at line 51 of file Visitors.h.
Referenced by mlir::detail::AttrTypeReplacerBase< Concrete >::addReplacement(), mlir::AttrTypeWalker::addWalk(), areInnerBoundsInvariant(), canBeHoisted(), checkTransformationPreconditions(), collectLocationsFromLoc(), mlir::OperationConverter::convertOperations(), mlir::bufferization::deallocateBuffers(), mlir::LocationAttr::findInstanceOf(), findPayloadRoot(), mlir::transform::gpu::findTopLevelForallOp(), mlir::transform::detail::findTransformEntryPoint(), mlir::bufferization::OneShotAnalysisState::gatherUndefinedTensorUses(), getEffectsAfter(), getEffectsBefore(), getFuncOpsOrderedByCalls(), getLastDependentOpInRange(), getLocationFromLoc(), mlir::affine::getLoopNestStats(), getMemoryFootprintBytes(), getSingleOpOfType(), getSymbolUsesImpl(), handleLoopAnnotations(), hasNonAffineUsersOnPath(), haveNoReadsAfterWriteExceptSameIndex(), hoistAffineIfOp(), mlir::linalg::hoistRedundantVectorBroadcasts(), mlir::linalg::hoistRedundantVectorTransfers(), interruptIfValidLocation(), mlir::affine::isLoopMemoryParallel(), isNormalizedMemRefDynamicDim(), isOpReady(), mlir::irdl::loadDialects(), loadOperation(), mlir::transform::gpu::mapNestedForallToThreadsImpl(), AllocaScopeInliner::matchAndRewrite(), GpuAsyncRegionPass::ThreadTokenCallback::operator()(), printFunctionBody(), replaceAllSymbolUsesImpl(), replaceElementImpl(), rewriteAffineOpAfterPeeling(), mlir::LLVM::ModuleTranslation::stackWalk(), symbolKnownUseEmptyImpl(), unwrap(), updateReturnOps(), validateSupportedControlFlow(), mlir::detail::verifySymbolTable(), mlir::Block::walk(), mlir::Region::walk(), mlir::detail::walk(), walkReferenceCountedValues(), walkSymbolTable(), and walkSymbolUses().
|
inlinestatic |
Definition at line 50 of file Visitors.h.
Referenced by areInnerBoundsInvariant(), canBeHoisted(), checkTransformationPreconditions(), mlir::bufferization::deallocateBuffers(), findAllocaInsertPoint(), mlir::LocationAttr::findInstanceOf(), findPayloadRoot(), mlir::transform::gpu::findTopLevelForallOp(), mlir::transform::detail::findTransformEntryPoint(), getEffectsAfter(), getEffectsBefore(), getLastDependentOpInRange(), getLocationFromLoc(), mlir::affine::getLoopNestStats(), getSingleOpOfType(), hasNestedParallelOp(), haveNoReadsAfterWriteExceptSameIndex(), hoistAffineIfOp(), mlir::linalg::hoistRedundantVectorBroadcasts(), mlir::linalg::hoistRedundantVectorTransfers(), interruptIfValidLocation(), isInnermostAffineForOp(), mlir::affine::isLoopMemoryParallel(), isNormalizedMemRefDynamicDim(), isOpReady(), mlir::irdl::loadDialects(), loadOperation(), mlir::transform::gpu::mapNestedForallToThreadsImpl(), AllocaScopeInliner::matchAndRewrite(), GpuAsyncRegionPass::ThreadTokenCallback::operator()(), unwrap(), mlir::Block::walk(), mlir::Region::walk(), mlir::detail::walk(), mlir::AffineExprVisitor< SubClass, RetTy >::walkPostOrder(), walkReferenceCountedValues(), walkSymbolRefs(), and walkSymbolUses().
|
inline |
Definition at line 48 of file Visitors.h.
|
inline |
Definition at line 47 of file Visitors.h.
|
inlinestatic |
Definition at line 52 of file Visitors.h.
Referenced by mlir::OperationConverter::convertOperations(), mlir::bufferization::OneShotAnalysisState::gatherUndefinedTensorUses(), getFuncOpsOrderedByCalls(), mlir::transform::gpu::mapNestedForallToThreadsImpl(), AllocaScopeInliner::matchAndRewrite(), printFunctionBody(), remapInlinedLocations(), replaceAllSymbolUsesImpl(), mlir::LLVM::ModuleTranslation::stackWalk(), unwrap(), mlir::LocationAttr::walk(), and walkSymbolRefs().
|
inline |
Returns true if the walk was interrupted.
Definition at line 55 of file Visitors.h.
Referenced by checkTransformationPreconditions(), mlir::bufferization::deallocateBuffers(), findAllocaInsertPoint(), findPayloadRoot(), getFuncOpsOrderedByCalls(), isOpReady(), mlir::irdl::loadDialects(), mlir::transform::gpu::mapNestedForallToThreadsImpl(), printFunctionBody(), replaceElementImpl(), mlir::LLVM::ModuleTranslation::stackWalk(), mlir::detail::walk(), and walkReferenceCountedValues().
|
inline |
Returns true if the walk was skipped.
Definition at line 58 of file Visitors.h.
Referenced by replaceElementImpl(), validateSupportedControlFlow(), and mlir::detail::walk().