[PATCH] D112410: [SPIR-V] Add a toolchain for SPIR-V in clang

Henry Linjamäki via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Dec 16 05:25:31 PST 2021


linjamaki added a comment.

If I understand correctly, the default optimization level is `-O2` for the OpenCL and OpenCL++ language mode (according to CompilerInvocation.cpp:getOptimizationLevel()). Since higher than `-O0` may not work with the translator, should the SPIR-V tool chain override this default and set it to -O0 (unless a user passes some -O option)?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112410/new/

https://reviews.llvm.org/D112410



More information about the cfe-commits mailing list