[llvm-commits] [llvm] r85189 - in /llvm/trunk: include/llvm/Intrinsics.td lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp lib/Transforms/Scalar/SimplifyLibCalls.cpp
Mike Stump
mrs at apple.com
Wed Oct 28 14:04:27 PDT 2009
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...
More information about the llvm-commits
mailing list