MLIR  20.0.0git
Namespaces | Functions
ControlFlowOps.cpp File Reference
#include "mlir/Dialect/SPIRV/IR/SPIRVEnums.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVOps.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVTypes.h"
#include "mlir/Interfaces/CallInterfaces.h"
#include "SPIRVOpUtils.h"
#include "SPIRVParsingUtils.h"

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 
 mlir::spirv
 

Functions

template<typename EnumAttrClass , typename EnumClass >
static ParseResult mlir::spirv::parseControlAttribute (OpAsmParser &parser, OperationState &state, StringRef attrName=spirv::attributeName< EnumClass >())
 Parses Function, Selection and Loop control attributes. More...
 
static bool mlir::spirv::hasOneBranchOpTo (Block &srcBlock, Block &dstBlock)
 Returns true if the given srcBlock contains only one spirv.Branch to the given dstBlock. More...
 
static bool mlir::spirv::isMergeBlock (Block &block)
 Returns true if the given block only contains one spirv.mlir.merge op. More...