index dialect
← Dialect reference
Scalar address-domain operations over index, offset, and explicit integer boundary casts. Index arithmetic uses mathematical values within the target's supported carriers. Overflow beyond those carriers has no defined numeric result and does not require a compile-time range proof or runtime check. Targets may use native arithmetic; folding and facts describe non-overflowing executions. Offset arithmetic wraps in its unsigned target carrier. Neither contract changes memory bounds or reference safety.
| Property |
Value |
| Bytecode dialect ID |
0x0f |
| Registered by default |
yes |
| Operations |
27 |
Operations
| Operation |
Summary |
index.add |
Address-domain addition. |
index.andi |
Bitwise AND over logical coordinate values. |
index.assume |
Identity with predicate constraints on index or offset results. |
index.cast |
Explicit integer conversion at an address boundary. |
index.cmp |
Address-domain comparison. |
index.constant |
Materialize a compile-time address-domain constant. |
index.constexpr |
Require an index or offset value to become exact during specialization. |
index.ctlzi |
Count leading zeros in a logical coordinate value. |
index.ctpopi |
Count set bits in a logical coordinate value. |
index.cttzi |
Count trailing zeros in a logical coordinate value. |
index.div |
Logical coordinate quotient for non-negative index values with a positive divisor. |
index.divrem |
Logical coordinate quotient and remainder computed together for non-negative index values with a positive divisor. |
index.duplicate |
Create another local owner of an index or offset value. |
index.madd |
Logical coordinate multiply-add: a*b + c. |
index.max |
Signed maximum of two logical coordinate values. |
index.min |
Signed minimum of two logical coordinate values. |
index.mul |
Logical coordinate multiplication. |
index.ori |
Bitwise OR over logical coordinate values. |
index.rem |
Logical coordinate remainder for non-negative index values with a positive divisor. |
index.rotli |
Left rotate over logical coordinate values, with the count reduced modulo the target coordinate-carrier width. |
index.rotri |
Right rotate over logical coordinate values, with the count reduced modulo the target coordinate-carrier width. |
index.scale |
Scale a logical coordinate by a physical byte stride to produce a physical byte offset. |
index.shli |
Left shift over logical coordinate values. |
index.shrsi |
Arithmetic right shift over logical coordinate values. |
index.shrui |
Logical right shift over logical coordinate values. |
index.sub |
Address-domain subtraction. |
index.xori |
Bitwise XOR over logical coordinate values. |