Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I like this updated syntax. @ftynse WDYT?
| mlir/include/mlir/Dialect/GPU/GPUOps.td | ||
|---|---|---|
| 406 | The custom<Space> is ugly but I see its motivation. Maybe file a bug to add support for explicit whitespace to the assembly format? | |
| mlir/lib/Dialect/GPU/IR/GPUDialect.cpp | ||
| 505 | I'd prefer to expose the parsing of just the argument list instead of parsing a result type and then failing. | |
| mlir/include/mlir/Dialect/GPU/GPUOps.td | ||
|---|---|---|
| 406 | Alternatively I could custom-parse/print the grid in or even with the operands. That would look less ugly, but it's a little less expressive. | |
| mlir/include/mlir/Dialect/GPU/GPUOps.td | ||
|---|---|---|
| 406 | Switched to space literal. | |
Thanks. Just some nits.
| mlir/include/mlir/Dialect/GPU/GPUOps.td | ||
|---|---|---|
| 358 | Can you update the example, too? | |
| mlir/include/mlir/IR/FunctionImplementation.h | ||
| 61 | You could add an option here whether it may have attributes, like allowAttributes or something and then parsing would just fail with a parse error. | |
| mlir/lib/Dialect/GPU/IR/GPUDialect.cpp | ||
| 487 | Nit: This could be in the assemblyFormat | |
Apply reviewer comments.
| mlir/lib/Dialect/GPU/IR/GPUDialect.cpp | ||
|---|---|---|
| 487 | The args(...) is optional, and I don't think custom<> inside an optional group is supported. I left it as is. | |
Are we sure this isn't necessary anymore?