Eric Christopher
58f3266722
Remove a method that was just replacing direct access to a member.
...
llvm-svn: 210598
2014-06-10 22:57:21 +00:00
Hans Wennborg
a55d30a223
lit: warn when passed invalid pathname
...
It would previously say things like
warning: input 'test/Frontend/foo.c' contained no tests
and have the user pull their hair trying to figure out what's wrong with that
file. This patch changes the message to the much clearer:
warning: no such file or directory: 'test/Frontend/foo.c'
Differential Revision: http://reviews.llvm.org/D4097
llvm-svn: 210597
2014-06-10 22:51:58 +00:00
Eric Christopher
6c786a1dd1
Remove the use of TargetMachine from X86InstrInfo.
...
llvm-svn: 210596
2014-06-10 22:34:31 +00:00
Eric Christopher
1f8ad4f4a7
Move X86RegisterInfo away from using the TargetMachine and only
...
using the subtarget.
llvm-svn: 210595
2014-06-10 22:34:28 +00:00
Todd Fiala
20e8edf5c7
Added gdb-remote test to verify M memory write.
...
llvm-svn: 210594
2014-06-10 22:15:56 +00:00
Reid Kleckner
4173f6aff9
*Really* fix DOS newlines introduced in r210330
...
r210369 didn't quite catch all of them.
llvm-svn: 210593
2014-06-10 21:35:24 +00:00
Ed Maste
f57dcbb615
Remove duplicated code
...
We preivously had two copies of ::BytesAvailable with only trivial
differences between them, and fixes have been applied to only one of
them.
Instead of duplicating the whole function, hide the FD_SET differences
behind a macro. This leaves only one small __APPLE__-specific #if
block, and fixes ^C on non-__APPLE__ platforms.
llvm-svn: 210592
2014-06-10 21:33:43 +00:00
Rafael Espindola
f5d07fa586
Mark a few functions noexcept.
...
This reduces the difference between std::error_code and llvm::error_code.
llvm-svn: 210591
2014-06-10 21:26:47 +00:00
Rafael Espindola
3a3532ebb9
Mark a few functions noexcept.
...
llvm-svn: 210590
2014-06-10 21:26:18 +00:00
Eric Christopher
68d7559e97
Use the TargetMachine on the DAG or the MachineFunction instead
...
of using the cached TargetMachine.
llvm-svn: 210589
2014-06-10 21:25:13 +00:00
Tom Stellard
4e07b1d76b
R600/SI: Emit an error when attempting to spill VGPRs v4
...
I can't get VGPR spilling to work reliable, so for now just emit
an error when the register allocator tries to spill VGPRs.
v2:
- Fix build
v3:
- Added crash fix when spilling SPGRs
v4:
- Use V_MOV_B32 as a dummy instruction instead of S_NOP
Patch by: Darren Powell
https://bugs.freedesktop.org/show_bug.cgi?id=75276
llvm-svn: 210588
2014-06-10 21:20:41 +00:00
Tom Stellard
060ae39022
R600/SI: Fix a crash when spilling SGPRs
...
We need to make sure only one new instruction is added when spilling
otherwise the register allocator may crash.
This fixes a crash in the game Antichamber.
https://bugs.freedesktop.org/show_bug.cgi?id=75276
llvm-svn: 210587
2014-06-10 21:20:38 +00:00
Bob Wilson
9c865ddb74
Try to fix clang-hexagon-elf failure by requiring x86 support for this test.
...
llvm-svn: 210586
2014-06-10 21:15:17 +00:00
Richard Smith
c3fbf683e6
PR19992: alignof is permitted on an array of unknown bound.
...
llvm-svn: 210585
2014-06-10 21:11:26 +00:00
Bob Wilson
07216a1161
Fix crash with x86_64-pc-win32-macho target. <rdar://problem/17235840>
...
The changes in r204978 broke win32-macho targets. There were checks added for
MSVC and Itanium environments as special cases, and win32-macho needs to be
treated the same way.
llvm-svn: 210584
2014-06-10 21:07:12 +00:00
Kaelyn Takata
73429fd4a6
Remove a redundant conditional when caching typo failures.
...
No functionality change.
llvm-svn: 210583
2014-06-10 21:03:49 +00:00
Hans Wennborg
35bbf1cf8a
Do not predefine __EXCEPTIONS in clang-cl (PR19977)
...
Patch by Ehsan Akhgari! (Test tweak by me.)
Differential Revision: http://reviews.llvm.org/D4065
llvm-svn: 210582
2014-06-10 20:46:38 +00:00
Rafael Espindola
826ba908e2
Add a LLVM_NOEXCEPT to Compiler.h.
...
This will be needed for the switch to std::error_code.
llvm-svn: 210581
2014-06-10 20:45:52 +00:00
Eric Christopher
2af33756c7
We already have a reference to the TargetMachine, use that.
...
llvm-svn: 210580
2014-06-10 20:39:39 +00:00
Eric Christopher
576d36ae05
Have isInTailCallPosition take the DAG so that we can use the
...
version of TargetLowering/Machine from there on the way to avoiding
TargetMachine in TargetLowering.
llvm-svn: 210579
2014-06-10 20:39:38 +00:00
Eric Christopher
09fc276d08
Reorder includes to be sorted.
...
llvm-svn: 210578
2014-06-10 20:39:35 +00:00
David Fang
7070be1160
fixes duplicate header installation
...
http://llvm.org/bugs/show_bug.cgi?id=18681
Patch by Ryuta Suzuki <oroppas gmail com>
llvm-svn: 210577
2014-06-10 20:26:54 +00:00
Tobias Grosser
8d614d0335
www: Fix grammar.
...
Reported-by: Jules Gagnon-Marchand <jules_gagnonm@hotmail.com>
llvm-svn: 210576
2014-06-10 20:18:16 +00:00
Reid Kleckner
52073f74d2
Rearrange the CHECK lines in this test to make failure more obvious.
...
llvm-svn: 210575
2014-06-10 20:16:47 +00:00
Reid Kleckner
b01961c2c1
Revert "Patch by Ray Donnelly to print register names instead of numbers."
...
This reverts commit r206683.
The code was confusing SEH register numbers with DWARF register numbers.
The test case it was committed with was obviously incorrect. The
disassembler was roundtripping '.seh_pushreg %rsi' as '.seh_pushreg
%rbp', and other exciting things.
Noticed by Vadim Chugunov.
llvm-svn: 210574
2014-06-10 20:16:36 +00:00
Todd Fiala
f9763874b7
Added gdb-remote tests around $qSupported.
...
Right now it just checks that qSupported returns at least
one recognized gdb stub feature.
llvm-svn: 210573
2014-06-10 20:16:31 +00:00
Matt Arsenault
a73fd935d8
Fix error in tablegen when either operand of !if is an empty list.
...
!if([Something], []) would error with "No type for list".
llvm-svn: 210572
2014-06-10 20:10:08 +00:00
Eric Christopher
db5028bd5b
Fix typos.
...
llvm-svn: 210571
2014-06-10 20:07:29 +00:00
Reid Kleckner
b4848e7bab
Fix mangling of __uuidof after two levels of template instantiation
...
llvm-svn: 210570
2014-06-10 20:06:25 +00:00
Matt Arsenault
6042506b5c
R600: Use BCNT_INT for evergreen
...
llvm-svn: 210569
2014-06-10 19:18:28 +00:00
Matt Arsenault
8333e4378e
R600/SI: Implement i64 ctpop
...
llvm-svn: 210568
2014-06-10 19:18:24 +00:00
Matt Arsenault
b5b5110b5c
R600/SI: Use bcnt instruction for ctpop
...
llvm-svn: 210567
2014-06-10 19:18:21 +00:00
Rafael Espindola
9a54da08e0
Use an enum class now that they are available.
...
llvm-svn: 210566
2014-06-10 19:08:21 +00:00
Fariborz Jahanian
3d5764091d
Objective-C. Don't ignore availability attribute when
...
doing Objective-C subscript access. // rdar://16842487
PR19682.
llvm-svn: 210565
2014-06-10 19:02:48 +00:00
Matt Arsenault
6e43965fbc
R600: Handle fcopysign
...
llvm-svn: 210564
2014-06-10 19:00:20 +00:00
Matt Arsenault
b2cbf799d1
R600/SI: Handle sign_extend and zero_extend to i64 with patterns.
...
llvm-svn: 210563
2014-06-10 18:54:59 +00:00
Marshall Clow
d0817f526c
Mark assign to be constepr only in c++14; can't have constexpr fns that return void in C++11
...
llvm-svn: 210562
2014-06-10 18:52:57 +00:00
Marshall Clow
9b0af34d96
Make the helper routines in string really be constexpr. This required a bit of refacoring in algorithm as well. Give them better names while we're at it. All of these are internal rotines; no visible functionality change.
...
llvm-svn: 210561
2014-06-10 18:51:55 +00:00
Marshall Clow
98763eb520
A bunch of the char.traits tests were using unicode literals. #ifdef those bits out on c++03, since it doesn't support u"" and U "" style strings.
...
llvm-svn: 210560
2014-06-10 18:46:59 +00:00
Eric Christopher
19b1d73e88
Add a FIXME.
...
llvm-svn: 210559
2014-06-10 18:31:18 +00:00
David Blaikie
bfd92afe01
Update Arcanist config to point to reviews.llvm.org
...
llvm-svn: 210558
2014-06-10 18:29:36 +00:00
Eric Christopher
fcb06ca908
Move AArch64SelectionDAGInfo down to the subtarget.
...
llvm-svn: 210557
2014-06-10 18:21:53 +00:00
Juergen Ributzka
89fe23e888
[FastISel] Collect statistics about failing intrinsic calls.
...
Add more instruction-specific statistics about failing intrinsic calls during
FastISel.
llvm-svn: 210556
2014-06-10 18:17:00 +00:00
Eric Christopher
17254eea62
Remove the cached little endian variable. We can get it easily off
...
of the DataLayout.
llvm-svn: 210555
2014-06-10 18:11:20 +00:00
Eric Christopher
078a2b62ab
Have AArch64SelectionDAGInfo take a DataLayout parameter rather
...
than a TargetMachine.
llvm-svn: 210554
2014-06-10 18:06:28 +00:00
Eric Christopher
57c2319bb3
Remove caching of the subtarget for AArch64SelectionDAGInfo.
...
llvm-svn: 210553
2014-06-10 18:06:25 +00:00
Eric Christopher
6f2a203f24
Move DataLayout onto the AArch64 subtarget.
...
llvm-svn: 210552
2014-06-10 18:06:23 +00:00
Zachary Turner
a40ccf620b
Test commit, wraps some lines to fit in 80 columns.
...
llvm-svn: 210551
2014-06-10 18:03:04 +00:00
Hans Wennborg
9d06a8d060
Don't inherit dll attributes to deleted methods (PR19988)
...
We would previously end up with an error when instantiating the
following template:
template <typename> struct __declspec(dllimport) S {
void foo() = delete;
};
S<int> s;
error: attribute 'dllimport' cannot be applied to a deleted function
llvm-svn: 210550
2014-06-10 17:53:23 +00:00
Eric Christopher
29aab7b355
Move AArch64FrameLowering into the subtarget.
...
llvm-svn: 210549
2014-06-10 17:44:12 +00:00