[clang] Add spirv-val compilation step when targeting SPIR-V (PR #188150)

Justin Bogner via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 3 12:25:16 PDT 2026


================
@@ -5431,11 +5393,9 @@ void Driver::BuildJobs(Compilation &C) const {
     unsigned NumOutputs = 0;
     unsigned NumIfsOutputs = 0;
     for (const Action *A : C.getActions()) {
-      // The actions below do not increase the number of outputs, when operating
-      // on DX containers.
-      if (A->getType() == types::TY_DX_CONTAINER &&
-          (A->getKind() == clang::driver::Action::BinaryAnalyzeJobClass ||
-           A->getKind() == clang::driver::Action::BinaryTranslatorJobClass))
+      // The actions below do not increase the number of outputs.
+      if (A->getKind() == clang::driver::Action::BinaryAnalyzeJobClass ||
+          A->getKind() == clang::driver::Action::BinaryTranslatorJobClass)
----------------
bogner wrote:

This seems correct, but it seems like it changes behaviour and I wonder about the old logic. Was this just being overly careful before?

https://github.com/llvm/llvm-project/pull/188150


More information about the cfe-commits mailing list