Skip to content
  1. Aug 25, 2007
    • Neil Booth's avatar
      Add self · 2873711c
      Neil Booth authored
      llvm-svn: 41381
      2873711c
    • Tanya Lattner's avatar
      Rename llvm-gcc4 to llvm-gcc. · ebd4e7ba
      Tanya Lattner authored
      llvm-svn: 41380
      ebd4e7ba
    • Steve Naroff's avatar
      · 0c1c7ed5
      Steve Naroff authored
      This modest change insures ImplicitCastExpr's get generated for all "assignments",
      while includes init decls, assignment exprs, call exprs, and return statements.
      
      Here are a few examples with the correct AST's...
      
      [dylan:~/llvm/tools/clang] admin% cat impcomp.c
      
      _Complex double X;
      void test2(int c) {
        X = 5;
      }
      void foo() {
        int i;
        double d = i;
        double _Complex a = 5;
      
        test2(a);
        a = 5;
        d = i;
      }
      
      
      [dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang impcomp.c -parse-ast-dump
      Read top-level variable decl: 'X'
      
      void test2(int c)
      (CompoundStmt 0x2605ce0
        (BinaryOperator 0x2605cc0 '_Complex double' '='
          (DeclRefExpr 0x2605c70 '_Complex double' Decl='X' 0x2605af0)
          (ImplicitCastExpr 0x2605cb0 '_Complex double'
            (IntegerLiteral 0x2605c90 'int' 5))))
      
      
      void foo()
      (CompoundStmt 0x2606030
        (DeclStmt 0x2605bd0
          0x2605d90 "int i")
        (DeclStmt 0x2605e20
          0x2605de0 "double d =
            (ImplicitCastExpr 0x2605e10 'double'
              (DeclRefExpr 0x2605dc0 'int' Decl='i' 0x2605d90))")
        (DeclStmt 0x2605e90
          0x2605e50 "_Complex double a =
            (ImplicitCastExpr 0x2605e80 '_Complex double'
              (IntegerLiteral 0x2605e30 'int' 5))")
        (CallExpr 0x2605f20 'void'
          (ImplicitCastExpr 0x2605f00 'void (*)(int)'
            (DeclRefExpr 0x2605ea0 'void (int)' Decl='test2' 0x2605c00))
          (ImplicitCastExpr 0x2605f10 'int'
            (DeclRefExpr 0x2605ec0 '_Complex double' Decl='a' 0x2605e50)))
        (BinaryOperator 0x2605fa0 '_Complex double' '='
          (DeclRefExpr 0x2605f50 '_Complex double' Decl='a' 0x2605e50)
          (ImplicitCastExpr 0x2605f90 '_Complex double'
            (IntegerLiteral 0x2605f70 'int' 5)))
        (BinaryOperator 0x2606010 'double' '='
          (DeclRefExpr 0x2605fc0 'double' Decl='d' 0x2605de0)
          (ImplicitCastExpr 0x2606000 'double'
            (DeclRefExpr 0x2605fe0 'int' Decl='i' 0x2605d90))))
      
      llvm-svn: 41379
      0c1c7ed5
    • Dale Johannesen's avatar
      Poison APFloat::operator==. Replace existing uses with bitwiseIsEqual. · bdea32d8
      Dale Johannesen authored
      This means backing out the preceding change to Constants.cpp, alas.
      
      llvm-svn: 41378
      bdea32d8
  2. Aug 24, 2007
  3. Aug 23, 2007
Loading