Home
last modified time | relevance | path

Searched refs:OffloadKind (Results 1 – 25 of 47) sorted by relevance

12

/freebsd/contrib/llvm-project/clang/include/clang/Driver/
H A DCompilation.h60 std::multimap<Action::OffloadKind, const ToolChain *>
86 Action::OffloadKind DeviceOffloadKind = Action::OFK_None;
89 Action::OffloadKind DeviceOffloadKind) in TCArgsKey()
145 unsigned isOffloadingHostKind(Action::OffloadKind Kind) const { in isOffloadingHostKind()
153 const std::multimap<Action::OffloadKind,
159 template <Action::OffloadKind Kind>
165 getOffloadToolChains(Action::OffloadKind Kind) const { in getOffloadToolChains()
170 template <Action::OffloadKind Kind> bool hasOffloadToolChain() const { in hasOffloadToolChain()
177 template <Action::OffloadKind Kind>
189 Action::OffloadKind OffloadKind) { in addOffloadDeviceToolChain() argument
[all …]
H A DAction.h87 enum OffloadKind { enum
126 OffloadKind OffloadingDeviceKind = OFK_None;
181 GetOffloadingFileNamePrefix(OffloadKind Kind,
186 static StringRef GetOffloadKindName(OffloadKind Kind);
190 void propagateDeviceOffloadInfo(OffloadKind OKind, const char *OArch,
210 OffloadKind getOffloadingDeviceKind() const { return OffloadingDeviceKind; } in getOffloadingDeviceKind()
221 bool isDeviceOffloading(OffloadKind OKind) const { in isDeviceOffloading()
224 bool isOffloading(OffloadKind OKind) const { in isOffloading()
278 using OffloadKindList = SmallVector<OffloadKind, 3>;
302 OffloadKind OKind);
[all …]
H A DDriver.h513 Action::OffloadKind Kind, const ToolChain *TC,
641 Action::OffloadKind TargetDeviceOffloadKind = Action::OFK_None) const;
651 Action::OffloadKind TargetDeviceOffloadKind) const;
777 const Action::OffloadKind &TargetDeviceOffloadKind) const;
792 Action::OffloadKind TargetDeviceOffloadKind) const;
H A DOffloadBundler.h79 llvm::StringRef OffloadKind; member
H A DToolChain.h360 Action::OffloadKind DeviceOffloadKind) const { in TranslateArgs()
384 Action::OffloadKind DeviceOffloadKind,
680 Action::OffloadKind DeviceOffloadKind) const;
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DOffloadBinary.h33 enum OffloadKind : uint16_t {
72 OffloadKind TheOffloadKind;
87 OffloadKind getOffloadKind() const { return TheEntry->TheOffloadKind; } in getVersion()
117 OffloadKind TheOffloadKind; // The producer of this image.
197 OffloadKind getOffloadKind(StringRef Name);
200 StringRef getOffloadKindName(OffloadKind Name);
32 enum OffloadKind : uint16_t { global() enum
/freebsd/contrib/llvm-project/llvm/include/llvm/ObjectYAML/
H A DOffloadYAML.h34 std::optional<object::OffloadKind> OffloadKind;
60 template <> struct ScalarEnumerationTraits<object::OffloadKind> { in LLVM_YAML_IS_SEQUENCE_VECTOR()
61 static void enumeration(IO &IO, object::OffloadKind &Value); in LLVM_YAML_IS_SEQUENCE_VECTOR()
35 std::optional<object::OffloadKind> OffloadKind; global() member
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DOffloadYAML.cpp34 void ScalarEnumerationTraits<object::OffloadKind>::enumeration( in enumeration()
35 IO &IO, object::OffloadKind &Value) { in enumeration()
70 IO.mapOptional("OffloadKind", M.OffloadKind); in mapping()
H A DOffloadEmitter.cpp26 if (Member.OffloadKind) in yaml2offload()
27 Image.TheOffloadKind = *Member.OffloadKind; in yaml2offload()
/freebsd/contrib/llvm-project/clang/lib/Driver/ToolChains/
H A DAMDGPU.h76 Action::OffloadKind DeviceOffloadKind) const override;
80 Action::OffloadKind DeviceOffloadKind) const override;
136 Action::OffloadKind DeviceOffloadKind) const override;
H A DCuda.h143 Action::OffloadKind DeviceOffloadKind) const override;
148 Action::OffloadKind DeviceOffloadKind) const override;
202 Action::OffloadKind DeviceOffloadKind) const override;
206 Action::OffloadKind DeviceOffloadKind) const override;
H A DAMDGPUOpenMP.h38 Action::OffloadKind DeviceOffloadKind) const override;
42 Action::OffloadKind DeviceOffloadKind) const override;
H A DHIPAMD.h65 Action::OffloadKind DeviceOffloadKind) const override;
69 Action::OffloadKind DeviceOffloadKind) const override;
H A DHIPUtility.cpp235 std::string OffloadKind = "hip"; in constructHIPFatbinCommand() local
238 OffloadKind = OffloadKind + "v4"; in constructHIPFatbinCommand()
243 "," + OffloadKind + "-" + normalizeForBundler(TT, !ArchStr.empty()); in constructHIPFatbinCommand()
H A DMSVC.h52 Action::OffloadKind DeviceOffloadKind) const override;
123 Action::OffloadKind DeviceOffloadKind) const override;
H A DAMDGPUOpenMP.cpp44 Action::OffloadKind DeviceOffloadingKind) const { in addClangTargetOptions()
66 Action::OffloadKind DeviceOffloadKind) const { in TranslateArgs()
H A DCuda.cpp715 Action::OffloadKind OffloadKind) const { in TranslateArgs()
716 DerivedArgList *DAL = ToolChain::TranslateArgs(Args, BoundArch, OffloadKind); in TranslateArgs()
726 if (!DAL->hasArg(options::OPT_march_EQ) && OffloadKind != Action::OFK_None) { in TranslateArgs()
730 OffloadKind == Action::OFK_None) { in TranslateArgs()
751 Action::OffloadKind DeviceOffloadingKind) const { in addClangTargetOptions()
822 Action::OffloadKind DeviceOffloadingKind) const { in addClangTargetOptions()
925 Action::OffloadKind DeviceOffloadKind) const { in TranslateArgs()
H A DHLSL.h51 Action::OffloadKind DeviceOffloadKind) const override;
H A DVEToolchain.h40 Action::OffloadKind DeviceOffloadKind) const override;
H A DRISCVToolchain.h27 Action::OffloadKind) const override;
H A DDarwin.h243 Action::OffloadKind DeviceOffloadKind) const override;
533 Action::OffloadKind DeviceOffloadKind) const override;
556 Action::OffloadKind DeviceOffloadKind) const override;
H A DAIX.h85 Action::OffloadKind DeviceOffloadingKind) const override;
/freebsd/contrib/llvm-project/clang/lib/Driver/
H A DAction.cpp58 void Action::propagateDeviceOffloadInfo(OffloadKind OKind, const char *OArch, in propagateDeviceOffloadInfo()
140 Action::GetOffloadingFileNamePrefix(OffloadKind Kind, in GetOffloadingFileNamePrefix()
156 StringRef Action::GetOffloadKindName(OffloadKind Kind) { in GetOffloadKindName()
308 OffloadKind OKind) { in add()
323 for (OffloadKind OKind : {OFK_OpenMP, OFK_Cuda, OFK_HIP}) in add()
H A DOffloadBundler.cpp85 this->OffloadKind = KindTriple.first; in OffloadTargetInfo()
95 this->OffloadKind = KindTriple.first; in OffloadTargetInfo()
107 return this->OffloadKind == "host"; in hasHostKind()
111 return OffloadKind == "host" || OffloadKind == "openmp" || in isOffloadKindValid()
112 OffloadKind == "hip" || OffloadKind == "hipv4"; in isOffloadKindValid()
117 if ((OffloadKind == TargetOffloadKind) || in isOffloadKindCompatible()
118 (OffloadKind == "hip" && TargetOffloadKind == "hipv4") || in isOffloadKindCompatible()
119 (OffloadKind == "hipv4" && TargetOffloadKind == "hip")) in isOffloadKindCompatible()
123 bool HIPCompatibleWithOpenMP = OffloadKind.starts_with_insensitive("hip") && in isOffloadKindCompatible()
126 OffloadKind == "openmp" && in isOffloadKindCompatible()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DOffloadBinary.cpp302 OffloadKind object::getOffloadKind(StringRef Name) { in getOffloadKind()
303 return llvm::StringSwitch<OffloadKind>(Name) in getOffloadKind()
310 StringRef object::getOffloadKindName(OffloadKind Kind) { in getOffloadKindName()

12