NAKAMURA Takumi
406f02c9ea
test/CodeGen/X86/dyn-stackalloc.ll: FileCheck-ize.
...
llvm-svn: 127730
2011-03-16 13:52:08 +00:00
NAKAMURA Takumi
c9998aa1f4
test/Driver/hello.c: Tweak for cygming.
...
- Driver's name may be "clang(-\d.\d).exe".
- Emitted executable file is named as "%t.exe". It must be harmless on other OS.
llvm-svn: 127729
2011-03-16 13:51:46 +00:00
Cameron Zwarich
7599b106b7
Fix a comment.
...
llvm-svn: 127728
2011-03-16 08:13:42 +00:00
Ted Kremenek
35c70f64db
Teach CFGBuilder that the 'default' branch of a switch statement is dead if all enum values in a switch conditioned are handled.
...
llvm-svn: 127727
2011-03-16 04:32:01 +00:00
NAKAMURA Takumi
76e68ea916
lib/Support/raw_ostream.cpp: On mingw, report_fatal_error() should not be called at dtor context.
...
report_fatal_error() invokes exit(). We know report_fatal_error() might not write messages to stderr when any errors were detected on FD == 2.
llvm-svn: 127726
2011-03-16 02:53:39 +00:00
John McCall
e99e5dcbd3
Don't emit read barriers for reading __weak __block variables
...
in non-GC mode.
llvm-svn: 127725
2011-03-16 02:53:38 +00:00
NAKAMURA Takumi
a3d4749e24
Windows/PathV2.inc: [PR8520] Recognize "NUL" as special (character) file.
...
FIXME: It is a temporal hack. We should detect as many "special file name" as possible.
llvm-svn: 127724
2011-03-16 02:53:32 +00:00
NAKAMURA Takumi
aaa9b4f824
Windows/Path.inc: [PR6270] PathV1::makeUnique(): Give arbitrary initial seed for workaround.
...
FIXME: We should use sys::fs::unique_file() in future.
llvm-svn: 127723
2011-03-16 02:53:24 +00:00
Jim Grosbach
c91fa6d19f
Tidy up. Whitespace and 80 column.
...
llvm-svn: 127721
2011-03-16 01:21:55 +00:00
Devang Patel
39c041cae7
Do not accidently initialize NumDbgValueLost and NumDbgLineLost counts.
...
llvm-svn: 127720
2011-03-16 00:27:57 +00:00
Ted Kremenek
4ceebbf54d
VariadicMethodTypeChecker: don't warn for null pointer constants passed to variadic Objective-C methods.
...
llvm-svn: 127719
2011-03-16 00:22:51 +00:00
Cameron Zwarich
0454253d7a
Only convert allocas to scalars if it is profitable. The profitability metric I
...
chose is having a non-memcpy/memset use and being larger than any native integer
type. Originally I chose having an access of a size smaller than the total size
of the alloca, but this caused some minor issues on the spirit benchmark where
SRoA runs again after some inlining.
This fixes <rdar://problem/8613163>.
llvm-svn: 127718
2011-03-16 00:13:44 +00:00
Cameron Zwarich
7b0f3c6a1a
Add native integer type TargetData to some existing tests.
...
llvm-svn: 127717
2011-03-16 00:13:40 +00:00
Cameron Zwarich
b51c830f7c
Better use initializer lists.
...
llvm-svn: 127716
2011-03-16 00:13:37 +00:00
Cameron Zwarich
63062ccf85
Add a clarifying comment.
...
llvm-svn: 127715
2011-03-16 00:13:35 +00:00
Cameron Zwarich
51e76763c7
Add TargetData::fitsInLegalInteger().
...
llvm-svn: 127714
2011-03-16 00:13:28 +00:00
Caroline Tice
fe28f1bff9
Fix various small bugs found in the instruction emulation functions.
...
llvm-svn: 127712
2011-03-16 00:06:12 +00:00
Ted Kremenek
6f7008dcb6
c-index-test shouldn't crash when a goto has no matching label. Fixes <rdar://problem/9123493>.
...
llvm-svn: 127711
2011-03-15 23:47:49 +00:00
Johnny Chen
a4c3154fca
There were two issues fixed:
...
1. The ARM Darwin *r9 call instructions were pseudo-ized recently.
Modify the ARMDisassemblerCore.cpp file to accomodate the change.
2. The disassembler was unnecessarily adding 8 to the sign-extended imm24:
imm32 = SignExtend(imm24:'00', 32); // A8.6.23 BL, BLX (immediate)
// Encoding A1
It has no business doing such. Removed the offending logic.
Add test cases to arm-tests.txt.
llvm-svn: 127707
2011-03-15 22:27:33 +00:00
John Thompson
d0332e4efe
Add scei vendor
...
llvm-svn: 127705
2011-03-15 21:51:56 +00:00
Ted Kremenek
6cd0187718
Remove warning for null characters in CFString literals. Clang handles them just fine, and GCC 4.2 doesn't warn here either.
...
We added this warning back in 2007 when we were comparing against GCC 4.0.
llvm-svn: 127704
2011-03-15 21:18:52 +00:00
Ted Kremenek
0d5b9ef564
Don't warn about null characters in Objective-C format string literals.
...
llvm-svn: 127703
2011-03-15 21:18:48 +00:00
John McCall
2de87f67e5
Reorganize the emission of (unfoldable) constant casts a bit, and
...
make sure that upcasts of member pointer types are covered as constants.
Fixed rdar://problem/9130221
llvm-svn: 127702
2011-03-15 21:17:48 +00:00
Sebastian Redl
c17003c66b
Create __has_feature(cxx_noexcept) and mark it as working.
...
Find out that our C++0x status has only one field for noexcept expression and specification together, and that it was accidentally already marked as fully implemented.
This completes noexcept specification work.
llvm-svn: 127701
2011-03-15 21:17:12 +00:00
Bill Wendling
865f8b592a
The VTBL (and VTBX) instructions are rather permissive concerning the masks they
...
accept. If a value in the mask is out of range, it uses the value 0, for VTBL,
or leaves the value unchanged, for VTBX.
llvm-svn: 127700
2011-03-15 21:15:20 +00:00
Sebastian Redl
e800838170
Fix test case.
...
llvm-svn: 127699
2011-03-15 21:15:06 +00:00
Jakob Stoklund Olesen
a0d5ec10d1
Trace back through sibling copies to hoist spills and find rematerializable defs.
...
After live range splitting, an original value may be available in multiple
registers. Tracing back through the registers containing the same value, find
the best place to insert a spill, determine if the value has already been
spilled, or discover a reaching def that may be rematerialized.
This is only the analysis part. The information is not used for anything yet.
llvm-svn: 127698
2011-03-15 21:13:25 +00:00
Jakob Stoklund Olesen
32210de3e4
Preserve both isPHIDef and isDefByCopy bits when copying parent values.
...
llvm-svn: 127697
2011-03-15 21:13:22 +00:00
NAKAMURA Takumi
920139ca08
lit/ProgressBar.py: [PR7919] Improve line wrap for XN-incapable terminals.
...
On Win32 console, emitting char to col#79 causes linefeed, and the cursor will not return to col#79 upper line with backspace.
llvm-svn: 127696
2011-03-15 21:07:44 +00:00
Sean Callanan
e6935b6bdf
Updated LLVM/Clang to the latest release, to pick
...
up AVX disassembly support.
llvm-svn: 127695
2011-03-15 20:57:04 +00:00
Bill Wendling
ebecb33307
Some minor cleanups based on feedback.
...
llvm-svn: 127694
2011-03-15 20:47:26 +00:00
Sebastian Redl
52ddca23a7
Extend the noexcept expression test to test noexcept specification functions.
...
llvm-svn: 127693
2011-03-15 20:45:42 +00:00
Sebastian Redl
c34c29f661
More robust check for the special C++0x operator new workaround.
...
llvm-svn: 127692
2011-03-15 20:41:09 +00:00
Jim Grosbach
4ae30b6785
Trailing whitespae.
...
llvm-svn: 127691
2011-03-15 20:25:54 +00:00
Sebastian Redl
cb5dd00796
Implement a hack to work around the changing exception specification of operator new in C++0x.
...
llvm-svn: 127688
2011-03-15 19:52:30 +00:00
Ted Kremenek
cdb2ae587a
Remove bogus assertion in IdempotentOperationsChecker.
...
llvm-svn: 127687
2011-03-15 19:27:57 +00:00
Greg Clayton
1a37ae40e1
Now that we have the debug map issues fixed, change the Xcode project to
...
build lldb, LLDB.framework and debugserver all with just DWARF (no dSYM).
llvm-svn: 127686
2011-03-15 18:51:42 +00:00
Sebastian Redl
0b94c9fb69
Reintroduce r127617: "Code generation for noexcept." with fixes.
...
llvm-svn: 127685
2011-03-15 18:42:48 +00:00
Cameron Zwarich
dbb27393cc
Clean up something noticed by Fritz.
...
llvm-svn: 127684
2011-03-15 18:42:33 +00:00
Evan Cheng
42401d6af2
Do not form thumb2 ldrd / strd if the offset is by multiple of 4. rdar://9133587
...
llvm-svn: 127683
2011-03-15 18:41:52 +00:00
Fariborz Jahanian
b03a4c23c2
Don't poke into redefined 'id' type looking for a property
...
declaration as this results in a confusing error message,
instead of message related to missing property declaration.
// rdar://9106929
llvm-svn: 127682
2011-03-15 17:27:48 +00:00
Richard Osborne
024932fc77
Don't indent cases in a switch, no functionality change.
...
llvm-svn: 127681
2011-03-15 15:55:30 +00:00
Richard Osborne
5f1a26ea39
On the XCore the scavenging slot should be closest to the SP.
...
llvm-svn: 127680
2011-03-15 15:10:11 +00:00
Oscar Fuentes
638b8b783f
is_llvm_target_library: recognize libraries without the LLVM prefix.
...
Without this cmake fails at configuration when some target pass
"native" on LLVM_LINK_COMPONENTS and that is expanded to "X86".
llvm-svn: 127679
2011-03-15 14:53:53 +00:00
Richard Osborne
3a68eb150b
Add XCore intrinsics for getps, setps, setsr and clrsr.
...
llvm-svn: 127678
2011-03-15 13:45:47 +00:00
Justin Holewinski
94751fbf32
PTX: Set PTX 2.0 as the minimum supported version
...
- Remove PTX 1.4 code generation
- Change type of intrinsics to .v4.i32 instead of .v4.i16
- Add and/or/xor integer instructions
llvm-svn: 127677
2011-03-15 13:24:15 +00:00
Duncan Sands
c2631d26c0
Silence compiler warning about case values not being in the enumerated type
...
MCFixupKind. This is the same technique that is used elsewhere in MC.
llvm-svn: 127676
2011-03-15 08:54:51 +00:00
Duncan Sands
7921ac0975
Avoid a compiler warning about reg possibly being used uninitialized
...
when building with assertions disabled.
llvm-svn: 127675
2011-03-15 08:41:24 +00:00
Cameron Zwarich
0b8cdfb6ec
Do not add PHIs with no users when creating LCSSA form. Patch by Andrew Clinton.
...
llvm-svn: 127674
2011-03-15 07:41:25 +00:00
Nick Lewycky
c1f8658368
Add C++ global operator {new,new[],delete,delete[]}(unsigned {int,long}) to the
...
memory builtins as equivalent to malloc/free.
This is different from any attribute we have. For example, you can delete the
allocators when their result is unused, but you can't collapse two calls to the
same function, even if no global/memory state has changed in between. The
noalias return states that the result does not alias any other pointer, but
instcombine optimizes malloc() as though the result is non-null for the purpose
of eliminating unused pointers.
llvm-svn: 127673
2011-03-15 07:31:32 +00:00