search for: classllvm_1_1callinst

Displaying 12 results from an estimated 12 matches for "classllvm_1_1callinst".

2010 Apr 14
4
[LLVMdev] Operand, instruction
...oca instruction) has a > standard constructor method that takes the type of object to allocate, > the name of the new alloca instruction, an instruction before which to > insert the alloca instruction, etc. > > As another example, the CallInst class > (http://llvm.org/doxygen/classllvm_1_1CallInst.html) represents a call > instruction and has a static Create() method that you can use to create > a new call instruction. > > -- John T. > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llv...
2010 Apr 13
0
[LLVMdev] Operand, instruction
...class (which represents an alloca instruction) has a standard constructor method that takes the type of object to allocate, the name of the new alloca instruction, an instruction before which to insert the alloca instruction, etc. As another example, the CallInst class (http://llvm.org/doxygen/classllvm_1_1CallInst.html) represents a call instruction and has a static Create() method that you can use to create a new call instruction. -- John T.
2010 Apr 13
3
[LLVMdev] Operand, instruction
Can you please give an example of creating an instruction (for example add instructions with two operand a and b)? I am trying instruction() for a while, but no success yet. Duncan Sands wrote: > > Hi, > >> Actually i have to implement strength reduction, for that i have to first >> detect induction variables using ALLEN-COCKE-KENNEDY algorithm. To find >> out
2010 Apr 22
3
[LLVMdev] Operand, instruction
...oca instruction) has a > standard constructor method that takes the type of object to allocate, > the name of the new alloca instruction, an instruction before which to > insert the alloca instruction, etc. > > As another example, the CallInst class > (http://llvm.org/doxygen/classllvm_1_1CallInst.html) represents a call > instruction and has a static Create() method that you can use to create > a new call instruction. > > -- John T. > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llv...
2017 Jun 04
2
need more information about the two classes of CallInst and CastInst
Hello, everyone. I want to know more about the classes of CallInst and CastInst, but i can just find some information of them in the InstrTypes.h file. Can you offer me more materials about the two important classes? If there are some cases, that is better. Thank you! 2017/6/4 Jay -------------- next part -------------- An HTML attachment was scrubbed... URL:
2015 Sep 08
2
CallInst::getCalledFunction returns null?
...t. However, for instructions like this: %25 = call i32 (%struct._IO_FILE*, ...)* bitcast (i32 (...)* @close to i32 > (%struct._IO_FILE*, ...)*)(%struct._IO_FILE* %24), !dbg !695 getCalledFunc returns null. I know getCalledFunc is expected to return null <http://llvm.org/docs/doxygen/html/classllvm_1_1CallInst.html#a0bcd4131e1a1d92215f5385b4e16cd2e> on indirect calls, but I would have thought naming the callee via a constant expression like the one here would be considered a direct call. Thanks, Christian -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists...
2010 Apr 14
0
[LLVMdev] Operand, instruction
...s a >> standard constructor method that takes the type of object to allocate, >> the name of the new alloca instruction, an instruction before which to >> insert the alloca instruction, etc. >> >> As another example, the CallInst class >> (http://llvm.org/doxygen/classllvm_1_1CallInst.html) represents a call >> instruction and has a static Create() method that you can use to create >> a new call instruction. >> >> -- John T. >> >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at...
2010 Apr 14
0
[LLVMdev] Operand, instruction
...>> standard constructor method that takes the type of object to allocate, >> the name of the new alloca instruction, an instruction before which to >> insert the alloca instruction, etc. >> >> As another example, the CallInst class >> (http://llvm.org/doxygen/classllvm_1_1CallInst.html) represents a call >> instruction and has a static Create() method that you can use to create >> a new call instruction. >> >> -- John T. >> >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev...
2010 Apr 22
0
[LLVMdev] Operand, instruction
...oca instruction) has a > standard constructor method that takes the type of object to allocate, > the name of the new alloca instruction, an instruction before which to > insert the alloca instruction, etc. > > As another example, the CallInst class > (http://llvm.org/doxygen/classllvm_1_1CallInst.html) represents a call > instruction and has a static Create() method that you can use to create > a new call instruction. > > -- John T. > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llv...
2015 Jan 27
2
[LLVMdev] Create a call to function malloc using LLVM API
Hi, I encountered an issue when attempting to create a call to function malloc. I just want to do a simple thing, suppose there is a variable p, if p is a pointer then allocate memory to p. Source code: int *p; p = (int *) malloc(sizeof(*p)); Try to generate LLVM IR for it: Type *tp = p->getType(); AllocaInst* arg_alloc = builder.CreateAlloca(tp);//builder is IRBuilder
2010 Apr 22
2
[LLVMdev] Operand, instruction
...>> standard constructor method that takes the type of object to allocate, >> the name of the new alloca instruction, an instruction before which to >> insert the alloca instruction, etc. >> >> As another example, the CallInst class >> (http://llvm.org/doxygen/classllvm_1_1CallInst.html) represents a call >> instruction and has a static Create() method that you can use to create >> a new call instruction. >> >> -- John T. >> >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMd...
2018 Nov 04
3
Some questions about writing compiler passes.
Thanks for the help. I have a couple follow up questions- Where can I find the code which calculates the properties of inline asm nodes and examples of passes that make use of this information? Thanks again, Carter. On Mon, Nov 5, 2018 at 12:04 AM David Blaikie <dblaikie at gmail.com> wrote: > > > On Sun, Nov 4, 2018 at 1:56 AM Carter Cheng via llvm-dev < > llvm-dev at