[clang] [llvm] [HIP][MacOS] Mach-O support and Darwin toolchain fixes (PR #183991)
Paulius Velesko via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 1 06:52:22 PDT 2026
================
@@ -391,6 +391,12 @@ class LLVM_LIBRARY_VISIBILITY Darwin : public AppleMachO {
void VerifyTripleForSDK(const llvm::opt::ArgList &Args,
const llvm::Triple Triple) const;
+protected:
+ /// Lazily initialize the target platform from the triple when
+ /// AddDeploymentTarget has not run yet (e.g. when Darwin is used as
+ /// a host toolchain for device offloading).
+ void ensureTargetInitialized() const;
----------------
pvelesko wrote:
Is this comment about `void ensureTargetInitialized() const;`?
https://github.com/llvm/llvm-project/pull/183991
More information about the cfe-commits
mailing list