Displaying 2 results from an estimated 2 matches for "eliminate_available_externally".
2016 Nov 19
2
GlobalValue::AvailableExternallyLinkage
Because what is happening is that if function “atoi” gets cloned I don’t have a definition of “atoi_parallel” therefore I get undefined references when linking.
I just want to clone and instrument functions implemented in modules of my program.
> On Nov 19, 2016, at 13:54, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
>
>> On Nov 19, 2016, at 12:44 PM, Simone Atzeni
2016 Nov 20
2
GlobalValue::AvailableExternallyLinkage
...ription that you are also updating call sites in the same module so that if foo was calling atoi, after cloning you have foo_parallel that is calling atoi_parallel?
> If this is the issue, it depends, I’d probably consider turning the available_externally into internal. But you can also run the eliminate_available_externally pass before performing your transformation.
No I am not updating call sites, I want the body of the function foo and foo_parallel to be the same.
>
> As a side note, I wonder how are callers outside of the current module that are calling `foo()` supposed to call `foo_parallel()` after?
I i...