[LLVMdev] Any mechanism available for link time inlineing?

Mehdi Amini
Thu, 12 Feb 2015 16:59:07 -0000

> 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