Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.

Commit f427e47

Browse files
rsudermantensorflower-gardener
authored andcommitted
Updated StructAttr to use the struct name for StorageType and ReturnType.
PiperOrigin-RevId: 267266687
1 parent a3ba537 commit f427e47

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

include/mlir/IR/OpBase.td

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,12 @@ class StructAttr<string name, Dialect dialect,
945945
// Name for this StructAttr.
946946
string className = name;
947947

948+
// Return type should match the name of the structure.
949+
let returnType = name;
950+
951+
// Storage type should match the name of the structure.
952+
let storageType = name;
953+
948954
// The dialect this StructAttr belongs to.
949955
Dialect structDialect = dialect;
950956

0 commit comments

Comments
 (0)