Remove the redundant parenthesis that are used for none of the other operation
formats.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
|---|---|---|
| 1743 | Do you know why this is this not using the declarative assembly format? | |
| mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
|---|---|---|
| 1743 | It seems the assembly format cannot infer the operand types from the the result type. | |
| mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
|---|---|---|
| 1743 | That is a very common use case, you just need to add the right traits. In this case, TypesMatchWith would do it. | |
| mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
|---|---|---|
| 1743 | Not sure how that can help here.  | |
| mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
|---|---|---|
| 1743 | TypesMatchWith can also iterate over a range of types. | |
| mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
|---|---|---|
| 1743 | Nice! Now this mini-change evolved into a nice simplification :) | |
Do you know why this is this not using the declarative assembly format?