diff options
author | Dan Gohman <gohman@apple.com> | 2010-01-28 02:15:55 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-01-28 02:15:55 +0000 |
commit | 0f5efe56258f8cd6ceff4d7955a5d80144cd9cb0 (patch) | |
tree | ffc0c95b7ce6941d5729ffcf2b0a1fa3702a2a76 /lib/Support/CommandLine.cpp | |
parent | edfe776ac29d9fd48ae8967f6742400aad65e39c (diff) |
Remove SCEVAllocSizeExpr and SCEVFieldOffsetExpr, and in their place
use plain SCEVUnknowns with ConstantExpr::getSizeOf and
ConstantExpr::getOffsetOf constants. This eliminates a bunch of
special-case code.
Also add code for pattern-matching these expressions, for clients that
want to recognize them.
Move ScalarEvolution's logic for expanding array and vector sizeof
expressions into an element count times the element size, to expose
the multiplication to subsequent folding, into the regular constant
folder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94737 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/CommandLine.cpp')
0 files changed, 0 insertions, 0 deletions