[llvm] Add support for squiid OSType

Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
This commit is contained in:
Christoph Heiss 2022-08-08 15:31:30 +02:00 committed by Christoph Heiss
parent 477e7285b1
commit 053d967c76
Signed by: c8h4
GPG key ID: 9C82009BEEDEA0FF
2 changed files with 6 additions and 3 deletions

View file

@ -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,

View file

@ -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);
}