Implement folding of expressions like 'uint cast (int* getelementptr (int*
authorChris Lattner <sabre@nondot.org>
Thu, 15 Jul 2004 01:16:59 +0000 (01:16 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 15 Jul 2004 01:16:59 +0000 (01:16 +0000)
commitdd68469382cafff2051289707ea2d3e0d26919b1
tree9dcfaf2a3e53f4ce9724105c50970c5371dabc2d
parent654b7105272964b53c9adacf568f2124da93eb9f
Implement folding of expressions like 'uint cast (int* getelementptr (int*
null, uint 1) to uint)' to a constant integer.  We can only do this with
primitive LLVM types, because other types have target-specific sizes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14837 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/ConstantFold.cpp