search for: _zdlpv

Displaying 20 results from an estimated 24 matches for "_zdlpv".

2017 Aug 01
2
[RFC] Profile guided section layout
...4llvm6object12Elf_Rel_ImplINS1_7ELFTypeILNS0_7support10endiannessE1ELb1EEELb1EEES8_lN9__gnu_cxx5__ops15_Iter_comp_iterIPFbRKS7_SD_EEEEvT_SH_T0_T1_T2_ _ZL15compRelocationsIN4llvm6object7ELFTypeILNS0_7support10endiannessE1ELb1EEENS1_12Elf_Rel_ImplIS5_Lb1EEEEbRKT0_SA_ 5978166 __cfree _int_free 5976897 _ZdlPv __cfree 5580098 _ZL24isStaticLinkTimeConstantIN4llvm6object7ELFTypeILNS0_7support10endiannessE1ELb1EEEEbN3lld3elf7RelExprEjRKNS7_10SymbolBodyERNS7_16InputSectionBaseEm _ZNK3lld3elf10SymbolBody13isPreemptibleEv 5091808 _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERmm _Znwm 5074491...
2017 Jul 31
2
[RFC] Profile guided section layout
A rebased version of the lld patch is attached. Cheers, Rafael On 31 July 2017 at 15:11, Rafael Avila de Espindola <rafael.espindola at gmail.com> wrote: > Tobias Edler von Koch <tobias at codeaurora.org> writes: > >> Hi Rafael, >> >> On 07/31/2017 04:20 PM, Rafael Avila de Espindola via llvm-dev wrote: >>> However, do we need to start with
2015 May 06
2
[LLVMdev] [lld] Wrong references for C++ COMDAT groups
...ation section '.rela.text' at offset 0xed8 contains 2 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000000010 00480000011b R_AARCH64_CALL26 0000000000000000 _ZNSt9exceptionD2Ev + 0 000000000020 004d0000011a R_AARCH64_JUMP26 0000000000000000 _ZdlPv + 0 Relocation section '.rela.text' at offset 0xf08 contains 2 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000000010 00480000011b R_AARCH64_CALL26 0000000000000000 _ZNSt9exceptionD2Ev + 0 000000000020 004d0000011a R_AARCH64_JUMP26 000000...
2015 May 07
2
[LLVMdev] [lld] Wrong references for C++ COMDAT groups
...ation section '.rela.text' at offset 0xb48 contains 2 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000000005 003200000002 R_X86_64_PC32 0000000000000000 _ZNSt9exceptionD2Ev - 4 00000000000e 003700000002 R_X86_64_PC32 0000000000000000 _ZdlPv - 4 That should me meant only for the group section text, not the default text segment. On 06-05-2015 18:18, Shankar Easwaran wrote: > Does this test pass on X86_64 ? Groups are read in the Reader and is documented below :- > > See http://lld.llvm.org/design.html#linking-steps on Secti...
2011 Dec 09
0
[LLVMdev] Implementing devirtualization
...!dbg !77 >   tail call void @llvm.dbg.value(metadata !{i32 %27}, i64 0, metadata !54), > !dbg !77 >   %28 = icmp eq i8* %1, null, !dbg !78 >   br i1 %28, label %30, label %29, !dbg !78 > > ; <label>:29                                      ; preds = %0 >   tail call void @_ZdlPv(i8* %1) nounwind, !dbg !78 >   br label %30, !dbg !78 > > ; <label>:30                                      ; preds = %29, %0 >   %31 = icmp eq i8* %6, null, !dbg !78 >   br i1 %31, label %33, label %32, !dbg !78 > > ; <label>:32                                     ...
2011 Dec 08
2
[LLVMdev] Implementing devirtualization
...!dbg !77 %27 = add i32 %26, %24, !dbg !77 tail call void @llvm.dbg.value(metadata !{i32 %27}, i64 0, metadata !54), !dbg !77 %28 = icmp eq i8* %1, null, !dbg !78 br i1 %28, label %30, label %29, !dbg !78 ; <label>:29 ; preds = %0 tail call void @_ZdlPv(i8* %1) nounwind, !dbg !78 br label %30, !dbg !78 ; <label>:30 ; preds = %29, %0 %31 = icmp eq i8* %6, null, !dbg !78 br i1 %31, label %33, label %32, !dbg !78 ; <label>:32 ; preds = %30 tail call void @...
2013 Mar 11
2
[LLVMdev] How to detect all free() calls
...s to detect all free()/delete() call instructions in LLVM IR.The method is as follows. First I find Call Instructions: CallInst *CI=dyn_cast<CallInst>(&*i); then see if the Function name matches: name=CI->getCalledFunction()->getName(); if(name=="_ZdlPv"||name=="_ZdaPv"||name=="free") It worked but when something like this occurs %call2 = call i32 bitcast (i32 (...)* @free to i32 (i8*)*)(i8* %call1) nounwind, !dbg !16 It seems like a indirect function call and I don't know how to detect free() in such situ...
2011 Dec 09
1
[LLVMdev] Implementing devirtualization
...ll void @llvm.dbg.value(metadata !{i32 %27}, i64 0, metadata !54), >> !dbg !77 >>   %28 = icmp eq i8* %1, null, !dbg !78 >>   br i1 %28, label %30, label %29, !dbg !78 >> >> ; <label>:29                                      ; preds = %0 >>   tail call void @_ZdlPv(i8* %1) nounwind, !dbg !78 >>   br label %30, !dbg !78 >> >> ; <label>:30                                      ; preds = %29, %0 >>   %31 = icmp eq i8* %6, null, !dbg !78 >>   br i1 %31, label %33, label %32, !dbg !78 >> >> ; <label>:32         ...
2012 May 22
4
[LLVMdev] How to get llvm bitcode executed
...cmp(i8*, i8*, i64) declare i64 @llvm.expect.i64(i64, i64) nounwind readnone declare void @_ZSt19__throw_logic_errorPKc(i8*) noreturn declare i8* @__cxa_begin_catch(i8*) declare void @__cxa_rethrow() declare void @__cxa_end_catch() declare void @__cxa_call_unexpected(i8*) declare void @_ZdlPv(i8*) nounwind declare void @_ZSt20__throw_length_errorPKc(i8*) noreturn declare void @_ZSt17__throw_bad_allocv() noreturn declare noalias i8* @_Znwm(i64) declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind declare void @llvm.memmove.p0i8.p0i8.i64(i...
2009 Aug 18
0
[LLVMdev] Build issues on Solaris
...XPG4 versions of `nm' : -bash-3.2$ /usr/xpg4/bin/nm -p -u `find . -name libLLVMCore.a` | head ./Debug/lib/libLLVMCore.a[AsmWriter.o]: 0000000000 U __assert 0000000000 U __clzdi2 0000000000 U __udivdi3 0000000000 U __umoddi3 0000000000 U _GLOBAL_OFFSET_TABLE_ 0000000000 U _ZdaPv 0000000000 U _ZdlPv -bash-3.2$ /usr/bin/nm -p -u `find . -name libLLVMCore.a` | head ./Debug/lib/libLLVMCore.a[AsmWriter.o]: __assert __clzdi2 __udivdi3 __umoddi3 _GLOBAL_OFFSET_TABLE_ _ZdaPv _ZdlPv -bash-3.2$ /usr/bin/nm -p -g `find . -name libLLVMCore.a` | head ./Debug/lib/libLLVMCo...
2013 Mar 11
2
[LLVMdev] How to detect all free() calls
...lete() call > instructions in LLVM IR.The method is as follows. > First I find Call Instructions: CallInst *CI=dyn_cast<CallInst>(&*i); > then see if the Function name matches: > name=CI->getCalledFunction()->getName(); > if(name=="_ZdlPv"||name=="_ZdaPv"||name=="free") > It worked but when something like this occurs > %call2 = call i32 bitcast (i32 (...)* @free to i32 (i8*)*)(i8* %call1) > nounwind, !dbg !16 > It seems like a indirect function call and I don't know how to detect...
2012 May 22
0
[LLVMdev] How to get llvm bitcode executed
...64 @llvm.expect.i64(i64, i64) nounwind readnone > declare void @_ZSt19__throw_logic_errorPKc(i8*) noreturn > declare i8* @__cxa_begin_catch(i8*) > declare void @__cxa_rethrow() > declare void @__cxa_end_catch() > declare void @__cxa_call_unexpected(i8*) > declare void @_ZdlPv(i8*) nounwind > declare void @_ZSt20__throw_length_errorPKc(i8*) noreturn > declare void @_ZSt17__throw_bad_allocv() noreturn > declare noalias i8* @_Znwm(i64) > declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i32, i1) nounwind > declare void @llv...
2013 Mar 11
0
[LLVMdev] How to detect all free() calls
...instructions in LLVM IR.The method is as follows. >> First I find Call Instructions: CallInst *CI=dyn_cast<CallInst>(&*i); >> then see if the Function name matches: >> name=CI->getCalledFunction()->getName(); >> if(name=="_ZdlPv"||name=="_ZdaPv"||name=="free") >> It worked but when something like this occurs >> %call2 = call i32 bitcast (i32 (...)* @free to i32 (i8*)*)(i8* %call1) >> nounwind, !dbg !16 >> It seems like a indirect function call and I don't kn...
2012 May 22
2
[LLVMdev] How to get llvm bitcode executed
...nsic. > > > declare void @_ZSt19__throw_logic_errorPKc(i8*) noreturn > > declare i8* @__cxa_begin_catch(i8*) > > declare void @__cxa_rethrow() > > declare void @__cxa_end_catch() > > declare void @__cxa_call_unexpected(i8*) > > declare void @_ZdlPv(i8*) nounwind > > declare void @_ZSt20__throw_length_errorPKc(i8*) noreturn > > declare void @_ZSt17__throw_bad_allocv() noreturn > > declare noalias i8* @_Znwm(i64) > > These should all be in libstdc++. > > > declare void @llvm.memcpy.p0i8.p0i8.i64(i8...
2012 May 22
0
[LLVMdev] How to get llvm bitcode executed
...i64) nounwind readnone LLVM intrinsic. > declare void @_ZSt19__throw_logic_errorPKc(i8*) noreturn > declare i8* @__cxa_begin_catch(i8*) > declare void @__cxa_rethrow() > declare void @__cxa_end_catch() > declare void @__cxa_call_unexpected(i8*) > declare void @_ZdlPv(i8*) nounwind > declare void @_ZSt20__throw_length_errorPKc(i8*) noreturn > declare void @_ZSt17__throw_bad_allocv() noreturn > declare noalias i8* @_Znwm(i64) These should all be in libstdc++. > declare void @llvm.memcpy.p0i8.p0i8.i64(i8* nocapture, i8* nocapture, i64, i3...
2012 May 23
0
[LLVMdev] How to get llvm bitcode executed
...declare void @_ZSt19__throw_logic_errorPKc(i8*) noreturn >>> declare i8* @__cxa_begin_catch(i8*) >>> declare void @__cxa_rethrow() >>> declare void @__cxa_end_catch() >>> declare void @__cxa_call_unexpected(i8*) >>> declare void @_ZdlPv(i8*) nounwind >>> declare void @_ZSt20__throw_length_errorPKc(i8*) noreturn >>> declare void @_ZSt17__throw_bad_allocv() noreturn >>> declare noalias i8* @_Znwm(i64) >> >> These should all be in libstdc++. >> >>> declare void @ll...
2009 Aug 11
6
[LLVMdev] Build issues on Solaris
Hi all, I've encountered a couple of minor build issues on Solaris that have crept in since 2.5, fixes below: 1. In lib/Target/X86/X86JITInfo.cpp, there is: // Check if building with -fPIC #if defined(__PIC__) && __PIC__ && defined(__linux__) #define ASMCALLSUFFIX "@PLT" #else #define ASMCALLSUFFIX #endif Which causes a link failure due to the non-PLT
2011 Dec 08
0
[LLVMdev] Implementing devirtualization
On Thu, Dec 8, 2011 at 9:56 AM, Vitor Luis Menezes <vitor at utexas.edu> wrote: > Hello all, > > Our compilers class has been using LLVM, and a partner and I decided to > implement devirtualization of virtual C++ calls in LLVM as a class project. > We quickly realized that existing debug metadata generated by Clang didn't > give us enough info to (precisely) implement
2008 Jul 24
0
[LLVMdev] weird function
...ike the @_Znwj). Is it possible to create LLVM IR with all libraries defined inside (or linked with another bitcode libraries) ? Maybe it looks like that: .... %tmp183 = tail call i32 (i8*, ...)* @printf( i8* getelementptr ([13 x i8]* @.str1, i32 0, i32 0), i32 %tmp182 ) nounwind tail call void @_ZdlPv( i8* %tmp432.i312 ) nounwind .... define i32 @printf(i8*, ...) nounwind { ... // LLVM instructions } define i8* @_Znwj(i32) { ... // LLVM instructions } Thank for any advice Quang -----Ursprüngliche Nachricht----- Von: Duncan Sands [mailto:baldrick at free.fr] Gesendet: Donnerstag, 24. Juli 200...
2008 Jul 24
2
[LLVMdev] weird function
Hi, > thank for your answer. Is there any document/tutorial about linking > bytecode file with libstdc++ avaiable ? first you need to compile the bitcode to assembler using llc. For example: llc bitcode.bc This produces bitcode.s. Turn this into a executable using: llvm-g++ -o bitcode bitcode.s or g++ -o bitcode bitcode.s It doesn't matter which g++ you use here. Using g++