CIRCT 24.0.0git
Loading...
Searching...
No Matches
RTGOps.cpp File Reference
#include "circt/Dialect/RTG/IR/RTGOps.h"
#include "circt/Dialect/RTG/IR/RTGAttributes.h"
#include "circt/Support/ParsingUtils.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/IR/Matchers.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/IR/SymbolTable.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/SmallString.h"
#include <limits>
#include <optional>
#include "circt/Dialect/RTG/IR/RTG.cpp.inc"
Include dependency graph for RTGOps.cpp:

Go to the source code of this file.

Macros

#define GET_OP_CLASSES

Functions

static LogicalResult verifyStructType (Operation *op, StructType type, StructDeclOp *declarationOut=nullptr)
static LogicalResult verifyVariantType (Operation *op, VariantType type, VariantDeclOp *declarationOut=nullptr)
static LogicalResult verifyStructFields (Operation *op, StructDeclOp declaration, TypeRange fieldTypes)
static LogicalResult verifyAggregateTypeUses (Operation *op, Type type, SymbolTableCollection &symbolTable)
static FailureOr< std::pair< VariantDeclOp, unsigned > > lookupVariantConstructor (Operation *op, VariantType type, StringRef name)
static LogicalResult verifyVariantCreateTypes (Operation *op, VariantType type, StringRef constructor, TypeRange payloadTypes)

Macro Definition Documentation

◆ GET_OP_CLASSES

#define GET_OP_CLASSES

Definition at line 2134 of file RTGOps.cpp.

Function Documentation

◆ lookupVariantConstructor()

FailureOr< std::pair< VariantDeclOp, unsigned > > lookupVariantConstructor ( Operation * op,
VariantType type,
StringRef name )
static

Definition at line 90 of file RTGOps.cpp.

References failure(), and verifyVariantType().

Referenced by verifyVariantCreateTypes().

◆ verifyAggregateTypeUses()

LogicalResult verifyAggregateTypeUses ( Operation * op,
Type type,
SymbolTableCollection & symbolTable )
static

Definition at line 74 of file RTGOps.cpp.

References failure(), and success().

◆ verifyStructFields()

LogicalResult verifyStructFields ( Operation * op,
StructDeclOp declaration,
TypeRange fieldTypes )
static

Definition at line 55 of file RTGOps.cpp.

References success().

◆ verifyStructType()

LogicalResult verifyStructType ( Operation * op,
StructType type,
StructDeclOp * declarationOut = nullptr )
static

Definition at line 30 of file RTGOps.cpp.

References success().

◆ verifyVariantCreateTypes()

LogicalResult verifyVariantCreateTypes ( Operation * op,
VariantType type,
StringRef constructor,
TypeRange payloadTypes )
static

Definition at line 103 of file RTGOps.cpp.

References failure(), lookupVariantConstructor(), and success().

◆ verifyVariantType()

LogicalResult verifyVariantType ( Operation * op,
VariantType type,
VariantDeclOp * declarationOut = nullptr )
static

Definition at line 43 of file RTGOps.cpp.

References success().

Referenced by lookupVariantConstructor().