[clang] [llvm] [HIP][HIPSTDPAR][NFC] Re-order & adapt `hipstdpar` specific passes (PR #134753)
Pierre van Houtryve via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 10 01:09:03 PDT 2025
================
@@ -0,0 +1,11 @@
+// Check that if we are compiling with fgpu-rdc amdgpu-enable-hipstdpar is not
+// passed to CC1, to avoid eager, per TU, removal of potentially accessible
+// functions.
+
+// RUN: %clang -### --hipstdpar --offload-arch=gfx906 %s -nogpulib -nogpuinc \
+// RUN: 2>&1 | FileCheck -check-prefix=NORDC %s
+// NORDC: {{".*clang.*".* "-triple" "amdgcn-amd-amdhsa".* "-mllvm" "-amdgpu-enable-hipstdpar".*}}
----------------
Pierre-vh wrote:
I think for both check lines you don't need the regex (`{{ }}`), you can just `CHECK: "-mllvm" "-amdgpu-enable-hipstdpar"` no ?
https://github.com/llvm/llvm-project/pull/134753
More information about the cfe-commits
mailing list