@enigma.kernel bodies. All operations work on IRValue objects and are lowered to their Metal Shading Language equivalents.
Arithmetic
Standard Python operators work onIRValue objects and produce new IRValue nodes:
u32. Float literals become f32.
Float math intrinsics
Unary
Binary
Ternary
Integer math
Integer bit operations
Predicates
Comparisons
All comparisons return anIRValue of type b1 (boolean):
Selection
enigma.where
Ternary select — returns true_val when condition is true, false_val otherwise:
Vector operations
Constructors
Component access
Geometry
Simdgroup matrix operations
For 8×8 matrix multiply-accumulate on Apple Silicon:caps.supports_simdgroup_matrix to be True. See Device Capabilities.