Displaying 20 results from an estimated 70000 matches similar to: "[LLVMdev] Removing unused function definitions"
2009 May 05
2
[LLVMdev] Pass to remove unused functions
I thought this pass would do it, but when I run it over my bc file the
output file is the same as the input file.
The issue I guess is a little different. When I link in the huge bc
file with the tiny bc file, I only want the resulting bc file to have
the function definitions that the tiny bc file requires and not every
function in the huge bc file.
Any idea's how to do this with the
2009 Jan 16
1
[LLVMdev] poolallocation error
Hi all,
I too am getting this error for x86_64 when I am trying to use the
Data Structure Analysis ...I svn upped both the llvm main branch and
the poolalloc today in the morning and recompiled everything from
scratch :
$ opt -load /home/pprabhu/llvm/llvm-install-x86-64/lib/libpoolalloc.so
-ds-aa < o.bc
opt: /home/pprabhu/llvm/llvm/lib/VMCore/PassManager.cpp:1418: virtual
void
2008 Nov 19
2
[LLVMdev] poolallocation error
Hi,
I am trying to use the poolallocator. More specific, I am trying to
play around with the pointer compression pass. Though, I get assertion
failures for the pass dependencies.
This is when it in PointerCompress::getAnalysisUsage tries to register
the the BU pass as required. I.e. when
AU.addRequired<CompleteBUDataStructures>(); is called.
$ opt -f -load
2009 May 05
3
[LLVMdev] Pass to remove unused functions
Is there a way to mark all functions as internal from source via some
sort of attribute?
Thanks for the tips,
Micah
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu]
On Behalf Of Chris Lattner
Sent: Tuesday, May 05, 2009 4:16 PM
To: LLVM Developers Mailing List
Subject: Re: [LLVMdev] Pass to remove unused functions
On May 5, 2009, at 4:07 PM, Villmow,
2009 Jan 21
1
[LLVMdev] poolallocation error
Dear Prakash,
I believe I've fixed the problem you were having with ds-aa. Please
update your poolalloc tree, recompile, and let me know if it works.
-- John T.
Criswell, John T wrote:
> [snip]
>
> ________________________________________
> From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] On Behalf Of Prakash Prabhu [prakash.prabhu at gmail.com]
> Sent:
2012 Nov 20
1
[LLVMdev] Removing unused global constant
Hi
I create a simple bytecode file with clang -c -emit-llvm test.c -o test.bc
#include <stdio.h>
void hello(){
printf("hello\n");
}
void hello2(){
printf("hello2\n");
}
Then i want to keep only the hello function so i do :
llvm-extract -func=hello -o test2.bc test.bc
but the string constants are removed and "@.str" is marked as external
@str
2009 May 05
0
[LLVMdev] Pass to remove unused functions
On May 5, 2009, at 4:07 PM, Villmow, Micah wrote:
> I thought this pass would do it, but when I run it over my bc file
> the output file is the same as the input file.
that's probably because your symbols are not internal.
>
> The issue I guess is a little different. When I link in the huge bc
> file with the tiny bc file, I only want the resulting bc file to
> have
2009 Jan 19
0
[LLVMdev] poolallocation error
Dear Prakash,
Yes, DSA is still in active use, although nobody else uses the -ds-aa pass as far as I know.
I tried the below sample (although ds-aa should be in libLLVMDataStructure.so and not libpoolalloc.so), and I get the same error. I've seen similar problems with other passes in our work here. My guess is that -ds-aa is requiring two passes that claim to invalidate each other; this
2009 May 06
0
[LLVMdev] Pass to remove unused functions
On May 5, 2009, at 4:50 PM, Villmow, Micah wrote:
> Is there a way to mark all functions as internal from source via
> some sort of attribute?
"static". However, if you do that, they won't make it into the bc file.
-Chris
>
> Thanks for the tips,
> Micah
>
> From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-
> bounces at cs.uiuc.edu] On Behalf Of
2010 May 04
0
[LLVMdev] llvm-ld (and pthreads) problem
Hi,
I'm having some problems with producing native executables with
llvm-ld. Both TimberLLVMLIB and TimberLLVMRTS is compiled into bitcode
files and archived with llvm-ar. Everything works fine when using the
flag -disable-opt
llvm-ld -Xlinker='-pthread' -Xlinker='-m32' -native -disable-opt
-L/home/capitrane/local/timber-llvm//share/timberc-1.0.3/rtsPOSIX
ConcMap.bc
2009 May 05
2
[LLVMdev] Pass to remove unused functions
In order to handle a large vector based math library I link in a fairly
large bitcode file that might or might not be needed. The problem is
that linking in this bitcode file drastically increases the amount of
compile time required. Is there a way to remove all functions that are
not used after this linking pass? Something similar to die but removes
functions from the compilation unit instead of
2009 May 05
0
[LLVMdev] Pass to remove unused functions
On May 5, 2009, at 3:48 PM, Villmow, Micah wrote:
> In order to handle a large vector based math library I link in a
> fairly large bitcode file that might or might not be needed. The
> problem is that linking in this bitcode file drastically increases
> the amount of compile time required. Is there a way to remove all
> functions that are not used after this linking pass?
2009 May 06
1
[LLVMdev] Pass to remove unused functions
On Tue, May 5, 2009 at 7:47 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On May 5, 2009, at 4:50 PM, Villmow, Micah wrote:
>
> > Is there a way to mark all functions as internal from source via some sort
> > of attribute?
>
> "static". However, if you do that, they won't make it into the bc file.
> -Chris
A flag to force them into the .bc
2010 Jul 27
2
[LLVMdev] inline callsites whose function definitions are in different file?
On 7/27/2010 12:40 PM, Devang Patel wrote:
> On Tue, Jul 27, 2010 at 7:46 AM, Chuck Zhao<czhao at eecg.toronto.edu> wrote:
>> LLVM (2.7 release version) provides 2 implementations for inlining
>> function callsites:
>>
>> - InlineSimple.cpp (-inline): inline simple callsites
>> according to its cost analysis
>> - InlineAlways.cpp
2010 Jul 27
0
[LLVMdev] inline callsites whose function definitions are in different file?
On Tue, Jul 27, 2010 at 9:46 AM, Chuck Zhao <czhao at eecg.toronto.edu> wrote:
> I don't, and the compiler doesn't neither, that is the problem, unless I do
> hacking at compile time.
> E.g.:
> - put all such function's definitions into file1.c
> - force to compile file1.c 1st.
> - when compiling file2.c:
> . read file1.bc
> . attach to file2's
2016 Mar 12
2
instrumenting device code with gpucc
Hey Jingyue,
Though I tried `opt -nvvm-reflect` on both bc files, the nvvm reflect
anchor didn't go away; ptxas is still complaining about the duplicate
definition of of function '_ZL21__nvvm_reflect_anchorv' . Did I misused
the nvvm-reflect pass?
Thanks!
yuanfeng
On Fri, Mar 11, 2016 at 10:10 AM, Jingyue Wu <jingyue at google.com> wrote:
> According to the examples you
2007 Jun 08
13
Errror on update after Model.rebuild_index
Hi
I use Ferret 0.11.4 and the latest stabel version of the acts_as_ferret
plugin.
To the issue. if I do Model.rebuild_index and after that try to update
one of my objects of that Model I get:
File Not Found Error occured at <except.c>:117 in xpop_context
Error occured in fs_store.c:329 - fs_open_input
tried to open
2014 Mar 24
2
installing extlinux on a fresh system. Why does it fail ?
Thanks
I let GParted create the file system. It was done on a rescue disk of
Ubuntu 12.04 (GParted 0.11.0)
I think that the problem is in my command line.
Mau
On Mon, Mar 24, 2014 at 4:04 PM, Mattias Schlenker
<ms at mattiasschlenker.de>wrote:
> Am 24.03.2014 14:13, schrieb Mau Z:
>
> Hi All,
>>
>> I am trying to install extlinux on a fresh system.
>>
2016 Apr 07
2
[GPUCC] how to remove _ZL21__nvvm_reflect_anchorv() automatically?
Hi,
I needed to compile a cuda source file (say, a.cu) into IR (a.bc), and then
merge a.bc with another bitcode file (b.bc, compiled from b.cu). So I
used *llvm-link
a.bc b.bc -o c.bc*
However, I noticed that an internal function '* _ZL21__nvvm_reflect_anchorv()
*' is defined in both a.bc & b.bc, and when merging these two files, one of
the two definitions was renamed to
2015 Feb 05
2
[LLVMdev] Example for usage of LLVM/Clang/libclc
Hi,
> which works but it produces LLVM IR code for all OpenCL intrinsics
> implemented by libclc along with the kernel I am interested in, is their a
> possibility to avoid this ? and only produce the llvm code for the kernel
> required ?
Mark all functions apart from the kernel entry points with the
internal attribute and then run global dead code elimination (it
should remove most