Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/include/mlir/Dialect/LoopOps/LoopOps.td | ||
---|---|---|
227 | Any reason for this refactoring ? I prefer to have results before uses to be consistent with tbl-gen'ed builders. Also, use TypeRange instead of ArrayRef. | |
235 | Is the condition here reversed ? If we built a void IfOp, the YieldOp is auto-inserted, else it is missing, and we insert at end of block. |
@nmostafa thank you!
mlir/include/mlir/Dialect/LoopOps/LoopOps.td | ||
---|---|---|
227 | It became a refactoring after I rebased. I had a similar patch last week to add a builder for IfOp with results, but I did not send it out on Friday. Today I sent it out and then after rebasing I noticed your patch. I do not really care about order of resultTypes args. I care only about loop.yield not being inserted for non-void ifops. | |
235 | thank you for noticing! |
LGTM. Thanks for fixing this !
mlir/include/mlir/Dialect/LoopOps/LoopOps.td | ||
---|---|---|
234 | nit: extra space after "?" @ line 240 as well. |
Any reason for this refactoring ? I prefer to have results before uses to be consistent with tbl-gen'ed builders. Also, use TypeRange instead of ArrayRef.