[llvm] [X86][Inline] Make ABI compatibility check more precise (PR #205106)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 22 07:21:26 PDT 2026


github-actions[bot] wrote:

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

* 62216 tests passed
* 1829 tests skipped

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

<details>
<summary>[code=4294967295] unittests/tools/llvm-mca/LLVMMCATests.exe</summary>

```
FAILED: [code=4294967295] unittests/tools/llvm-mca/LLVMMCATests.exe
C:\Windows\system32\cmd.exe /C "cd . && C:\BuildTools\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe -E vs_link_exe --msvc-ver=1944 --intdir=unittests\tools\llvm-mca\CMakeFiles\LLVMMCATests.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 unittests\tools\llvm-mca\CMakeFiles\LLVMMCATests.dir\MCATestBase.cpp.obj unittests\tools\llvm-mca\CMakeFiles\LLVMMCATests.dir\__\__\__\tools\llvm-mca\Views\SummaryView.cpp.obj unittests\tools\llvm-mca\CMakeFiles\LLVMMCATests.dir\X86\TestIncrementalMCA.cpp.obj unittests\tools\llvm-mca\CMakeFiles\LLVMMCATests.dir\X86\X86TestBase.cpp.obj unittests\tools\llvm-mca\CMakeFiles\LLVMMCATests.dir\__\__\__\resources\windows_version_resource.rc.res  /out:unittests\tools\llvm-mca\LLVMMCATests.exe /implib:unittests\tools\llvm-mca\LLVMMCATests.lib /pdb:unittests\tools\llvm-mca\LLVMMCATests.pdb /version:0.0 /MANIFEST:NO /Brepro /INCREMENTAL:NO /subsystem:console  /STACK:10000000  lib\LLVMMC.lib  lib\LLVMMCA.lib  lib\LLVMPasses.lib  lib\LLVMSupport.lib  lib\LLVMTargetParser.lib  lib\LLVMX86CodeGen.lib  lib\LLVMX86AsmParser.lib  lib\LLVMX86Desc.lib  lib\LLVMX86Disassembler.lib  lib\LLVMX86Info.lib  lib\llvm_gtest_main.lib  lib\llvm_gtest.lib  lib\LLVMCoroutines.lib  lib\LLVMHipStdPar.lib  lib\LLVMipo.lib  lib\LLVMFrontendOpenMP.lib  lib\LLVMFrontendOffloading.lib  lib\LLVMObjectYAML.lib  lib\LLVMFrontendAtomic.lib  lib\LLVMFrontendDirective.lib  lib\LLVMLinker.lib  lib\LLVMVectorize.lib  lib\LLVMSandboxIR.lib  lib\LLVMCFGuard.lib  lib\LLVMGlobalISel.lib  lib\LLVMIRPrinter.lib  lib\LLVMInstrumentation.lib  lib\LLVMAsmPrinter.lib  lib\LLVMSelectionDAG.lib  lib\LLVMCodeGen.lib  lib\LLVMObjCARCOpts.lib  lib\LLVMScalarOpts.lib  lib\LLVMAggressiveInstCombine.lib  lib\LLVMInstCombine.lib  lib\LLVMCGData.lib  lib\LLVMBitWriter.lib  lib\LLVMTarget.lib  lib\LLVMTransformUtils.lib  lib\LLVMAnalysis.lib  lib\LLVMFrontendHLSL.lib  lib\LLVMProfileData.lib  lib\LLVMSymbolize.lib  lib\LLVMDebugInfoGSYM.lib  lib\LLVMDebugInfoDWARF.lib  lib\LLVMDebugInfoPDB.lib  lib\LLVMObject.lib  lib\LLVMIRReader.lib  lib\LLVMBitReader.lib  lib\LLVMAsmParser.lib  lib\LLVMCore.lib  lib\LLVMRemarks.lib  lib\LLVMBitstreamReader.lib  lib\LLVMTextAPI.lib  lib\LLVMDebugInfoCodeView.lib  lib\LLVMDebugInfoMSF.lib  lib\LLVMDebugInfoBTF.lib  lib\LLVMCodeGenTypes.lib  lib\LLVMMCParser.lib  lib\LLVMMCDisassembler.lib  lib\LLVMDebugInfoDWARFLowLevel.lib  lib\LLVMBinaryFormat.lib  psapi.lib  shell32.lib  ole32.lib  uuid.lib  advapi32.lib  ws2_32.lib  ntdll.lib  delayimp.lib  -delayload:shell32.dll  -delayload:ole32.dll  lib\LLVMDemangle.lib  kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib && cd ."
LINK: command "C:\clang\clang-msvc\bin\lld-link.exe /nologo unittests\tools\llvm-mca\CMakeFiles\LLVMMCATests.dir\MCATestBase.cpp.obj unittests\tools\llvm-mca\CMakeFiles\LLVMMCATests.dir\__\__\__\tools\llvm-mca\Views\SummaryView.cpp.obj unittests\tools\llvm-mca\CMakeFiles\LLVMMCATests.dir\X86\TestIncrementalMCA.cpp.obj unittests\tools\llvm-mca\CMakeFiles\LLVMMCATests.dir\X86\X86TestBase.cpp.obj unittests\tools\llvm-mca\CMakeFiles\LLVMMCATests.dir\__\__\__\resources\windows_version_resource.rc.res /out:unittests\tools\llvm-mca\LLVMMCATests.exe /implib:unittests\tools\llvm-mca\LLVMMCATests.lib /pdb:unittests\tools\llvm-mca\LLVMMCATests.pdb /version:0.0 /MANIFEST:NO /Brepro /INCREMENTAL:NO /subsystem:console /STACK:10000000 lib\LLVMMC.lib lib\LLVMMCA.lib lib\LLVMPasses.lib lib\LLVMSupport.lib lib\LLVMTargetParser.lib lib\LLVMX86CodeGen.lib lib\LLVMX86AsmParser.lib lib\LLVMX86Desc.lib lib\LLVMX86Disassembler.lib lib\LLVMX86Info.lib lib\llvm_gtest_main.lib lib\llvm_gtest.lib lib\LLVMCoroutines.lib lib\LLVMHipStdPar.lib lib\LLVMipo.lib lib\LLVMFrontendOpenMP.lib lib\LLVMFrontendOffloading.lib lib\LLVMObjectYAML.lib lib\LLVMFrontendAtomic.lib lib\LLVMFrontendDirective.lib lib\LLVMLinker.lib lib\LLVMVectorize.lib lib\LLVMSandboxIR.lib lib\LLVMCFGuard.lib lib\LLVMGlobalISel.lib lib\LLVMIRPrinter.lib lib\LLVMInstrumentation.lib lib\LLVMAsmPrinter.lib lib\LLVMSelectionDAG.lib lib\LLVMCodeGen.lib lib\LLVMObjCARCOpts.lib lib\LLVMScalarOpts.lib lib\LLVMAggressiveInstCombine.lib lib\LLVMInstCombine.lib lib\LLVMCGData.lib lib\LLVMBitWriter.lib lib\LLVMTarget.lib lib\LLVMTransformUtils.lib lib\LLVMAnalysis.lib lib\LLVMFrontendHLSL.lib lib\LLVMProfileData.lib lib\LLVMSymbolize.lib lib\LLVMDebugInfoGSYM.lib lib\LLVMDebugInfoDWARF.lib lib\LLVMDebugInfoPDB.lib lib\LLVMObject.lib lib\LLVMIRReader.lib lib\LLVMBitReader.lib lib\LLVMAsmParser.lib lib\LLVMCore.lib lib\LLVMRemarks.lib lib\LLVMBitstreamReader.lib lib\LLVMTextAPI.lib lib\LLVMDebugInfoCodeView.lib lib\LLVMDebugInfoMSF.lib lib\LLVMDebugInfoBTF.lib lib\LLVMCodeGenTypes.lib lib\LLVMMCParser.lib lib\LLVMMCDisassembler.lib lib\LLVMDebugInfoDWARFLowLevel.lib lib\LLVMBinaryFormat.lib psapi.lib shell32.lib ole32.lib uuid.lib advapi32.lib ws2_32.lib ntdll.lib delayimp.lib -delayload:shell32.dll -delayload:ole32.dll lib\LLVMDemangle.lib kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib" failed (exit code 1) with the following output:
lld-link: error: undefined symbol: class llvm::BasicBlock * __cdecl llvm::SplitBlock(class llvm::BasicBlock *, class llvm::ilist_iterator_w_bits<struct llvm::ilist_detail::node_options<class llvm::Instruction, 1, 0, void, 1, class llvm::BasicBlock>, 0, 0>, class llvm::DomTreeUpdater *, class llvm::LoopInfo *, class llvm::MemorySSAUpdater *, class llvm::Twine const &)

>>> referenced by LLVMX86CodeGen.lib(X86LowerAMXIntrinsics.cpp.obj):(public: bool __cdecl `anonymous namespace'::X86LowerAMXIntrinsics::visit(void))

>>> referenced by LLVMX86CodeGen.lib(X86LowerAMXIntrinsics.cpp.obj):(public: bool __cdecl `anonymous namespace'::X86LowerAMXIntrinsics::visit(void))

>>> referenced by LLVMX86CodeGen.lib(X86LowerAMXIntrinsics.cpp.obj):(public: bool __cdecl `anonymous namespace'::X86LowerAMXIntrinsics::visit(void))

>>> referenced 6 more times



lld-link: error: undefined symbol: bool __cdecl llvm::isInstructionTriviallyDead(class llvm::Instruction *, class llvm::TargetLibraryInfo const *)

>>> referenced by LLVMX86CodeGen.lib(X86LowerAMXType.cpp.obj):(public: bool __cdecl `anonymous namespace'::X86LowerAMXCast::combineAMXcast(class llvm::TargetLibraryInfo *))

>>> referenced by LLVMX86CodeGen.lib(X86LowerAMXType.cpp.obj):(public: bool __cdecl `anonymous namespace'::X86LowerAMXCast::combineAMXcast(class llvm::TargetLibraryInfo *))



lld-link: error: undefined symbol: void __cdecl llvm::salvageDebugInfo(class llvm::Instruction &)

>>> referenced by LLVMX86CodeGen.lib(X86LowerAMXType.cpp.obj):(public: bool __cdecl `anonymous namespace'::X86LowerAMXCast::combineAMXcast(class llvm::TargetLibraryInfo *))

>>> referenced by LLVMScalarOpts.lib(LoopStrengthReduce.cpp.obj):(public: __cdecl `anonymous namespace'::LSRInstance::LSRInstance(class llvm::Loop *, class Loop::IVUsers &, class Loop::ScalarEvolution &, class Loop::DominatorTree &, class Loop::LoopInfo &, class Loop::TargetTransformInfo const &, class Loop::AssumptionCache &, class Loop::TargetLibraryInfo &, class Loop::MemorySSAUpdater *))

>>> referenced by LLVMCodeGen.lib(CodeGenPrepare.cpp.obj):(bool __cdecl SinkCast(class llvm::CastInst *))

>>> referenced 1 more times



lld-link: error: undefined symbol: bool __cdecl llvm::salvageKnowledge(class llvm::Instruction *, class llvm::AssumptionCache *, class llvm::DominatorTree *)

>>> referenced by LLVMX86CodeGen.lib(X86LowerAMXType.cpp.obj):(public: bool __cdecl `anonymous namespace'::X86LowerAMXCast::combineAMXcast(class llvm::TargetLibraryInfo *))



lld-link: error: undefined symbol: class llvm::Pass * __cdecl llvm::createCanonicalizeFreezeInLoopsPass(void)

>>> referenced by LLVMCodeGen.lib(TargetPassConfig.cpp.obj):(public: virtual void __cdecl llvm::TargetPassConfig::addIRPasses(void))



lld-link: error: undefined symbol: class llvm::ModulePass * __cdecl llvm::createLowerGlobalDtorsLegacyPass(void)

>>> referenced by LLVMCodeGen.lib(TargetPassConfig.cpp.obj):(public: virtual void __cdecl llvm::TargetPassConfig::addIRPasses(void))



lld-link: error: undefined symbol: class llvm::FunctionPass * __cdecl llvm::createPostInlineEntryExitInstrumenterPass(void)

>>> referenced by LLVMCodeGen.lib(TargetPassConfig.cpp.obj):(public: virtual void __cdecl llvm::TargetPassConfig::addIRPasses(void))



lld-link: error: undefined symbol: class llvm::FunctionPass * __cdecl llvm::createLowerInvokePass(void)

>>> referenced by LLVMCodeGen.lib(TargetPassConfig.cpp.obj):(public: void __cdecl llvm::TargetPassConfig::addPassesToHandleExceptions(void))



lld-link: error: undefined symbol: class llvm::FunctionPass * __cdecl llvm::createTriggerCrashFunctionPass(void)

>>> referenced by LLVMCodeGen.lib(TargetPassConfig.cpp.obj):(public: bool __cdecl llvm::TargetPassConfig::addISelPasses(void))



lld-link: error: undefined symbol: bool __cdecl llvm::lowerAtomicCmpXchgInst(class llvm::AtomicCmpXchgInst *)

>>> referenced by LLVMCodeGen.lib(AtomicExpandPass.cpp.obj):(private: bool __cdecl `anonymous namespace'::AtomicExpandImpl::processAtomicInstr(class llvm::Instruction *))



lld-link: error: undefined symbol: bool __cdecl llvm::lowerAtomicRMWInst(class llvm::AtomicRMWInst *)

>>> referenced by LLVMCodeGen.lib(AtomicExpandPass.cpp.obj):(private: bool __cdecl `anonymous namespace'::AtomicExpandImpl::tryExpandAtomicRMW(class llvm::AtomicRMWInst *))



lld-link: error: undefined symbol: class llvm::Value * __cdecl llvm::buildAtomicRMWValue(enum llvm::AtomicRMWInst::BinOp, class llvm::IRBuilderBase &, class llvm::Value *, class llvm::Value *)

>>> referenced by LLVMCodeGen.lib(AtomicExpandPass.cpp.obj):(private: static class llvm::Value * __cdecl llvm::function_ref<class llvm::Value * __cdecl(class llvm::IRBuilderBase &, class llvm::Value *)>::callback_fn<class `private: bool __cdecl `anonymous namespace'::AtomicExpandImpl::expandAtomicRMWToCmpXchg(class llvm::AtomicRMWInst *, class AtomicRMWInst::function_ref<void __cdecl(class llvm::IRBuilderBase &, class llvm::Value *, class llvm::Value *, class llvm::Value *, struct llvm::Align, enum llvm::AtomicOrdering, unsigned char, bool, class llvm::Value *&, class llvm::Value *&, class llvm::Instruction *)>)'::`1'::<lambda_5>>(__int64, class llvm::IRBuilderBase &, class llvm::Value *))

>>> referenced by LLVMCodeGen.lib(AtomicExpandPass.cpp.obj):(private: static class llvm::Value * __cdecl llvm::function_ref<class llvm::Value * __cdecl(class llvm::IRBuilderBase &, class llvm::Value *)>::callback_fn<class `private: void __cdecl `anonymous namespace'::AtomicExpandImpl::expandPartwordAtomicRMW(class llvm::AtomicRMWInst *, enum AtomicRMWInst::TargetLoweringBase::AtomicExpansionKind)'::`1'::<lambda_4>>(__int64, class llvm::IRBuilderBase &, class llvm::Value *))

>>> referenced by LLVMCodeGen.lib(AtomicExpandPass.cpp.obj):(private: static class llvm::Value * __cdecl llvm::function_ref<class llvm::Value * __cdecl(class llvm::IRBuilderBase &, class llvm::Value *)>::callback_fn<class `private: void __cdecl `anonymous namespace'::AtomicExpandImpl::expandPartwordAtomicRMW(class llvm::AtomicRMWInst *, enum AtomicRMWInst::TargetLoweringBase::AtomicExpansionKind)'::`1'::<lambda_4>>(__int64, class llvm::IRBuilderBase &, class llvm::Value *))

>>> referenced 1 more times



lld-link: error: undefined symbol: bool __cdecl llvm::RecursivelyDeleteTriviallyDeadInstructions(class llvm::Value *, class llvm::TargetLibraryInfo const *, class llvm::MemorySSAUpdater *, class std::function<void __cdecl(class llvm::Value *)>)

>>> referenced by LLVMCodeGen.lib(InterleavedAccessPass.cpp.obj):(public: bool __cdecl `anonymous namespace'::InterleavedAccessImpl::runOnFunction(class llvm::Function &))

>>> referenced by LLVMCodeGen.lib(CodeGenPrepare.cpp.obj):(private: bool __cdecl `anonymous namespace'::CodeGenPrepare::_run(class llvm::Function &))

>>> referenced by LLVMCodeGen.lib(CodeGenPrepare.cpp.obj):(private: bool __cdecl `anonymous namespace'::CodeGenPrepare::_run(class llvm::Function &))

>>> referenced 11 more times



lld-link: error: undefined symbol: void __cdecl llvm::appendToUsed(class llvm::Module &, class llvm::ArrayRef<class llvm::GlobalValue *>)

>>> referenced by LLVMCodeGen.lib(JMCInstrumenter.cpp.obj):(bool __cdecl runImpl(class llvm::Module &))

>>> referenced by LLVMInstrumentation.lib(AddressSanitizer.cpp.obj):(private: class llvm::Instruction * __cdecl `anonymous namespace'::ModuleAddressSanitizer::CreateAsanModuleDtor(void))



lld-link: error: undefined symbol: public: static bool __cdecl llvm::MemoryOpRemark::canHandle(class llvm::Instruction const *, class llvm::TargetLibraryInfo const &)

>>> referenced by LLVMGlobalISel.lib(IRTranslator.cpp.obj):(private: bool __cdecl llvm::IRTranslator::translateKnownIntrinsic(class llvm::CallInst const &, unsigned int, class llvm::MachineIRBuilder &))

>>> referenced by LLVMGlobalISel.lib(IRTranslator.cpp.obj):(private: bool __cdecl llvm::IRTranslator::translateCallBase(class llvm::CallBase const &, class llvm::MachineIRBuilder &))



lld-link: error: undefined symbol: public: void __cdecl llvm::MemoryOpRemark::visit(class llvm::Instruction const *)

>>> referenced by LLVMGlobalISel.lib(IRTranslator.cpp.obj):(private: bool __cdecl llvm::IRTranslator::translateKnownIntrinsic(class llvm::CallInst const &, unsigned int, class llvm::MachineIRBuilder &))

>>> referenced by LLVMGlobalISel.lib(IRTranslator.cpp.obj):(private: bool __cdecl llvm::IRTranslator::translateCallBase(class llvm::CallBase const &, class llvm::MachineIRBuilder &))



lld-link: error: undefined symbol: public: virtual __cdecl llvm::MemoryOpRemark::~MemoryOpRemark(void)

>>> referenced by LLVMGlobalISel.lib(IRTranslator.cpp.obj):(private: bool __cdecl llvm::IRTranslator::translateKnownIntrinsic(class llvm::CallInst const &, unsigned int, class llvm::MachineIRBuilder &))

>>> referenced by LLVMGlobalISel.lib(IRTranslator.cpp.obj):(private: bool __cdecl llvm::IRTranslator::translateCallBase(class llvm::CallBase const &, class llvm::MachineIRBuilder &))

>>> referenced by LLVMGlobalISel.lib(IRTranslator.cpp.obj):(public: virtual void * __cdecl llvm::MemoryOpRemark::`scalar deleting dtor'(unsigned int))



lld-link: error: undefined symbol: struct llvm::Align __cdecl llvm::getOrEnforceKnownAlignment(class llvm::Value *, struct llvm::MaybeAlign, class llvm::DataLayout const &, class llvm::Instruction const *, class llvm::AssumptionCache *, class llvm::DominatorTree const *)

>>> referenced by LLVMGlobalISel.lib(IRTranslator.cpp.obj):(private: bool __cdecl llvm::IRTranslator::translateKnownIntrinsic(class llvm::CallInst const &, unsigned int, class llvm::MachineIRBuilder &))

>>> referenced by LLVMCodeGen.lib(CodeGenPrepare.cpp.obj):(private: bool __cdecl `anonymous namespace'::CodeGenPrepare::optimizeCallInst(class llvm::CallInst *, enum `anonymous namespace'::ModifyDT &))

>>> referenced by LLVMCodeGen.lib(CodeGenPrepare.cpp.obj):(private: bool __cdecl `anonymous namespace'::CodeGenPrepare::optimizeCallInst(class llvm::CallInst *, enum `anonymous namespace'::ModifyDT &))



lld-link: error: undefined symbol: protected: virtual class std::basic_string<char, struct std::char_traits<char>, class std::allocator<char>> __cdecl llvm::MemoryOpRemark::explainSource(class llvm::StringRef) const

>>> referenced by LLVMGlobalISel.lib(IRTranslator.cpp.obj):(const llvm::MemoryOpRemark::`vftable')



lld-link: error: undefined symbol: protected: virtual class llvm::StringRef __cdecl llvm::MemoryOpRemark::remarkName(enum llvm::MemoryOpRemark::RemarkKind) const

>>> referenced by LLVMGlobalISel.lib(IRTranslator.cpp.obj):(const llvm::MemoryOpRemark::`vftable')



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/205106


More information about the llvm-commits mailing list