search for: jameschennerd

Displaying 20 results from an estimated 30 matches for "jameschennerd".

2013 Apr 09
3
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
hi, Duncan, thank you for your reply; instruction "i->getOperand(0)->dump()" may print the %4 in the screen, but how can i store it in a variable like char * oprand="%4" ? -- View this message in context: http://llvm.1065342.n5.nabble.com/get-the-identifies-of-the-unnamed-temporaries-from-the-instruction-of-LLVM-IR-tp56572p56588.html Sent from the LLVM - Dev mailing
2012 Dec 05
0
[LLVMdev] how to get and modify a global variable inside a module
...variable. But be careful, you may need to change also the references to those variables. Have a look to the method GlobalVariable::use_begin and use_end. They give you references to the users of the global variable. I hope this helps, Regards, Eduardo On Wed, Dec 5, 2012 at 9:07 AM, Dong Chen <jameschennerd at gmail.com> wrote: > recently, i use LLVM API to write a program to read *.ll and excute it > automatically. > Further more, i want to change some global variables inside a module. > i tried some functions provided by Module.h and ExecutionEngine.h but none > were seemed to matc...
2012 Dec 05
0
[LLVMdev] how to get and modify a global variable inside a module
...able (actually I am creating new globals and deleting the old ones) for (llvm::Value::use_iterator jj = gv->use_begin(); jj != gv->use_end(); ++jj) { // jj is a reference for the user of the global variable } } } } On Wed, Dec 5, 2012 at 11:37 AM, Dong Chen <jameschennerd at gmail.com> wrote: > hi Eduardo, > thanks for your attention, i checked the iterator, but i didn't see any > fucntion can return or modify the main memory address of a global variable > inside the module. > can you provide some reference code or program can achieve this? &gt...
2012 Dec 10
2
[LLVMdev] how to get and modify a local variable's value through executionEngine?
hello guys, recently, i successfully get and modify global variable by execution engine. the functions i used are listed here: int m=1; EE->updateGlobalMapping(p->M->getGlobalVariable("x",true),&m); EE->recompileAndRelinkFunction(EntryFn); x is the global variable in the module. but how to modify the local variable in the module? -- View this message in context:
2012 Dec 10
0
[LLVMdev] how to get and modify a local variable's value through executionEngine?
Dong Chen <jameschennerd at gmail.com> writes: > hello guys, > recently, i successfully get and modify global variable by execution engine. > the functions i used are listed here: > int m=1; > EE->updateGlobalMapping(p->M->getGlobalVariable("x",true),&m); > EE->recompileAn...
2012 Dec 10
2
[LLVMdev] how to get and modify a local variable's value through executionEngine?
hello Óscar Fuentes, thanks for your reply, if i use the API provided by parser.h and the program *.ll i parsed contains local variable, i can get a module have local variable without defines it first. i think that module is a structure like AST(i am not sure whether i was right), this must be a traversal method. am i right or do i misunderstand something? -- View this message in context:
2012 Dec 10
0
[LLVMdev] how to get and modify a local variable's value through executionEngine?
Dong Chen <jameschennerd at gmail.com> writes: > hello Óscar Fuentes, > thanks for your reply, if i use the API provided by parser.h and the program > *.ll i parsed contains local variable, i can get a module have local > variable without defines it first. > i think that module is a structure like AST(i...
2012 Dec 10
2
[LLVMdev] how to get and modify a local variable's value through executionEngine?
hi Óscar Fuentes, i am new to llvm, so i still have several questions. thanks for you help. (1)what is SSA form(static single assignment)? (2)how to traverse the basic blocks? if the module is gained by parser, what will the basic blocks contain? i will be on the line, thank you very much -- View this message in context:
2012 Dec 10
0
[LLVMdev] how to get and modify a local variable's value through executionEngine?
Dong Chen <jameschennerd at gmail.com> writes: > i am new to llvm, so i still have several questions. thanks for you help. > (1)what is SSA form(static single assignment)? Yes. > (2)how to traverse the basic blocks? if the module is gained by parser, what > will the basic blocks contain? Once the LLVM IR...
2012 Dec 10
2
[LLVMdev] how to get and modify a local variable's value through executionEngine?
hi Óscar Fuentes , thanks for your reply, but there are still a lot of concepts i don't understand. there seems to be some document to guide you but hard to understand. can you show me some basic and easy to learn document or websites? thank you -- View this message in context:
2012 Dec 10
0
[LLVMdev] how to get and modify a local variable's value through executionEngine?
Dong Chen <jameschennerd at gmail.com> writes: > thanks for your reply, but there are still a lot of concepts i don't > understand. there seems to be some document to guide you but hard to > understand. can you show me some basic and easy to learn document or > websites? What's missing from http://...
2013 Apr 09
0
[LLVMdev] get the identifies of the unnamed temporaries from the instruction of LLVM IR
On Tue, Apr 9, 2013 at 12:47 PM, Dong Chen <jameschennerd at gmail.com> wrote: > hi, Duncan, > thank you for your reply; > instruction "i->getOperand(0)->dump()" may print the %4 in the screen, but > how can i store it in a variable like char * oprand="%4" ? > > http://llvm.org/docs/FAQ.html#what-api-do-i-us...
2013 Apr 14
0
[LLVMdev] llvm 'select' instruction
...n = 2; break; case 3: n = 3; break; case 4: n = 4; break; case 5: n = 5; break; } return n; On 14 April 2013 13:17, Dong Chen <jameschennerd at gmail.com> wrote: > hello guys: > i am thinking about what kind of C instructions can turn into llvm IR > 'select' instruction. > i tried "d=a?b:c" and compiled it using clang, i still didn't get 'select' > is there anybody who knows this? > th...
2013 Apr 14
1
[LLVMdev] llvm 'select' instruction
hi Sam: thank you for your reply. but i have another question about this 'select' instruction. i think that in LLVM IR, i can use a branch and two seperate assignments to replace 'select' instruction(am i right?). so is there any compiling option to aviod generate 'select' instruction? -- View this message in context:
2012 Dec 05
2
[LLVMdev] how to get and modify a global variable inside a module
hi Eduardo, thanks for your attention, i checked the iterator, but i didn't see any fucntion can return or modify the main memory address of a global variable inside the module. can you provide some reference code or program can achieve this? thank you very much -- View this message in context:
2012 Dec 05
4
[LLVMdev] how to get and modify a global variable inside a module
recently, i use LLVM API to write a program to read *.ll and excute it automatically. Further more, i want to change some global variables inside a module. i tried some functions provided by Module.h and ExecutionEngine.h but none were seemed to match my need. did someone have the experience or some advices? thank you ;) -- View this message in context:
2013 Apr 14
8
[LLVMdev] llvm 'select' instruction
hello guys: i am thinking about what kind of C instructions can turn into llvm IR 'select' instruction. i tried "d=a?b:c" and compiled it using clang, i still didn't get 'select' is there anybody who knows this? thank you -- View this message in context: http://llvm.1065342.n5.nabble.com/llvm-select-instruction-tp56719.html Sent from the LLVM - Dev mailing list
2012 Dec 05
2
[LLVMdev] how to get and modify a global variable inside a module
hi Eduardo, i got what you did, but it seemed that you modified the Global Variable list, deleted Global Variable and created new one and added it to the list. I don't know whether i got it right and for more details, can you get the main memory address of the Global Variable? or did the iterator provide method to get this? thank you very much -- View this message in context:
2012 Dec 12
2
[LLVMdev] donot support uint datatype?
hi guys, i use clang to compile a program with datatype uint, but i get errors saying " use of undeclared identifier 'uint'; did you mean 'int'? ". it really doesn't support it? if true, how can i add a datatype? -- View this message in context: http://llvm.1065342.n5.nabble.com/donot-support-uint-datatype-tp52523.html Sent from the LLVM - Dev mailing list archive
2012 Dec 12
1
[LLVMdev] how to use the argument -cl-kernel-arg-info for clang?
hi everyone, have you ever tried the argument -cl-kernel-arg-info for clang? can you share the usage? thank you -- View this message in context: http://llvm.1065342.n5.nabble.com/how-to-use-the-argument-cl-kernel-arg-info-for-clang-tp52524.html Sent from the LLVM - Dev mailing list archive at Nabble.com.