Chris Lattner
8810795b14
move select validation logic into a shared place where the select ctor,
...
verifier, asm parser, etc can share it.
llvm-svn: 61461
2008-12-29 00:12:50 +00:00
Owen Anderson
b5232286a7
Fix up kill/dead marking in the new live interval reconstruction code.
...
llvm-svn: 61460
2008-12-28 23:35:13 +00:00
Owen Anderson
4213188c75
Forgot to commit this file.
...
Add a clear() method to remove all ranges and value numbers for a live interval.
llvm-svn: 61459
2008-12-28 21:57:02 +00:00
Owen Anderson
37751bb9d9
Add prototype code for recomputing a live interval's ranges and valnos through recursive phi construction.
...
llvm-svn: 61458
2008-12-28 21:48:48 +00:00
Sebastian Redl
58097c79c2
Fill in C++ status table for statements.
...
llvm-svn: 61457
2008-12-28 17:18:13 +00:00
Sebastian Redl
1cbb59182c
Convert a two more statement actions to smart pointers.
...
llvm-svn: 61456
2008-12-28 16:13:43 +00:00
Sebastian Redl
4f84ddccc8
Fix a grep error that caused CodeGenObjC/encode-test.m to fail.
...
llvm-svn: 61455
2008-12-28 15:48:05 +00:00
Sebastian Redl
a2b5e31cb1
Diagnose declarations that don't declare anything, and fix PR3020.
...
Examples:
int;
typedef int;
llvm-svn: 61454
2008-12-28 15:28:59 +00:00
Sebastian Redl
85cd7bac29
Fix filename typo.
...
llvm-svn: 61453
2008-12-28 14:19:27 +00:00
Nuno Lopes
037bc858a0
add RUN line
...
llvm-svn: 61452
2008-12-27 23:47:34 +00:00
Nick Lewycky
d80ff135b5
Check that the function prototypes are correct before assuming that the
...
parameters are pointers.
llvm-svn: 61451
2008-12-27 16:20:53 +00:00
Chris Lattner
1d1087113c
add testcase for type parsing.
...
llvm-svn: 61449
2008-12-27 08:10:46 +00:00
Chris Lattner
8ee284673f
implement simplify_type for PATypeHolder so that isa<FooType>(PATypeHolder)
...
works.
llvm-svn: 61448
2008-12-27 07:47:40 +00:00
Scott Michel
8233527b05
- Remove Tilmann's custom truncate lowering: it completely hosed over
...
DAGcombine's ability to find reasons to remove truncates when they were not
needed. Consequently, the CellSPU backend would produce correct, but _really
slow and horrible_, code.
Replaced with instruction sequences that do the equivalent truncation in
SPUInstrInfo.td.
- Re-examine how unaligned loads and stores work. Generated unaligned
load code has been tested on the CellSPU hardware; see the i32operations.c
and i64operations.c in CodeGen/CellSPU/useful-harnesses. (While they may be
toy test code, it does prove that some real world code does compile
correctly.)
- Fix truncating stores in bug 3193 (note: unpack_df.ll will still make llc
fault because i64 ult is not yet implemented.)
- Added i64 eq and neq for setcc and select/setcc; started new instruction
information file for them in SPU64InstrInfo.td. Additional i64 operations
should be added to this file and not to SPUInstrInfo.td.
llvm-svn: 61447
2008-12-27 04:51:36 +00:00
Anders Carlsson
f562b39e80
Add a MS specific intrinsic.
...
llvm-svn: 61446
2008-12-27 04:26:15 +00:00
Anders Carlsson
a7e0e61b9d
Eli noticed that I had forgotten some #defines. Add them.
...
llvm-svn: 61445
2008-12-26 22:49:10 +00:00
Anders Carlsson
70f8da06d3
Add float.h header. Eli, please review :)
...
llvm-svn: 61444
2008-12-26 17:10:18 +00:00
Anders Carlsson
702cb5c29f
Add __builtin_flt_rounds
...
llvm-svn: 61443
2008-12-26 16:43:35 +00:00
Douglas Gregor
1dc9826a46
Add support for out-of-line definitions of conversion functions and member operators
...
llvm-svn: 61442
2008-12-26 15:00:45 +00:00
Anders Carlsson
88b53663fb
Fix implementation of _mm_pause.
...
llvm-svn: 61441
2008-12-26 02:22:10 +00:00
Anders Carlsson
19ef5d49d4
OK, all tests pass. Let's start using the SSE2 header
...
llvm-svn: 61440
2008-12-26 00:57:11 +00:00
Anders Carlsson
c8f436df25
Add two more builtins
...
llvm-svn: 61439
2008-12-26 00:55:49 +00:00
Anton Korobeynikov
b46e3a8d3b
Complete the test after adding handling of merged attributes on decls.
...
llvm-svn: 61438
2008-12-26 00:52:17 +00:00
Anton Korobeynikov
d72f47aa05
Add full dllimport / dllexport support: both sema checks and codegen.
...
Patch by Ilya Okonsky
llvm-svn: 61437
2008-12-26 00:52:02 +00:00
Anton Korobeynikov
3112c877c1
Testcase for stdcall/fastcall sema checks.
...
Patch by Ilya Okonsky!
llvm-svn: 61436
2008-12-26 00:51:21 +00:00
Anders Carlsson
37ba1a5927
Fix formatting
...
llvm-svn: 61435
2008-12-26 00:50:47 +00:00
Anders Carlsson
37c2371a88
Add _mm_pause and _MM_SHUFFLE
...
llvm-svn: 61434
2008-12-26 00:49:43 +00:00
Anders Carlsson
85eb1247a3
More SSE2 intrinsics
...
llvm-svn: 61433
2008-12-26 00:45:50 +00:00
Anders Carlsson
a0d5ca2773
More SSE2 intrinsics
...
llvm-svn: 61432
2008-12-25 23:48:58 +00:00
Steve Naroff
f9c29d4200
Add parser support for __forceinline, __w64, __ptr64.
...
llvm-svn: 61431
2008-12-25 14:41:26 +00:00
Steve Naroff
44ac777741
Add parser support for __cdecl, __stdcall, and __fastcall.
...
Change preprocessor implementation of _cdecl to reference __cdecl.
llvm-svn: 61430
2008-12-25 14:16:32 +00:00
Zhongxing Xu
4c1661102e
Add Fedora 10 GCC paths.
...
llvm-svn: 61429
2008-12-25 09:28:01 +00:00
Anders Carlsson
51beccbd0b
Make _mm_add_si64 inlined
...
llvm-svn: 61428
2008-12-25 07:07:08 +00:00
Chris Lattner
3d1bce04e0
add PR #
...
llvm-svn: 61427
2008-12-25 05:40:38 +00:00
Chris Lattner
2a7c988627
Add a simple pattern for matching 'bt'.
...
llvm-svn: 61426
2008-12-25 05:34:37 +00:00
Chris Lattner
1b8c9f795a
Fix some JIT encodings.
...
llvm-svn: 61425
2008-12-25 01:32:49 +00:00
Chris Lattner
d1dfdab973
BT memory operands load from their address operand.
...
llvm-svn: 61424
2008-12-25 01:27:10 +00:00
Chris Lattner
8175f27d3f
translateX86CC can never fail. Simplify it based on this.
...
llvm-svn: 61423
2008-12-24 23:53:05 +00:00
Steve Naroff
3a9b7e0cff
Add explicit "fuzzy" parse support for Microsoft declspec.
...
Remove previous __declspec macro that would effectively erase the construct prior to parsing.
llvm-svn: 61422
2008-12-24 20:59:21 +00:00
Sebastian Redl
068b13d62a
Fix try statement deserialization.
...
llvm-svn: 61421
2008-12-24 13:02:38 +00:00
Bill Wendling
d6bd7e9372
Darwin likes for the EH frame to be non-local.
...
llvm-svn: 61420
2008-12-24 08:05:17 +00:00
Ted Kremenek
2907ab7d77
Add a bunch of comments and FIXMEs.
...
llvm-svn: 61419
2008-12-24 07:46:32 +00:00
Zhongxing Xu
c7a2792817
set region default value if there are not enough init values for array and struct.
...
llvm-svn: 61418
2008-12-24 07:29:24 +00:00
Zhongxing Xu
be2d5535f6
Add serialization support for TypeOfType.
...
llvm-svn: 61417
2008-12-24 07:22:26 +00:00
Zhongxing Xu
329f204b1b
Add serialization support for TypeOfExpr.
...
llvm-svn: 61416
2008-12-24 06:36:01 +00:00
Bill Wendling
066b5f6724
GCC doesn't emit DW_EH_PE_sdata4 for the FDE encoding on Darwin. I'm not sure
...
about other platforms.
llvm-svn: 61415
2008-12-24 05:25:49 +00:00
Bill Wendling
f4e6356d06
Revert the changes in this testcase until Anton can fix them.
...
llvm-svn: 61414
2008-12-24 05:23:34 +00:00
Douglas Gregor
b9bd8a994c
Keep track of template arguments when we parse them. Right now, we don't actually do anything with the template arguments, but they'll be used to create template declarations
...
llvm-svn: 61413
2008-12-24 02:52:09 +00:00
Anders Carlsson
a283f91a67
Add integer arithmetic intrinsics
...
llvm-svn: 61412
2008-12-24 02:41:00 +00:00
Anders Carlsson
b08ac0b2b0
Add store/set/load intrisics
...
llvm-svn: 61411
2008-12-24 02:11:54 +00:00