search for: cyrusthevirus001x

Displaying 15 results from an estimated 15 matches for "cyrusthevirus001x".

2013 Jun 25
4
[LLVMdev] get value
...        uint64_t VV = (RR->getValue()).getLimitedValue();                                     errs()<<"\nRR  "<<VV<<"\n"; ________________________________ From: Cristianno Martins <cristiannomartins at gmail.com> To: Alexandru Ionut Diaconescu <cyrusthevirus001x at yahoo.com> Cc: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu> Sent: Tuesday, June 25, 2013 12:27 PM Subject: Re: [LLVMdev] get value Hi Alexandru, if you have a Value pointer named v, you could use the method v->getValue().getLimitedValue(), which returns uint64_t...
2013 Jun 25
0
[LLVMdev] get value
Oops, that's true: I forgot about that XD sorry =) Glad I could help, -- Cristianno Martins PhD Student of Computer Science University of Campinas cmartins at ic.unicamp.br <cristiannomartins at hotmail.com> On Tue, Jun 25, 2013 at 4:38 AM, Alexandru Ionut Diaconescu < cyrusthevirus001x at yahoo.com> wrote: > Hi Cristianno, > > Thank you, it works :) > > with an extra cast: > Value *v ...... > ConstantInt* RR = (ConstantInt *)v; > uint64_t VV = &g...
2013 Jun 26
0
[LLVMdev] get value
...ml#the-isa-cast-and-dyn-cast-templates . Nick > uint64_t VV = (RR->getValue()).getLimitedValue(); > errs()<<"\nRR "<<VV<<"\n"; > > > *From:* Cristianno Martins <cristiannomartins at gmail.com> > *To:* Alexandru Ionut Diaconescu <cyrusthevirus001x at yahoo.com> > *Cc:* "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu> > *Sent:* Tuesday, June 25, 2013 12:27 PM > *Subject:* Re: [LLVMdev] get value > > Hi Alexandru, > > if you have a Value pointer named v, you could use the method > v->getValue().ge...
2013 Jun 26
2
[LLVMdev] vmkit variables internal representation
Yes ! Thank you a lot :) It seems vmkit bytecode is quite close to the classic LLVM, but still adaptations to the passes have to be done ________________________________ From: Tim Northover <t.p.northover at gmail.com> To: Alexandru Ionut Diaconescu <cyrusthevirus001x at yahoo.com> Cc: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu> Sent: Wednesday, June 26, 2013 3:32 PM Subject: Re: [LLVMdev] vmkit variables internal representation > I attached the assembly file, the java file and the running script file. I > hope the variable na...
2013 Jun 26
0
[LLVMdev] vmkit variables internal representation
...is feature, it should not take too many time, Gaël PS: also, even if you can use the java names for locals, you will have to disable some of the compilation passes because they could promote these variables into machine registers. Le 26 juin 2013 15:59, "Alexandru Ionut Diaconescu" < cyrusthevirus001x at yahoo.com> a écrit : > Yes ! Thank you a lot :) > > It seems vmkit bytecode is quite close to the classic LLVM, but still > adaptations to the passes have to be done > > > ------------------------------ > *From:* Tim Northover <t.p.northover at gmail.com> &gt...
2013 Jun 25
0
[LLVMdev] get value
...imitedValue(), which returns uint64_t, that can be casted as int. Hope I could help, -- Cristianno Martins PhD Student of Computer Science University of Campinas cmartins at ic.unicamp.br <cristiannomartins at hotmail.com> On Tue, Jun 25, 2013 at 4:05 AM, Alexandru Ionut Diaconescu < cyrusthevirus001x at yahoo.com> wrote: > Hello ! > > This may be a trivial question, but I cannot get fields from a Value type. > > If my Value is i32 1, how can I store 1 in a different structure (an > integer) ? For the type, I have getType(). For the value, I see no method > in Value.h. &...
2013 Jun 25
2
[LLVMdev] get value
Hello ! This may be a trivial question, but I cannot get fields from a Value type. If my Value is i32 1, how can I store 1 in a different structure (an integer) ? For the type, I have getType(). For the value, I see no method in Value.h. I tried to cast to ConstantExpr and then to get operands, or cast to ConstantDataArray and then use getAsString(), but is not working. How should I get the
2013 Jun 26
1
[LLVMdev] vmkit variables internal representation
Hello Tim, I attached the assembly file, the java file and the running script file. I hope the variable names can be identified. Thanks ________________________________ From: Alexandru Ionut Diaconescu <cyrusthevirus001x at yahoo.com> To: Tim Northover <t.p.northover at gmail.com> Cc: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu> Sent: Tuesday, June 25, 2013 5:58 PM Subject: Re: [LLVMdev] vmkit variables internal representation Hi Tim, Thank you for your answer. Tomorrow morning...
2013 Jun 25
2
[LLVMdev] vmkit variables internal representation
Hi Tim, Thank you for your answer. Tomorrow morning I will update my question after further investigation based on your advice and with the .ll. ________________________________ From: Tim Northover <t.p.northover at gmail.com> To: Alexandru Ionut Diaconescu <cyrusthevirus001x at yahoo.com> Cc: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu> Sent: Tuesday, June 25, 2013 5:50 PM Subject: Re: [LLVMdev] vmkit variables internal representation Hi Alexandru, > For the local variable Q, it seems that the compiler is optimizing and > considering...
2013 Jun 26
0
[LLVMdev] vmkit variables internal representation
> I attached the assembly file, the java file and the running script file. I > hope the variable names can be identified. Well, I'm afraid I know no more about the Java ABI than you, but Java strings can be identified by the type {i32, [N x i16]} where the first entry is the length and the array is UTF-16. Running the attached hacked-together script on your bitcode file gives the
2013 Jun 25
0
[LLVMdev] vmkit variables internal representation
Hi Alexandru, > For the local variable Q, it seems that the compiler is optimizing and > considering store i32 10691, i32* .... (into balance). Do you know how I can > compile the code for preserving Q? You've probably got to convince the compiler not to optimise since eliminating those variables is probably one of the simpler things that goes on during optimisation. I'd expect
2013 Feb 18
1
[LLVMdev] llvm line number of an instruction
Hello everybody, I want to get the line number of an instruction (and also of a variable declaration - alloca and global). The instruction is saved in an array of instructions. I have the function:     Constant* metadata::getLineNumber(Instruction* I){         if (MDNode *N = I->getMetadata("dbg")) { // this if is never executed             DILocation Loc(N);             unsigned
2013 Jun 25
2
[LLVMdev] vmkit variables internal representation
Hello everyone ! I am quite new to java under LLVM. I have the following code in Java: class MYGL { public static int P; public static int balance; }         int Q;         MYGL.P=5984;         Q=4597;         MYGL.balance=Q+6094; For the local variable Q, it seems that the compiler is optimizing and considering store i32 10691, i32* .... (into balance). Do you know how I can compile the code
2013 Mar 12
0
[LLVMdev] applying a pass only on execution paths
Hello everyone, I have a pass that is analyzing the entire module (using runOnFunction()). But I want to apply it on each execution path. I assume I have to divide my module into functions by constructing a CallGraph and then divide every function into instructions by construction CFG-s in the nodes of the previous mentioned CallGraph. I assume that the execution paths from a node that I
2013 Apr 29
0
[LLVMdev] multiple metadata fields
            Hello everyone, As i saw that is not possible to add metadata to a basic block, it is possible to add more metadata fields to an instruction? I saw that in the definition of setMetadata(), it updates/replaces the metadata if already existent. As far as I understand, updates=replaces, not updates OR replaces. I add metadata using :             LLVMContext& C =