- Aug 16, 2014
-
-
Sean Silva authored
llvm-svn: 215774
-
Sean Silva authored
I've shied away from ArrayRef'izing CompilerInvocation::CreateFromArgs in this commit because that is a less localized change. llvm-svn: 215773
-
Chad Rosier authored
Phabricator Revision: http://reviews.llvm.org/D4935 llvm-svn: 215772
-
Jason Molenda authored
llvm-svn: 215771
-
Nick Kledzik authored
Currently, if you use a MultiArg<> option, then printing out the help/usage message will cause an assert. This fixes getOptionHelpName() to work with MultiArg Options. llvm-svn: 215770
-
Jonathan Roelofs authored
llvm-svn: 215769
-
David Blaikie authored
A little test case simplification - this could be simplified further, though there are certainly interesting connections to the if/else construct so I'm hesitant to remove that entirely though it does appear somewhat unrelated. (similar fix to r215766, related to PR19864) llvm-svn: 215768
-
Sean Silva authored
Thanks to dblaikie for the impetus to look for a better name. llvm-svn: 215767
-
David Blaikie authored
DebugInfo: Fix PR19864 better - attribute the jump at the end of a range-for loop, to the start of the loop. This avoids debuggers stepping to strange places (like the last statement in the loop body, or the first statement in the if). This is not the whole answer, though - similar bugs no doubt exist in other loops (patches to follow) and attributing exception handling code to the correct line is also tricky (based on the previous fix to PR19864, exception handling is still erroneously attributed to the 'if' line). llvm-svn: 215766
-
Rafael Espindola authored
We were setting the comdat when functions were copied in the initial pass, but not when they were linked only when we found out that they are needed. llvm-svn: 215765
-
James Dennett authored
llvm-svn: 215764
-
Alexey Samsonov authored
[TSan] Initialize flags as early as possible. Disables back coredump, accidentally enabled in r215479. Add a test. llvm-svn: 215763
-
Nick Kledzik authored
The darwin linker has an option, heavily used by Xcode, in which, instead of listing all input files on the command line, the input file paths are written to a text file and the path of that text file is passed to the linker with the -filelist option (similar to @file). In order to make test cases for this, I generalized the -test_libresolution option to become -test_file_usage. llvm-svn: 215762
-
Sean Silva authored
This also suggests some refactoring to simplify this code. Basically, a ton of complexity in this argument handling code comes from the need to save const char *'s in stable storage for pushing onto argv. It seems like llvm::cl::StringSaver can be improved to cover all the needs here. llvm-svn: 215761
-
Sean Silva authored
llvm-svn: 215760
-
Sean Silva authored
llvm-svn: 215759
-
Samuel Benzaquen authored
Reviewers: klimek Subscribers: klimek, cfe-commits Differential Revision: http://reviews.llvm.org/D4910 llvm-svn: 215757
-
Sean Silva authored
llvm-svn: 215756
-
Sean Silva authored
llvm-svn: 215755
-
Sean Silva authored
llvm-svn: 215754
-
Juergen Ributzka authored
The floating-point value positive zero (+0.0) is a valid immedate value according to isFPImmLegal. As a result AArch64 FastISel went ahead and used the immediate version of fmov to materialize the constant. The problem is that the immediate version of fmov cannot encode an imediate for postive zero. Instead a fmov from the zero register was supposed to be used in this case. This fix adds handling for this special case and uses fmov from the zero register to materialize a positive zero (negative zeroes go to the constant pool). There is no test case for this, because this code is currently dead. It will be enabled in a future commit and I will add a test case in a separate commit after that. This fixes <rdar://problem/18027157>. llvm-svn: 215753
-
Juergen Ributzka authored
Note: This reapplies r215582 without any modifications. The refactoring wasn't responsible for the buildbot failures. Original commit message: Cleanup and prepare constant materialization code for future commits. llvm-svn: 215752
-
Sean Silva authored
The core logic in main() is actually pretty simple, but there's lots of stuff that has been added over time which obscures the flow of the code. In upcoming patches, I'll be pulling more stuff out of the main codepath. I'm open to naming suggestions for these helper functions. llvm-svn: 215751
-
Eric Fiselier authored
There is a similar patch up for review. I'll submit my changes via that. llvm-svn: 215750
-
Matt Arsenault authored
llvm-svn: 215749
-
Matt Arsenault authored
llvm-svn: 215748
-
Matt Arsenault authored
llvm-svn: 215747
-
Matt Arsenault authored
llvm-svn: 215746
-
Reid Kleckner authored
They can be compared for identity. llvm-svn: 215745
-
Reid Kleckner authored
MSVC gives this awesome diagnostic: ..\lib\Target\X86\X86ISelLowering.cpp(7085) : error C2971: 'llvm::VariadicFunction1' : template parameter 'Func' : 'isShuffleEquivalentImpl' : a local variable cannot be used as a non-type argument ..\include\llvm/ADT/VariadicFunction.h(153) : see declaration of 'llvm::VariadicFunction1' ..\lib\Target\X86\X86ISelLowering.cpp(7061) : see declaration of 'isShuffleEquivalentImpl' Using an anonymous namespace makes the problem go away. llvm-svn: 215744 -
Greg Clayton authored
<rdar://problem/17727734> llvm-svn: 215743
-
Eric Fiselier authored
Add initial support for using LIT to run the tests on FreeBSD. More work may need to be done to add support for FreeBSD but this is a good initial step. llvm-svn: 215742
-
Greg Clayton authored
Fixes include: 1 - added new FileSpec method: bool FileSpec::Readable() 2 - detect when an executable is not readable and give an appropriate error for: (lldb) file /tmp/unreadablefile 3 - detect when a core file is not readable and give an appropriate error 4 - detect when a specified core file doesn't exist and give an appropriate error <rdar://problem/17727734> llvm-svn: 215741 -
Justin Bogner authored
Turning off explicit template instantiation leads to a pretty significant build time and code size cost. We're better off dealing with ABI incompatibility issues that come up in a less heavy handed way. This reverts commit r189610. llvm-svn: 215740
-
Matt Arsenault authored
Ordinarily (shl (add x, c1), c2) -> (add (shl x, c2), c1 << c2) is only done if the add has one use. If the resulting constant add can be folded into an addressing mode, force this to happen for the pointer operand. This ends up happening a lot because of how LDS objects are allocated. Since the globals are allocated next to each other, acessing the first element of the second object is directly indexed by a shifted pointer. llvm-svn: 215739
-
Matt Arsenault authored
llvm-svn: 215738
-
Chandler Carruth authored
where applicable for blending. llvm-svn: 215737
-
Fariborz Jahanian authored
user provided setter name (as declared in @property attribute declaration). rdar://18022762 llvm-svn: 215736
-
Juergen Ributzka authored
As Jim pointed out this assert isn't really needed to test for correctness, because the code right afterwards does the same check and falls-back to SelectionDAG - as intended. llvm-svn: 215735
-
Matt Arsenault authored
llvm-svn: 215734
-