[llvm] [SPIR-V] Fix environment resolution causing legalization crash (PR #179052)
Viktoria Maximova via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 3 04:25:50 PST 2026
================
@@ -76,6 +74,11 @@ class SPIRVSubtarget : public SPIRVGenSubtargetInfo {
void initAvailableExtensions(
const std::set<SPIRV::Extension::Extension> &AllowedExtIds);
+ void initAvailableExtInstSets();
+
+ // If Env is Unknown, scan module for "hlsl.shader" attributes to resolve it.
+ // Must be called before any pass that depends on isShader()/isKernel().
----------------
vmaksimo wrote:
Nit: maybe we don't need implementation details in function description - just focus on the function goal (choose kernel or shader environment).
https://github.com/llvm/llvm-project/pull/179052
More information about the llvm-commits
mailing list