llvm-project
6efa392d - [clang][CodeGen] Skip __hip_cuid_ global in incremental(clang-repl) mode (#217228)

Commit
5 days ago
[clang][CodeGen] Skip __hip_cuid_ global in incremental(clang-repl) mode (#217228) With this patch, when run in incremental mode (clang-repl), Clang skips emitting the `__hip_cuid_` global. This is handled in `clang/lib/CodeGen/CodeGenModule.cpp` on `LangOpts.IncrementalExtensions`. I have also added a test at `clang/test/CodeGenCUDA/hip-cuid-incremental.hip` which checks that the `__hip_cuid_` global is emitted normally but not in the presence of `-fincremental-extensions`. Assisted by Claude Opus 4.8
Parents
Loading