You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improves a few aspects of the old CIR GEP equivalent:
* Generalize the name to GetMemberOp, since it can be used for
unions, classes, structs, and others.
* Add custom assembly format to improve readability.
* Add a new CIR dialect operation to represent the operation.
* Remove redundancy from arguments names (e.g. "member_index" to just
"index") for terseness.
* Add verifier to check if:
* The index is within bounds.
* The type is a record (has members to be accessed).
* The result type matches the type of the member.
* Use CIRGenBuilder when building GetMemberOps.
* Also add some getter wrappers.
ghstack-source-id: f28916e
Pull Request resolved: #228
0 commit comments