Displaying 20 results from an estimated 80000 matches similar to: "[LLVMdev] Re: function inlining by function name ?"
2005 Jul 12
0
[LLVMdev] Does the gcc frontend do inlining or deadcode elimination ?
On Mon, 11 Jul 2005, Long Fei wrote:
>
> This didn't work as I tried with 197.parser. it works without
> "-Wl,-disable-opt" switch though.
>
> [197.parser]$ llvm-gcc analyze-linkage.c and.c build-disjuncts.c
> extract-links.c fast-match.c idiom.c main.c massage.c parse.c post-process.c
> print.c prune.c read-dict.c utilities.c xalloc.c word-file.c
2005 Jul 05
0
[LLVMdev] function inlining threshold ?
On Mon, Jul 04, 2005 at 03:32:39PM -0500, Long Fei wrote:
> I am using llvm for source-to-source inlining. So I did:
>
> % llvm-gcc file_a.c file_b.c ... file_n.c -o file
> % opt -inline -inline-threshold=1000 < file.bc | llc -march=c > outfile.c
>
> Can anyone tell me how llvm determines if a function should be
> inlined, and what roll does
2005 Jul 11
2
[LLVMdev] Does the gcc frontend do inlining or deadcode elimination ?
This didn't work as I tried with 197.parser. it works without
"-Wl,-disable-opt" switch though.
[197.parser]$ llvm-gcc analyze-linkage.c and.c build-disjuncts.c
extract-links.c fast-match.c idiom.c main.c massage.c parse.c
post-process.c print.c prune.c read-dict.c utilities.c xalloc.c
word-file.c strncasecmp.c -Wa,-disable-opt -Wl,-disable-opt -lm -o
llvm_parser
[197.parser]$
2005 Jul 07
0
[LLVMdev] Does the gcc frontend do inlining or deadcode elimination ?
Long Fei wrote:
>
> I am investigating some inlining issue, so I did
>
> llvm-gcc aaa.c bbb.c ... nnn.c -o output
> opt -inline -inline-threshold=xxx < output.bc | llc -march=c >
> output_inline.c
I am unsure of whether the LLVM GCC frontend does any inlining.
However, I do know that your methods above run the LLVM inlining pass,
albeit indirectly.
If you use
2006 Mar 14
0
[LLVMdev] Selectively Disable Inlining for Functions
On Tue, 7 Mar 2006, Markus F.X.J. Oberhumer wrote:
> Still, my approach makes the inline hint a first-class property of an LLVM
> function just like the calling convention, including preserving full source
> code information.
Preserving full source code information isn't a goal of LLVM, at least if
you don't count debug information. :)
> Most of the patch is actually
2005 Jul 07
3
[LLVMdev] Does the gcc frontend do inlining or deadcode elimination ?
I am investigating some inlining issue, so I did
llvm-gcc aaa.c bbb.c ... nnn.c -o output
opt -inline -inline-threshold=xxx < output.bc | llc -march=c >
output_inline.c
1)
I noticed that even if I set xxx to 0 or even a very small negative
number, many functions are eliminated. I am wondering if these functions
are inlined by the frontend, or identified as deadcode.
For instance,
2005 Jul 04
2
[LLVMdev] function inlining threshold ?
I am using llvm for source-to-source inlining. So I did:
% llvm-gcc file_a.c file_b.c ... file_n.c -o file
% opt -inline -inline-threshold=1000 < file.bc | llc -march=c > outfile.c
Can anyone tell me how llvm determines if a function should be inlined,
and what roll does "inline-threshold" play ? (Does the example mean that
if the function body has fewer than 1000 instructions,
2008 Feb 22
2
[LLVMdev] Removing inlining of library functions
On Thu, 21 Feb 2008, Dale Johannesen wrote:
> The defined gcc interface for this is -fno-builtin. It seems not be
> to be working in llvm-gcc, however.
Please file a reduced testcase in bugzilla,
-Chris
>
>> I am interested in analyzing the bytecode code produced for C files.
>> By default, inlining of user and library functions (libc) is done. If
>> I turn off
2008 Feb 22
0
[LLVMdev] Removing inlining of library functions
On Feb 21, 2008, at 5:38 PM, Chris Lattner wrote:
> On Thu, 21 Feb 2008, Dale Johannesen wrote:
>> The defined gcc interface for this is -fno-builtin. It seems not be
>> to be working in llvm-gcc, however.
>
> Please file a reduced testcase in bugzilla,
>
> -Chris
Er, well, now that I've looked at the correct output files, it is
actually working.
>>> I
2008 Feb 21
6
[LLVMdev] Removing inlining of library functions
I am interested in analyzing the bytecode code produced for C files.
By default, inlining of user and library functions (libc) is done. If
I turn off inlining (-disable-inlining in gccas and gccld) then no
inlining is done. I want to be able to inline user code but disallow
library code to be inlined.
In trying to understand the InlineSimple.cpp code, I see that library
functions are
2006 Mar 07
1
[LLVMdev] Selectively Disable Inlining for Functions
On Tue, 7 Mar 2006, Markus F.X.J. Oberhumer wrote:
>> I'm currently working with an experimental analysis pass that checks for
>> calls to memory allocation functions; inlining and dead code elimination
>> might make the pass more stable, but we don't want to inline the calls to
>> the memory allocation functions until after our analysis pass is finished.
>
2005 May 07
0
[LLVMdev] calling conventions and inlining
On Sat, 7 May 2005, Markus F.X.J. Oberhumer wrote:
> Actually I feel that the current state of the art of inlining is where
> register allocation has been about 10 years ago. It's pretty fine for most
> things, but back then I remember writing code like "register const char *p
> __asm__("%esi");" where just adding the explicit __asm__ boosted performance
2005 May 07
2
[LLVMdev] calling conventions and inlining
On Sat, 7 May 2005, Markus F.X.J. Oberhumer wrote:
> I see that you are objecting explicit inline control.
>
> The main problem is that inlining is absolutely crucial for some
> "modern" programming styles. E.g. we use a huge collection of small C++
> template classes and template metaclasses, most of which have very
> trivial and limited functionality (think of it
2013 Jul 28
0
[LLVMdev] IR Passes and TargetTransformInfo: Straw Man
Hi, Sean:
I'm sorry I lie. I didn't mean to lie. I did try to avoid making a
*BIG* change
to the IPO pass-ordering for now. However, when I make a minor change to
populateLTOPassManager() by separating module-pass and non-module-passes, I
saw quite a few performance difference, most of them are degradations.
Attacking
these degradations one by one in a piecemeal manner is wasting
2008 Feb 21
0
[LLVMdev] Removing inlining of library functions
The defined gcc interface for this is -fno-builtin. It seems not be
to be working in llvm-gcc, however.
On Feb 20, 2008, at 6:55 PM, Cristina Cifuentes wrote:
> I am interested in analyzing the bytecode code produced for C files.
> By default, inlining of user and library functions (libc) is done. If
> I turn off inlining (-disable-inlining in gccas and gccld) then no
> inlining
2005 Jul 07
0
[LLVMdev] External function 'pthread_once' could not be resolved
On Thu, 7 Jul 2005, Henrik Bach wrote:
> The 'pthread_once' is located in the native library binary file:
> /usr/lib/libpthread.a. I've also included the path to the library in
> LLVM_LIB_SEARCH_PATH environment variable.
If libpthread.a is a static library, lli won't be successful loading it.
Try relinking lli, but add this to its tools/lli/Makefile:
TOOLLINKOPTS :=
2005 May 07
0
[LLVMdev] calling conventions and inlining
There is one case where inlining/not-inlining affects correctness. A
function which uses alloca() will behave differently in the two cases.
You can argue one shouldn't write code like this, but it is legal.
Chris Lattner wrote:
> On Sat, 7 May 2005, Markus F.X.J. Oberhumer wrote:
>
>> I see that you are objecting explicit inline control.
>>
>> The main problem is
2004 May 01
0
[LLVMdev] opt, llcc, ll++, -O1, -O2, -O3
On Sat, 1 May 2004, [koi8-r] "Valery A.Khamenya[koi8-r] " wrote:
> there are two issues concerning invoking optimizations:
>
> 1.
> this document:
> http://llvm.cs.uiuc.edu/docs/GettingStarted.html
> is very nice, it would be good though to add in a section
>
> An Example Using the LLVM Tool Chain
>
> examples on optimization step.
That's an
2006 Mar 06
0
[LLVMdev] Selectively Disable Inlining for Functions
On Mon, 6 Mar 2006, John Criswell wrote:
> I was wondering if there is a standard way of specifying a list of functions
> that *should not* be inlined by the -inline pass.
Nope, but you could hack something into gccas/gccld if you want. Of
course, you can disable inlining completely with the -disable-inlining
flag.
> I'm currently working with an experimental analysis pass that
2006 May 02
1
[LLVMdev] Re: Patches and some potential bugs
On Sat, 29 Apr 2006, Domagoj Babic wrote:
> These should add xIDs for several passes. Please let me know if there're
> any problems with the code. I'm a very novice C++ and LLVM programmer,
> so please bear with me.
The patches look great, applied:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20060501/034450.html