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

via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 7 12:00:12 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Drew Lewis (calewis)

<details>
<summary>Changes</summary>

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

---
Full diff: https://github.com/llvm/llvm-project/pull/134706.diff


2 Files Affected:

- (renamed) clang/test/CodeGen/Inputs/cuda.h () 
- (modified) clang/test/CodeGen/nvptx-surface.cu (+1-1) 


``````````diff
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"
 

``````````

</details>


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


More information about the cfe-commits mailing list