Chris Lattner
0e62c1cc0b
remove unneeded llvm:: namespace qualifiers on some core types now that LLVM.h imports
...
them into the clang namespace.
llvm-svn: 135852
2011-07-23 10:55:15 +00:00
Jeffrey Yasskin
d2af962eee
Define DiagnosticBuilder<<APValue so it's easy to include APValues in
...
diagnostics.
llvm-svn: 135398
2011-07-18 16:43:53 +00:00
Peter Collingbourne
e92006860d
Refactoring of constant expression evaluator
...
This introduces a generic base class for the expression evaluator
classes, which handles a few common expression types which were
previously handled separately in each class. Also, the expression
evaluator now uses ConstStmtVisitor.
llvm-svn: 131281
2011-05-13 03:29:01 +00:00
Dan Gohman
145f3f1e83
Fix -Wcast-qual warnings.
...
llvm-svn: 101786
2010-04-19 16:39:44 +00:00
Ken Dyck
02990837ad
Convert the type of the LValue offset variable in APValue to CharUnits, moving
...
the LValue-related methods of APValue out of line to avoid header file leaching.
llvm-svn: 93512
2010-01-15 12:37:54 +00:00
Mike Stump
11289f4280
Remove tabs, and whitespace cleanups.
...
llvm-svn: 81346
2009-09-09 15:08:12 +00:00
Douglas Gregor
5b5559b272
Make sure to access APValue's data via a char array (rather than
...
through an array of void*), so that we don't run afoul of the
strict-aliasing rules in C++ 3.10p15. Unfortunately, GCC 4.4 still
complains about this code.
llvm-svn: 81251
2009-09-08 19:57:33 +00:00
Daniel Dunbar
4095d89532
Remove some now-unneeded calls to llvm::errs().flush().
...
llvm-svn: 66555
2009-03-10 18:00:19 +00:00
Nate Begeman
2f2bdeb5df
Support evaluation of vector constant expressions, and codegen of same.
...
llvm-svn: 62455
2009-01-18 03:20:47 +00:00
Nate Begeman
1e31b168fa
Add support for vectors to APValue. Vector constant evaluator and tests coming.
...
llvm-svn: 62438
2009-01-18 01:01:34 +00:00
Chris Lattner
981f33b0b6
add dump and print methods, add operator<< for APValue.
...
llvm-svn: 59411
2008-11-16 07:46:48 +00:00