search for: classllvm_1_1storeinst

Displaying 5 results from an estimated 5 matches for "classllvm_1_1storeinst".

2015 Nov 26
4
Creating/Deleting a new instruction from LLVM IR
Hi, I was trying to create a new *Store* instruction and inserting it to LLVM IR (.ll) file. I found the following constructor in LLVM Manual: StoreInst::StoreInst <http://llvm.org/docs/doxygen/html/classllvm_1_1StoreInst.html#aa2a72f9a51b317f5b4ab8695adf59025> (Value <http://llvm.org/docs/doxygen/html/classllvm_1_1Value.html> * Val, Value <http://llvm.org/docs/doxygen/html/classllvm_1_1Value.html> * Ptr, Instruction <http://llvm.org/docs/doxygen/html/classllvm_1_1Instruction.html> * InsertBefor...
2011 Oct 24
0
[LLVMdev] Question about local variables
...t;> >>> Is there a clean way to tell the difference between dst and src >>> operands in operations without assignment "=" (ie, store)? >>> >> >> StoreInst has getValueOperand() and getPointerOperand(). See >> http://llvm.org/doxygen/de/d9c/classllvm_1_1StoreInst.html . >> >> We don't print out a name for instructions that are void typed, since >> there's no sense trying to refer to them again. You can test for that with >> Inst->getType()->isVoidTy(). >> >> Nick >> >> On Mon, Oct 24, 2011 at 9:5...
2011 Oct 24
0
[LLVMdev] Question about local variables
...ay to tell the difference between dst and src >>>>> operands in operations without assignment "=" (ie, store)? >>>>> >>>> >>>> StoreInst has getValueOperand() and getPointerOperand(). See >>>> http://llvm.org/doxygen/de/d9c/classllvm_1_1StoreInst.html . >>>> >>>> We don't print out a name for instructions that are void typed, since >>>> there's no sense trying to refer to them again. You can test for that with >>>> Inst->getType()->isVoidTy(). >>>> >>>> Ni...
2011 Oct 22
9
[LLVMdev] Question about local variables
Nick, Unfortunately this doesn't answer my question I don't think. It seems that -instnamer, as you mention, names the instructions but still does not name the local variables. So there really is no way to do this shy of creating (or basically copying) the API from AsmWriter (seems very dedundant to me)? This seems like a large failing? On Fri, Oct 21, 2011 at 7:03 PM, Nick
2011 Oct 24
0
[LLVMdev] Question about local variables
Nick, Is there a clean way to tell the difference between dst and src operands in operations without assignment "=" (ie, store)? On Mon, Oct 24, 2011 at 9:52 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: > Nick, > > I forgot to thank you, thanks! > > > On Sat, Oct 22, 2011 at 2:25 PM, Nick Lewycky <nicholas at mxc.ca> wrote: > >> Ryan