Skip to content
  1. Jun 03, 2007
  2. Jun 02, 2007
  3. Jun 01, 2007
    • Steve Naroff's avatar
      Bug #: · 4555292b
      Steve Naroff authored
      Submitted by:
      Reviewed by:
      After speaking with Chris, decided not to have GCC "attributes" inherit
      from Decl. This will enable us to grow the attribute hierarchy over time
      without effecting Decls.
      
      llvm-svn: 39543
      4555292b
    • Steve Naroff's avatar
      Bug #: · 6a0675f8
      Steve Naroff authored
      Submitted by:
      Reviewed by:
      Add implemention file for GCC attributes
      
      llvm-svn: 39542
      6a0675f8
    • Steve Naroff's avatar
      Bug #: · ff127787
      Steve Naroff authored
      Submitted by:
      Reviewed by:
      Interface file for GCC attributes.
      
      llvm-svn: 39541
      ff127787
    • Chris Lattner's avatar
      split stmt/expr codegen into their own files. · e47e440c
      Chris Lattner authored
      llvm-svn: 39540
      e47e440c
    • Steve Naroff's avatar
      Bug #: · 0f2fe17f
      Steve Naroff authored
      Submitted by:
      Reviewed by:
      Implement support for GCC __attribute__.
      
      - Implement "TODO" in Parser::ParseAttributes. Changed the return type from
      void to Parser::DeclTy. Changed all call sites to accept the return value.
      - Added Action::ParseAttribute and Sema::ParseAttribute to return an
      appropriate AST node. Added new node AttributeDecl to Decl.h.
      
      Still to do...hook up to the Decl...
      
      llvm-svn: 39539
      0f2fe17f
  4. May 31, 2007
  5. May 30, 2007
    • Chris Lattner's avatar
      Add support for codegen'ing paren exprs and if stmts. We can now codegen: · 5269c037
      Chris Lattner authored
      void test() {
        goto l;
      
      l:
        if (11) {
          j: ;
        }
      }
      
      into:
      
      define void @test() {
      entry:
              br label %l
      
      l:              ; preds = %entry
              icmp ne i32 11, 0               ; <i1>:0 [#uses=1]
              br i1 %0, label %ifthen, label %ifend
      
      ifthen:         ; preds = %l
              br label %j
      
      j:              ; preds = %ifthen
              br label %ifend
      
      ifend:          ; preds = %j, %l
      }
      
      whoa... :)
      
      llvm-svn: 39533
      5269c037
    • Chris Lattner's avatar
      add accessor · b2e723be
      Chris Lattner authored
      llvm-svn: 39532
      b2e723be
    • Chris Lattner's avatar
      pretty print exprs in stmt contexts with a trailing semicolon. · fc068c15
      Chris Lattner authored
      llvm-svn: 39531
      fc068c15
    • Chris Lattner's avatar
      implement codegen of integer literals. · 208ae96a
      Chris Lattner authored
      llvm-svn: 39530
      208ae96a
    • Chris Lattner's avatar
      Update · b5217858
      Chris Lattner authored
      llvm-svn: 39529
      b5217858
    • Steve Naroff's avatar
      Bug #: · 9992bbab
      Steve Naroff authored
      Submitted by:
      Reviewed by:
      - ParseForStatement(): Put back a test/assignment. My removal of
      ParseExprStmt() was a bit over zealous:-(thanks to Chris for pointing it out)
      - Add assert to VisitDeclStmt().
      - Removed an out-of-date FIXME
      - Added some curlies for a couple multi-line calls to Diag().
      
      llvm-svn: 39528
      9992bbab
    • Bill Wendling's avatar
      Submitted by: Bill Wendling · 216423bb
      Bill Wendling authored
      Comment format changes.
      
      llvm-svn: 39527
      216423bb
    • Steve Naroff's avatar
      Bug #: · 56faab2d
      Steve Naroff authored
      Submitted by:
      Reviewed by:
      - Many tweaks to various diagnostics.
      - Fixed some location/range issues.
      - Bug fix to Sema::ParseDeclStmt() - error return code is "true", not 0.
      
      llvm-svn: 39526
      56faab2d
    • Bill Wendling's avatar
      Submitted by: Bill Wendling · 44470834
      Bill Wendling authored
      - Conjugate "diagnostic" correctly for 1 diagnostic.
      
      llvm-svn: 39525
      44470834
    • Chris Lattner's avatar
      Implement codegen support for labels and gotos. We now compile: · ac24820f
      Chris Lattner authored
      void test1() {
        foo:
          goto foo;
          goto foo;
          goto foo;
      }
      
      void test() {
        goto l;
      
      l:
        ;
      }
      into:
      
      define void @test1() {
      entry:
              br label %foo
      
      foo:            ; preds = %0, %foo, %entry
              br label %foo
                      ; No predecessors!
              br label %foo
                      ; No predecessors!
      }
      
      define void @test() {
      entry:
              br label %l
      
      l:              ; preds = %entry
      }
      
      llvm-svn: 39524
      ac24820f
    • Steve Naroff's avatar
      Bug #: · eb9da94d
      Steve Naroff authored
      Submitted by:
      Reviewed by:
      Unified the diagnostics for function calls. Since we have range support,
      there is no need for including the argument number. Instead, I've made
      the diags more expressive by including more type info.
      
      Also improved the indentation of many calls to Diag (which can be 2-3
      lines now).
      
      llvm-svn: 39523
      eb9da94d
Loading