[libc-commits] [clang] [libc] [Clang] Implement resource directory headers for common GPU intrinsics (PR #110179)

Matt Arsenault via libc-commits libc-commits at lists.llvm.org
Fri Oct 25 10:35:52 PDT 2024


================
@@ -0,0 +1,76 @@
+//===-- gpuintrin.h - Generic GPU intrinsic functions ---------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef __GPUINTRIN_H
+#define __GPUINTRIN_H
+
+#if defined(__NVPTX__)
+#include <nvptxintrin.h>
+#elif defined(__AMDGPU__)
+#include <amdgpuintrin.h>
----------------
arsenm wrote:

else error? 

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


More information about the libc-commits mailing list