Displaying 2 results from an estimated 2 matches for "cloneandprun".
Did you mean:
cloneandprune
2009 May 27
0
[LLVMdev] Wondering how best to run inlining on a single function.
...ill go wrong if I
> do that? Is there a better way, or an option that doesn't involve
> writing new code?
Hi Jeffrey,
Does this need to be an actual pass? You can just call the
InlineFunction API to inline individual call sites as needed, check
out llvm/Transforms/Utils/Cloning.h. CloneAndPruneFunctionInto is a
particularly useful function if you're doing argument specialization,
because it is very efficient at handling this (better than inlining a
bunch of code and then deleting it as dead later).
-Chris
2009 May 26
3
[LLVMdev] Wondering how best to run inlining on a single function.
In Unladen Swallow we (intend to) compile each function as we
determine it's hot. To "compile" a function means to translate it from
CPython bytecode to LLVM IR, optimize the IR using a
FunctionPassManager, and JIT the IR to machine code. We'd like to
include inlining among our optimizations. Currently the Inliner is a
CallGraphSCCPass, which can only be run by the