- Sep 03, 2007
-
-
Chris Lattner authored
by Hartmut Kaiser! llvm-svn: 41684
-
- Aug 30, 2007
-
-
Chris Lattner authored
to turn off all lexer-related warnings. llvm-svn: 41604
-
Chris Lattner authored
llvm-svn: 41588
-
- Aug 29, 2007
-
-
Ted Kremenek authored
(LLVM-provided) graph algorithms such as DFS and graph visualization to work effortless on source-level CFGs. Further cleanup on pretty printing of CFGs. CFGBlock::dump and CFGBlock::print now take the parent CFG as an argument. This allows CFGBlocks to print their own appropriate label indicating whether or not they are the Entry/Exit/IndirectGotoBlock without the CFG::print routine doing it instead. Added Graphviz visualization for CFGs: CFG::viewCFG. This employs the GraphTraits just implemented. Added "-view-cfg" mode the to clang driver. This is identical to "-dump-cfg" except that it calls Graphviz to visualize the CFGs instead of dumping them to the terminal. llvm-svn: 41580
-
- Aug 26, 2007
-
-
Chris Lattner authored
llvm-svn: 41455
-
Chris Lattner authored
specifier of functions. llvm-svn: 41416
-
- Aug 23, 2007
-
-
Ted Kremenek authored
Added explicit "Exit" CFGBlock pointer to the source-level CFG. Changed the construction of blocks with "return" statements to have the return statement appear both as a statement in the list of statements for a CFGBlock as well as appear as a control-flow terminator. Also removed the implicit linearization of "return" so that the return value and the return statement did not appear as separate statements in the block. llvm-svn: 41323
-
- Aug 21, 2007
-
-
Ted Kremenek authored
Added builder code to translate ASTs to CFGs. This currently supports if, return, and non-control flow statements. Added pretty-printer to debug CFGs. Added a "-dump-cfg" option to the clang driver to dump CFGs for code sent through the frontend. llvm-svn: 41252
-
- Aug 10, 2007
-
-
Chris Lattner authored
preprocessor state, causing bogus diagnostics when the file is parsed for real. This implements Misc/diag-checker.c. Thanks to Ted for noticing this. llvm-svn: 41000
-
- Aug 09, 2007
-
-
Chris Lattner authored
the AST in a structural, non-pretty, form useful for understanding the AST. It isn't quite done yet, but is already somewhat useful. For this example: int test(short X, long long Y) { return X < ((100)); } we get (with -parse-ast-dump): int test(short X, long long Y) (CompoundStmt 0x2905ce0 (ReturnStmt 0x2905cd0 (BinaryOperator 0x2905cb0 '<' (ImplicitCastExpr 0x2905ca0 (DeclRefExpr 0x2905c20 Decl='X' 0x2905bb0)) (ParenExpr 0x2905c80 (ParenExpr 0x2905c60 (IntegerLiteral 0x2905c40 100)))))) llvm-svn: 40954
-
- Jul 24, 2007
-
-
Chris Lattner authored
llvm-svn: 40462
-
Chris Lattner authored
This speeds up -E on xalancbmk by 2.4% llvm-svn: 40461
-
Chris Lattner authored
by Neil Booth. This fixes Preprocessor/output_paste_avoid.c llvm-svn: 40454
-
- Jul 23, 2007
-
-
Chris Lattner authored
llvm-svn: 40424
-
Chris Lattner authored
This speeds up -E on 447.dealII by 5.8% llvm-svn: 40423
-
Chris Lattner authored
trivial to handle and very very common. This speeds up -E on 447.dealII by 2.5% llvm-svn: 40422
-
Chris Lattner authored
and avoid computing the spelling of tokens when not needed. This speeds up -E on 447.dealII by 2.2% llvm-svn: 40421
-
Chris Lattner authored
without having to get the whole token. This speeds up -E on 447.dealII by 1.8% llvm-svn: 40420
-
Chris Lattner authored
llvm-svn: 40419
-
Chris Lattner authored
token was not -> and if the token before it was -, the - and > would avoid pasting. llvm-svn: 40409
-
Chris Lattner authored
C++ mode, even gnu C++ mode. llvm-svn: 40408
-
- Jul 22, 2007
-
-
Chris Lattner authored
llvm-svn: 40386
-
Chris Lattner authored
llvm-svn: 40385
-
Chris Lattner authored
fileid's and macroid's across files. Clearing between files keeps the tables smaller and slightly speeds up compilation. llvm-svn: 40383
-
- Jul 21, 2007
-
-
Chris Lattner authored
llvm-svn: 40189
-
- Jul 20, 2007
-
-
Chris Lattner authored
Since that point is now long gone, we should rename LexerToken to Token, as it is the only kind of token we have. llvm-svn: 40105
-
Chris Lattner authored
llvm-svn: 40104
-
Chris Lattner authored
fileid/offset pair, it now contains a bit discriminating between mapped locations and file locations. This separates the tables for macros and files in SourceManager, and allows better separation of concepts in the rest of the compiler. This allows us to have *many* macro instantiations before running out of 'addressing space'. This is also more efficient, because testing whether something is a macro expansion is now a bit test instead of a table lookup (which also used to require having a srcmgr around, now it doesn't). This is fully functional, but there are several refinements and optimizations left. llvm-svn: 40103
-
- Jul 16, 2007
-
-
Chris Lattner authored
llvm-svn: 39904
-
Chris Lattner authored
llvm-svn: 39897
-
- Jul 15, 2007
-
-
Chris Lattner authored
llvm-svn: 39865
-
- Jul 14, 2007
-
-
Chris Lattner authored
compute type alignment. This info is needed for struct layout. llvm-svn: 39850
-
- Jul 13, 2007
-
-
Chris Lattner authored
llvm-svn: 39795
-
- Jul 07, 2007
-
-
Steve Naroff authored
Submitted by: Reviewed by: - Finished semantic analysis for vectors, added some diagnostics. - Added AST for vectors (instantiation, installation into the decl). - Fixed bug in ParseArraySubscriptExpr()...this crasher was introduced by me when we added the range support. - Turned pedantic off by default. Since vectors are gcc extensions, having pedantic on by default was annoying. Turning it off by default is also consistent with gcc (but this wasn't my primary motivation). - Tweaked some comments and diagnostics. Note: The type checking code is still under construction (for vectors). This will be my next check-in. llvm-svn: 39715
-
- Jun 28, 2007
-
-
Chris Lattner authored
llvm-svn: 39707
-
Chris Lattner authored
llvm-svn: 39706
-
Chris Lattner authored
llvm-svn: 39705
-
Chris Lattner authored
llvm-svn: 39704
-
Chris Lattner authored
recent changes. carbon.h now preprocesses just fine. llvm-svn: 39701
-
- Jun 27, 2007
-
-
Chris Lattner authored
llvm-svn: 39692
-