Skip to content

feat(stablehlo): add MLIR type system and SSA naming#65

Merged
dndungu merged 1 commit intomainfrom
p1-mlir-types
Apr 4, 2026
Merged

feat(stablehlo): add MLIR type system and SSA naming#65
dndungu merged 1 commit intomainfrom
p1-mlir-types

Conversation

@dndungu
Copy link
Copy Markdown
Contributor

@dndungu dndungu commented Apr 4, 2026

Phase 1 PJRT pipeline: MLIR type system foundation.

Implement internal/stablehlo/types.go:
- Go-to-MLIR dtype mapping (float32->f32, float16->f16, bfloat16->bf16, etc.)
- SSA value naming with monotonic counter (%v0, %v1, %v2...)
- Tensor type formatting: FormatTensorType([]int{2,3,4}, "f32") -> "tensor<2x3x4xf32>"
- FormatScalarType for bare dtype strings
- StableHLO op name constants for all supported operations

Part of E61.1 (PJRT StableHLO emitter infrastructure).
@dndungu dndungu merged commit c8db036 into main Apr 4, 2026
1 check failed
@dndungu dndungu deleted the p1-mlir-types branch April 4, 2026 01:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant