Remove the redundant parenthesis that are used for none of the other operation
formats.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
1683 | Do you know why this is this not using the declarative assembly format? |
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
1683 | It seems the assembly format cannot infer the operand types from the the result type. |
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
1683 | 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 | ||
---|---|---|
1683 | Not sure how that can help here. |
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
1683 | TypesMatchWith can also iterate over a range of types. |
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
1683 | Nice! Now this mini-change evolved into a nice simplification :) |
Do you know why this is this not using the declarative assembly format?