search for: krishnadhan

Displaying 10 results from an estimated 10 matches for "krishnadhan".

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 llvm > produces...
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 Apr 22
1
[LLVMdev] Operand, instruction
Thanks again for your reply. You are right. But i am looking to change the value of that constant value and use that as operand in other 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.
2010 Mar 29
3
[LLVMdev] Operand, instruction
...plement 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 instructions result nam...
2011 Mar 07
0
Xen network i/o events
Hi, I am new to xen internals. I want to understand, what events are generated for sending/receiving network packet of guest domains in xen and preferably to generate their logs. Any help, where and how to start? Thanks, Krishna _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
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 Apr 22
2
[LLVMdev] Operand, instruction
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() function for ConstantInt. Thanks again for the quick and helpful reply. Ben Perry-3 wrote: > > if (ConstantInt *c = (ConstantInt
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 Apr 22
3
[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 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: > >
2010 Apr 14
4
[LLVMdev] Operand, instruction
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 gives me error "error: cannot allocate an object of abstract type ‘llvm::Instruction’" and also "Instruction.h:28: note: