This allows for using a different type when accessing a parameter than the
one used for storage. This allows for returning parameters by reference,
enables using more optimized/convient reference results, and more.
Depends On D108589
| Paths 
 |  Differential  D108593  
[mlir][AttrTypeGen] Add support for specifying a "accessor" type of a parameter ClosedPublic Authored by rriddle on Aug 23 2021, 3:43 PM. 
Details Summary This allows for using a different type when accessing a parameter than the Depends On D108589 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Aug 23 2021, 5:38 PM Closed by commit rGc8d9e1ce43a7: [mlir][AttrTypeGen] Add support for specifying a "accessor" type of a parameter (authored by rriddle).  ·  Explain WhyAug 25 2021, 2:38 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 368226 mlir/include/mlir/IR/OpBase.td
 mlir/include/mlir/TableGen/AttrOrTypeDef.h
 mlir/lib/TableGen/AttrOrTypeDef.cpp
 mlir/test/mlir-tblgen/attrdefs.td
 mlir/tools/mlir-tblgen/AttrOrTypeDefGen.cpp
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||