Home
last modified time | relevance | path

Searched refs:PlatformKind (Results 1 – 25 of 29) sorted by relevance

12

/external/llvm-project/llvm/lib/TextAPI/MachO/
DPlatform.cpp20 PlatformKind mapToPlatformKind(PlatformKind Platform, bool WantSim) { in mapToPlatformKind()
24 case PlatformKind::iOS: in mapToPlatformKind()
25 return WantSim ? PlatformKind::iOSSimulator : PlatformKind::iOS; in mapToPlatformKind()
26 case PlatformKind::tvOS: in mapToPlatformKind()
27 return WantSim ? PlatformKind::tvOSSimulator : PlatformKind::tvOS; in mapToPlatformKind()
28 case PlatformKind::watchOS: in mapToPlatformKind()
29 return WantSim ? PlatformKind::watchOSSimulator : PlatformKind::watchOS; in mapToPlatformKind()
34 PlatformKind mapToPlatformKind(const Triple &Target) { in mapToPlatformKind()
37 return PlatformKind::unknown; in mapToPlatformKind()
39 return PlatformKind::macOS; in mapToPlatformKind()
[all …]
DTarget.cpp25 PlatformKind Platform; in create()
26 Platform = StringSwitch<PlatformKind>(PlatformStr) in create()
27 .Case("macos", PlatformKind::macOS) in create()
28 .Case("ios", PlatformKind::iOS) in create()
29 .Case("tvos", PlatformKind::tvOS) in create()
30 .Case("watchos", PlatformKind::watchOS) in create()
31 .Case("bridgeos", PlatformKind::bridgeOS) in create()
32 .Case("maccatalyst", PlatformKind::macCatalyst) in create()
33 .Case("ios-simulator", PlatformKind::iOSSimulator) in create()
34 .Case("tvos-simulator", PlatformKind::tvOSSimulator) in create()
[all …]
DTextStubCommon.cpp52 if (Ctx && Ctx->FileKind == TBD_V3 && Values.count(PlatformKind::macOS) && in output()
53 Values.count(PlatformKind::macCatalyst)) { in output()
63 case PlatformKind::macOS: in output()
66 case PlatformKind::iOSSimulator: in output()
68 case PlatformKind::iOS: in output()
71 case PlatformKind::watchOSSimulator: in output()
73 case PlatformKind::watchOS: in output()
76 case PlatformKind::tvOSSimulator: in output()
78 case PlatformKind::tvOS: in output()
81 case PlatformKind::bridgeOS: in output()
[all …]
DTextStub.cpp383 case PlatformKind::macOS: in output()
386 case PlatformKind::iOS: in output()
389 case PlatformKind::tvOS: in output()
392 case PlatformKind::watchOS: in output()
395 case PlatformKind::bridgeOS: in output()
398 case PlatformKind::macCatalyst: in output()
401 case PlatformKind::iOSSimulator: in output()
404 case PlatformKind::tvOSSimulator: in output()
407 case PlatformKind::watchOSSimulator: in output()
410 case PlatformKind::driverKit: in output()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/TextAPI/MachO/
DPlatform.cpp20 PlatformKind mapToPlatformKind(PlatformKind Platform, bool WantSim) { in mapToPlatformKind()
24 case PlatformKind::iOS: in mapToPlatformKind()
25 return WantSim ? PlatformKind::iOSSimulator : PlatformKind::iOS; in mapToPlatformKind()
26 case PlatformKind::tvOS: in mapToPlatformKind()
27 return WantSim ? PlatformKind::tvOSSimulator : PlatformKind::tvOS; in mapToPlatformKind()
28 case PlatformKind::watchOS: in mapToPlatformKind()
29 return WantSim ? PlatformKind::watchOSSimulator : PlatformKind::watchOS; in mapToPlatformKind()
34 PlatformKind mapToPlatformKind(const Triple &Target) { in mapToPlatformKind()
37 return PlatformKind::unknown; in mapToPlatformKind()
39 return PlatformKind::macOS; in mapToPlatformKind()
[all …]
DTarget.cpp25 PlatformKind Platform; in create()
26 Platform = StringSwitch<PlatformKind>(PlatformStr) in create()
27 .Case("macos", PlatformKind::macOS) in create()
28 .Case("ios", PlatformKind::iOS) in create()
29 .Case("tvos", PlatformKind::tvOS) in create()
30 .Case("watchos", PlatformKind::watchOS) in create()
31 .Case("bridgeos", PlatformKind::bridgeOS) in create()
32 .Case("maccatalyst", PlatformKind::macCatalyst) in create()
33 .Case("ios-simulator", PlatformKind::iOSSimulator) in create()
34 .Case("tvos-simulator", PlatformKind::tvOSSimulator) in create()
[all …]
DTextStubCommon.cpp51 if (Ctx && Ctx->FileKind == TBD_V3 && Values.count(PlatformKind::macOS) && in output()
52 Values.count(PlatformKind::macCatalyst)) { in output()
62 case PlatformKind::macOS: in output()
65 case PlatformKind::iOS: in output()
68 case PlatformKind::watchOS: in output()
71 case PlatformKind::tvOS: in output()
74 case PlatformKind::bridgeOS: in output()
88 Values.insert(PlatformKind::macOS); in input()
89 Values.insert(PlatformKind::macCatalyst); in input()
95 auto Platform = StringSwitch<PlatformKind>(Scalar) in input()
[all …]
DTextStub.cpp383 case PlatformKind::macOS: in output()
386 case PlatformKind::iOS: in output()
389 case PlatformKind::tvOS: in output()
392 case PlatformKind::watchOS: in output()
395 case PlatformKind::bridgeOS: in output()
398 case PlatformKind::macCatalyst: in output()
401 case PlatformKind::iOSSimulator: in output()
404 case PlatformKind::tvOSSimulator: in output()
407 case PlatformKind::watchOSSimulator: in output()
421 if (Value.Platform == PlatformKind::unknown) in input()
[all …]
/external/tensorflow/tensorflow/stream_executor/
Dplatform.cc27 std::string PlatformKindString(PlatformKind kind) { in PlatformKindString()
29 case PlatformKind::kCuda: in PlatformKindString()
31 case PlatformKind::kROCm: in PlatformKindString()
33 case PlatformKind::kOpenCL: in PlatformKindString()
35 case PlatformKind::kHost: in PlatformKindString()
37 case PlatformKind::kMock: in PlatformKindString()
44 PlatformKind PlatformKindFromString(std::string kind) { in PlatformKindFromString()
45 for (int i = 0; i < static_cast<int>(PlatformKind::kSize); ++i) { in PlatformKindFromString()
46 if (kind == PlatformKindString(static_cast<PlatformKind>(i))) { in PlatformKindFromString()
47 return static_cast<PlatformKind>(i); in PlatformKindFromString()
[all …]
Dplatform.h42 enum class PlatformKind { enum
55 bool PlatformIsRunnable(PlatformKind kind);
60 bool PlatformIsRunnableOnDevice(PlatformKind kind);
63 std::string PlatformKindString(PlatformKind kind);
67 PlatformKind PlatformKindFromString(std::string platform_string);
70 void CheckPlatformKindIsValid(PlatformKind kind);
Dplugin_registry.h76 void MapPlatformKindToId(PlatformKind platform_kind,
101 port::StatusOr<FactoryT> GetFactory(PlatformKind platform_kind,
146 std::map<PlatformKind, Platform::Id> platform_id_by_kind_;
174 PlatformKind platform_kind, PluginId plugin_id)
Dplugin_registry.cc66 void PluginRegistry::MapPlatformKindToId(PlatformKind platform_kind, in MapPlatformKindToId()
236 PlatformKind platform_kind, PluginId plugin_id) { \
Dstream_executor_pimpl.cc155 platform_kind_ = PlatformKind::kCuda; in StreamExecutor()
157 platform_kind_ = PlatformKind::kROCm; in StreamExecutor()
159 platform_kind_ = PlatformKind::kOpenCL; in StreamExecutor()
161 platform_kind_ = PlatformKind::kHost; in StreamExecutor()
163 platform_kind_ = PlatformKind::kInvalid; in StreamExecutor()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/TextAPI/MachO/
DPlatform.h22 enum class PlatformKind : unsigned { enum
35 using PlatformSet = SmallSet<PlatformKind, 3>;
37 PlatformKind mapToPlatformKind(PlatformKind Platform, bool WantSim);
38 PlatformKind mapToPlatformKind(const Triple &Target);
40 StringRef getPlatformName(PlatformKind Platform);
DTarget.h27 Target(Architecture Arch, PlatformKind Platform) in Target()
37 PlatformKind Platform;
/external/llvm-project/llvm/include/llvm/TextAPI/MachO/
DPlatform.h22 enum class PlatformKind : unsigned { enum
36 using PlatformSet = SmallSet<PlatformKind, 3>;
38 PlatformKind mapToPlatformKind(PlatformKind Platform, bool WantSim);
39 PlatformKind mapToPlatformKind(const Triple &Target);
41 StringRef getPlatformName(PlatformKind Platform);
DTarget.h27 Target(Architecture Arch, PlatformKind Platform) in Target()
37 PlatformKind Platform;
/external/llvm-project/llvm/unittests/TextAPI/
DTextStubV4Tests.cpp85 Platforms.insert(PlatformKind::macOS); in TEST()
86 Platforms.insert(PlatformKind::iOS); in TEST()
89 Target(AK_i386, PlatformKind::macOS), in TEST()
90 Target(AK_x86_64, PlatformKind::macOS), in TEST()
91 Target(AK_x86_64, PlatformKind::iOS), in TEST()
224 Platforms.insert(PlatformKind::macOS); in TEST()
225 Platforms.insert(PlatformKind::macCatalyst); in TEST()
272 PlatformKind Platform = PlatformKind::macOS; in TEST()
370 Target(AK_i386, PlatformKind::macOS), in TEST()
371 Target(AK_x86_64, PlatformKind::iOSSimulator), in TEST()
[all …]
DTextStubV3Tests.cpp79 auto Platform = PlatformKind::iOS; in TEST()
84 UUIDs Uuids = {{Target(AK_armv7, PlatformKind::unknown), in TEST()
86 {Target(AK_arm64, PlatformKind::unknown), in TEST()
169 auto Platform = PlatformKind::iOS; in TEST()
174 UUIDs Uuids = {{Target(AK_armv7, PlatformKind::unknown), in TEST()
176 {Target(AK_arm64, PlatformKind::unknown), in TEST()
268 Targets.emplace_back(Target(arch, PlatformKind::macOS)); in TEST()
333 Targets.emplace_back(Target(arch, PlatformKind::macOS)); in TEST()
334 Targets.emplace_back(Target(arch, PlatformKind::macCatalyst)); in TEST()
359 Targets = {Target(AK_i386, PlatformKind::macOS)}; in TEST()
[all …]
DTextStubV2Tests.cpp76 auto Platform = PlatformKind::iOS; in TEST()
148 auto Platform = PlatformKind::iOS; in TEST()
192 Targets.emplace_back(Target(arch, PlatformKind::macOS)); in TEST()
232 auto Platform = PlatformKind::macOS; in TEST()
248 auto Platform = PlatformKind::iOS; in TEST()
265 auto Platform = PlatformKind::watchOS; in TEST()
282 auto Platform = PlatformKind::tvOS; in TEST()
299 auto Platform = PlatformKind::bridgeOS; in TEST()
DTextStubV1Tests.cpp75 auto Platform = PlatformKind::iOS; in TEST()
129 auto Platform = PlatformKind::iOS; in TEST()
174 Targets.emplace_back(Target(arch, PlatformKind::macOS)); in TEST()
211 auto Platform = PlatformKind::macOS; in TEST()
228 auto Platform = PlatformKind::iOS; in TEST()
245 auto Platform = PlatformKind::watchOS; in TEST()
262 auto Platform = PlatformKind::tvOS; in TEST()
279 auto Platform = PlatformKind::bridgeOS; in TEST()
/external/llvm-project/lld/MachO/
DDriver.cpp577 llvm::StringSwitch<llvm::MachO::PlatformKind>(lowerDash(platformStr)) in handlePlatformVersion()
578 .Cases("macos", "1", llvm::MachO::PlatformKind::macOS) in handlePlatformVersion()
579 .Cases("ios", "2", llvm::MachO::PlatformKind::iOS) in handlePlatformVersion()
580 .Cases("tvos", "3", llvm::MachO::PlatformKind::tvOS) in handlePlatformVersion()
581 .Cases("watchos", "4", llvm::MachO::PlatformKind::watchOS) in handlePlatformVersion()
582 .Cases("bridgeos", "5", llvm::MachO::PlatformKind::bridgeOS) in handlePlatformVersion()
583 .Cases("mac-catalyst", "6", llvm::MachO::PlatformKind::macCatalyst) in handlePlatformVersion()
584 .Cases("ios-simulator", "7", llvm::MachO::PlatformKind::iOSSimulator) in handlePlatformVersion()
586 llvm::MachO::PlatformKind::tvOSSimulator) in handlePlatformVersion()
588 llvm::MachO::PlatformKind::watchOSSimulator) in handlePlatformVersion()
[all …]
DConfig.h28 llvm::MachO::PlatformKind kind;
/external/llvm-project/llvm/tools/llvm-ifs/
Dllvm-ifs.cpp204 [](const llvm::Triple &T) -> llvm::Expected<llvm::MachO::PlatformKind> { in writeTbdStub()
206 return llvm::MachO::PlatformKind::macOS; in writeTbdStub()
208 return llvm::MachO::PlatformKind::tvOS; in writeTbdStub()
210 return llvm::MachO::PlatformKind::watchOS; in writeTbdStub()
214 return llvm::MachO::PlatformKind::iOS; in writeTbdStub()
218 return llvm::MachO::PlatformKind::macOS; in writeTbdStub()
226 PlatformKind Plat = PlatformKindOrError.get(); in writeTbdStub()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dgpu_executable.cc98 stream_executor::PlatformKind platform_kind = in CheckCompatibilityWithServiceExecutableRunOptions()
100 if (platform_kind == stream_executor::PlatformKind::kROCm) { in CheckCompatibilityWithServiceExecutableRunOptions()
109 } else if (platform_kind == stream_executor::PlatformKind::kCuda) { in CheckCompatibilityWithServiceExecutableRunOptions()
273 if (executor->platform_kind() == se::PlatformKind::kCuda && in ResolveConstantGlobals()

12