search for: help__me_please

Displaying 14 results from an estimated 14 matches for "help__me_please".

2010 Apr 14
4
[LLVMdev] Operand, instruction
...:", "Instruction.h:50: note: virtual llvm::Instruction* llvm::Instruction::clone(llvm::LLVMContext&) const" Also i have used BinaryOperator::create(), but it gives error that there is no function called create(). Thanks again for your reply. John Criswell-2 wrote: > > help__me_please wrote: >> Can you please give an example of creating an instruction (for example >> add >> instructions with two operand a and b)? I am trying instruction() for a >> while, but no success yet. >> > > You need to look for the appropriate subclass of llvm::Inst...
2010 Apr 14
0
[LLVMdev] Operand, instruction
There's an entire tutorial at http://llvm.org/docs/tutorial which includes covers the IRBuilder to generate all sorts of IR, including the add instruction. You can skip ahead to chapter 3 if you just want to see LLVM API, but I suggest you read the whole tutorial if you have the time. Nick help__me_please wrote: > > Thanks for reply. > I have used AllocaInst, it's working but i think it's only for allocating > some memory for new variable. And CallInst creates a call instruction. I am > looking for creating a add or sub instruction. > > I used function instruction(), whi...
2010 Apr 14
0
[LLVMdev] Operand, instruction
help__me_please wrote: > Thanks for reply. > I have used AllocaInst, it's working but i think it's only for allocating > some memory for new variable. And CallInst creates a call instruction. I am > looking for creating a add or sub instruction. > > I used function instruction(), which g...
2010 Apr 22
3
[LLVMdev] Operand, instruction
...n this instruction second operand is a numerical constant with value 6. But i am only able to print it by using getOperand(1), not able to store it in any integer variable. Using getName() returns a empty string. Is there any way to solve this problem? Thank you. John Criswell-2 wrote: > > help__me_please wrote: >> Can you please give an example of creating an instruction (for example >> add >> instructions with two operand a and b)? I am trying instruction() for a >> while, but no success yet. >> > > You need to look for the appropriate subclass of llvm::Inst...
2010 Apr 22
2
[LLVMdev] Operand, instruction
...> << ")\n"; > } > > -- > "Believe you can, believe you can't; either way you're right."  -Henry > Ford > > > -----Original Message----- > From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On > Behalf Of help__me_please > Sent: Thursday, April 22, 2010 8:38 AM > To: llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] Operand, instruction > > > Hello, how to get the numerical value of an constant operand? For ex. %tmp > = > mul i32 %indvar, 6 , in this instruction second operand is a numerical...
2010 Apr 22
0
[LLVMdev] Operand, instruction
...!!!!1111oneone!! (" <<c->getZExtValue() << ")\n"; } -- "Believe you can, believe you can't; either way you're right."  -Henry Ford -----Original Message----- From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of help__me_please Sent: Thursday, April 22, 2010 8:38 AM To: llvmdev at cs.uiuc.edu Subject: Re: [LLVMdev] Operand, instruction Hello, how to get the numerical value of an constant operand? For ex. %tmp = mul i32 %indvar, 6 , in this instruction second operand is a numerical constant with value 6. But i am only ab...
2010 Apr 22
1
[LLVMdev] Operand, instruction
...her instruction. For example there is one constant operand with value 6, i will multiply it with 2, and then use 12 as operand in other instruction. So i need to convert 12 to value class and then i will be able to set it as operand. Hope i am clear now. Thanks. John Criswell-2 wrote: > > help__me_please wrote: >> Thanks for the quick reply. >> I am able to get the numerical value. But i also need the numerical value >> to >> be in value type, so that it can be used as operand of other instruction. >> For that i am trying to create a new ConstantInt, but i am unable to...
2010 Apr 13
0
[LLVMdev] Operand, instruction
help__me_please wrote: > Can you please give an example of creating an instruction (for example add > instructions with two operand a and b)? I am trying instruction() for a > while, but no success yet. > You need to look for the appropriate subclass of llvm::Instruction and find the method for cr...
2010 Apr 13
3
[LLVMdev] Operand, instruction
Can you please give an example of creating an instruction (for example add instructions with two operand a and b)? I am trying instruction() for a while, but no success yet. Duncan Sands wrote: > > Hi, > >> Actually i have to implement strength reduction, for that i have to first >> detect induction variables using ALLEN-COCKE-KENNEDY algorithm. To find >> out
2010 Mar 28
0
[LLVMdev] Operand, instruction
On Fri, Mar 26, 2010 at 6:53 AM, help__me_please <krishnadhan at cse.iitb.ac.in> wrote: > > Can anyone tell how to get the result name or instruction name of all > instruction? For example if the instruction is "x=add y,z", here i need "x". > Using getName(), i am getting some instructions result name, but ll...
2010 Apr 22
0
[LLVMdev] Operand, instruction
help__me_please wrote: > Thanks for the quick reply. > I am able to get the numerical value. But i also need the numerical value to > be in value type, so that it can be used as operand of other instruction. > For that i am trying to create a new ConstantInt, but i am unable to find > create() funct...
2010 Mar 26
4
[LLVMdev] Operand, instruction
Can anyone tell how to get the result name or instruction name of all instruction? For example if the instruction is "x=add y,z", here i need "x". Using getName(), i am getting some instructions result name, but llvm produces some instruction like "%0=add i32 tmp, 1", here getName() shows empty string as result name. So please help. John Criswell wrote: > >
2010 Mar 30
1
[LLVMdev] Operand, instruction
Can you tell how to use vector globally? I mean, i am able to add entries to a vector in a basicblock, but whenever a basicblock function call is returned, the vector becomes empty. So how to use data structures globally? And one thing, where is main ( or same kind of) function in llvm? Thanks for you reply. Duncan Sands wrote: > > Hi, > >> Actually i have to implement strength
2010 Mar 29
3
[LLVMdev] Operand, instruction
Actually i have to implement strength reduction, for that i have to first detect induction variables using ALLEN-COCKE-KENNEDY algorithm. To find out induction variables, i need the name of the instruction. Thanks for the reply. Devang Patel-2 wrote: > > On Fri, Mar 26, 2010 at 6:53 AM, help__me_please > <krishnadhan at cse.iitb.ac.in> wrote: >> >> Can anyone tell how to get the result name or instruction name of all >> instruction? For example if the instruction is "x=add y,z", here i need >> "x". >> Using getName(), i am getting some in...