[llvm-branch-commits] [NFC][WebAssembly] Move WebAssemblyCoalesceFeaturesAndStripAtomics (PR #209046)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Jul 12 12:43:10 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

The build failed before running any tests. Click on a failure below to see the details.

<details>
<summary>[code=1] lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyCoalesceFeaturesAndStripAtomics.cpp.obj</summary>

```
FAILED: [code=1] lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyCoalesceFeaturesAndStripAtomics.cpp.obj
sccache C:\clang\clang-msvc\bin\clang-cl.exe  /nologo -TP -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONSTDC_NO_WARNINGS -D_CRT_SECURE_NO_DEPRECATE -D_CRT_SECURE_NO_WARNINGS -D_GLIBCXX_ASSERTIONS -D_HAS_EXCEPTIONS=0 -D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE -D_SCL_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_WARNINGS -D_UNICODE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -IC:\_work\llvm-project\llvm-project\build\lib\Target\WebAssembly -IC:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly -IC:\_work\llvm-project\llvm-project\build\include -IC:\_work\llvm-project\llvm-project\llvm\include -imsvc"C:\BuildTools\DIA SDK\include" /DWIN32 /D_WINDOWS   /Zc:inline /Zc:__cplusplus /Oi /Brepro /bigobj /permissive- -Werror=unguarded-availability-new /W4  -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -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 /Gw /O2 /Ob2  -std:c++17 -MD -UNDEBUG /EHs-c- /GR- /showIncludes /Folib\Target\WebAssembly\CMakeFiles\LLVMWebAssemblyCodeGen.dir\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp.obj /Fdlib\Target\WebAssembly\CMakeFiles\LLVMWebAssemblyCodeGen.dir\LLVMWebAssemblyCodeGen.pdb -c -- C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(36,20): error: cannot use incomplete type 'Module' as a range
36 |     for (auto &F : M)
|                    ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/Analysis.h(21,7): note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(76,20): error: cannot use incomplete type 'const Module' as a range
76 |     for (auto &F : M) {
|                    ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/Analysis.h(21,7): note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(120,20): error: cannot use incomplete type 'Module' as a range
120 |     for (auto &F : M) {
|                    ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/Analysis.h(21,7): note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(137,20): error: cannot use incomplete type 'Module' as a range
137 |     for (auto &F : M)
|                    ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/Analysis.h(21,7): note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(145,22): error: member access into incomplete type 'Module'
145 |     for (auto &GV : M.globals()) {
|                      ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/Analysis.h(21,7): note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(150,19): error: member access into incomplete type 'IntrinsicInst'
150 |             if (II->getIntrinsicID() == Intrinsic::threadlocal_address &&
|                   ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/CodeGen/TargetLowering.h(80,7): note: forward declaration of 'llvm::IntrinsicInst'
80 | class IntrinsicInst;
|       ^
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(151,19): error: member access into incomplete type 'IntrinsicInst'
151 |                 II->getArgOperand(0) == &GV) {
|                   ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/CodeGen/TargetLowering.h(80,7): note: forward declaration of 'llvm::IntrinsicInst'
80 | class IntrinsicInst;
|       ^
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(152,17): error: member access into incomplete type 'IntrinsicInst'
152 |               II->replaceAllUsesWith(&GV);
|                 ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/CodeGen/TargetLowering.h(80,7): note: forward declaration of 'llvm::IntrinsicInst'
80 | class IntrinsicInst;
|       ^
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(153,17): error: member access into incomplete type 'IntrinsicInst'
153 |               II->eraseFromParent();
|                 ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/CodeGen/TargetLowering.h(80,7): note: forward declaration of 'llvm::IntrinsicInst'
80 | class IntrinsicInst;
|       ^
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(171,10): error: member access into incomplete type 'Module'
171 |         M.addModuleFlag(Module::ModFlagBehavior::Error, MDKey,
|          ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/Analysis.h(21,7): note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(171,25): error: incomplete type 'llvm::Module' named in nested name specifier
171 |         M.addModuleFlag(Module::ModFlagBehavior::Error, MDKey,
|                         ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/Analysis.h(21,7): note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(181,8): error: member access into incomplete type 'Module'
181 |       M.addModuleFlag(Module::ModFlagBehavior::Error, "wasm-feature-shared-mem",
|        ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/Analysis.h(21,7): note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp(181,23): error: incomplete type 'llvm::Module' named in nested name specifier
181 |       M.addModuleFlag(Module::ModFlagBehavior::Error, "wasm-feature-shared-mem",
|                       ^~~~~~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/Analysis.h(21,7): note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyCoalesceFeaturesAndStripAtomics.cpp:9:
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssembly.h:19:
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblySubtarget.h:19:
In file included from C:\_work\llvm-project\llvm-project\llvm\lib\Target\WebAssembly\WebAssemblyFrameLowering.h:18:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/CodeGen/TargetFrameLowering.h:17:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/CodeGen/MachineBasicBlock.h:21:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/CodeGen/MachineFunctionAnalysisManager.h:16:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/IR/PassManager.h:44:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/ADT/TinyPtrVector.h:13:
In file included from C:\_work\llvm-project\llvm-project\llvm\include\llvm/ADT/PointerUnion.h:21:
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/Casting.h(64,53): error: incomplete type 'llvm::IntrinsicInst' named in nested name specifier
64 |   static inline bool doit(const From &Val) { return To::classof(&Val); }
|                                                     ^~~~
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/Casting.h(110,32): note: in instantiation of member function 'llvm::isa_impl<llvm::IntrinsicInst, llvm::User>::doit' requested here
110 |     return isa_impl<To, From>::doit(*Val);
|                                ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/Casting.h(137,37): note: in instantiation of member function 'llvm::isa_impl_cl<llvm::IntrinsicInst, const llvm::User *>::doit' requested here
137 |     return isa_impl_cl<To, FromTy>::doit(Val);
|                                     ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/Casting.h(129,9): note: in instantiation of member function 'llvm::isa_impl_wrap<llvm::IntrinsicInst, const llvm::User *, const llvm::User *>::doit' requested here
129 |         doit(simplify_type<const From>::getSimplifiedValue(Val));
|         ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/Casting.h(257,58): note: in instantiation of member function 'llvm::isa_impl_wrap<llvm::IntrinsicInst, llvm::User *const, const llvm::User *>::doit' requested here
257 |         typename simplify_type<const From>::SimpleType>::doit(f);
|                                                          ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/Casting.h(493,16): note: in instantiation of member function 'llvm::CastIsPossible<llvm::IntrinsicInst, llvm::User *>::isPossible' requested here
493 |     if (!Self::isPossible(f))
|                ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/Support/Casting.h(657,32): note: in instantiation of member function 'llvm::CastInfo<llvm::IntrinsicInst, llvm::User *>::doCastIfPossible' requested here
657 |   return CastInfo<To, From *>::doCastIfPossible(Val);
|                                ^
C:\_work\llvm-project\llvm-project\llvm\include\llvm/CodeGen/TargetLowering.h(80,7): note: forward declaration of 'llvm::IntrinsicInst'
80 | class IntrinsicInst;
|       ^
14 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/209046


More information about the llvm-branch-commits mailing list