When the IfOp returns values, it can easily be obtained from one of the Values.
However, when no values are returned, the information is lost.
This revision lets the caller specify a capture IfOp* to return the produced
IfOp.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
What's the use case?
mlir/lib/Dialect/SCF/EDSC/Builders.cpp | ||
---|---|---|
84 | Nit: I used auto here since the type is obvious from the context (create returns an instance of the created op) |
Comment Actions
I've been using this for some fast/slow path lowering of vector.transfer ops, a bunch of stacked revisions are necessary to get there.
Nit: I used auto here since the type is obvious from the context (create returns an instance of the created op)