-
Notifications
You must be signed in to change notification settings - Fork 177
Closed
Description
In CIRTypes.td. Struct Type is defined. And it's parameters is shown below:
let parameters = (ins
ArrayRefParameter<"mlir::Type", "members">:$members,
"mlir::StringAttr":$typeName,
"bool":$body,
"bool":$packed,
"std::optional<::mlir::cir::ASTRecordDeclAttr>":$ast
);You used a Array of mlir::Type(ArrayRefParameter<"mlir::Type", "members">) to figure out the content in a struct type.
But how do I represent Recursive Reference using CIR_StructType? The Recursive Reference will lowring to llvm dialect like code below:
!llvm.struct<"a", ptr<struct<"a">>> // example of recursive referenceMetadata
Metadata
Assignees
Labels
No labels