search for: emittargetcodeformemset

Displaying 2 results from an estimated 2 matches for "emittargetcodeformemset".

2020 Aug 28
2
EmitTargetCodeForMemSet & LTO issue
Hi everyone, I have 2 implementations of "memset". A standard one, and another one optimized when the pointer and the size respect some specific constraints. I am able to choose the proper one in the "EmitTargetCodeForMemSet" method that I implemented for my backend. My issue is when I am compiling with the LTO optimisation, the linker tells me that the optimized memset symbol is undefined ("*ld.lld: error: undefined symbol: __memset_opt*"). I've looked into theLTO archive used and I found both mems...
2020 Aug 31
2
EmitTargetCodeForMemSet & LTO issue
Hi Teresa, Thank you for the help, adding the "used" attribute worked just fine. It made me realize that the memset function is never inlined by the LTO optimization even without my implementation of the "EmitTargetCodeForMemSet" method. I supposed that the passes dealing with the memset function happen too late, is that correct? Thank you again, Romaric On Fri, Aug 28, 2020 at 5:51 PM Teresa Johnson <tejohnson at google.com> wrote: > ThinLTO's whole program analysis is driven off of the linker symbol...