- Jul 16, 2007
-
-
Chris Lattner authored
llvm-svn: 39884
-
- Jul 15, 2007
-
-
Chris Lattner authored
llvm-svn: 39868
-
Chris Lattner authored
virtual->physical mapping explicitly. llvm-svn: 39867
-
Steve Naroff authored
This is the final step/commit for implementing exlicit implicit casts. Unlike the previous two checkins, which involved lot's of tedious refactoring, this checkin is nice and clean:-) - Hacked UsualUnaryConversions, UsualArithmeticConversions, and DefaultFunctionArrayConversion to create the AST node (using a helper function promoteExprToType). - Added a setType method to Expr. - Changed Expr::isIntegerConstantExpr to allow for the new node. llvm-svn: 39866
-
Chris Lattner authored
llvm-svn: 39865
-
Chris Lattner authored
This doesn't significantly improve carbon.h, but it does speed up INPUTS/macro_pounder_obj.c by 48% llvm-svn: 39864
-
Chris Lattner authored
which makes it multithread clean. llvm-svn: 39863
-
Chris Lattner authored
explicitly new'd array. The array never mutates once created, so a vector is overkill. llvm-svn: 39862
-
Chris Lattner authored
This speeds up parsing carbon.h by 3.3% by avoiding some malloc traffic for small macros. llvm-svn: 39861
-
Chris Lattner authored
llvm-svn: 39860
-
- Jul 14, 2007
-
-
Chris Lattner authored
code more obvious. llvm-svn: 39859
-
Gabor Greif authored
llvm-svn: 39858
-
Bill Wendling authored
llvm-svn: 39853
-
Chris Lattner authored
compute type alignment. This info is needed for struct layout. llvm-svn: 39850
-
Chris Lattner authored
vars. Approach suggested by Keith. llvm-svn: 39849
-
Chris Lattner authored
llvm-svn: 39848
-
Chris Lattner authored
llvm-svn: 39847
-
Chris Lattner authored
llvm-svn: 39846
-
Gabor Greif authored
llvm-svn: 39842
-
Gabor Greif authored
llvm-svn: 39841
-
Steve Naroff authored
More changes related to implementing ImplicitCastExpr. - Fixed a recent regression discovered by Keith Bauer (thanks!). The fix involved adding (back) two arguments to UsualArithmeticConversions. Without the reference arguments, no unary conversions were being passed back to the caller. This had the effect of turning off the UsualUnaryConversions. - Refactored CheckAssignmentConstraints into 3 functions. CheckAssignmentConstraints, CheckSingleAssignmentConstraints, and CheckCompoundAssignmentConstraints. - Changed the argument type of DefaultFunctionArrayConversion from QualType->Expr*&. - Removed a bunch of casts in routines I was working on (cleanup). - Fixed the visitor for ImplicitCastExpr (oops). llvm-svn: 39840
-
Chris Lattner authored
llvm-svn: 39838
-
Chris Lattner authored
llvm-svn: 39837
-
Gabor Greif authored
llvm-svn: 39836
-
Chris Lattner authored
where ASTContext can manage caches for struct layout, etc. llvm-svn: 39835
-
- Jul 13, 2007
-
-
Chris Lattner authored
on test/Sema/implicit-int.c llvm-svn: 39833
-
Chris Lattner authored
llvm-svn: 39832
-
Chris Lattner authored
llvm-svn: 39831
-
Chris Lattner authored
llvm-svn: 39830
-
Chris Lattner authored
llvm-svn: 39829
-
Chris Lattner authored
llvm-svn: 39826
-
Chris Lattner authored
llvm-svn: 39824
-
Steve Naroff authored
assert is now done in UsualUnaryConversions(). llvm-svn: 39818
-
Chris Lattner authored
llvm-svn: 39815
-
Steve Naroff authored
Add (explicit) AST support for implicit casts. This should simplify the code generator. Source translation tools can simply ignore this node. - Added a new Expr node, ImplicitCastExpr. - Changed UsualUnaryConversions/UsualArithmeticConversions to take references to Expr *'s. This will allow these routines to instantiate the new AST node and pass it back. - Changed all clients of UsualUnary/UsualArithmetic (lot's of diff's). - Changed some names in CheckConditionalOperands. Several variables where only distinguished by their case (e.g. Cond, cond). Yuck (what was I thinking). - Removed an old/crufty constructor in CastExpr (cleanup). This check-in does not actually create the new AST node. I wanted to separate the mechanical changes from the semantic changes. In addition, I need to coordinate with Chris, since the semantic change will break the code generator. llvm-svn: 39814
-
Chris Lattner authored
llvm-svn: 39812
-
Gabor Greif authored
llvm-svn: 39797
-
Chris Lattner authored
Both in one patch, and the test case that Chris didn't commit last time is in there too... I'll split the patch up if somebody wants it split." Patch by Keith Bauer. llvm-svn: 39796
-
Chris Lattner authored
llvm-svn: 39795
-
Chris Lattner authored
I've added a tests/CodeGen directory, and a test for this case that used to fail and now passes." Patch by Keith Bauer llvm-svn: 39794
-