braintrace.register_primitive_spec#
- braintrace.register_primitive_spec(spec)[source]#
Create an
ETPPrimitivefrom spec and install every rule.Records spec in
ETP_PRIMITIVE_SPECSso the compiler can query the primitive’s invar layout without hard-coding identity checks.- Return type: