Make passes converting ops from other dialects to spirv OperationPass, so that downstream compiler could put them in a proper nested pass manager to lower device code only.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Awesome, thanks!
mlir/include/mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h | ||
---|---|---|
16 ↗ | (On Diff #451521) | This is not for SPIR-V. Could you split it out as a separate patch? Thanks! |
mlir/include/mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h | ||
---|---|---|
16 ↗ | (On Diff #451521) | This include pulls in the declaration for OperationPass<> used below. |
mlir/include/mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h | ||
---|---|---|
16 ↗ | (On Diff #451521) | Oh, I can use fw declaration. |
mlir/include/mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h | ||
---|---|---|
16 ↗ | (On Diff #451521) | Sorry, the comment is misplaced. This is actually for L32, which is createConvertControlFlowToLLVMPass(). |