[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
Wed Oct 28 14:14:53 PDT 2009


On Oct 28, 2009, at 2:04 PM, Mike Stump wrote:

> On Oct 26, 2009, at 5:52 PM, Eric Christopher wrote:
>> Author: echristo
>> Date: Mon Oct 26 19:52:25 2009
>> New Revision: 85189
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=85189&view=rev
>> Log:
>> Add objectsize intrinsic and hook it up through codegen. Doesn't
>> do anything than return "I don't know" at the moment.
> 
>> +    if (CI->getZExtValue() < 2)
>> +      setValue(&I, DAG.getConstant(-1, MVT::i32));
>> +    else
>> +      setValue(&I, DAG.getConstant(0, MVT::i32));
> 
> Does this generate a 32-bit constant?  If so, the return type is 64-bit on a size_t 64-bit machine...

Yeah, I've got a fix I need to put out today.  :)

-eric



More information about the llvm-commits mailing list