search for: classllvm_1_1allocainst

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

2010 Apr 14
4
[LLVMdev] Operand, instruction
...and > find the method for creating a new instruction. The method is usually a > static method and takes arguments pointing to the values to use as > operands. Doxygen is your best resource for finding these methods. > > For example, if you look at > http://llvm.org/doxygen/classllvm_1_1AllocaInst.html, you can see that > the AllocaInst 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. >...
2010 Apr 13
0
[LLVMdev] Operand, instruction
...subclass of llvm::Instruction and find the method for creating a new instruction. The method is usually a static method and takes arguments pointing to the values to use as operands. Doxygen is your best resource for finding these methods. For example, if you look at http://llvm.org/doxygen/classllvm_1_1AllocaInst.html, you can see that the AllocaInst 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 C...
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
...and > find the method for creating a new instruction. The method is usually a > static method and takes arguments pointing to the values to use as > operands. Doxygen is your best resource for finding these methods. > > For example, if you look at > http://llvm.org/doxygen/classllvm_1_1AllocaInst.html, you can see that > the AllocaInst 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. >...
2010 May 28
0
[LLVMdev] Retrieving Underlying Type from AllocaInst
...a. I can test for a > PointerTyID and then perform a cast to PointerType and then call the > getElementType() function on the PointerType but that seems a bit messy. There's alloca->getAllocatedType() which merely calls getType()->getElementType() for you. http://llvm.org/doxygen/classllvm_1_1AllocaInst.html . Nick
2010 May 28
2
[LLVMdev] Retrieving Underlying Type from AllocaInst
...; PointerTyID and then perform a cast to PointerType and then call the >> getElementType() function on the PointerType but that seems a bit messy. > > There's alloca->getAllocatedType() which merely calls getType()->getElementType() for you. > > http://llvm.org/doxygen/classllvm_1_1AllocaInst.html . > > Nick -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100528/ca979cd8/attachment.html>
2010 Apr 14
0
[LLVMdev] Operand, instruction
...the method for creating a new instruction. The method is usually a >> static method and takes arguments pointing to the values to use as >> operands. Doxygen is your best resource for finding these methods. >> >> For example, if you look at >> http://llvm.org/doxygen/classllvm_1_1AllocaInst.html, you can see that >> the AllocaInst 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,...
2010 Apr 14
0
[LLVMdev] Operand, instruction
...method for creating a new instruction. The method is usually a >> static method and takes arguments pointing to the values to use as >> operands. Doxygen is your best resource for finding these methods. >> >> For example, if you look at >> http://llvm.org/doxygen/classllvm_1_1AllocaInst.html, you can see that >> the AllocaInst 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 instruct...
2010 May 28
2
[LLVMdev] Retrieving Underlying Type from AllocaInst
Is there a recommended way to retrieve the original type from an AllocaInst object? For example, I am creating alloca instructions using the IRBuilder interface like: alloca = builder.CreateAlloca( Type::getDoubleTy( context ), 0, variableName.c_str() ); and I place the alloca into a symbol table. Later when I am generating instructions for an assignment operation, I want to check the type of
2010 Apr 22
0
[LLVMdev] Operand, instruction
...and > find the method for creating a new instruction. The method is usually a > static method and takes arguments pointing to the values to use as > operands. Doxygen is your best resource for finding these methods. > > For example, if you look at > http://llvm.org/doxygen/classllvm_1_1AllocaInst.html, you can see that > the AllocaInst 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. >...
2010 May 28
0
[LLVMdev] Retrieving Underlying Type from AllocaInst
...interTyID and then perform a cast to PointerType and then call the > > getElementType() function on the PointerType but that seems a bit messy. > > There's alloca->getAllocatedType() which merely calls > getType()->getElementType() for you. > > http://llvm.org/doxygen/classllvm_1_1AllocaInst.html . > > Nick > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >
2010 Apr 22
2
[LLVMdev] Operand, instruction
...method for creating a new instruction. The method is usually a >> static method and takes arguments pointing to the values to use as >> operands. Doxygen is your best resource for finding these methods. >> >> For example, if you look at >> http://llvm.org/doxygen/classllvm_1_1AllocaInst.html, you can see that >> the AllocaInst 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 instruct...