[clang] [llvm] [LLVM][Triple][NFCI] Add function to test for GPU offloading triples (PR #126956)

Shilei Tian via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 12 14:19:12 PST 2025


================
@@ -1109,6 +1109,11 @@ class Triple {
            Env == llvm::Triple::EABIHF;
   }
 
+  /// Tests if the target represents a GPU which can be offloaded to.
+  bool isOffloadingTargetGPU() const {
----------------
shiltian wrote:

Is it better to use `isOffloadingTarget`?

https://github.com/llvm/llvm-project/pull/126956


More information about the cfe-commits mailing list