Mehdi Amini
2015-Feb-12 16:59 UTC
[LLVMdev] Any mechanism available for link time inlineing?
> On Feb 12, 2015, at 8:15 AM, mobi phil <mobi at mobiphil.com> wrote: > > sorry to insist. While I do not beleive the question was the dumbest in the world, would love to know to find out some info, please find belowe the short version of the question: > > Is there already in LLVM or is there any plan to support some mechanism for static/dynamic inline-ing?It is already statically possible at link-time using LTO. I *think* it is enabled by default looking at https://llvm.org/svn/llvm-project/llvm/trunk/tools/llvm-lto/llvm-lto.cpp Try googling “LLVM LTO inlining” for more info. Mehdi
mobi phil
2015-Feb-12 22:59 UTC
[LLVMdev] Any mechanism available for link time inlineing?
thanks, sounds great, heard about llvm-lto, but was not following in details. I have an llvm-lto in my dev branch build....now what I do not find are some example on how to use it for link time inline-ing. In worst case have to deal with the overhead to experiment mobi phil -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150212/e63f1141/attachment.html>
Nick Lewycky
2015-Feb-15 04:25 UTC
[LLVMdev] Any mechanism available for link time inlineing?
mobi phil wrote:> thanks, sounds great, heard about llvm-lto, but was not following in > details. I have an llvm-lto in my dev branch build....now what I do not > find are some example on how to use it for link time inline-ing. In > worst case have to deal with the overhead to experimentWith what linker? LLVM LTO is available by default with Apple's XCode development environment, just specify -O4. For linux or similar, see llvm.org/docs/GoldPlugin.html . You may be able to just use -O4 on linux too, depending on how your llvm and linker are installed, and assuming you run "clang" for your link steps. Inlining occurs because it's a standard part of the link time optimization pipeline. If you need to turn off the rest of LTO, reducing it down to only inlining, that would take more work. Nick
Possibly Parallel Threads
- [LLVMdev] Any mechanism available for link time inlineing?
- [LLVMdev] Any mechanism available for link time inlineing?
- [LLVMdev] dynamic data dependence extraction using llvm
- [LLVMdev] [OT] GCC specs language and adding options
- [LLVMdev] [OT] GCC specs language and adding options