summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-02-01 18:27:38 +0000
committerDan Gohman <gohman@apple.com>2010-02-01 18:27:38 +0000
commite5e1b7b05a2f1f40bdd2fec0105cd48f39c8ad0f (patch)
tree980fce0d31c411705994d589f8370e559034baf3 /clang/lib/CodeGen/CodeGenModule.cpp
parent846a52e228b0050995f1679288e93c15739b004d (diff)
downloadbcm5719-llvm-e5e1b7b05a2f1f40bdd2fec0105cd48f39c8ad0f.tar.gz
bcm5719-llvm-e5e1b7b05a2f1f40bdd2fec0105cd48f39c8ad0f.zip
Generalize target-independent folding rules for sizeof to handle more
cases, and implement target-independent folding rules for alignof and offsetof. Also, reassociate reassociative operators when it leads to more folding. Generalize ScalarEvolution's isOffsetOf to recognize offsetof on arrays. Rename getAllocSizeExpr to getSizeOfExpr, and getFieldOffsetExpr to getOffsetOfExpr, for consistency with analagous ConstantExpr routines. Make the target-dependent folder promote GEP array indices to pointer-sized integers, to make implicit casting explicit and exposed to subsequent folding. And add a bunch of testcases for this new functionality, and a bunch of related existing functionality. llvm-svn: 94987
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud