- Sep 05, 2007
-
-
Bill Wendling authored
llvm-svn: 41717
-
- Sep 04, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 41716
-
Steve Naroff authored
Simplified initializer semantic analysis by adding the following 2 methods: - ArrayType::getBaseType(), and - ConstantArrayType::getMaximumElements(). Wanted to do this cleanup before adding structure support, which will add more complexity. llvm-svn: 41715
-
Devang Patel authored
llvm-svn: 41714
-
Devang Patel authored
llvm-svn: 41713
-
Evan Cheng authored
llvm-svn: 41712
-
Evan Cheng authored
llvm-svn: 41711
-
Evan Cheng authored
Always check the type of node. This prevents situations such as selecting 32-bit rotate target instruction for a 64-bit node when 64-bit pattern is missing. llvm-svn: 41710
-
Fariborz Jahanian authored
llvm-svn: 41709
-
Hartmut Kaiser authored
llvm-svn: 41708
-
Hartmut Kaiser authored
llvm-svn: 41707
-
David Greene authored
Update generated files. llvm-svn: 41706
-
Dale Johannesen authored
llvm-svn: 41705
-
Ted Kremenek authored
llvm-svn: 41704
-
David Greene authored
Revert this because the interface hasn't been updated yet. llvm-svn: 41703
-
David Greene authored
Fix typo. llvm-svn: 41702
-
Chris Lattner authored
llvm-svn: 41701
-
Evan Cheng authored
llvm-svn: 41700
-
David Greene authored
Update GEP constructors to use an iterator interface to fix GLIBCXX_DEBUG issues. llvm-svn: 41697
-
Steve Naroff authored
Make sure initializer type promotions get propagated. This fixes a recent regression with Codegen/mandel.c. llvm-svn: 41696
-
Chris Lattner authored
llvm-svn: 41695
-
Chris Lattner authored
llvm-svn: 41694
-
Chris Lattner authored
llvm-svn: 41693
-
Chris Lattner authored
llvm-svn: 41692
-
Chris Lattner authored
llvm-svn: 41691
-
Steve Naroff authored
More fun with initializers! - Fixed many bugs, enhanced test case considerably, added a diagnostic, etc. - Refactored CheckInitList() into CheckVariableInitList()/CheckConstantInitList(). - Added CheckInitExpr(). - Support for multi-dimensional arrays looking good. llvm-svn: 41690
-
- Sep 03, 2007
-
-
Chris Lattner authored
llvm-svn: 41688
-
Chris Lattner authored
llvm-svn: 41687
-
Chris Lattner authored
llvm-svn: 41686
-
Chris Lattner authored
llvm-svn: 41685
-
Chris Lattner authored
by Hartmut Kaiser! llvm-svn: 41684
-
Chris Lattner authored
Hartmut Kaiser! llvm-svn: 41683
-
Steve Naroff authored
Finish getting "array-init.c" to work properly. Array scalar initialization is now is reasonable shape. Next step, structure and array of structure initializers. llvm-svn: 41681
-
Anton Korobeynikov authored
llvm-svn: 41680
-
Anton Korobeynikov authored
llvm-svn: 41676
-
Anton Korobeynikov authored
Emit proper "secrel" directive, where possible. This fixes invalid asm syntax of debug info on mingw32. Also, cleanup some stuff. llvm-svn: 41675
-
- Sep 02, 2007
-
-
Steve Naroff authored
More progress on array initializers. - Added Expr::isConstantExpr(). - Added type checking for InitListExpr elements. - Added diagnostic for trying to initialize a variable sized object. llvm-svn: 41674
-
Steve Naroff authored
Added 2 errors and one warning, updated test case. llvm-svn: 41672
-
Steve Naroff authored
Start implementing semantic analysis for C initializers. Step 1: Start instantiating InitListExpr's. Step 2: Call newly added function Sema::CheckInitializer() from Sema::ParseDeclarator(). Step 3: Give InitListExpr's a preliminary type. Step 4: Start emitting diagnostics for simple assignments. Note: As a result of step 1, the CodeGen/mandel.c test asserts "Unimplemented agg expr!", which is expected. As a result of step 4, the test below now fails. This isn't expected and needs to be investigated (it appears type checking for C++ references is flawed in some way). ******************** TEST 'Sema/cxx-references.cpp' FAILED! ******************** Command: clang -fsyntax-only Sema/cxx-references.cpp Output: Sema/cxx-references.cpp:8:12: warning: incompatible pointer types assigning 'int &*' to 'int *' int *p = &r; ^~ Sema/cxx-references.cpp:10:20: error: incompatible types assigning 'int (int)' to 'int (&)(int)' int (&rg)(int) = g; ^ Sema/cxx-references.cpp:13:18: error: incompatible types assigning 'int [3]' to 'int (&)[3]' int (&ra)[3] = a; ^ Sema/cxx-references.cpp:16:14: error: incompatible types assigning 'int *' to 'int *&' int *& P = Q; ^ 4 diagnostics generated. ******************** TEST 'Sema/cxx-references.cpp' FAILED! ******************** llvm-svn: 41671
-
- Sep 01, 2007
-
-
Steve Naroff authored
Finish converting SwitchStmt AST to source ranges. Move DumpSourceRange() to DumpStmt(). Now -parse-ast-dump will display source range info for all stmts/exprs. One day we should implement the source range protocol for Decls. llvm-svn: 41670
-