- Jul 10, 2007
-
-
Chris Lattner authored
llvm-svn: 39724
-
Steve Naroff authored
Submitted by: Reviewed by: Support the following... 1. Type checking and codegen support for V[i] on vectors. Hacked Sema::ParseArraySubscriptExpr(). 2. Unary bitwise complement ("~") on vectors. Hacked Sema::ParseUnaryOp(). llvm-svn: 39723
-
Chris Lattner authored
typedef float float4 __attribute__((vector_size (16))); void addFloat4(float4 a, float4 b) { float4 temp; } make sure to add 'temp' to the stmt tree as a declstmt. llvm-svn: 39722
-
Chris Lattner authored
llvm-svn: 39721
-
Chris Lattner authored
I expected :) llvm-svn: 39720
-
Steve Naroff authored
Submitted by: Reviewed by: Added primitive support for 32-bit floating point literals. llvm-svn: 39719
-
Chris Lattner authored
llvm-svn: 39718
-
- Jul 09, 2007
-
-
Steve Naroff authored
Submitted by: Reviewed by: Typechecking support for vectors... - Added CheckVectorOperands(). Called from CheckAdditionOperands, CheckMultiplyDivideOperands, CheckSubstractionOperands, and CheckBitwiseOperands. - Added diagnostic for converting vector values of different size. - Modified Type::isArithmeticType to include vectors. Sould be ready for Chris to add code generation. I will continue testing/refining. llvm-svn: 39717
-
Steve Naroff authored
Submitted by: Reviewed by: Fix a bozo bug in HandleDeclAttribute...only install a new type when appropriate. Also changed setType/setUnderlyingType to return void. llvm-svn: 39716
-
- 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 29, 2007
-
-
Bill Wendling authored
Reviewed by: Chris Lattner - Fix for C++ casting operators failing during parsing. Deriving the C++ cast expressions from CastExpr was the wrong way to go. Its constructor creates null QualTypes in one of its constructors. This doesn't work well with how the C++ casting expression class wanted to do things. Derive just from Expr instead. llvm-svn: 39714
-
Chris Lattner authored
llvm-svn: 39713
-
Chris Lattner authored
llvm-svn: 39712
-
Chris Lattner authored
llvm-svn: 39711
-
Chris Lattner authored
codegen support for +=. llvm-svn: 39710
-
Bill Wendling authored
- The && at the end was causing this to fail. Removed. llvm-svn: 39709
-
- Jun 28, 2007
-
-
Chris Lattner authored
llvm-svn: 39708
-
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
llvm-svn: 39703
-
Chris Lattner authored
llvm-svn: 39702
-
Chris Lattner authored
recent changes. carbon.h now preprocesses just fine. llvm-svn: 39701
-
Chris Lattner authored
For example, for: int test(short S, long L) { return S /= L; } record that the division is done as a long, even though the result type is short. llvm-svn: 39700
-
Bill Wendling authored
Update with -parse-ast-check. llvm-svn: 39699
-
Bill Wendling authored
Missing support for LLVM casting operators. llvm-svn: 39698
-
Bill Wendling authored
Small cleanup. No need to assign to a variable before returning. llvm-svn: 39697
-
- Jun 27, 2007
-
-
Bill Wendling authored
Fixed checking to coincide with the correct lines. llvm-svn: 39696
-
Bill Wendling authored
- Revert use of -parse-ast-check. llvm-svn: 39695
-
Chris Lattner authored
llvm-svn: 39694
-
Chris Lattner authored
llvm-svn: 39693
-
Chris Lattner authored
llvm-svn: 39692
-
Chris Lattner authored
llvm-svn: 39691
-
Chris Lattner authored
llvm-svn: 39690
-
Bill Wendling authored
- Chris noticed that if there were multiple warnings/errors expected throughout the file and we were checking only one of them, then it would go ahead and say that the whole file was okay. Fixed this by adding a check for the line number as well as the string. llvm-svn: 39689
-
Bill Wendling authored
Reviewed by: Chris Lattner Split up lines to have only one expected output per line. Restored some checks. llvm-svn: 39688
-
Bill Wendling authored
Reviewed by: Chris Lattner - Reverted some checks because they're checking the preprocessor output. llvm-svn: 39687
-
Bill Wendling authored
Removed unnecessary typedef. llvm-svn: 39686
-
Chris Lattner authored
some ivars to more obvious names, eliminating some comments. llvm-svn: 39685
-