search for: classllvm_1_1instruction

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

2019 Jan 16
5
How to get the string representation of an instruction?
Hi, I don't see a way to convert an Instruction to a string or const char *, although '<<' works on it. http://llvm.org/doxygen/classllvm_1_1Instruction.html How to figure this out? Thanks. -- Regards, Peng
2008 Sep 24
0
[LLVMdev] Memory Altering/Accessing Instructions
...; Would it be correct to say that the only instructions in LLVM IR that > modify/access memory potentially are the following: > I believe that every instruction has a mayWriteToMemory()/mayReadToMemory() method that you can use to determine this information. See http://llvm.org/doxygen/classllvm_1_1Instruction.html (the LLVM doxygen info on llvm::Instruction) for more details. I believe these methods describe whether memory is read/written in a way visible from the LLVM IR; I don't believe they'll take into account things like read/writes due to register spills created by the code generator....
2008 Sep 24
2
[LLVMdev] Memory Altering/Accessing Instructions
Hi all, Would it be correct to say that the only instructions in LLVM IR that modify/access memory potentially are the following: (1) LoadInst : Ref (2) StoreInst : Mod (3) VAArgInst : Ref (?) (4) AllocaInst : Mod (5) MallocInst : Mod (6) FreeInst : Mod (7) CallInst : Mod/Ref ? Also, my earlier impression was that the GEP instruction only computes the effective address and does not
2018 Apr 01
2
Custom Binary Format Challenges
...an you elaborate what you mean by instruction pointer value? Like the > actual instruction with opcode and operands? With the sample code that I > showed you, the instrucrtion pointer in the innermost for loop will have > access to the following functions: > > http://llvm.org/doxygen/classllvm_1_1Instruction.html > > Alternatively, you can use the dump() operation to dump the instructions > out. > > Unfortunately I don't know how to address your second question. That's > stretching my knowledge in LLVM. > > Brenda > > > On Sun, Apr 1, 2018 at 11:32 AM, Kenneth A...
2018 Apr 01
0
Custom Binary Format Challenges
Hi Kenneth, Can you elaborate what you mean by instruction pointer value? Like the actual instruction with opcode and operands? With the sample code that I showed you, the instrucrtion pointer in the innermost for loop will have access to the following functions: http://llvm.org/doxygen/classllvm_1_1Instruction.html Alternatively, you can use the dump() operation to dump the instructions out. Unfortunately I don't know how to address your second question. That's stretching my knowledge in LLVM. Brenda On Sun, Apr 1, 2018 at 11:32 AM, Kenneth Adam Miller < kennethadammiller at gmail.com>...
2015 Nov 26
4
Creating/Deleting a new instruction from LLVM IR
...vm.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> * InsertBefore ) I thought of using this. I don't know the meaning of the constructors arguments. What all values should be passed for creating a new *Store *Instruction (with an *example) *? How to insert this to LLVM IR? ( I saw the code snippet in LLVM Programming manual, I couldn...
2017 Aug 07
2
vrp
I am primarily interested in phi nodes and their induction variables, in ValueTracking file there is an analysis of them, but if the upper bound is inf, it is not working? 2017-08-07 11:41 GMT+02:00 Anastasiya Ruzhanskaya < anastasiya.ruzhanskaya at frtk.ru>: > So, it is not supported to determine by this instruction : %cmp = icmp slt > i32 %i.03, 99, > that %i.03 = phi i32 [ 0,
2018 Apr 02
0
Custom Binary Format Challenges
...t you mean by instruction pointer value? Like the >> actual instruction with opcode and operands? With the sample code that I >> showed you, the instrucrtion pointer in the innermost for loop will have >> access to the following functions: >> >> http://llvm.org/doxygen/classllvm_1_1Instruction.html >> >> Alternatively, you can use the dump() operation to dump the instructions >> out. >> >> Unfortunately I don't know how to address your second question. That's >> stretching my knowledge in LLVM. >> >> Brenda >> >> >&gt...
2018 Apr 01
2
Custom Binary Format Challenges
Thank you so much! What about discovering the instruction pointer value? Also, does anybody know how to embed an artifact as a resource in a binary? I'd like to have two text sections, and have one copied in from another binary. On Sun, Apr 1, 2018 at 2:15 PM, Brenda So <sogun3 at gmail.com> wrote: > Hi, > > You can write it as if you are writing an optimization pass: >
2013 Jan 10
1
[LLVMdev] LLVM Instruction to ICmpInst conversion
...want some piece of advice regarding a LLVM pass. My particular problem is: There is a method bool patternDC::runOnFunction(Function &F) { ... if ( CC->operEquiv(icmpInstrArray[i], icmpInstrArray[j]) ) {...} ... } having the array elements of type Instruction* : http://llvm.org/doxygen/classllvm_1_1Instruction.html The called method is bool ifChecker::operEquiv(Instruction *I1, Instruction *I2) { ... } BUT I want to use the methods from class ICmpInst : clasa http://llvm.org/doxygen/classllvm_1_1ICmpInst.html inside operEquiv. I cannot do something like ICmpInst** II1 = dyn_cast<ICmpInst*>(I1)...
2019 Jan 16
2
How to get the string representation of an instruction?
...; On Wed, Jan 16, 2019 at 10:25 AM Peng Yu via llvm-dev <llvm-dev at lists.llvm.org> wrote: >> Hi, >> >> I don't see a way to convert an Instruction to a string or const char >> *, although '<<' works on it. >> >> http://llvm.org/doxygen/classllvm_1_1Instruction.html >> >> How to figure this out? Thanks. >> >> -- >> Regards, >> Peng >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/l...
2018 Apr 02
1
Custom Binary Format Challenges
...ction pointer value? Like the >>> actual instruction with opcode and operands? With the sample code that I >>> showed you, the instrucrtion pointer in the innermost for loop will have >>> access to the following functions: >>> >>> http://llvm.org/doxygen/classllvm_1_1Instruction.html >>> >>> Alternatively, you can use the dump() operation to dump the instructions >>> out. >>> >>> Unfortunately I don't know how to address your second question. That's >>> stretching my knowledge in LLVM. >>> >>>...