#include "mlir/Dialect/EmitC/IR/EmitC.h"
#include "mlir/Dialect/EmitC/IR/EmitCTraits.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/BuiltinAttributes.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/IR/IRMapping.h"
#include "mlir/IR/Types.h"
#include "mlir/Interfaces/FunctionImplementation.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/TypeSwitch.h"
#include "llvm/Support/Casting.h"
#include "mlir/Dialect/EmitC/IR/EmitCDialect.cpp.inc"
#include "mlir/Dialect/EmitC/IR/EmitC.cpp.inc"
#include "mlir/Dialect/EmitC/IR/EmitCTypes.cpp.inc"
#include "mlir/Dialect/EmitC/IR/EmitCAttributes.cpp.inc"
#include "mlir/Dialect/EmitC/IR/EmitCEnums.cpp.inc"
Go to the source code of this file.
|
static LogicalResult | verifyInitializationAttribute (Operation *op, Attribute value) |
| Check that the type of the initial value is compatible with the operations result type. More...
|
|
static void | printEmitCGlobalOpTypeAndInitialValue (OpAsmPrinter &p, GlobalOp op, TypeAttr type, Attribute initialValue) |
|
static Type | getInitializerTypeForGlobal (Type type) |
|
static ParseResult | parseEmitCGlobalOpTypeAndInitialValue (OpAsmParser &parser, TypeAttr &typeAttr, Attribute &initialValue) |
|
static ParseResult | parseSwitchCases (OpAsmParser &parser, DenseI64ArrayAttr &cases, SmallVectorImpl< std::unique_ptr< Region >> &caseRegions) |
| Parse the case regions and values. More...
|
|
static void | printSwitchCases (OpAsmPrinter &p, Operation *op, DenseI64ArrayAttr cases, RegionRange caseRegions) |
| Print the case regions and values. More...
|
|
static LogicalResult | verifyRegion (emitc::SwitchOp op, Region ®ion, const Twine &name) |
|
◆ GET_ATTRDEF_CLASSES
#define GET_ATTRDEF_CLASSES |
◆ GET_ATTRDEF_LIST
◆ GET_OP_CLASSES
◆ GET_OP_LIST
◆ GET_TYPEDEF_CLASSES
#define GET_TYPEDEF_CLASSES |
◆ GET_TYPEDEF_LIST
◆ getInitializerTypeForGlobal()
static Type getInitializerTypeForGlobal |
( |
Type |
type | ) |
|
|
static |
◆ parseEmitCGlobalOpTypeAndInitialValue()
static ParseResult parseEmitCGlobalOpTypeAndInitialValue |
( |
OpAsmParser & |
parser, |
|
|
TypeAttr & |
typeAttr, |
|
|
Attribute & |
initialValue |
|
) |
| |
|
static |
◆ parseSwitchCases()
◆ printEmitCGlobalOpTypeAndInitialValue()
static void printEmitCGlobalOpTypeAndInitialValue |
( |
OpAsmPrinter & |
p, |
|
|
GlobalOp |
op, |
|
|
TypeAttr |
type, |
|
|
Attribute |
initialValue |
|
) |
| |
|
static |
◆ printSwitchCases()
Print the case regions and values.
Definition at line 1182 of file EmitC.cpp.
◆ verifyInitializationAttribute()
Check that the type of the initial value is compatible with the operations result type.
Definition at line 141 of file EmitC.cpp.
◆ verifyRegion()
static LogicalResult verifyRegion |
( |
emitc::SwitchOp |
op, |
|
|
Region & |
region, |
|
|
const Twine & |
name |
|
) |
| |
|
static |