[clang] Move CodeGen cuda.h to Inputs from include (PR #134706)

Drew Lewis via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 7 11:59:22 PDT 2025


https://github.com/calewis created https://github.com/llvm/llvm-project/pull/134706

Mirrors the behavior of CodeGenCUDA directory and the location of other .h files in CodeGen.

>From 5f50dfd05218d9ef2b01b9f685ea6dc0053acd67 Mon Sep 17 00:00:00 2001
From: Drew Lewis <cannada at google.com>
Date: Mon, 7 Apr 2025 18:48:57 +0000
Subject: [PATCH] Move CodeGen cuda.h to Inputs from include

---
 clang/test/CodeGen/{include => Inputs}/cuda.h | 0
 clang/test/CodeGen/nvptx-surface.cu           | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename clang/test/CodeGen/{include => Inputs}/cuda.h (100%)

diff --git a/clang/test/CodeGen/include/cuda.h b/clang/test/CodeGen/Inputs/cuda.h
similarity index 100%
rename from clang/test/CodeGen/include/cuda.h
rename to clang/test/CodeGen/Inputs/cuda.h
diff --git a/clang/test/CodeGen/nvptx-surface.cu b/clang/test/CodeGen/nvptx-surface.cu
index cf1fe76893a17..56995f2c0da80 100644
--- a/clang/test/CodeGen/nvptx-surface.cu
+++ b/clang/test/CodeGen/nvptx-surface.cu
@@ -1,6 +1,6 @@
 // RUN: %clang_cc1 -triple nvptx-unknown-unknown -fcuda-is-device -O3 -o - %s -emit-llvm | FileCheck %s
 // RUN: %clang_cc1 -triple nvptx64-unknown-unknown -fcuda-is-device -O3 -o - %s -emit-llvm | FileCheck %s
-#include "include/cuda.h"
+#include "Inputs/cuda.h"
 
 #include "__clang_cuda_texture_intrinsics.h"
 



More information about the cfe-commits mailing list