braintrace.register_primitive_spec

braintrace.register_primitive_spec#

braintrace.register_primitive_spec(spec)[source]#

Create an ETPPrimitive from spec and install every rule.

Records spec in ETP_PRIMITIVE_SPECS so the compiler can query the primitive’s invar layout without hard-coding identity checks.

Return type:

ETPPrimitive