[clang] [CIR][CUDA][HIP] Skip alias emission when the aliasee is not emitted (PR #234627)

Arseniy Obolenskiy via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 26 05:46:23 PDT 2026


================
@@ -0,0 +1,65 @@
+// REQUIRES: amdgpu-registered-target
+// RUN: %clang_cc1 -x hip -triple x86_64-unknown-linux-gnu -aux-triple amdgcn-amd-amdhsa \
+// RUN:   -fclangir -emit-cir %s -o - \
+// RUN:   | FileCheck %s --check-prefix=CIR-HOST --implicit-check-not=One --implicit-check-not=Missing
+// RUN: %clang_cc1 -x hip -triple x86_64-unknown-linux-gnu -aux-triple amdgcn-amd-amdhsa \
+// RUN:   -fclangir -emit-llvm %s -o - \
+// RUN:   | FileCheck %s --check-prefix=LLVM-HOST --implicit-check-not=One --implicit-check-not=Missing
+// RUN: %clang_cc1 -x hip -triple x86_64-unknown-linux-gnu -aux-triple amdgcn-amd-amdhsa \
+// RUN:   -emit-llvm %s -o - \
+// RUN:   | FileCheck %s --check-prefix=LLVM-HOST --implicit-check-not=One --implicit-check-not=Missing
+// RUN: %clang_cc1 -x hip -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu \
----------------
aobolensk wrote:

here also

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


More information about the cfe-commits mailing list