[clang] [clang][SPIR-V] Add support for AMDGCN flavoured SPIRV (PR #89796)

Matt Arsenault via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 23 12:50:45 PDT 2024


================
@@ -0,0 +1,294 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
+// RUN: %clang_cc1 -triple spirv64-amd-amdhsa -x hip \
+// RUN:  -aux-triple x86_64-unknown-linux-gnu -fcuda-is-device -emit-llvm %s \
+// RUN:  -o - | FileCheck %s
+
+// RUN: %clang_cc1 -triple spirv64-amd-amdhsa -x hip \
+// RUN:  -aux-triple x86_64-pc-windows-msvc -fcuda-is-device -emit-llvm %s \
+// RUN:  -o - | FileCheck %s
+
+#include "Inputs/cuda.h"
+
----------------
arsenm wrote:

Should also have a test somewhere that __has_builtin works 

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


More information about the cfe-commits mailing list