[clang] [CIR][HIP] Compile host code (PR #177698)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 26 11:53:23 PST 2026
================
@@ -0,0 +1,16 @@
+#include "../Inputs/cuda.h"
+
+// RUN: %clang_cc1 -triple=amdgcn-amd-amdhsa -x hip -fclangir \
----------------
andykaylor wrote:
It seems like this RUN line is incorrect then. For a similar test in classic codegen (clang/test/CodeGenHIP/hip_weak_alias.cpp) I see these RUN lines:
```
// RUN: %clang_cc1 -x hip -triple x86_64-unknown-linux-gnu -aux-triple amdgcn-amd-amdhsa -emit-llvm-bc %s -o %t-host.bc
// RUN: %clang_cc1 -x hip -triple x86_64-unknown-linux-gnu -aux-triple amdgcn-amd-amdhsa -emit-llvm %s -o - | FileCheck %s --check-prefix=HOST
// RUN: %clang_cc1 -x hip -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -emit-llvm %s -fcuda-is-device -o - | FileCheck %s --check-prefix=DEVICE
```
https://github.com/llvm/llvm-project/pull/177698
More information about the cfe-commits
mailing list