[llvm] [SPIRV] Change how to detect OpenCL/Vulkan Env and update tests accordingly. (PR #129689)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 2 08:12:06 PDT 2025


================
@@ -281,14 +281,14 @@ getExecutionModel(const SPIRVSubtarget &STI, const Function &F) {
   auto attribute = F.getFnAttribute("hlsl.shader");
   if (!attribute.isValid()) {
     report_fatal_error(
-        "This entry point lacks mandatory hlsl.shader attribute.");
+        "This entry point lacks mandatory hlsl.shader attribute.", false);
   }
 
   const auto value = attribute.getValueAsString();
   if (value == "compute")
     return SPIRV::ExecutionModel::GLCompute;
 
-  report_fatal_error("This HLSL entry point is not supported by this backend.");
----------------
Keenuts wrote:

unrelated no?

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


More information about the llvm-commits mailing list