This change adds op to support printf instruction from OpenCL extensions set.
This op helps writing out debug details from SPIRV kernel in a given format.
Differential D151731
[MLIR] Add printf op from SPIRV OpenCL extension set spec drprajap on May 30 2023, 9:43 AM. Authored by
Details This change adds op to support printf instruction from OpenCL extensions set. This op helps writing out debug details from SPIRV kernel in a given format.
Diff Detail
Event Timeline
Comment Actions Thanks for reviewing! Addressed those nits. I do not have merge access, could you please help merge this change? Comment Actions Landed in https://reviews.llvm.org/rG8939b5f5d2f30186a72f4ad44480ee9978663998. I changed the commit title and fixed blankspace in the commit message to adhere to MLIR/SPIRV conventions. |
IIRC Pure implies (1) no memory effects and (2) speculability. Are we sure that this is this the case with printf? Alternatively, would it make sense to remove this trait from the base class for all misc ops or to remove this class all together since it has a single use right now?