summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-28 02:15:55 +0000
committerDan Gohman <gohman@apple.com>2010-01-28 02:15:55 +0000
commitcf9138307dba746470ece630e3eeb340af5f3432 (patch)
tree1214eb9c882517581729caac386ee773324414fc /clang/lib/Frontend
parent08ad1cceb30b2d35b5c751ac8d83c449615e88c0 (diff)
downloadbcm5719-llvm-cf9138307dba746470ece630e3eeb340af5f3432.tar.gz
bcm5719-llvm-cf9138307dba746470ece630e3eeb340af5f3432.zip
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. llvm-svn: 94737
Diffstat (limited to 'clang/lib/Frontend')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud