search for: hujianfei258

Displaying 18 results from an estimated 18 matches for "hujianfei258".

2012 Aug 25
2
[LLVMdev] How to Check whether BasicBlock resides in a conditional branch
...just want rough results. Thanks for your suggestion! > > -- > Yaroslav Markov > PhD student in Computer Science > Stony Brook University > ________________________________________ > From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] on behalf of Jianfei Hu [hujianfei258 at gmail.com] > Sent: Saturday, August 25, 2012 8:44 AM > To: LLVMdev at cs.uiuc.edu > Subject: [LLVMdev] How to Check whether BasicBlock resides in a conditional branch > > Hello All, > > I want to dertermine whether a basicblock is in a conditional branch. such as, > &...
2012 Aug 17
0
[LLVMdev] Problem of use CallGraph
On Fri, Aug 17, 2012 at 4:23 PM, Jianfei Hu <hujianfei258 at gmail.com> wrote: > Hello, > I want to traverse CallGraph > > code segment: > > > virtual void getAnalysisUsage(AnalysisUsage &AU) const > { > AU.addRequired<CallGraph>(); >...
2012 Aug 17
3
[LLVMdev] Problem of use CallGraph
Hello, I want to traverse CallGraph code segment: virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<CallGraph>(); } virtual bool runOnModule(Module &F) { CallGraph &g = getAnalysis<CallGraph>(); for ( CallGraph::iterator i = g.begin(); i != g.end(); i++) { errs()<<"-----------------\n";
2012 Aug 25
0
[LLVMdev] How to Check whether BasicBlock resides in a conditional branch
In the general sense you may get some help by looking at the control dependence graph. - dibyendu ----- Original Message ----- From: Jianfei Hu [mailto:hujianfei258 at gmail.com] Sent: Saturday, August 25, 2012 07:43 AM To: LLVMdev at cs.uiuc.edu <LLVMdev at cs.uiuc.edu> Subject: [LLVMdev] How to Check whether BasicBlock resides in a conditional branch Hello All, I want to dertermine whether a basicblock is in a conditional branch. such as, //========...
2012 Apr 23
1
[LLVMdev] Problem about the type of Function's arguement in llvm
...erator itr ( Function::arg_iterator itr = fun->arg_begin(); ) can be used in CreateStore() function, however, it can not be used as the arguments of CreateLoad() function. 2012/4/22 Hongbin Zheng <etherzhhb at gmail.com> > hi > > On Sun, Apr 22, 2012 at 8:36 PM, Jianfei Hu <hujianfei258 at gmail.com> > wrote: > > in the tutorial of official llvm doc, chapter 3, it deals with > arguement of > > function as follow: > > > > for (Function::arg_iterator AI = F->arg_begin(); Idx != Args.size(); > > ++AI, ++Idx) { > > AI->set...
2012 Aug 25
6
[LLVMdev] How to Check whether BasicBlock resides in a conditional branch
Hello All, I want to dertermine whether a basicblock is in a conditional branch. such as, //============================= if a > 2 // BasicBlock A then BasicBlock B endif BasicBlock C //============================= What I want to identify is BasicBlock B, which is in a condtional block. but C is not. In other words, I want to distinguish BasicBlocks that * must * be executed and that
2012 Aug 09
0
[LLVMdev] The use-define chain in LLVM
On Thu, Aug 9, 2012 at 6:57 AM, Jianfei Hu <hujianfei258 at gmail.com> wrote: > Thanks for your response! > > But I want to determine wheter the specific variable's value has been > changed between > two usages of variable, and wheter the parameter's value is changed in > a function. Like the > reaching definition analysis...
2012 Aug 09
2
[LLVMdev] The use-define chain in LLVM
...he function call, fun(arr, 10), by LLVM API? It could be more complicated considerring the nested function call, and variable pointer alias. Does LLVM offer the interface to solve that? 2012/8/9 Alex Rønne Petersen <xtzgzorex at gmail.com>: > On Thu, Aug 9, 2012 at 6:57 AM, Jianfei Hu <hujianfei258 at gmail.com> wrote: >> Thanks for your response! >> >> But I want to determine wheter the specific variable's value has been >> changed between >> two usages of variable, and wheter the parameter's value is changed in >> a function. Like the >>...
2012 Aug 25
0
[LLVMdev] How to Check whether BasicBlock resides in a conditional branch
...his example BasicBlock C is *must* executed, however it's hard to detect that it is. -- Yaroslav Markov PhD student in Computer Science Stony Brook University ________________________________________ From: llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] on behalf of Jianfei Hu [hujianfei258 at gmail.com] Sent: Saturday, August 25, 2012 8:44 AM To: LLVMdev at cs.uiuc.edu Subject: [LLVMdev] How to Check whether BasicBlock resides in a conditional branch Hello All, I want to dertermine whether a basicblock is in a conditional branch. such as, //============================= if a &...
2012 Apr 22
0
[LLVMdev] Problem about the type of Function's arguement in llvm
hi On Sun, Apr 22, 2012 at 8:36 PM, Jianfei Hu <hujianfei258 at gmail.com> wrote: > in the  tutorial of official llvm doc, chapter 3, it deals with arguement of > function as follow: > > for (Function::arg_iterator AI = F->arg_begin(); Idx != Args.size(); >        ++AI, ++Idx) { >     AI->setName(Args[Idx]); > >     // NamedV...
2012 Aug 09
2
[LLVMdev] The use-define chain in LLVM
Thanks for your response! But I want to determine wheter the specific variable's value has been changed between two usages of variable, and wheter the parameter's value is changed in a function. Like the reaching definition analysis, and ud chains. 2012/8/9 ��f�� (Wei-Ren Chen) <chenwj at iis.sinica.edu.tw>: > On Thu, Aug 09, 2012 at 11:16:15AM +0800, Jianfei Hu wrote: >>
2012 Apr 22
2
[LLVMdev] Problem about the type of Function's arguement in llvm
in the tutorial of official llvm doc, chapter 3, it deals with arguement of function as follow: for (Function::arg_iterator AI = F->arg_begin(); Idx != Args.size(); ++AI, ++Idx) { AI->setName(Args[Idx]); // NamedValues is map<string, Value*> NamedValues[Args[Idx]] = AI; and when it try to get the value of arguement, it simply does: Value
2012 Aug 09
0
[LLVMdev] The use-define chain in LLVM
...s similar to reaching definitions analysis. If you want, I can ask if we can give you a copy of it, too. I assume it's for a research project, correct? -- John T. > > 2012/8/9 Alex Rønne Petersen <xtzgzorex at gmail.com>: >> On Thu, Aug 9, 2012 at 6:57 AM, Jianfei Hu <hujianfei258 at gmail.com> wrote: >>> Thanks for your response! >>> >>> But I want to determine wheter the specific variable's value has been >>> changed between >>> two usages of variable, and wheter the parameter's value is changed in >>> a func...
2012 Aug 10
3
[LLVMdev] The use-define chain in LLVM
...f you want, I can ask if we can give you a > copy of it, too. I assume it's for a research project, correct? > > -- John T. > > >> >> 2012/8/9 Alex Rønne Petersen <xtzgzorex at gmail.com>: >>> >>> On Thu, Aug 9, 2012 at 6:57 AM, Jianfei Hu <hujianfei258 at gmail.com> >>> wrote: >>>> >>>> Thanks for your response! >>>> >>>> But I want to determine wheter the specific variable's value has been >>>> changed between >>>> two usages of variable, and wheter the param...
2012 Apr 16
2
[LLVMdev] Question about the IR code of conditional flow
I used llvm.org/demo to generate IR code from c code. And I found that: when "return " statement appears several times in different conditional block, IR code does not genrate one "ret " instruction for each return statement, it just put a phi node instruction at the end of the function. Just like this: int factorial(int X) { if (X <100) X*=3; else X += 1; return X + 3;
2012 Apr 21
1
[LLVMdev] Little Problem about Variable memory allocating way in function
As I want to generate code for the varaible declaration, at first, I thought AllocInstruction()could implement this. However, the name "alloc" seems to allocate memory from heap memory.and the local variable in function should stay at stack memory. In which way did llvm allocate memeory to AllocInstruction() ? Would the memory allocated by AllocInstruction() be recycled back? If not
2012 Aug 09
2
[LLVMdev] The use-define chain in LLVM
Hello All, Is the use-define chain related API avaliable in LLVM? I want to get the information about the variables' value changes at different points in the program. Best wishes.
2012 Aug 16
0
[LLVMdev] How to Get structured info without using Pass
Hi All, Recently, I want to do some anlysis for the program. And I found some structural info, such as Loop, CallGraph, Alias, is all presented in the form of LLVM Pass. Define your own pass and then use command 'opt' to load it. But is there any way to get these information, LoopInfo, CallGraph, without defining Pass? I mean, information coud be get in normal way,