similar to: [LLVMdev] Why are functions renamed for .cpp files with llvm-gcc?

Displaying 20 results from an estimated 2000 matches similar to: "[LLVMdev] Why are functions renamed for .cpp files with llvm-gcc?"

2009 Jun 17
0
[LLVMdev] Why are functions renamed for .cpp files with llvm-gcc?
Hi Arto, > I wonder why there is a difference in how > llvm-gcc compiles .c and .cpp files. > > Example: > > ---bar.cpp---- > int bar() { > return 42; > } > -------------- > > $ llvm-gcc -emit-llvm -c bar.cpp > > Now running bar.o through llvm-dis gives: > -------------------------------- > define i32 @_Z3barv() nounwind { > < clip >
2009 Jun 17
1
[LLVMdev] Why are functions renamed for .cpp files with llvm-gcc?
On Jun 17, 2009, at 1:39 AM, Fabian Scheler wrote: > Hi Arto, > >> I wonder why there is a difference in how >> llvm-gcc compiles .c and .cpp files. >> >> Example: >> >> ---bar.cpp---- >> int bar() { >> return 42; >> } >> -------------- >> >> $ llvm-gcc -emit-llvm -c bar.cpp >> >> Now running bar.o through
2008 Apr 14
0
[LLVMdev] llvm-as parse error
On Apr 14, 2008, at 4:35 PM, code_nf wrote: > Hi: > I have just started to use llvm and confronted with a problem: > when I want to transform something very simple for name.ll to > name.bc with llvm-as name.ll, some errors occured: > > error: parse error, expecting `GLOBAL' or `CONSTANT' while reading > token: 'target' Hi. I am having exactly the same
2008 Apr 14
2
[LLVMdev] llvm-as parse error
Hi: I have just started to use llvm and confronted with a problem: when I want to transform something very simple for name.ll to name.bc with llvm-as name.ll, some errors occured: error: parse error, expecting `GLOBAL' or `CONSTANT' while reading token: 'target' btw, the name.ll file is as follows: ; ModuleID = 'tst.bc' target datalayout =
2009 Jun 17
0
[LLVMdev] Why are functions renamed for .cpp files with llvm-gcc?
A. Vuori wrote: > Above, function 'bar' has been renamed to '_Z3barv'. > > If, however, 'bar.cpp' is renamed 'bar.c', > we get 'define i32 @bar()' as expected. This is not llvm-gcc specific; it happens for regular gcc too. It's needed to support overloading multiple functions called 'bar' with different parameters, (which C++
2014 Jun 11
3
[LLVMdev] How do clang & clang++ choose function names for LLVM IR?
Hello all, I'm getting started on a project using LLVM's opt tool to do static analysis, printing call graphs and such. When compiling C programs to IR (and eventually to call graphs), function names remain the same (main, function1, function2 etc.), but when compiling the same program as C++, the function names often have cruft added to them (_Z9function1v, _Z9function2v etc.) which
2015 Mar 02
2
[LLVMdev] clang change function name
Got it, thanks. But in my pass, I use function name to locate. Can I disable mangling in clang? Best, Haopeng On 3/1/15 10:44 PM, John Criswell wrote: > On 3/1/15 11:38 PM, Haopeng Liu wrote: >> Hi, >> >> I compile a .cpp with cmd: >> clang++ -emit-llvm -c -g -O0 -w pbzip2.cpp -o pbzip2.bc -lbz2 >> llvm-dis pbzip2.bc >> >> One function in .cpp is
2009 Mar 11
6
[LLVMdev] Wiki?
Hi all, I'm pretty new to LLVM and am slowly learning the code-base and architecture, mostly as a result of my efforts to implement a target backend. There are a number of resources (read: documents) available which deal with some parts of backend development (and LLVM development in general), but sadly they are not at all comprehensive. I'd like to propose that a wiki be made available
2008 Jun 11
1
read.table() causes segfault with incorrect data (PR#11627)
Full_Name: Juho Vuori Version: 2.7.0 (2008-04-22) OS: Linux poseidon.fimr.fi 2.6.23.17-88.fc7PAE #1 SMP Thu May 15 00:22:53 EDT 2008 i686 i686 i386 GNU/Linux Submission from: (NULL) (193.166.188.194) Calling read.table() twice the following way causes a segmentation fault in R. Run R and type the following commands: > read.table(stdin()) 0: 1 2 3 1: 3 2: Error in scan(file, what, nmax, sep,
2015 Mar 02
2
[LLVMdev] clang change function name
Hi, I compile a .cpp with cmd: clang++ -emit-llvm -c -g -O0 -w pbzip2.cpp -o pbzip2.bc -lbz2 llvm-dis pbzip2.bc One function in .cpp is consumer_decompress. However, I look inside pbzip2.ll. The function name is changed to "define i8* @_Z19consumer_decompressPv(i8* %q) #0 {" Why clang adds a "_Z19" prefix and "Pv" suffix? Thanks,
2012 Aug 15
0
[LLVMdev] More Back-End Porting Troubles
On Wed, Aug 15, 2012 at 12:11 PM, Fabian Scheler <fabian.scheler at gmail.com> wrote: > Hi LLVM-Folks, > ... > Currently, I am not even able to find out which instruction is messed > up here (dumping the node via the dump-Method yields "<<Unknown > Machine Node #65434>>"). Can I use "machine nodes" and "normal nodes" > when
2012 Aug 15
5
[LLVMdev] More Back-End Porting Troubles
Hi LLVM-Folks, as mentioned in an earlier post (http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-July/051677.html) I am currently working on a Back-End for the TriCore processor. Currently, I am struggling as LLVM could not select zext and load, for instance, so some of the testcases in test/CodeGen/Generic are not successfully compiled by my back-end. Furthermore, I am completely puzzled by the
2010 Aug 27
5
[LLVMdev] How to demange C++ names
Hi Renato, > > Just wondering if LLVM has any command options or tool to allow for > > demangling C++ names from the LLVM bitcode? > > c++filt? Do you refer to any particular version of c++filt? I tried, but seemed not to work. For example, when I run a command as below: c++filt _ZNSt4listIiSaIiEEaSERKS1_ The output remains the same as the input symbol. By the way,
2006 Dec 13
3
On vacation message
Hello, I am away from office and will read my emails again on sunday 17th December. Regarding urgent issues, please contact info at artio.net. Best Regards, Arto Saraniva Artio Oy
2007 Apr 02
2
[LLVMdev] LLVA and WCET Analysis
Hello everybody, I'm curious whether there have been any attempts to perform performance analysis on the LLVA level. I am interested in the derivation of flow-facts (loop bounds etc. - what about the value-range-propagation pass I read about on this list some time ago) but even more I am interested in exec-time modeling (how long does it take to execute a bunch of LLVA instructions on
2013 May 30
1
Dovecot 2.2 build rpm on Centos6
> -----Original Message----- > From: dovecot-bounces at dovecot.org [mailto:dovecot-bounces at dovecot.org] > On Behalf Of Burak G?RER > Sent: Thursday, May 30, 2013 10:34 AM > To: Nikolaos Milas > Cc: Dovecot Mailing List > Subject: Re: [Dovecot] Dovecot 2.2 build rpm on Centos6 > > On 27-05-2013 16:56, Nikolaos Milas wrote: > > On 27/5/2013 1:07 ??, Birta
2013 Feb 20
2
Changin password in LDAP
We are using now dovecot 2.0.21 with open-ldap, but this situations has already taken a quite long time. When user changes the password, we have to reload dovecot every time, otherwise the change is ignored and dovecot sees only the old password. Any ideas where the problem might exist? Conf: # 2.0.21: /etc/dovecot/dovecot.conf # OS: Linux 2.6.18-308.24.1.el5 i686 CentOS release 5.9 (Final)
2013 Sep 30
4
[LLVMdev] RTSC - Real-Time Systems Compiler
Hello John, Thank you very much for your fast response and the patch. Is it possible to add Fabian Scheler and Florian Franzmann to the people section as proposed in the attached patch? I hope to manage to write a description for the 'ProjectsWithLLVM' page this week and send it to the list. Thanks again, Tobias Am 26.09.2013 21:26, schrieb John Criswell: > Dear Tobias, > >
2010 Aug 27
3
[LLVMdev] How to demange C++ names
Hey all, Just wondering if LLVM has any command options or tool to allow for demangling C++ names from the LLVM bitcode? Thanks! Best, Xiaolong
2010 Aug 27
0
[LLVMdev] How to demange C++ names
On 27 August 2010 18:56, Xiaolong Tang <xiaolong.snake at gmail.com> wrote: > Just wondering if LLVM has any command options or tool to allow for > demangling C++ names from the LLVM bitcode? c++filt? --renato