search for: ld100

Displaying 5 results from an estimated 5 matches for "ld100".

2013 Jan 28
5
[LLVMdev] Value* to Instruction*/LoadInst* casting
...is true? In my particular piece of code: Value* V1 = icmpInstrArray[i]->getOperand(0); Value* V2 = icmpInstrArray[i]->getOperand(1); if (isa<LoadInst>(V1) || isa<LoadInst>(V2)){ ... if(isa<LoadInst>(icmpInstrArray[i]->getOperand(0))) LoadInst *LD100 = cast<LoadInst>(icmpInstrArray[i]->getOperand(0)); Value *C100 = LD100->getPointerOperand(); //HERE COMPILATION ERROR Further, I just need to make `C100->getName()` and I will get the loaded variable. I don't think that I can use cast like that. Can you tell me a me...
2013 Jan 28
0
[LLVMdev] Value* to Instruction*/LoadInst* casting
The compilation error is : `error: ‘LD100’ was not declared in this scope.` On Mon, Jan 28, 2013 at 11:31 AM, Alexandru Ionut Diaconescu < alexandruionutdiaconescu at gmail.com> wrote: > Hello everyone, > > Can you please tell me if it is possible in LLVM to cast a `Value*` to an > `Instruction*/LoadInst*` if for examp...
2013 Jan 28
1
[LLVMdev] Value* to Instruction*/LoadInst* casting
Hi Alexandru, > The compilation error is : `error: ‘LD100’ was not declared in this scope.` > > On Mon, Jan 28, 2013 at 11:31 AM, Alexandru Ionut Diaconescu < > alexandruionutdiaconescu at gmail.com> wrote: > >> Hello everyone, >> >> Can you please tell me if it is possible in LLVM to cast a `Value*` to an >> `I...
2013 Jan 28
0
[LLVMdev] Value* to Instruction*/LoadInst* casting
...> > Value* V1 = icmpInstrArray[i]->getOperand(0); > Value* V2 = icmpInstrArray[i]->getOperand(1); > if (isa<LoadInst>(V1) || isa<LoadInst>(V2)){ > ... > if(isa<LoadInst>(icmpInstrArray[i]->getOperand(0))) > LoadInst *LD100 = cast<LoadInst>(icmpInstrArray[i]->getOperand(0)); > Value *C100 = LD100->getPointerOperand(); //HERE > COMPILATION ERROR You're missing braces after the if-statement. Nick > Further, I just need to make `C100->getName()` and I will get the loaded > v...
2013 Mar 04
2
[LLVMdev] llvm cannot iterate a [3 x i8]
...t; a part of LLVM IR. More exactly, from @.str = private unnamed_addr constant [3 x i8] c"DS\00", section "llvm.metadata" I want to get "DS". It is the single place in the whole bytecode from where I can get it. I have : ... Value *VV = cast<Value>(LD100->getOperand(1)->getOperand(0)); errs()<<"\n VV "<<*(VV)<<"\n"; RESULT : VV @.str = private unnamed_addr constant [3 x i8] c"DS\00", section "llvm.metadata" if(VV->getValueID() == Value::GlobalVariableVal){ Glo...