[llvm-branch-commits] [clang] [CIR][CUDA] Handle CUDA module constructor and destructor emission. (PR #188673)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Mar 25 21:30:04 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 3173 tests passed
* 7 tests skipped

All executed tests passed, but another part of the build **failed**. Click on a failure below to see the details.

<details>
<summary>tools/clang/lib/CIR/Dialect/Transforms/CMakeFiles/obj.MLIRCIRTransforms.dir/LoweringPrepare.cpp.o</summary>

```
FAILED: tools/clang/lib/CIR/Dialect/Transforms/CMakeFiles/obj.MLIRCIRTransforms.dir/LoweringPrepare.cpp.o
sccache /opt/llvm/bin/clang++ -DCLANG_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GLIBCXX_USE_CXX11_ABI=1 -D_GNU_SOURCE -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/lib/CIR/Dialect/Transforms -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CIR/Dialect/Transforms -I/home/gha/actions-runner/_work/llvm-project/llvm-project/clang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/../mlir/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/mlir/include -gmlt -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wno-pass-failed -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -fno-common -Woverloaded-virtual -Wno-nested-anon-types -O3 -DNDEBUG -std=c++17 -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT tools/clang/lib/CIR/Dialect/Transforms/CMakeFiles/obj.MLIRCIRTransforms.dir/LoweringPrepare.cpp.o -MF tools/clang/lib/CIR/Dialect/Transforms/CMakeFiles/obj.MLIRCIRTransforms.dir/LoweringPrepare.cpp.o.d -o tools/clang/lib/CIR/Dialect/Transforms/CMakeFiles/obj.MLIRCIRTransforms.dir/LoweringPrepare.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/lib/CIR/Dialect/Transforms/LoweringPrepare.cpp:14:
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:12:45: error: unknown type name 'raw_ostream'
12 | static inline void DelimitAttributeArgument(raw_ostream& OS, bool& IsFirst) {
|                                             ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:19:17: error: variable has incomplete type 'class CLANG_ABI'
19 | class CLANG_ABI AArch64SVEPcsAttr : public InheritableAttr {
|                 ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:19:7: note: forward declaration of 'CLANG_ABI'
19 | class CLANG_ABI AArch64SVEPcsAttr : public InheritableAttr {
|       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:19:35: error: expected ';' after top level declarator
19 | class CLANG_ABI AArch64SVEPcsAttr : public InheritableAttr {
|                                   ^
|                                   ;
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:19:37: error: expected unqualified-id
19 | class CLANG_ABI AArch64SVEPcsAttr : public InheritableAttr {
|                                     ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:49:17: error: variable has incomplete type 'class CLANG_ABI'
49 | class CLANG_ABI AArch64VectorPcsAttr : public InheritableAttr {
|                 ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:19:7: note: forward declaration of 'CLANG_ABI'
19 | class CLANG_ABI AArch64SVEPcsAttr : public InheritableAttr {
|       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:49:38: error: expected ';' after top level declarator
49 | class CLANG_ABI AArch64VectorPcsAttr : public InheritableAttr {
|                                      ^
|                                      ;
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:49:40: error: expected unqualified-id
49 | class CLANG_ABI AArch64VectorPcsAttr : public InheritableAttr {
|                                        ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:79:17: error: variable has incomplete type 'class CLANG_ABI'
79 | class CLANG_ABI AMDGPUFlatWorkGroupSizeAttr : public InheritableAttr {
|                 ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:19:7: note: forward declaration of 'CLANG_ABI'
19 | class CLANG_ABI AArch64SVEPcsAttr : public InheritableAttr {
|       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:79:45: error: expected ';' after top level declarator
79 | class CLANG_ABI AMDGPUFlatWorkGroupSizeAttr : public InheritableAttr {
|                                             ^
|                                             ;
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:79:47: error: expected unqualified-id
79 | class CLANG_ABI AMDGPUFlatWorkGroupSizeAttr : public InheritableAttr {
|                                               ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:122:17: error: variable has incomplete type 'class CLANG_ABI'
122 | class CLANG_ABI AMDGPUMaxNumWorkGroupsAttr : public InheritableAttr {
|                 ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:19:7: note: forward declaration of 'CLANG_ABI'
19 | class CLANG_ABI AArch64SVEPcsAttr : public InheritableAttr {
|       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:122:44: error: expected ';' after top level declarator
122 | class CLANG_ABI AMDGPUMaxNumWorkGroupsAttr : public InheritableAttr {
|                                            ^
|                                            ;
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:122:46: error: expected unqualified-id
122 | class CLANG_ABI AMDGPUMaxNumWorkGroupsAttr : public InheritableAttr {
|                                              ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:175:17: error: variable has incomplete type 'class CLANG_ABI'
175 | class CLANG_ABI AMDGPUNumSGPRAttr : public InheritableAttr {
|                 ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:19:7: note: forward declaration of 'CLANG_ABI'
19 | class CLANG_ABI AArch64SVEPcsAttr : public InheritableAttr {
|       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:175:35: error: expected ';' after top level declarator
175 | class CLANG_ABI AMDGPUNumSGPRAttr : public InheritableAttr {
|                                   ^
|                                   ;
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:175:37: error: expected unqualified-id
175 | class CLANG_ABI AMDGPUNumSGPRAttr : public InheritableAttr {
|                                     ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:211:17: error: variable has incomplete type 'class CLANG_ABI'
211 | class CLANG_ABI AMDGPUNumVGPRAttr : public InheritableAttr {
|                 ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:19:7: note: forward declaration of 'CLANG_ABI'
19 | class CLANG_ABI AArch64SVEPcsAttr : public InheritableAttr {
|       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:211:35: error: expected ';' after top level declarator
211 | class CLANG_ABI AMDGPUNumVGPRAttr : public InheritableAttr {
|                                   ^
|                                   ;
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/tools/clang/include/clang/AST/Attrs.inc:211:37: error: expected unqualified-id
211 | class CLANG_ABI AMDGPUNumVGPRAttr : public InheritableAttr {
|                                     ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-branch-commits mailing list