EXLA.CustomCall.Spec.attributes is emitted only as stablehlo.custom_call's opaque backend_config. Consequently, an external layout-sensitive, sharded custom call cannot express compiler-visible metadata such as operand_layouts, result_layouts, or an sdy.sharding_rule.
Would EXLA accept a generic way for Spec to attach validated top-level attributes to the emitted stablehlo.custom_call? This would keep native targets in external dependencies while allowing XLA layout assignment and Shardy to reason about them.
EXLA.CustomCall.Spec.attributesis emitted only asstablehlo.custom_call's opaquebackend_config. Consequently, an external layout-sensitive, sharded custom call cannot express compiler-visible metadata such asoperand_layouts,result_layouts, or ansdy.sharding_rule.Would EXLA accept a generic way for
Specto attach validated top-level attributes to the emittedstablehlo.custom_call? This would keep native targets in external dependencies while allowing XLA layout assignment and Shardy to reason about them.