[llvm] Add support for squiid OSType
Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
This commit is contained in:
parent
477e7285b1
commit
053d967c76
|
@ -219,7 +219,8 @@ public:
|
||||||
WASI, // Experimental WebAssembly OS
|
WASI, // Experimental WebAssembly OS
|
||||||
Emscripten,
|
Emscripten,
|
||||||
ShaderModel, // DirectX ShaderModel
|
ShaderModel, // DirectX ShaderModel
|
||||||
LastOSType = ShaderModel
|
Squiid,
|
||||||
|
LastOSType = Squiid
|
||||||
};
|
};
|
||||||
enum EnvironmentType {
|
enum EnvironmentType {
|
||||||
UnknownEnvironment,
|
UnknownEnvironment,
|
||||||
|
@ -246,7 +247,7 @@ public:
|
||||||
CoreCLR,
|
CoreCLR,
|
||||||
Simulator, // Simulator variants of other systems, e.g., Apple's iOS
|
Simulator, // Simulator variants of other systems, e.g., Apple's iOS
|
||||||
MacABI, // Mac Catalyst variant of Apple's iOS deployment target.
|
MacABI, // Mac Catalyst variant of Apple's iOS deployment target.
|
||||||
|
|
||||||
// Shader Stages
|
// Shader Stages
|
||||||
Pixel,
|
Pixel,
|
||||||
Vertex,
|
Vertex,
|
||||||
|
|
|
@ -170,7 +170,7 @@ StringRef Triple::getArchTypePrefix(ArchType Kind) {
|
||||||
|
|
||||||
case loongarch32:
|
case loongarch32:
|
||||||
case loongarch64: return "loongarch";
|
case loongarch64: return "loongarch";
|
||||||
|
|
||||||
case dxil: return "dx";
|
case dxil: return "dx";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -234,6 +234,7 @@ StringRef Triple::getOSTypeName(OSType Kind) {
|
||||||
case PS5: return "ps5";
|
case PS5: return "ps5";
|
||||||
case RTEMS: return "rtems";
|
case RTEMS: return "rtems";
|
||||||
case Solaris: return "solaris";
|
case Solaris: return "solaris";
|
||||||
|
case Squiid: return "squiid";
|
||||||
case TvOS: return "tvos";
|
case TvOS: return "tvos";
|
||||||
case WASI: return "wasi";
|
case WASI: return "wasi";
|
||||||
case WatchOS: return "watchos";
|
case WatchOS: return "watchos";
|
||||||
|
@ -587,6 +588,7 @@ static Triple::OSType parseOS(StringRef OSName) {
|
||||||
.StartsWith("wasi", Triple::WASI)
|
.StartsWith("wasi", Triple::WASI)
|
||||||
.StartsWith("emscripten", Triple::Emscripten)
|
.StartsWith("emscripten", Triple::Emscripten)
|
||||||
.StartsWith("shadermodel", Triple::ShaderModel)
|
.StartsWith("shadermodel", Triple::ShaderModel)
|
||||||
|
.StartsWith("squiid", Triple::Squiid)
|
||||||
.Default(Triple::UnknownOS);
|
.Default(Triple::UnknownOS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue