search for: classllvm_1_1valuemap

Displaying 4 results from an estimated 4 matches for "classllvm_1_1valuemap".

2012 Jun 21
0
[LLVMdev] Cloning block for newbie
...ands using User's op_iterators[2] checking to see if they have entries in ValueMap[3]. If they do, you set that operand to use ValueMap's entry. [1] http://llvm.org/docs/ProgrammersManual.html#iterate_basicblock [2] http://llvm.org/doxygen/classllvm_1_1User.html [3] http://llvm.org/doxygen/classllvm_1_1ValueMap.html On Thu, Jun 21, 2012 at 1:49 PM, Nileih Cimeil <nileih at gmail.com> wrote: > Thank you for your quick answer... > > > "You can loop over the instruction's operands to see if they are > contained in VMap" > > I have no clue of to do that, do you have a...
2012 Jun 21
3
[LLVMdev] Cloning block for newbie
Hello everybody. I'm quite new to LLVM and I'm encontering problems with cloning basic blocks. My two basic blocks are in the same function and it doesn't really matter how the cloned one behave for the moment. Of course, to do so, I used the cloning.h 's method "CloneBasicBlock" but I have the "Instruction does not dominate all uses!" error. I know what it
2012 Jun 22
1
[LLVMdev] Cloning block for newbie
..._iterators[2] checking to see if they have entries in ValueMap[3]. > If they do, you set that operand to use ValueMap's entry. > > [1] http://llvm.org/docs/ProgrammersManual.html#iterate_basicblock > [2] http://llvm.org/doxygen/classllvm_1_1User.html > [3] http://llvm.org/doxygen/classllvm_1_1ValueMap.html > > On Thu, Jun 21, 2012 at 1:49 PM, Nileih Cimeil <nileih at gmail.com> wrote: > > Thank you for your quick answer... > > > > > > "You can loop over the instruction's operands to see if they are > > contained in VMap" > > > >...
2019 May 17
3
Copy Function from one LLVM IR file to another
Hello everyone, I wanted to copy a function from one file to another. The file that I wanted to copy the function into contains a function with the same name and same number of instructions. I decided to just replace the instructions with those of the other function. I am doing all of this from within a function pass. *1.* I created a function pass in which I extract a function using