52class StructType :
public ::mlir::Type::TypeBase<StructType, ::mlir::Type, detail::StructTypeStorage> {
58 ::mlir::FailureOr<SymbolLookupResult<StructDefOp>>
getDefinition
59 (::mlir::SymbolTableCollection &symbolTable, ::mlir::Operation *op,
bool reportMissing =
true)
const;
62 ::mlir::LogicalResult
verifySymbolRef(::mlir::SymbolTableCollection &symbolTable, ::mlir::Operation *op);
66 mlir::LogicalResult
hasColumns(mlir::SymbolTableCollection &symbolTable, mlir::Operation *op)
const;
67 static constexpr ::llvm::StringLiteral
name =
"struct.type";
68 static constexpr ::llvm::StringLiteral
dialectName =
"struct";
69 using Base::getChecked;
71 static StructType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::SymbolRefAttr structName);
72 static StructType get(::mlir::SymbolRefAttr structName, ::mlir::ArrayAttr params);
73 static StructType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::SymbolRefAttr structName, ::mlir::ArrayAttr params);
74 static StructType get(::mlir::SymbolRefAttr structName, ::llvm::ArrayRef<::mlir::Attribute> paramsRef);
75 static StructType getChecked(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::SymbolRefAttr structName, ::llvm::ArrayRef<::mlir::Attribute> paramsRef);
76 static ::llvm::LogicalResult
verify(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::SymbolRefAttr nameRef, ::mlir::ArrayAttr params);
77 static ::llvm::LogicalResult
verifyInvariants(::llvm::function_ref<::mlir::InFlightDiagnostic()> emitError, ::mlir::SymbolRefAttr nameRef, ::mlir::ArrayAttr params);
82 static ::mlir::Type
parse(::mlir::AsmParser &odsParser);
83 void print(::mlir::AsmPrinter &odsPrinter)
const;
::mlir::FailureOr< SymbolLookupResult< StructDefOp > > getDefinition(::mlir::SymbolTableCollection &symbolTable, ::mlir::Operation *op, bool reportMissing=true) const
Gets the struct op that defines this struct.