Displaying 3 results from an estimated 3 matches for "52d65f6f".
2018 May 29
0
Inline constant std::function parameter
On 5/29/2018 10:52 AM, Eleftherios Ioannidis via llvm-dev wrote:
> However that doesn't seem to be the case, does the inliner not get triggered if the functions are passed as objects (std::function) or am I using the wrong `opt` invokation?
In general, the inliner can only inline direct function calls (not
virtual calls, or calls through a function pointer or std::function);
otherwise,
2018 May 29
2
Inline constant std::function parameter
Hey LLVM-dev,
I'm trying to inline the following C++ code:
__attribute__((always_inline)) static void inline compose(const char* s, std::function<void(const char *)> f) {
std::cout << s << std::endl;
f(s);
}
// --------------- Main ---------------
int main() {
// Nest three things
compose("hello world", [](const
2018 May 29
1
Inline constant std::function parameter
...Qualcomm Innovation Center, Inc.
> Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180529/52d65f6f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1854 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180529/52d65f6f/attachment.bin>