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

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 12 20:43:10 PST 2025


================
@@ -2624,9 +2624,8 @@ void CGOpenMPRuntime::emitDistributeStaticInit(
       emitUpdateLocation(CGF, Loc, OMP_IDENT_WORK_DISTRIBUTE);
   llvm::Value *ThreadId = getThreadID(CGF, Loc);
   llvm::FunctionCallee StaticInitFunction;
-  bool isGPUDistribute =
-      CGM.getLangOpts().OpenMPIsTargetDevice &&
-      (CGM.getTriple().isAMDGCN() || CGM.getTriple().isNVPTX());
+  bool isGPUDistribute = CGM.getLangOpts().OpenMPIsTargetDevice &&
----------------
jhuber6 wrote:

Think we should do a `sed s/isAMDGCN()/isAMDGPU()/g` at some point?

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


More information about the cfe-commits mailing list