diff options
| author | Twice <twice@apache.org> | 2026-02-24 10:34:58 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-24 10:34:58 +0800 |
| commit | 3b2c1db8709766e8c2252e9fb19fcff493869c16 (patch) | |
| tree | e4f891d61b726f061438ba1cf5c0eb7f108ab92b /libc/test/src/math/performance_testing | |
| parent | ccfd59a03efbbd9487252697dc57a9ac6b71a698 (diff) | |
| download | llvm-main.zip llvm-main.tar.gz llvm-main.tar.bz2 | |
In this PR, we added basic support of type definitions in Python-defined
dialects, including:
- IRDL codegen for type definitions
- Type builders like `MyType.get(..)` and type parameter accessors (e.g.
`my_type.param1`)
- Use Python-defined types in Python-defined oeprations
```python
class TestType(Dialect, name="ext_type"):
pass
class Array(TestType.Type, name="array"):
elem_type: IntegerType[32] | IntegerType[64]
length: IntegerAttr
class MakeArrayOp(TestType.Operation, name="make_array"):
arr: Result[Array]
class MakeArray3Op(TestType.Operation, name="make_array3"):
arr: Result[Array[IntegerType[32], IntegerAttr[IntegerType[32], 3]]]
```
Diffstat (limited to 'libc/test/src/math/performance_testing')
0 files changed, 0 insertions, 0 deletions
