[llvm-commits] [llvm] r85189 - in /llvm/trunk: include/llvm/Intrinsics.td lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp lib/Transforms/Scalar/SimplifyLibCalls.cpp
Eric Christopher
echristo at apple.com
Tue Oct 27 09:16:00 PDT 2009
On Oct 27, 2009, at 1:47 AM, Duncan Sands wrote:
> Hi Eric,
>
>> Add objectsize intrinsic and hook it up through codegen. Doesn't
>> do anything than return "I don't know" at the moment.
>
> this is maybe the most horrible gcc builtin ever invented! Is it
> really a good idea to duplicate it in LLVM? I know it's more work,
> but I'd much rather BUILTIN_OBJECT_SIZE was mapped to a bunch of
> code and perhaps several LLVM intrinsics, but where the intrinsics
> each have a clear, clean, sensible and logical definition...
It's largely a builtin for library implementers, not for the general
public. It will need to be mapped to a bit of code eventually, but
I'm not really sure what you want for several intrinsics though.
-eric
More information about the llvm-commits
mailing list