[LLVMdev] LLVM and newlib progress
Chris Lattner
sabre at nondot.org
Thu Nov 9 12:03:57 PST 2006
On Thu, 9 Nov 2006, [ISO-8859-1] Pertti Kellomäki wrote:
>> There isn't any really good reason to have an llvm intrinsic for write,
>> just leave 'write' as an external function.
>
> So is the opportunity for inlining the only reason for e.g. the
> llvm.memcpy intrinsic?
No. llvm.memcpy exists because the intrinsic conveys information the
libcall doesn't: alignment information. Other libcalls (e.g. cos) *are*
inlined, even as direct calls to cos, with no intrinsic.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list