Linhai
2013-Jan-31 00:20 UTC
[LLVMdev] Could I explicitly tell clang not inline some functions?
Hi, I am wondering whether there are some ways I can tell clang not inline some or all functions. Thanks a lot! Linhai
Óscar Fuentes
2013-Jan-31 00:39 UTC
[LLVMdev] Could I explicitly tell clang not inline some functions?
Linhai <songlh at cs.wisc.edu> writes:> I am wondering whether there are some ways I can tell clang not > inline some or all functions.Maybe __attribute__ ((noinline)) int foo(int x) { return x+x; } Clang has its own mailing list, where most clang experts are. See http://clang.llvm.org/
Dmitry Mikushin
2013-Jan-31 00:49 UTC
[LLVMdev] Could I explicitly tell clang not inline some functions?
Hi, For not inlining specific function - try to declare it __attribute__((noinline)). For not inlining any function - generate LLVM IR from clang, then add only selected optimizations through opt, then codegen binary with llc: $ clang -c test.c -O0 -emit-llvm -S -o - | opt <insert your desired optimizations here> | llc -filetype=obj -o test.o - D. 2013/1/31 Linhai <songlh at cs.wisc.edu>> Hi, > > I am wondering whether there are some ways I can tell clang not inline > some or all functions. > > Thanks a lot! > > > Linhai > ______________________________**_________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/**mailman/listinfo/llvmdev<http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev> >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130131/4b992a30/attachment.html>
Possibly Parallel Threads
- [LLVMdev] [LLVMDEV]How could I get function name in this situation?
- [LLVMdev] [LLVMDEV]How could I get function name in this situation?
- [LLVMdev] [LLVMDEV]How could I get function name in this situation?
- [LLVMdev] [LLVMDEV]How could I get function name in this situation?
- [LLVMdev] [LLVMDEV]How could I get function name in this situation?