MLIR
20.0.0git
|
#include "mlir/Conversion/ControlFlowToSPIRV/ControlFlowToSPIRV.h"
#include "../SPIRVCommon/Pattern.h"
#include "mlir/Dialect/ControlFlow/IR/ControlFlowOps.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVDialect.h"
#include "mlir/Dialect/SPIRV/IR/SPIRVOps.h"
#include "mlir/Dialect/SPIRV/Transforms/SPIRVConversion.h"
#include "mlir/Dialect/SPIRV/Utils/LayoutUtils.h"
#include "mlir/IR/AffineMap.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/Transforms/DialectConversion.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/FormatVariadic.h"
Go to the source code of this file.
Macros | |
#define | DEBUG_TYPE "cf-to-spirv-pattern" |
Functions | |
static LogicalResult | legalizeBlockArguments (Block &block, Operation *op, PatternRewriter &rewriter, const TypeConverter &converter) |
Legailze target block arguments. More... | |
#define DEBUG_TYPE "cf-to-spirv-pattern" |
Definition at line 26 of file ControlFlowToSPIRV.cpp.
|
static |
Legailze target block arguments.
Definition at line 31 of file ControlFlowToSPIRV.cpp.
References mlir::OpBuilder::atBlockBegin(), mlir::TypeConverter::convertType(), mlir::Block::eraseArgument(), mlir::BlockArgument::getArgNumber(), mlir::Block::getArgument(), mlir::Operation::getLoc(), mlir::BlockArgument::getLoc(), mlir::Block::getNumArguments(), mlir::Value::getType(), mlir::Block::insertArgument(), mlir::TypeConverter::isLegal(), mlir::TypeConverter::materializeSourceConversion(), mlir::RewriterBase::notifyMatchFailure(), and mlir::Value::replaceAllUsesWith().