[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: Linux-->
# :penguin: Linux x64 Test Results

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

<details>
<summary>lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyCoalesceFeaturesAndStripAtomics.cpp.o</summary>

```
FAILED: lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyCoalesceFeaturesAndStripAtomics.cpp.o
sccache /opt/llvm/bin/clang++ -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/lib/Target/WebAssembly -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/WebAssembly -I/home/gha/actions-runner/_work/llvm-project/llvm-project/build/include -I/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/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 -O3 -DNDEBUG -std=c++17 -fvisibility=hidden -UNDEBUG -fno-exceptions -funwind-tables -fno-rtti -MD -MT lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyCoalesceFeaturesAndStripAtomics.cpp.o -MF lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyCoalesceFeaturesAndStripAtomics.cpp.o.d -o lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyCoalesceFeaturesAndStripAtomics.cpp.o -c /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCoalesceFeaturesAndStripAtomics.cpp
/home/gha/actions-runner/_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)
|                    ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Analysis.h:21:7: note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
/home/gha/actions-runner/_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) {
|                    ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Analysis.h:21:7: note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
/home/gha/actions-runner/_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) {
|                    ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Analysis.h:21:7: note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
/home/gha/actions-runner/_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)
|                    ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Analysis.h:21:7: note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
/home/gha/actions-runner/_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()) {
|                      ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Analysis.h:21:7: note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
/home/gha/actions-runner/_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 &&
|                   ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:80:7: note: forward declaration of 'llvm::IntrinsicInst'
80 | class IntrinsicInst;
|       ^
/home/gha/actions-runner/_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) {
|                   ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:80:7: note: forward declaration of 'llvm::IntrinsicInst'
80 | class IntrinsicInst;
|       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCoalesceFeaturesAndStripAtomics.cpp:152:17: error: member access into incomplete type 'IntrinsicInst'
152 |               II->replaceAllUsesWith(&GV);
|                 ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:80:7: note: forward declaration of 'llvm::IntrinsicInst'
80 | class IntrinsicInst;
|       ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCoalesceFeaturesAndStripAtomics.cpp:153:17: error: member access into incomplete type 'IntrinsicInst'
153 |               II->eraseFromParent();
|                 ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/CodeGen/TargetLowering.h:80:7: note: forward declaration of 'llvm::IntrinsicInst'
80 | class IntrinsicInst;
|       ^
/home/gha/actions-runner/_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,
|          ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Analysis.h:21:7: note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
/home/gha/actions-runner/_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,
|                         ^~~~~~~~
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Analysis.h:21:7: note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
/home/gha/actions-runner/_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",
|        ^
/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/Analysis.h:21:7: note: forward declaration of 'llvm::Module'
21 | class Module;
|       ^
/home/gha/actions-runner/_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",
|                       ^~~~~~~~
/home/gha/actions-runner/_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 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyCoalesceFeaturesAndStripAtomics.cpp:9:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/WebAssembly/WebAssembly.h:19:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblySubtarget.h:19:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h:18:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/CodeGen/TargetFrameLowering.h:17:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/CodeGen/MachineBasicBlock.h:21:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/CodeGen/MachineFunctionAnalysisManager.h:16:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/IR/PassManager.h:44:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/TinyPtrVector.h:13:
In file included from /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/include/llvm/ADT/PointerUnion.h:21:
/home/gha/actions-runner/_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); }
|                                                     ^~~~
/home/gha/actions-runner/_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);
|                                ^
/home/gha/actions-runner/_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);
|                                     ^
/home/gha/actions-runner/_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));
|         ^
/home/gha/actions-runner/_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);
|                                                          ^
/home/gha/actions-runner/_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))
|                ^
/home/gha/actions-runner/_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);
|                                ^
/home/gha/actions-runner/_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