Issue |
157945
|
Summary |
[mlir][rocdl] Add IR examples to op definitions
|
Labels |
mlir
|
Assignees |
|
Reporter |
kuhar
|
The [ROCDL dialect documentation](https://mlir.llvm.org/docs/Dialects/ROCDLDialect/) contains the syntax of each op but no IR examples. These examples would be very useful to improve the user experience; other dialects like [arith](https://mlir.llvm.org/docs/Dialects/ArithOps/) or [SPIR-V](https://mlir.llvm.org/docs/Dialects/SPIR-V/) contain them.
The examples are defined within tablegen definition of each op, for example:
https://github.com/llvm/llvm-project/blob/3af202abf88882e05d6c1e9aa8d7a471c2af9d64/mlir/include/mlir/Dialect/Arith/IR/ArithOps.td#L234-L249
and can be extracted from existing rocdl tests: https://github.com/llvm/llvm-project/blob/main/mlir/test/Dialect/LLVMIR/rocdl.mlir
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs