search for: disable_call_synthesis

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

2019 Apr 30
3
[RFC][clang/llvm] Allow efficient implementation of libc's memory functions in C/C++
Thx for the feedback David. So we're heading toward a broader > __attribute__((disable_call_synthesis)) David what do you think about the additional version that restrict the effect to a few named functions? > e.g. __attribute__((disable_call_synthesis("memset", "memcpy", "sqrt"))) A warning should be issued if the arguments are not part of RuntimeLibcalls.def. A...
2019 Apr 26
2
[RFC][clang/llvm] Allow efficient implementation of libc's memory functions in C/C++
...hes: an *attribute to prevent the compiler from synthesizing calls* or a *set of builtins* to communicate the intent more precisely to the compiler. 1. A function/module attribute to disable synthesis of calls 1.1 A specific attribute to disable the synthesis of a single call __attribute__((disable_call_synthesis("memcpy"))) Question: Is it possible to specify the attribute several times on a function to disable many calls? 1.2 A specific attribute to disable synthesis of all libc calls __attribute__((disable_libc_call_synthesis)) With this one we are losing precision and we may inline too mu...