Expand description
Definitions for index bounds checking.
Structs§
- Items returned by the
bounds_check_iter
iterator. - Policies for injecting bounds checks during code generation.
Enums§
- How should code generated by Naga do bounds checks?
- An index that may be statically known, or may need to be computed at runtime.
- The number of elements in an indexable type.
Functions§
- Determine whether
index
is statically known to be in bounds forbase
. - Returns an iterator of accesses within the chain of
Access
andAccessIndex
expressions starting fromchain
that may need to be bounds-checked at runtime. - Build a set of expressions used as indices, to cache in temporary variables when emitted.
- Returns all the types which we need out-of-bounds locals for; that is, all of the types which the code might attempt to get an out-of-bounds pointer to, in which case we yield a pointer to the out-of-bounds local of the correct type.