Displaying 6 results from an estimated 6 matches for "voidptrty".
Did you mean:
voidptr
2008 Nov 17
2
[LLVMdev] Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' failed.
ok.. So I am trying out what you have suggested. I have written the below code which basically tries to write the constant 10 to a file. myprint is a function pointer to a function which takes char * parameter 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...
2008 Nov 17
1
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
Ah! I get it now. Thanks a lot !
I changed it to BitCastInst(AI,VoidPtrTy,"",j);
And now I am getting the following error :(. I have been stuck with this error before also. I know I am missing out something silly. What is the cause of this error and Please let me know how to fix it.
/home/bhavani/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1130: llvm::...
2008 Nov 17
1
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
...n map!"' failed
> To: bhavi63 at yahoo.com
> Cc: "LLVM Developers Mailing List" <llvmdev at cs.uiuc.edu>
> Date: Monday, November 17, 2008, 6:17 AM
> bhavani krishnan wrote:
> > Ah! I get it now. Thanks a lot !
> > I changed it to
> BitCastInst(AI,VoidPtrTy,"",j);
> >
> > And now I am getting the following error :(. I have
> been stuck with this error before also. I know I am missing
> out something silly. What is the cause of this error and
> Please let me know how to fix it.
> >
> >
> /home/bhavani/llv...
2014 Jun 27
2
[LLVMdev] how create a pointer to FILE*
Hi, all
I want to create a function in LLVM IR, whose type is:
void _to_prof( FILE* ptrF);
I do it within LLVM, but I don't know how build the parameter type for
FILE* ptrF.
Best Regards.
Eric Lu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140627/c49bdb2a/attachment.html>
2008 Nov 17
0
[LLVMdev] Assertion `InReg && "Value not in map!"' failed
...t; >> Cc: "LLVM Developers Mailing List"
> <llvmdev at cs.uiuc.edu>
> >> Date: Monday, November 17, 2008, 6:17 AM
> >> bhavani krishnan wrote:
> >>> Ah! I get it now. Thanks a lot !
> >>> I changed it to
> >> BitCastInst(AI,VoidPtrTy,"",j);
> >>> And now I am getting the following error :(. I
> have
> >> been stuck with this error before also. I know I
> am missing
> >> out something silly. What is the cause of this
> error and
> >> Please let me know how to fix it.
>...
2008 Nov 17
0
[LLVMdev] Assertion `castIsValid(getOpcode(), S, Ty) && "Illegal BitCast"' faile
...BitCast"' faile
> To: bhavi63 at yahoo.com
> Date: Monday, November 17, 2008, 6:04 AM
> On Sun, Nov 16, 2008 at 9:53 PM, bhavani krishnan
> <bhavi63 at yahoo.com> wrote:
> > Ah! I get it now.. thanks a lot Eli!
> >
> > I changed it to
> BitCastInst(AI,VoidPtrTy,"",j);
> >
> > And now I am getting the following error. I have been
> stuck with this error before also. I know I am missing out
> something silly. Please let me know how to fix it.
> >
> >
> /home/bhavani/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cp...