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
14 votes
7 answers
5k views

How is clang able to evaluate loops without getting stuck in an infinite loop?

I recently saw this tweet. And for posterity, this is the C++ code: ...
JBraha's user avatar
  • 243
4 votes
2 answers
330 views

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
281 views

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,623
6 votes
1 answer
285 views

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,407