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
Event Timeline
Comment Actions
Awesome, thanks!
mlir/include/mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h | ||
---|---|---|
16 | This is not for SPIR-V. Could you split it out as a separate patch? Thanks! |
mlir/include/mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h | ||
---|---|---|
16 | This include pulls in the declaration for OperationPass<> used below. |
mlir/include/mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h | ||
---|---|---|
16 | Oh, I can use fw declaration. |
mlir/include/mlir/Conversion/ControlFlowToLLVM/ControlFlowToLLVM.h | ||
---|---|---|
16 | Sorry, the comment is misplaced. This is actually for L32, which is createConvertControlFlowToLLVMPass(). |
This is not for SPIR-V. Could you split it out as a separate patch? Thanks!