search for: 1111oneone

Displaying 3 results from an estimated 3 matches for "1111oneone".

2010 Apr 22
0
[LLVMdev] Operand, instruction
if (ConstantInt *c = (ConstantInt *) dyn_cast<ConstantInt>(index)){ errs() << "And it's a constant!!!!!!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_pleas...
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 22
2
[LLVMdev] Operand, instruction
...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 *) dyn_cast<ConstantInt>(index)){ > errs() << "And it's a constant!!!!!!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-b...