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
But we don't have a way of updating contiguous elements of an array (ie, array_slice_update). This is a hole in our IR semantics.
Possible definition of new op:
result = array_update_slice(array, slice, indices=[idx_{0}, ... , idx_{N-1}], assumed_in_bounds=<true|false>)
Where:
array: array of at least N dimensions with element type T
slice: array of type T[K]
index_{i}: arbitrary bits types
result: same type as array
Returns a copy of the input array with the K elements starting at the given indices replaced with the elements of slice. Elements of the slice to update which fall out of bounds of array are ignored.
The text was updated successfully, but these errors were encountered:
For array types in the IR we the following ops:
But we don't have a way of updating contiguous elements of an array (ie, array_slice_update). This is a hole in our IR semantics.
Possible definition of new op:
Where:
array
: array of at least N dimensions with element type Tslice
: array of type T[K]index_{i}
: arbitrary bits typesresult
: same type asarray
Returns a copy of the input array with the K elements starting at the given indices replaced with the elements of
slice
. Elements of the slice to update which fall out of bounds ofarray
are ignored.The text was updated successfully, but these errors were encountered: