Details
- Reviewers
herhut flaub mehdi_amini ftynse
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Thanks. This looks great to me. Has there been consensus on https://llvm.discourse.group/t/rfc-add-std-atomic-rmw-op/489 yet? There were no more replies but it seems nobody is opposed either.
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td | ||
---|---|---|
507 | x -> %x | |
mlir/test/IR/invalid-ops.mlir | ||
1171 | Could you add a test for the case where the memref and result types disagree? |
I implemented exactly what we agreed to with flaub@. There were no additional replies after that.
LGTM
mlir/lib/Dialect/StandardOps/IR/Ops.cpp | ||
---|---|---|
511 | Could we add a check that all the ops in the region are side-effect free? |
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td | ||
---|---|---|
536 | Do you have a new trait in mind or should this be supported by the SingleBlockImplicitTerminator trait? The body builder makes only sense if there is a single region. These are somewhat widespread already. I'd rather have it as a separate cleanup. |
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td | ||
---|---|---|
536 | Adding it to SingleBlockImplicitTerminator looks fine to me |
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td | ||
---|---|---|
536 | Will do. |
We should mention that no side effecting operation is allowed in the region.