diff --git a/llvm/include/llvm/ADT/Triple.h b/llvm/include/llvm/ADT/Triple.h index ba4584dc60fa..9c4e2d9461fc 100644 --- a/llvm/include/llvm/ADT/Triple.h +++ b/llvm/include/llvm/ADT/Triple.h @@ -219,7 +219,8 @@ public: WASI, // Experimental WebAssembly OS Emscripten, ShaderModel, // DirectX ShaderModel - LastOSType = ShaderModel + Squiid, + LastOSType = Squiid }; enum EnvironmentType { UnknownEnvironment, @@ -246,7 +247,7 @@ public: CoreCLR, Simulator, // Simulator variants of other systems, e.g., Apple's iOS MacABI, // Mac Catalyst variant of Apple's iOS deployment target. - + // Shader Stages Pixel, Vertex, diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 6696d158b2c1..9bccf1a2b5e0 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -170,7 +170,7 @@ StringRef Triple::getArchTypePrefix(ArchType Kind) { case loongarch32: case loongarch64: return "loongarch"; - + case dxil: return "dx"; } } @@ -234,6 +234,7 @@ StringRef Triple::getOSTypeName(OSType Kind) { case PS5: return "ps5"; case RTEMS: return "rtems"; case Solaris: return "solaris"; + case Squiid: return "squiid"; case TvOS: return "tvos"; case WASI: return "wasi"; case WatchOS: return "watchos"; @@ -587,6 +588,7 @@ static Triple::OSType parseOS(StringRef OSName) { .StartsWith("wasi", Triple::WASI) .StartsWith("emscripten", Triple::Emscripten) .StartsWith("shadermodel", Triple::ShaderModel) + .StartsWith("squiid", Triple::Squiid) .Default(Triple::UnknownOS); }