Chris Lattner
|
f09ad16cfc
|
simplify some code a bit.
llvm-svn: 53477
|
2008-07-11 22:15:16 +00:00 |
Chris Lattner
|
f8d7f72956
|
share code between sizeof(expr) and sizeof(type)
llvm-svn: 53475
|
2008-07-11 21:24:13 +00:00 |
Chris Lattner
|
b062dcc17b
|
implement support for __extension__, make sure the result of a
comparison has the right width.
llvm-svn: 53469
|
2008-07-11 19:29:32 +00:00 |
Chris Lattner
|
ae8cc15977
|
add a new getIntTypeSizeInBits method.
llvm-svn: 53468
|
2008-07-11 19:24:49 +00:00 |
Chris Lattner
|
2bd2e028ca
|
rename "SInt" methods to "Int" in APValue.
llvm-svn: 53467
|
2008-07-11 19:19:21 +00:00 |
Chris Lattner
|
e13042c04f
|
make the new evaluator avoid conversions APValue<->APSInt in some cases.
Add some accessors to APValue.
llvm-svn: 53465
|
2008-07-11 19:10:17 +00:00 |
Chris Lattner
|
05706e8859
|
rearrange some code, no functionality changes.
llvm-svn: 53463
|
2008-07-11 18:11:29 +00:00 |
Anders Carlsson
|
0166481455
|
Fix small bug. The evaluator now works well enough to pass all tests
llvm-svn: 53238
|
2008-07-08 16:49:00 +00:00 |
Anders Carlsson
|
4a3585b7c0
|
More constant expression work.
llvm-svn: 53235
|
2008-07-08 15:34:11 +00:00 |
Anders Carlsson
|
9c18165448
|
Move out some methods.
llvm-svn: 53234
|
2008-07-08 14:35:21 +00:00 |
Anders Carlsson
|
b5ad021cd7
|
More work.
llvm-svn: 53233
|
2008-07-08 14:30:00 +00:00 |
Seo Sanghyeon
|
1904f44757
|
Compilation fix
llvm-svn: 53222
|
2008-07-08 07:23:12 +00:00 |
Anders Carlsson
|
374b93df76
|
Port more of Eli's evaluator over. This makes the int evaluator handle binary and unary operators.
llvm-svn: 53221
|
2008-07-08 05:49:43 +00:00 |
Anders Carlsson
|
0a1707c6ba
|
Commit beginnings of int evaluator. Currently not used.
llvm-svn: 53219
|
2008-07-08 05:13:58 +00:00 |
Anders Carlsson
|
7a241baf2f
|
Shuffle things around in preparation for integrating Eli's constant evaluator.
llvm-svn: 53074
|
2008-07-03 04:20:39 +00:00 |