File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -211,6 +211,7 @@ class Triple {
211
211
Cygnus,
212
212
CoreCLR,
213
213
Simulator, // Simulator variants of other systems, e.g., Apple's iOS
214
+ SYCLDevice,
214
215
LastEnvironmentType = Simulator
215
216
};
216
217
enum ObjectFormatType {
@@ -480,6 +481,10 @@ class Triple {
480
481
return getEnvironment () == Triple::Simulator;
481
482
}
482
483
484
+ bool isSYCLDeviceEnvironment () const {
485
+ return getEnvironment () == Triple::SYCLDevice;
486
+ }
487
+
483
488
bool isOSNetBSD () const {
484
489
return getOS () == Triple::NetBSD;
485
490
}
Original file line number Diff line number Diff line change @@ -237,6 +237,7 @@ StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) {
237
237
case Cygnus: return " cygnus" ;
238
238
case CoreCLR: return " coreclr" ;
239
239
case Simulator: return " simulator" ;
240
+ case SYCLDevice: return " sycldevice" ;
240
241
}
241
242
242
243
llvm_unreachable (" Invalid EnvironmentType!" );
@@ -533,6 +534,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) {
533
534
.StartsWith (" cygnus" , Triple::Cygnus)
534
535
.StartsWith (" coreclr" , Triple::CoreCLR)
535
536
.StartsWith (" simulator" , Triple::Simulator)
537
+ .StartsWith (" sycldevice" , Triple::SYCLDevice)
536
538
.Default (Triple::UnknownEnvironment);
537
539
}
538
540
You can’t perform that action at this time.
0 commit comments