Skip to content
  1. Sep 03, 2007
  2. Aug 30, 2007
  3. Aug 29, 2007
    • Ted Kremenek's avatar
      Added GraphTraits to source-level CFGs (CFG and CFGBlock) to allow · 4e5f99da
      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
      4e5f99da
  4. Aug 26, 2007
  5. Aug 23, 2007
    • Ted Kremenek's avatar
      Renamed "CFG::BuildCFG" to "CFG::buildCFG" to have more consistent capitalization. · 889073f7
      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
      889073f7
  6. Aug 21, 2007
    • Ted Kremenek's avatar
      Added CFG infrastructure (CFG.cpp and CFG.h) for clang ASTs. · 4aa1e8b3
      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
      4aa1e8b3
  7. Aug 10, 2007
  8. Aug 09, 2007
    • Chris Lattner's avatar
      add a new AST dumper interface (E->dump()). This dumps out · cbe4f77c
      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
      cbe4f77c
  9. Jul 24, 2007
  10. Jul 23, 2007
  11. Jul 22, 2007
  12. Jul 21, 2007
  13. Jul 20, 2007
  14. Jul 16, 2007
  15. Jul 15, 2007
  16. Jul 14, 2007
  17. Jul 13, 2007
  18. Jul 07, 2007
    • Steve Naroff's avatar
      Bug #: · 4ae0ac6a
      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
      4ae0ac6a
  19. Jun 28, 2007
  20. Jun 27, 2007
Loading