search for: linhai

Displaying 20 results from an estimated 31 matches for "linhai".

2017 Oct 15
2
question about mem2reg
...2reg pass as follows: opt -mem2reg m2rtttl.bc > m2rtttl.opt But after that, I compared m2rtttl.bc and m2rtttl.opt. I noticed that there are no difference between m2rtttl.bc and m2rtttl.opt. Did I apply llvm in the correct way? Thanks a lot for the help! Best, Linhai -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20171015/2856d5b8/attachment-0001.html>
2016 Jan 12
3
Does LLVM have java frontend?
Hi, Does LLVM have java frontend which can change Java bytecode to LLVM IR? Thanks a lot! Best, Linhai -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160112/1d9c0c7b/attachment.html>
2018 Jan 28
1
count how many basic block executed
...If I build the executable by using -O0, the overhead would be 20% - 30%. But if I build the executable by using -O2, the overhead would be more than 3X. I feel instrumenting counter will disable some optimization. Any other suggestions I could try? Thanks a lot! Best, Linhai ________________________________ From: John Criswell <jtcriswel at gmail.com> Sent: Saturday, January 27, 2018 3:11:50 PM To: Linhai Song; Llvm-dev at lists.llvm.org Subject: Re: [llvm-dev] count how many basic block executed On 1/26/18 1:04 AM, Linhai Song via llvm-dev wrote: Hello everyo...
2018 Jan 26
2
count how many basic block executed
...ch basic block, and save the counter value to a global counter. The current runtime overhead is around 25%. Is there any way I can try to lower the overhead? Like keeping the local counter inside a register or applying the path profiling algorithm? Thanks a lot! Best, Linhai -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180126/60684008/attachment.html>
2018 Jan 27
0
count how many basic block executed
On 1/26/18 1:04 AM, Linhai Song via llvm-dev wrote: > > Hello everyone, > > > I am writing a pass to instrument program and count how many basic > block executed. What I have tried is to instrument a local counter > inside each function, add 1 to the local counter inside each basic > block, and sav...
2011 Jan 17
5
[LLVMdev] How to get the name and argument of a function
...get the function name and argument //used here } } } } How could I get the function name and the arguments when I know an Instruction is a function call? thanks a lot! Best wishes! Linhai Song
2011 Jan 26
2
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
...>> I >> can do this in my c++ code?? > > Yes, the code is loading a pointer to a function from memory and calling > it. > > I don't understand your question, though. > > -- John T. > I mean how do I realize this in a c++ pass code? thanks a lot! Linhai >> thanks a lot! >> >>> On 1/26/11 2:07 PM, songlh at cs.wisc.edu wrote: >>>> Hi: >>>> >>>> My llvm code is: >>>> >>>> for( BasicBlock::iterator i = b->begin() , ie = b->end(); >>>>...
2011 Jan 26
2
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
...termine, within an LLVM pass, what the > possible target(s) of an indirect function call might be? > > -- John T. Sorry, I am asking the second question. " how to determine, within an LLVM pass, what the possible target(s) of an indirect function call might be? " thanks a lot! Linhai > >> thanks a lot! >> >> Linhai >> >>>> thanks a lot! >>>> >>>>> On 1/26/11 2:07 PM, songlh at cs.wisc.edu wrote: >>>>>> Hi: >>>>>> >>>>>> My llvm code is: >&g...
2013 Jan 17
3
[LLVMdev] the latest version of llvm-gcc is 4.2?
Hi, I am wondering whether the latest llvm-gcc version is 4.2. This is the latest version I can find on llvm web site. Thanks a lot! Best, Linhai
2013 Jan 31
2
[LLVMdev] Could I explicitly tell clang not inline some functions?
Hi, I am wondering whether there are some ways I can tell clang not inline some or all functions. Thanks a lot! Linhai
2011 Jan 26
0
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
...g sense. Are you asking what sort of C++ code will generate the use of a function pointer when compiled into LLVM IR, or are you asking how to determine, within an LLVM pass, what the possible target(s) of an indirect function call might be? -- John T. > thanks a lot! > > Linhai > >>> thanks a lot! >>> >>>> On 1/26/11 2:07 PM, songlh at cs.wisc.edu wrote: >>>>> Hi: >>>>> >>>>> My llvm code is: >>>>> >>>>> for( BasicBlock::iterator i = b->begin() , ie = b...
2014 Apr 29
2
[LLVMdev] how to identify basic blocks added for switch instruction without default?
...s ([23 x i8]* @__FUNCTION__.compcode_to_comparison, i64 0, i64 0)) #7, !dbg !8046 unreachable, !dbg !8046 Could I get "unreachable" information from metadata? Thanks a lot! Best, Linhai
2011 Jan 26
1
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
...f you want to use DSA, please let me know, and I can point you to an > example in SAFECode or the Poolalloc source code that uses the > DSCallGraph interface. > > -- John T. > Could you please point me the DSA example in poolalloc project? I just check that code out. Thanks a lot! linhai >> " >> >> thanks a lot! >> >> Linhai >>> > >
2011 Jan 19
0
[LLVMdev] How to get the name and argument of a function
...pGV->getInitializer() )){ Err << pCA->getAsString() << "\n"; } } } I find dump() method is very useful, since it can get me some indications about which class document I need to check. thanks a lot! Linhai > On 1/17/2011 8:53 PM, songlh at cs.wisc.edu wrote: >> Thanks a lot! >> >> I can get the call place now. But still have problems in getting the >> argument. >> >> CallInst * pCall; >> >> ...... >> >> pCall->getArgOperand(0)...
2014 Oct 15
2
[LLVMdev] how to choose which alias analysis used in my pass?
...How could I choose to > use > another alias analysis algorithm? I have tried opt -load mypass.so > -basicaa xx.bc > /dev/null. But I feel the alias analysis algorithm > does > not change. Do I need to add something in my codes? > > Thanks a lot! > > Best, > > Linhai > ______________________________ _________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/ mailman/listinfo/llvmdev > > _______________________________________________ > LLVM Developers mailing list > LLVMd...
2014 Oct 15
2
[LLVMdev] how to choose which alias analysis used in my pass?
...se to use another alias analysis algorithm? I have tried opt -load mypass.so -basicaa xx.bc > /dev/null. But I feel the alias analysis algorithm does not change. Do I need to add something in my codes? Thanks a lot! Best, Linhai
2011 Jan 26
0
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
...to use it can be found in the SAFECode project: http://safecode.cs.illinois.edu. If you want to use DSA, please let me know, and I can point you to an example in SAFECode or the Poolalloc source code that uses the DSCallGraph interface. -- John T. > " > > thanks a lot! > > Linhai >>
2011 Jan 26
2
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
...; > -- John T. > >> it returns null from pCall->getCalledFunction(), and I cannot get the >> function name. >> >> How could I get the function name in this situation? >> >> thanks a lot! >> >> Linhai >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >
2015 Feb 11
3
[LLVMdev] question about licm
...t; for(i = lower[j]; a[i] < 100 && i < upper[j]; i ++); > > I notice that upper[j] is not hoisted out from the loop. Is this > because j could be larger than 10? > > Thanks a lot! > > Best, > > Linhai > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > > ________________________________________...
2011 Jan 26
2
[LLVMdev] [LLVMDEV]How could I get function name in this situation?
...on call I want to find is : call void %7(%struct.nsAString* %8, i32 0) nounwind, !dbg !1565 it returns null from pCall->getCalledFunction(), and I cannot get the function name. How could I get the function name in this situation? thanks a lot! Linhai