Skip to main content

Questions tagged [inlining]

For questions about the practice of replacing call sites of a function with the contents of the function.

Filter by
Sorted by
Tagged with
4 votes
2 answers

What are the cons of inlining then optimizing and then reverse inlining?

In many programming languages, not all functions may be inlined. However, assuming that a language is designed in such a way that all functions may be inlined, what the disadvantages of inlining all ...
ggZQX6YPvD's user avatar
3 votes
2 answers

What are the disadvantages of automatically inlining all functions?

Function inlining is when the function called is directly substituted in the calling code. This avoids the overhead of setting up the call stack, managing any relevant pointers that need to be tracked ...
FireTheLost's user avatar
  • 1,613
6 votes
1 answer

How do I make LLVM actually inline anything?

I've been working on a draft of a Trilangle compiler using LLVM. Out of curiosity, I took the generated IR (given the Trilangle program ?!oi@) and plugged it into ...
Bbrk24's user avatar
  • 9,057