[LLVMdev] IO intrinsics?
Hans Stimer
hans.stimer at gmail.com
Thu May 12 22:07:00 PDT 2011
I found these lines in the BrainF example:
//declare i32 @getchar()
getchar_func = cast<Function>(module->
getOrInsertFunction("getchar", IntegerType::getInt32Ty(C), NULL));
//declare i32 @putchar(i32)
putchar_func = cast<Function>(module->
getOrInsertFunction("putchar", IntegerType::getInt32Ty(C),
IntegerType::getInt32Ty(C), NULL));
Since getchar and putchar are never defined, I'm assuming they are
intrinsics, but they are not documented with the rest of the intrinsics. So
are they intrinsics or something else?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110512/e80203f6/attachment.html>
More information about the llvm-dev
mailing list