[llvm-dev] [llvm][Linker] llvm-link / ModuleLinker drops GlobalIFuncs

Itay Bookstein via llvm-dev llvm-dev at lists.llvm.org
Wed Aug 11 07:26:41 PDT 2021


It appears that the code in llvm/lib/Linker/LinkModules.cpp doesn't
take GlobalIFunc-s into account, and therefore drops them. There are
three loops that iterate over GlobalVariable, Function and GlobalAlias
respectively, to collect them into ValuesToLink. I'm wondering whether
replacing these three loops with a single loop over all GlobalValues
is sufficient to remedy this.
WDYT?

-- 
Itay Bookstein
Software Engineer
NEXTSILICON

-- 
This e-mail message and any attachments thereto are intended only for the 
person or entity to which it is addressed and may contain confidential 
and/or privileged material. Any retransmission, dissemination, copying or 
other use of, or taking of any action in reliance upon this information is 
prohibited. If you are not the intended addressee, please contact the 
sender immediately and delete the materials and information from your 
device and system and confirm the deletion by reply e-mail.


More information about the llvm-dev mailing list