Skip to content

Adding vm.list type. - #2198

Closed
benvanik wants to merge 1 commit into
masterfrom
benvanik-vm-list
Closed

benvanik wants to merge 1 commit into
masterfrom
benvanik-vm-list

Conversation

@benvanik

@benvanik benvanik commented Jun 12, 2020 •

Copy link
Copy Markdown
Collaborator

This is implemented as a ref type that will be able to be passed to modules
via the VM ABI. Contents can be any primitive type or ref type (possibly
? for any). If a concrete ref type is given then all accesses will be
checked, and otherwise any ref type is allowed in the list. Primitive types
will be converted from their storage format (for example !vm.list<i8>) to
the form they are accessed in (i32).

@benvanik benvanik added enhancement ➕ New feature or request runtime Relating to the IREE runtime library labels Jun 12, 2020
@benvanik benvanik added this to the 2020Q2 Core milestone Jun 12, 2020
@benvanik
benvanik marked this pull request as ready for review June 12, 2020 04:12
@benvanik
benvanik requested a review from stellaraccident June 12, 2020 04:12
@benvanik
benvanik force-pushed the benvanik-vm-list branch 4 times, most recently from 5398253 to 0f3b205 Compare June 16, 2020 00:16
type.predicate>
]>, "list<" # type.description # ">"> {
// Set the builder call if the base type has a builder call.
string builderCall = !if(!empty(type.builderCall),

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TIL

Comment thread iree/compiler/Dialect/VM/IR/VMBase.td Resolved
This is implemented as a ref type that will be able to be passed to modules
via the VM ABI. Contents can be any primitive type or ref type (possibly
? for any). If a concrete ref type is given then all accesses will be
checked, and otherwise any ref type is allowed in the list. Primitive types
will be converted from their storage format (for example !vm.list<i8>) to
the form they are accessed in (i32).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement ➕ New feature or request runtime Relating to the IREE runtime library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants