search for: callprint

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

Did you mean: call_print
2008 Nov 17
2
[LLVMdev] Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed.
...er and writes it to file. Value *Ten = ConstantInt::get(Type::Int32Ty, 10); const Type *VoidPtrTy = PointerType::getUnqual(Type::Int8Ty); AllocaInst *AI = new AllocaInst(Type::Int32Ty); Value *ST = new StoreInst(Ten,AI,false,4,j); Value *BT = new BitCastInst(ST,VoidPtrTy,"",j); CallInst *CallPrint = CallInst::Create(myprint, BT, "", j); CallPrint->setTailCall(true); I am getting the following error while executing. Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed. What am I doing wrong :(? I always get stuck badly when these assert...
2008 Nov 17
1
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
...> > > Value *BT = new > BitCastInst(ST,VoidPtrTy,"",j); > > Trying to cast (void) to (void*) is invalid. Instead, you > should cast the AllocaInst, ala: > > Value *BT = new BitCastInst(AI,VoidPtrTy,"",j); > > Nick > > > CallInst *CallPrint = CallInst::Create(myprint, BT, > "", j); > > CallPrint->setTailCall(true); > > > > I am getting the following error while executing. > > Assertion `castIsValid(getOpcode(), S, Ty) && > "Illegal BitCast"' failed. > > > &gt...
2008 Nov 17
1
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
...gt;> > >> Trying to cast (void) to (void*) is invalid. > Instead, you > >> should cast the AllocaInst, ala: > >> > >> Value *BT = new > BitCastInst(AI,VoidPtrTy,"",j); > >> > >> Nick > >> > >>> CallInst *CallPrint = > CallInst::Create(myprint, BT, > >> "", j); > >>> CallPrint->setTailCall(true); > >>> > >>> I am getting the following error while > executing. > >>> Assertion `castIsValid(getOpcode(), S, Ty) > && > >&...
2008 Nov 16
1
[LLVMdev] How do I get the result of an instruction?
...ction::iterator i = func->begin(), e = func->end(); i != e; ++i) { blk=i; for (BasicBlock::iterator j = blk->begin(), k = blk->end(); j != k; ++j){ Instruction *inst = j; //if inst satisfies my condition, write reults to file CallInst *CallPrint = CallInst::Create(myprint, ???, "", j); CallPrint->setTailCall(true); } } What do I put in the ???. How do I cast Instruction *inst into char * which can be passed into the function? Hope this is clear. Thanks, Bhavani --- On Sun, 11/16/08, Eli Friedman &...
2008 Nov 17
0
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
...> invalid. > >> Instead, you > >>>> should cast the AllocaInst, ala: > >>>> > >>>> Value *BT = new > >> BitCastInst(AI,VoidPtrTy,"",j); > >>>> Nick > >>>> > >>>>> CallInst *CallPrint = > >> CallInst::Create(myprint, BT, > >>>> "", j); > >>>>> CallPrint->setTailCall(true); > >>>>> > >>>>> I am getting the following error while > >> executing. > >>>>> Assertion `...
2008 Nov 16
0
[LLVMdev] How do I get the result of an instruction?
On Sat, Nov 15, 2008 at 3:58 PM, bhavani krishnan <bhavi63 at yahoo.com> wrote: > Thanks! > > How do I cast the result to a string? I basically need to store the results of some instructions in a file. If you're confused about how the IR works, http://llvm.org/demo/ can be useful. The question you're asking doesn't really seem to make sense. -Eli
2008 Nov 17
0
[LLVMdev] How do I get the result of an instruction?
...++i) > > { > > blk=i; > > for (BasicBlock::iterator j = blk->begin(), > k = blk->end(); j != k; ++j){ > > Instruction *inst = j; > > //if inst satisfies my condition, write > reults to file > > CallInst *CallPrint = > CallInst::Create(myprint, ???, "", j); > > CallPrint->setTailCall(true); > > } > > } > > What do I put in the ???. How do I cast Instruction > *inst into char * which can be passed into the function? > > Well, you can do somethi...
2008 Nov 17
1
[LLVMdev] How do I get the result of an instruction?
...; > > > for (BasicBlock::iterator j = > blk->begin(), > > k = blk->end(); j != k; ++j){ > > > Instruction *inst = j; > > > //if inst satisfies my condition, > write > > reults to file > > > CallInst *CallPrint = > > CallInst::Create(myprint, ???, "", j); > > > CallPrint->setTailCall(true); > > > } > > > } > > > What do I put in the ???. How do I cast > Instruction > > *inst into char * which can be passed into the > funct...
2008 Nov 15
2
[LLVMdev] How do I get the result of an instruction?
Thanks! How do I cast the result to a string? I basically need to store the results of some instructions in a file. Thanks, Bhavani --- On Sun, 11/16/08, John Criswell <criswell at uiuc.edu> wrote: > From: John Criswell <criswell at uiuc.edu> > Subject: Re: [LLVMdev] How do I get the result of an instruction? > To: "bhavi63 at yahoo.com" <bhavi63 at
2015 Jul 29
1
[LLVMdev] Error when i am using command make -j4 command in cygwin to compile safecode
...ion.cpp for Release+Asserts build llvm[3]: Compiling CallGraphSCCPass.cpp for Release+Asserts build llvm[3]: Compiling LoopDistribute.cpp for Release+Asserts build llvm[3]: Compiling DIE.cpp for Release+Asserts build llvm[3]: Compiling X86MCInstLower.cpp for Release+Asserts build llvm[3]: Compiling CallPrinter.cpp for Release+Asserts build llvm[3]: Compiling LoopIdiomRecognize.cpp for Release+Asserts build llvm[3]: Compiling GlobalsModRef.cpp for Release+Asserts build llvm[3]: Compiling DIEHash.cpp for Release+Asserts build llvm[3]: Compiling X86MachineFunctionInfo.cpp for Release+Asserts build llvm[3]...