[Mlir-commits] [mlir] [mlir][arith] Fix issue where setOperand is called inside the fold fu… (PR #204506)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Wed Jun 17 22:02:50 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=4294967295] tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/MLIRPythonCAPI.dll tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/MLIRPythonCAPI.lib</summary>
```
FAILED: [code=4294967295] tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/MLIRPythonCAPI.dll tools/mlir/python_packages/mlir_core/mlir/_mlir_libs/MLIRPythonCAPI.lib
C:\Windows\system32\cmd.exe /C "C:\Windows\system32\cmd.exe /C "C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E __create_def C:\_work\llvm-project\llvm-project\build\tools\mlir\python\CMakeFiles\MLIRPythonCAPI.dir\.\exports.def C:\_work\llvm-project\llvm-project\build\tools\mlir\python\CMakeFiles\MLIRPythonCAPI.dir\.\exports.def.objs --nm=CMAKE_NM-NOTFOUND && cd C:\_work\llvm-project\llvm-project\build" && C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E vs_link_dll --msvc-ver=1944 --intdir=tools\mlir\python\CMakeFiles\MLIRPythonCAPI.dir --rc="C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\rc.exe" --mt="C:\Program Files (x86)\Windows Kits\10\bin\10.0.26100.0\x64\mt.exe" --manifests -- C:\clang\clang-msvc\bin\lld-link.exe /nologo @CMakeFiles\MLIRPythonCAPI.rsp /out:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonCAPI.dll /implib:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonCAPI.lib /pdb:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonCAPI.pdb /dll /version:0.0 /MANIFEST:NO /Brepro /INCREMENTAL:NO /DEF:tools\mlir\python\CMakeFiles\MLIRPythonCAPI.dir\.\exports.def && cd ."
LINK: command "C:\clang\clang-msvc\bin\lld-link.exe /nologo @CMakeFiles\MLIRPythonCAPI.rsp /out:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonCAPI.dll /implib:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonCAPI.lib /pdb:tools\mlir\python_packages\mlir_core\mlir\_mlir_libs\MLIRPythonCAPI.pdb /dll /version:0.0 /MANIFEST:NO /Brepro /INCREMENTAL:NO /DEF:tools\mlir\python\CMakeFiles\MLIRPythonCAPI.dir\.\exports.def" failed (exit code 1) with the following output:
lld-link: error: undefined symbol: public: __cdecl llvm::FaultMaps::FaultMaps(class llvm::AsmPrinter &)
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: __cdecl llvm::X86AsmPrinter::X86AsmPrinter(class llvm::TargetMachine &, class std::unique_ptr<class llvm::MCStreamer, struct std::default_delete<class llvm::MCStreamer>>))
>>> referenced by LLVMAArch64CodeGen.lib(AArch64AsmPrinter.cpp.obj):(private: static class llvm::AsmPrinter * __cdecl llvm::RegisterAsmPrinter<class `anonymous namespace'::AArch64AsmPrinter>::Allocator(class llvm::TargetMachine &, class std::unique_ptr<class llvm::MCStreamer, struct std::default_delete<class llvm::MCStreamer>> &&))
lld-link: error: undefined symbol: public: struct llvm::Align __cdecl llvm::MachineFunction::getPreferredAlignment(void) const
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(private: void __cdecl llvm::X86AsmPrinter::EmitKCFITypePadding(class llvm::MachineFunction const &, bool))
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: virtual void __cdecl llvm::X86AsmPrinter::emitKCFITypeId(class llvm::MachineFunction const &))
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: virtual void __cdecl llvm::X86AsmPrinter::emitKCFITypeId(class llvm::MachineFunction const &))
>>> referenced 2 more times
lld-link: error: undefined symbol: public: class llvm::StringRef __cdecl llvm::MachineFunction::getName(void) const
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: virtual void __cdecl llvm::X86AsmPrinter::emitKCFITypeId(class llvm::MachineFunction const &))
>>> referenced by LLVMAsmPrinter.lib(AsmPrinter.cpp.obj):(public: void __cdecl llvm::AsmPrinter::emitStackUsage(class llvm::MachineFunction const &))
>>> referenced by LLVMAsmPrinter.lib(AsmPrinter.cpp.obj):(public: void __cdecl llvm::AsmPrinter::emitFunctionBody(void))
>>> referenced 155 more times
lld-link: error: undefined symbol: public: class llvm::MCSymbol * __cdecl llvm::MachineFunction::getPICBaseSymbol(void) const
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(private: virtual void __cdecl llvm::X86AsmPrinter::PrintSymbolOperand(class llvm::MachineOperand const &, class llvm::raw_ostream &))
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(private: virtual void __cdecl llvm::X86AsmPrinter::PrintSymbolOperand(class llvm::MachineOperand const &, class llvm::raw_ostream &))
>>> referenced by LLVMX86CodeGen.lib(X86MCInstLower.cpp.obj):(public: virtual void __cdecl llvm::X86AsmPrinter::emitInstruction(class llvm::MachineInstr const *))
>>> referenced 12 more times
lld-link: error: undefined symbol: public: enum llvm::InlineAsm::AsmDialect __cdecl llvm::MachineInstr::getInlineAsmDialect(void) const
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(private: void __cdecl llvm::X86AsmPrinter::PrintOperand(class llvm::MachineInstr const *, unsigned int, class llvm::raw_ostream &))
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(private: void __cdecl llvm::X86AsmPrinter::PrintOperand(class llvm::MachineInstr const *, unsigned int, class llvm::raw_ostream &))
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(private: void __cdecl llvm::X86AsmPrinter::PrintModifiedOperand(class llvm::MachineInstr const *, unsigned int, class llvm::raw_ostream &, class llvm::StringRef))
>>> referenced 7 more times
lld-link: error: undefined symbol: public: class llvm::MachineInstrBundleIterator<class llvm::MachineInstr, 0> __cdecl llvm::MachineBasicBlock::getLastNonDebugInstr(bool)
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: virtual void __cdecl llvm::X86AsmPrinter::emitBasicBlockEnd(class llvm::MachineBasicBlock const &))
>>> referenced by LLVMGlobalISel.lib(RegBankSelect.cpp.obj):(public: __cdecl llvm::RegBankSelect::RepairingPlacement::RepairingPlacement(class llvm::MachineInstr &, unsigned int, class llvm::TargetRegisterInfo const &, class llvm::Pass &, enum llvm::RegBankSelect::RepairingPlacement::RepairingKind))
>>> referenced by LLVMAMDGPUCodeGen.lib(GCNPreRALongBranchReg.cpp.obj):(public: bool __cdecl `anonymous namespace'::GCNPreRALongBranchReg::run(class llvm::MachineFunction &))
>>> referenced 48 more times
lld-link: error: undefined symbol: protected: static class std::vector<struct std::pair<class llvm::MCSymbol *, class llvm::PointerIntPair<class llvm::MCSymbol *, 1, bool, struct llvm::PointerLikeTypeTraits<class llvm::MCSymbol *>, struct llvm::PointerIntPairInfo<class llvm::MCSymbol *, 1, struct llvm::PointerLikeTypeTraits<class llvm::MCSymbol *>>>>, class std::allocator<struct std::pair<class llvm::MCSymbol *, class llvm::PointerIntPair<class llvm::MCSymbol *, 1, bool, struct llvm::PointerLikeTypeTraits<class llvm::MCSymbol *>, struct llvm::PointerIntPairInfo<class llvm::MCSymbol *, 1, struct llvm::PointerLikeTypeTraits<class llvm::MCSymbol *>>>>>> __cdecl llvm::MachineModuleInfoImpl::getSortedStubs(class llvm::DenseMap<class llvm::MCSymbol *, class llvm::PointerIntPair<class llvm::MCSymbol *, 1, bool, struct llvm::PointerLikeTypeTraits<class llvm::MCSymbol *>, struct llvm::PointerIntPairInfo<class llvm::MCSymbol *, 1, struct llvm::PointerLikeTypeTraits<class llvm::MCSymbol *>>>, struct llvm::DenseMapInfo<class llvm::MCSymbol *, void>, struct llvm::detail::DenseMapPair<class llvm::MCSymbol *, class llvm::PointerIntPair<class llvm::MCSymbol *, 1, bool, struct llvm::PointerLikeTypeTraits<class llvm::MCSymbol *>, struct llvm::PointerIntPairInfo<class llvm::MCSymbol *, 1, struct llvm::PointerLikeTypeTraits<class llvm::MCSymbol *>>>>> &)
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: virtual void __cdecl llvm::X86AsmPrinter::emitEndOfAsmFile(class llvm::Module &))
>>> referenced by LLVMAsmPrinter.lib(AsmPrinter.cpp.obj):(public: virtual bool __cdecl llvm::AsmPrinter::doFinalization(class llvm::Module &))
>>> referenced by LLVMAsmPrinter.lib(AsmPrinter.cpp.obj):(public: virtual bool __cdecl llvm::AsmPrinter::doFinalization(class llvm::Module &))
>>> referenced 2 more times
lld-link: error: undefined symbol: public: void __cdecl llvm::FaultMaps::serializeToFaultMapSection(void)
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: virtual void __cdecl llvm::X86AsmPrinter::emitEndOfAsmFile(class llvm::Module &))
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: virtual void __cdecl llvm::X86AsmPrinter::emitEndOfAsmFile(class llvm::Module &))
>>> referenced by LLVMAArch64CodeGen.lib(AArch64AsmPrinter.cpp.obj):(private: virtual void __cdecl `anonymous namespace'::AArch64AsmPrinter::emitEndOfAsmFile(class llvm::Module &))
>>> referenced 1 more times
lld-link: error: undefined symbol: private: static struct llvm::AnalysisKey llvm::OuterAnalysisManagerProxy<class llvm::AnalysisManager<class llvm::Module>, class llvm::MachineFunction>::Key
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: class llvm::PreservedAnalyses __cdecl llvm::X86AsmPrinterPass::run(class llvm::MachineFunction &, class llvm::AnalysisManager<class llvm::MachineFunction> &))
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: class llvm::PreservedAnalyses __cdecl llvm::X86AsmPrinterPass::run(class llvm::MachineFunction &, class llvm::AnalysisManager<class llvm::MachineFunction> &))
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(private: virtual class llvm::ProfileSummaryInfo * __cdecl std::_Func_impl_no_alloc<class `public: class llvm::PreservedAnalyses __cdecl llvm::X86AsmPrinterPass::run(class llvm::MachineFunction &, class llvm::AnalysisManager<class llvm::MachineFunction> &)'::`1'::<lambda_4>, class llvm::ProfileSummaryInfo *, class llvm::Module &>::_Do_call(class llvm::Module &))
>>> referenced 20 more times
lld-link: error: undefined symbol: private: struct llvm::detail::AnalysisResultConcept<class llvm::MachineFunction, class llvm::AnalysisManager<class llvm::MachineFunction>::Invalidator> & __cdecl llvm::AnalysisManager<class llvm::MachineFunction>::getResultImpl(struct llvm::AnalysisKey *, class llvm::MachineFunction &)
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: class llvm::PreservedAnalyses __cdecl llvm::X86AsmPrinterPass::run(class llvm::MachineFunction &, class llvm::AnalysisManager<class llvm::MachineFunction> &))
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(private: virtual class llvm::ProfileSummaryInfo * __cdecl std::_Func_impl_no_alloc<class `public: class llvm::PreservedAnalyses __cdecl llvm::X86AsmPrinterPass::run(class llvm::MachineFunction &, class llvm::AnalysisManager<class llvm::MachineFunction> &)'::`1'::<lambda_4>, class llvm::ProfileSummaryInfo *, class llvm::Module &>::_Do_call(class llvm::Module &))
>>> referenced by LLVMAsmPrinter.lib(AsmPrinter.cpp.obj):(void __cdecl llvm::setupMachineFunctionAsmPrinter(class llvm::AnalysisManager<class llvm::MachineFunction> &, class llvm::MachineFunction &, class llvm::AsmPrinter &))
>>> referenced 113 more times
lld-link: error: undefined symbol: public: virtual __cdecl llvm::MachineModuleInfoImpl::~MachineModuleInfoImpl(void)
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: virtual void * __cdecl llvm::MachineModuleInfoImpl::`scalar deleting dtor'(unsigned int))
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(public: virtual __cdecl llvm::MachineModuleInfoMachO::~MachineModuleInfoMachO(void))
>>> referenced by LLVMAsmPrinter.lib(AsmPrinter.cpp.obj):(public: virtual void * __cdecl llvm::MachineModuleInfoCOFF::`scalar deleting dtor'(unsigned int))
>>> referenced 2 more times
lld-link: error: undefined symbol: private: virtual class llvm::Pass * __cdecl llvm::MachineFunctionPass::createPrinterPass(class llvm::raw_ostream &, class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> const &) const
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(const llvm::X86AsmPrinter::`vftable')
>>> referenced by LLVMX86CodeGen.lib(X86TargetMachine.cpp.obj):(const `anonymous namespace'::X86ExecutionDomainFix::`vftable')
>>> referenced by LLVMX86CodeGen.lib(X86TargetMachine.cpp.obj):(const llvm::ExecutionDomainFix::`vftable')
>>> referenced 344 more times
lld-link: error: undefined symbol: private: virtual bool __cdecl llvm::MachineFunctionPass::runOnFunction(class llvm::Function &)
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(const llvm::X86AsmPrinter::`vftable')
>>> referenced by LLVMX86CodeGen.lib(X86TargetMachine.cpp.obj):(const `anonymous namespace'::X86ExecutionDomainFix::`vftable')
>>> referenced by LLVMX86CodeGen.lib(X86TargetMachine.cpp.obj):(const llvm::ExecutionDomainFix::`vftable')
>>> referenced 344 more times
lld-link: error: undefined symbol: private: virtual bool __cdecl llvm::MachineFunctionPass::printIRUnit(class llvm::raw_ostream &, class llvm::Function &)
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(const llvm::X86AsmPrinter::`vftable')
>>> referenced by LLVMX86CodeGen.lib(X86TargetMachine.cpp.obj):(const `anonymous namespace'::X86ExecutionDomainFix::`vftable')
>>> referenced by LLVMX86CodeGen.lib(X86TargetMachine.cpp.obj):(const llvm::ExecutionDomainFix::`vftable')
>>> referenced 344 more times
lld-link: error: undefined symbol: private: virtual void __cdecl llvm::MachineModuleInfoMachO::anchor(void)
>>> referenced by LLVMX86CodeGen.lib(X86AsmPrinter.cpp.obj):(const llvm::MachineModuleInfoMachO::`vftable')
>>> referenced by LLVMX86CodeGen.lib(X86MCInstLower.cpp.obj)
>>> referenced by LLVMAArch64CodeGen.lib(AArch64AsmPrinter.cpp.obj)
lld-link: error: undefined symbol: void __cdecl llvm::initializeMachineKCFILegacyPass(class llvm::PassRegistry &)
>>> referenced by LLVMX86CodeGen.lib(X86TargetMachine.cpp.obj):(LLVMInitializeX86Target)
>>> referenced by LLVMAArch64CodeGen.lib(AArch64TargetMachine.cpp.obj):(LLVMInitializeAArch64Target)
>>> referenced by LLVMARMCodeGen.lib(ARMTargetMachine.cpp.obj):(LLVMInitializeARMTarget)
>>> referenced 1 more times
lld-link: error: undefined symbol: void __cdecl llvm::initializeReachingDefInfoWrapperPassPass(class llvm::PassRegistry &)
>>> referenced by LLVMX86CodeGen.lib(X86TargetMachine.cpp.obj):(void __cdecl llvm::initializeX86ExecutionDomainFixPass(class llvm::PassRegistry &))
>>> referenced by LLVMARMCodeGen.lib(ARMTargetMachine.cpp.obj):(void __cdecl llvm::initializeARMExecutionDomainFixPass(class llvm::PassRegistry &))
>>> referenced by LLVMARMCodeGen.lib(ARMFixCortexA57AES1742098Pass.cpp.obj):(void __cdecl llvm::initializeARMFixCortexA57AES1742098Pass(class llvm::PassRegistry &))
lld-link: error: undefined symbol: protected: __cdecl llvm::CodeGenTargetMachineImpl::CodeGenTargetMachineImpl(class llvm::Target const &, class llvm::StringRef, class llvm::Triple const &, class llvm::StringRef, class llvm::StringRef, class llvm::TargetOptions const &, enum llvm::Reloc::Model, enum llvm::CodeModel::Model, enum llvm::CodeGenOptLevel)
>>> referenced by LLVMX86CodeGen.lib(X86TargetMachine.cpp.obj):(public: __cdecl llvm::X86TargetMachine::X86TargetMachine(class llvm::Target const &, class llvm::Triple const &, class llvm::StringRef, class llvm::StringRef, class llvm::TargetOptions const &, class std::optional<enum llvm::Reloc::Model>, class std::optional<enum llvm::CodeModel::Model>, enum llvm::CodeGenOptLevel, bool))
>>> referenced by LLVMNVPTXCodeGen.lib(NVPTXTargetMachine.cpp.obj):(public: __cdecl llvm::NVPTXTargetMachine::NVPTXTargetMachine(class llvm::Target const &, class llvm::Triple const &, class llvm::StringRef, class llvm::StringRef, class llvm::TargetOptions const &, class std::optional<enum llvm::Reloc::Model>, class std::optional<enum llvm::CodeModel::Model>, enum llvm::CodeGenOptLevel, bool))
>>> referenced by LLVMAMDGPUCodeGen.lib(AMDGPUTargetMachine.cpp.obj):(public: __cdecl llvm::AMDGPUTargetMachine::AMDGPUTargetMachine(class llvm::Target const &, class llvm::Triple const &, class llvm::StringRef, class llvm::StringRef, class llvm::TargetOptions const &, class std::optional<enum llvm::Reloc::Model>, class std::optional<enum llvm::CodeModel::Model>, enum llvm::CodeGenOptLevel))
>>> referenced 17 more times
lld-link: error: undefined symbol: public: __cdecl llvm::TargetLoweringObjectFileMachO::TargetLoweringObjectFileMachO(void)
>>> referenced by LLVMX86CodeGen.lib(X86TargetMachine.cpp.obj):(public: __cdecl llvm::X86TargetMachine::X86TargetMachine(class llvm::Target const &, class llvm::Triple const &, class llvm::StringRef, class llvm::StringRef, class llvm::TargetOptions const &, class std::optional<enum llvm::Reloc::Model>, class std::optional<enum llvm::CodeModel::Model>, enum llvm::CodeGenOptLevel, bool))
>>> referenced by LLVMX86CodeGen.lib(X86TargetMachine.cpp.obj):(public: __cdecl llvm::X86TargetMachine::X86TargetMachine(class llvm::Target const &, class llvm::Triple const &, class llvm::StringRef, class llvm::StringRef, class llvm::TargetOptions const &, class std::optional<enum llvm::Reloc::Model>, class std::optional<enum llvm::CodeModel::Model>, enum llvm::CodeGenOptLevel, bool))
>>> referenced by LLVMARMCodeGen.lib(ARMTargetMachine.cpp.obj):(public: __cdecl llvm::ARMBaseTargetMachine::ARMBaseTargetMachine(class llvm::Target const &, class llvm::Triple const &, class llvm::StringRef, class llvm::StringRef, class llvm::TargetOptions const &, class std::optional<enum llvm::Reloc::Model>, class std::optional<enum llvm::CodeModel::Model>, enum llvm::CodeGenOptLevel))
>>> referenced 2 more times
lld-link: error: undefined symbol: protected: void __cdecl llvm::CodeGenTargetMachineImpl::initAsmInfo(void)
>>> referenced by LLVMX86CodeGen.lib(X86TargetMachine.cpp.obj):(public: __cdecl llvm::X86TargetMachine::X86TargetMachine(class llvm::Target const &, class llvm::Triple const &, class llvm::StringRef, class llvm::StringRef, class llvm::TargetOptions const &, class std::optional<enum llvm::Reloc::Model>, class std::optional<enum llvm::CodeModel::Model>, enum llvm::CodeGenOptLevel, bool))
>>> referenced by LLVMNVPTXCodeGen.lib(NVPTXTargetMachine.cpp.obj):(public: __cdecl llvm::NVPTXTargetMachine::NVPTXTargetMachine(class llvm::Target const &, class llvm::Triple const &, class llvm::StringRef, class llvm::StringRef, class llvm::TargetOptions const &, class std::optional<enum llvm::Reloc::Model>, class std::optional<enum llvm::CodeModel::Model>, enum llvm::CodeGenOptLevel, bool))
>>> referenced by LLVMAMDGPUCodeGen.lib(AMDGPUTargetMachine.cpp.obj):(public: __cdecl llvm::AMDGPUTargetMachine::AMDGPUTargetMachine(class llvm::Target const &, class llvm::Triple const &, class llvm::StringRef, class llvm::StringRef, class llvm::TargetOptions const &, class std::optional<enum llvm::Reloc::Model>, class std::optional<enum llvm::CodeModel::Model>, enum llvm::CodeGenOptLevel))
>>> referenced 17 more times
lld-link: error: too many errors emitted, stopping now (use /errorlimit:0 to see all errors)
```
</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/204506
More information about the Mlir-commits
mailing list