Displaying 20 results from an estimated 5000 matches similar to: "[LLVMdev] C++ Mangled Names"
2011 Feb 15
0
[LLVMdev] C++ Mangled Names
On Feb 15, 2011, at 3:10 AM, Patrick Simmons wrote:
> I have encountered a need for manually generating the mangled name of an
> arbitrary C++ function. The only way I currently know how to do this is
> to generate a dummy C++ source file, compile it, and look at the
> output. This approach is so ugly that I would like for it never to see
> the light of day. The c++filt tool
2017 Jun 19
3
VC C++ demangler
A long time ago, when I devised the grammar and structure of the Microsoft C++ name mangling scheme (decorated names), the document describing the object model and the name decoration scheme were made publically available. Perhaps this is still available publically, or perhaps Microsoft might be willing to share an up to date definition of the name-decoration grammar, especially in light of 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,
2010 Aug 27
0
[LLVMdev] How to demange C++ names
On Aug 27, 2010, at 11:43 AM, Xiaolong Tang wrote:
> 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:
>
>
2017 Jun 19
2
VC C++ demangler
Hi,
We have a demangler for the Itanium ABI, but looks like we don't have one
for the MSVC-style symbols. Is there any good demangler we can import to
LLVM?
If there's no suitable demangler, I'd like to write one. Currently, we are
using `UnDecorateSymbolName` function, but the function is available only
on Windows (which is problematic when you are doing a cross-build), and the
2006 Nov 17
0
[LLVMdev] C++ to C
On Fri, 17 Nov 2006, Mohd-Hanafiah Abdullah wrote:
> After converting a piece of C++ code to C one of the functions that are
> generated is this:
> _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
This is defined in the C++ standard library. You can get the demangled
name like so:
$ c++filt _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
std::basic_ostream<char,
2014 Dec 11
5
[LLVMdev] How to get the original function name in C++?
Hi, everyone!
I'm new here trapped by a simple problem for days.
When LLVM translates C++ source code to IR, it will add a prefix to the
function name. For example:
source code:
int foo(){
return 1;
}
IR form:
define i32 @_Z3foov() #0 {
entry:
ret i32 1, !dbg !20
}
The getName() method returns _Z3foov, then how can I get foo? I know
the debugging information is contained in
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
2006 Nov 17
2
[LLVMdev] C++ to C
On Thu, 2006-11-16 at 21:08 -0800, Chris Lattner wrote:
> On Fri, 17 Nov 2006, Mohd-Hanafiah Abdullah wrote:
> > After converting a piece of C++ code to C one of the functions that are
> > generated is this:
> > _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
>
> This is defined in the C++ standard library. You can get the demangled
> name like so:
> $
2016 May 05
3
RFC: Adding an itanium c++ demangler to lib/Support
On Thu, May 5, 2016 at 10:58 AM, Duncan P. N. Exon Smith via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> +Kate
>
> We already have two demangler implementations (LLDB and libcxxabi). I'd
> rather not have three. Have you looked at the LLDB one? I think Kate has
> some patches she hasn't had a chance to commit yet that add functionality.
> I heard something
2015 Mar 02
2
[LLVMdev] clang change function name
On Mon, Mar 02, 2015 at 12:12:34AM -0500, John Criswell wrote:
> On 3/2/15 12:07 AM, Haopeng Liu wrote:
> >Got it, thanks. But in my pass, I use function name to locate. Can I
> >disable mangling in clang?
>
> No, but you can probably fine a library that can either mangle the original
> name or demangle the name you're seeing in the LLVM bitcode.
>
> As an FYI,
2012 Jul 22
2
[LLVMdev] C++ demangling in LLVM
On Jul 4, 2012, at 12:43 PM, Michael Spencer wrote:
> On Wed, Jul 4, 2012 at 8:33 AM, Alexey Samsonov <samsonov at google.com> wrote:
>> Hello!
>>
>> We want to implement in-process symbolizer for {Address,Thread}Sanitizer
>> testing tools that would be based on LLVM libraries.
>> I've noticed that llvm-nm (as well as other tools) doesn't demangle
2012 Jul 04
0
[LLVMdev] C++ demangling in LLVM
On Wed, Jul 4, 2012 at 8:33 AM, Alexey Samsonov <samsonov at google.com> wrote:
> Hello!
>
> We want to implement in-process symbolizer for {Address,Thread}Sanitizer
> testing tools that would be based on LLVM libraries.
> I've noticed that llvm-nm (as well as other tools) doesn't demangle C++
> names. Is it true, that LLVM doesn't have the code that is capable
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
2012 Jul 04
5
[LLVMdev] C++ demangling in LLVM
Hello!
We want to implement in-process symbolizer for {Address,Thread}Sanitizer
testing tools that would be based on LLVM libraries.
I've noticed that llvm-nm (as well as other tools) doesn't demangle C++
names. Is it true, that LLVM doesn't have the code that is capable
of that, and if yes, are there any plans to add it?
Depending on something like libiberty.a doesn't seem like a
2016 May 06
2
RFC: Adding an itanium c++ demangler to lib/Support
> On May 5, 2016, at 11:50 AM, Duncan P. N. Exon Smith <dexonsmith at apple.com> wrote:
>
>> On 2016-May-05, at 11:14, David Majnemer <david.majnemer at gmail.com> wrote:
>>
>> On Thu, May 5, 2016 at 10:58 AM, Duncan P. N. Exon Smith via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>> +Kate
>>>
>>> We already have two
2009 Sep 02
0
[LLVMdev] link-error: different visibilities
gauss wrote:
> When I use llvm-2.5 to compile gnash which is a GNU flash movie player, some
> errors appeared as follow:
>
> llvm-ld: error: Cannot link in module
> '../libcore/.libs/libgnashcore.a(movie_root.o)': Linking globals named
> '_ZNKSt6vectorIN5gnash8geometry7Range2dIfEESaIS3_EE4sizeEv': symbols have
> different visibilities!
>
> Because the
2009 Sep 02
4
[LLVMdev] link-error: different visibilities
When I use llvm-2.5 to compile gnash which is a GNU flash movie player, some
errors appeared as follow:
llvm-ld: error: Cannot link in module
'../libcore/.libs/libgnashcore.a(movie_root.o)': Linking globals named
'_ZNKSt6vectorIN5gnash8geometry7Range2dIfEESaIS3_EE4sizeEv': symbols have
different visibilities!
Because the name is mangled, I can't find the exact position of
2017 Aug 06
2
Compile issues with LLVM ORC JIT
I tree to compile the LLVM ORC JIT examples. But I'm stuck in some
problems I can't solve my own.
First at all I compile with C++14 enabled with latest stable LLVM and
clang, this means 4.0.1. I get the following error. Do I missed some
specific compile option?
Compilation looks like this here.
|CompilingcontribJIT.cpp
PWD:/home/ikuehl/projects-llvm/TurboLisp/domainEngineer
2006 Nov 17
4
[LLVMdev] C++ to C
After converting a piece of C++ code to C one of the functions that are
generated is this:
_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
Where is it defined and where can I find the source for it? I need the
source to compile it with a C compiler (AMPC) that will convert the C
code to Java Bytecode. If the above function is in C++ then I need to
convert it to C first.
Here's the