search for: strptr

Displaying 4 results from an estimated 4 matches for "strptr".

Did you mean: ptrptr
2011 Apr 05
3
[LLVMdev] inserting a print statement into IR
...mp = M.getOrInsertFunction("printf",fType); if(!temp){ errs() << "printf function not in symbol table\n"; exit(1); } Function *f = cast<Function>(temp); f->setCallingConv(CallingConv::C); const char *str = "value: %d\n"; Value *intparam = ... Value *strPtr = builder.CreateGlobalStringPtr(str,""); builder.CreateCall2(PrintF, strPtr, intparam,"tmp6"); -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110404/1ba75642/attachment.html>
2011 Apr 05
0
[LLVMdev] inserting a print statement into IR
...pe); > if(!temp){ > errs() << "printf function not in symbol table\n"; > exit(1); > } > Function *f = cast<Function>(temp); > f->setCallingConv(CallingConv::C); > > const char *str = "value: %d\n"; > Value *intparam = ... > Value *strPtr = builder.CreateGlobalStringPtr(str,""); > builder.CreateCall2(PrintF, strPtr, intparam,"tmp6"); -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110404/4e4c363d/attachment.html>
2011 Apr 01
3
[LLVMdev] insert printf into IR
....getContext()), params, true); Constant *temp = M.getOrInsertFunction("printf",fType); if(!temp){ errs() << "printf function not in symbol table\n"; exit(1); } Function *f = cast<Function>(temp); f->setCallingConv(CallingConv::C); Value *intparam = ... Value *strPtr = builder.CreateGlobalStringPtr(str,""); builder.CreateCall2(PrintF, strPtr, intparam,"tmp6"); -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110401/cecae798/attachment.html>
2011 Apr 05
2
[LLVMdev] inserting a print statement into IR
...); > if(!temp){ > errs() << "printf function not in symbol table\n"; > exit(1); > } > Function *f = cast<Function>(temp); > f->setCallingConv(CallingConv::C); > > const char *str = "value: %d\n"; > Value *intparam = ... > Value *strPtr = builder.CreateGlobalStringPtr(str,""); > builder.CreateCall2(PrintF, strPtr, intparam,"tmp6"); > > > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://list...