[clang] [HLSL] Default and Relaxed Availability Diagnostics (PR #92704)
Chris B via cfe-commits
cfe-commits at lists.llvm.org
Thu May 23 09:52:33 PDT 2024
================
@@ -1068,11 +1068,37 @@ static llvm::StringRef getPrettyEnviromentName(llvm::StringRef Environment) {
.Case("hull", "hull shader")
.Case("domain", "domain shader")
.Case("compute", "compute shader")
+ .Case("raygeneration", "ray generation shader")
+ .Case("intersection", "intersection shader")
+ .Case("anyhit", "anyhit shader")
+ .Case("closesthit", "closesthit shader")
+ .Case("miss", "miss shader")
+ .Case("callable", "callable shader")
.Case("mesh", "mesh shader")
.Case("amplification", "amplification shader")
.Case("library", "shader library")
.Default(Environment);
}
+static llvm::StringRef getEnvironmentString(llvm::Triple::EnvironmentType EnvironmentType) {
----------------
llvm-beanz wrote:
Do we need this function or should we use `Triple::getEnvironmentTypeName`? I think the only difference in output is "ray generation" vs "raygeneration", and I'm pretty sure that based on how this is used "ray generation" is a bug.
https://github.com/llvm/llvm-project/pull/92704
More information about the cfe-commits
mailing list