Hi all,
I have an LLVM bitcode file, with several functions in it.
I'm trying to inline these functions as much as possible, so that I can obtain a big single function.
There is opt -inline, but it is not sufficient.
Any idea ?
Hi all,
I have an LLVM bitcode file, with several functions in it.
I'm trying to inline these functions as much as possible, so that I can obtain a big single function.
There is opt -inline, but it is not sufficient.
Any idea ?
Hi all,
I have an LLVM bitcode file, with several functions in it.
I'm trying to inline these functions as much as possible, so that I can
obtain a big single function.
There is opt -inline, but it is not sufficient.
There an option in opt to change the inlining threshold. Do opt --help-hidden to find it. It might help.
-- John T.
Hi all,
I have an LLVM bitcode file, with several functions in it.
I'm trying to inline these functions as much as possible, so that I can
obtain a big single function.
There is opt -inline, but it is not sufficient.There an option in opt to change the inlining threshold. Do opt --help-hidden to find it. It might help.
Thanks. It seems to work as expected now.
Hi Julien,
I have an LLVM bitcode file, with several functions in it.
I'm trying to inline these functions as much as possible, so that I can
obtain a big single function.
There is opt -inline, but it is not sufficient.
mark your functions with the alwaysinline attribute.
Ciao, Duncan.
const AttrListPtr attr = func->getAttributes();
const AttrListPtr attr_new = attr.addAttr(~0U, Attribute::AlwaysInline);
func->setAttributes(attr_new);