summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Added instcombine for 'MIN(MIN(A, 27), 93)' and 'MAX(MAX(A, 93), 27)'Dinesh Dwivedi2014-05-152-2/+66
| | | | | | | | | MIN(MIN(A, 23), 97) -> MIN(A, 23) MAX(MAX(A, 97), 23) -> MAX(A, 97) Differential Revision: http://reviews.llvm.org/D3629 llvm-svn: 208849
* Added inst combine transforms for single bit tests from Chris's noteDinesh Dwivedi2014-05-152-5/+91
| | | | | | | | | | | | | | | if ((x & C) == 0) x |= C becomes x |= C if ((x & C) != 0) x ^= C becomes x &= ~C if ((x & C) == 0) x ^= C becomes x |= C if ((x & C) != 0) x &= ~C becomes x &= ~C if ((x & C) == 0) x &= ~C becomes nothing Z3 Verifications code for above transform http://rise4fun.com/Z3/Pmsh Differential Revision: http://reviews.llvm.org/D3717 llvm-svn: 208848
* [libclang] Introduce clang_Module_isSystem(), which returns non-zero if the ↵Argyrios Kyrtzidis2014-05-155-3/+18
| | | | | | given CXModule is a system one. llvm-svn: 208846
* Replace completely bogus ambiguous-compound-literal-in-C++ code with somethingRichard Smith2014-05-152-3/+7
| | | | | | that isn't always wrong. llvm-svn: 208844
* PR19748: Make sure we don't lose colon protection after the parenthesized ↵Richard Smith2014-05-154-17/+32
| | | | | | type-id in a cast-expression. llvm-svn: 208843
* Fix some dyslexia in an assert messageJonathan Roelofs2014-05-151-2/+2
| | | | llvm-svn: 208842
* Fix typosAlp Toker2014-05-1532-47/+47
| | | | llvm-svn: 208841
* Work around ABI differences due to LWG 2056 in testsJustin Bogner2014-05-152-1/+16
| | | | | | | | | When testing against the system library, there is a relatively minor ABI breakage that the std::future_errc values have been changed to avoid using zero. Update the tests that rely on the values being consistent. llvm-svn: 208840
* Fix typosAlp Toker2014-05-1512-20/+20
| | | | llvm-svn: 208839
* Fix typosAlp Toker2014-05-154-4/+4
| | | | llvm-svn: 208838
* [ARM64] Support aggressive fastcc/tailcallopt breaking ABI by popping out ↵Jiangning Liu2014-05-158-105/+553
| | | | | | argument stack from callee. llvm-svn: 208837
* Revert Itanium parts of "Don't copy objects with trivial, deleted copy ctors"Reid Kleckner2014-05-153-31/+46
| | | | | | | | | | | | | | | | | | | | | | | | This undoes half of r208786. It had problems with lazily declared special members in cases like this: struct A { A(); A &operator=(A &&o); void *p; }; void foo(A); void bar() { foo({}); } In this case, the copy and move constructors are implicitly deleted. However, Clang doesn't eagerly declare the copy ctor in the AST, so we pass the struct in registers. Furthermore, GCC passes this in registers even though this class should be uncopyable. Revert this for now until the dust settles. llvm-svn: 208836
* Remove unused functions setting MCOptions from TargetMachine.Eric Christopher2014-05-151-15/+0
| | | | llvm-svn: 208835
* Fill in the options in the MCOptions struct directly like the otherEric Christopher2014-05-151-9/+5
| | | | | | options. llvm-svn: 208834
* Unify command line handling of MCTargetOptions and remove extraEric Christopher2014-05-154-33/+25
| | | | | | options and code. No functional change. llvm-svn: 208833
* Move the TargetMachine MC options to MCTargetOptions. No functionalEric Christopher2014-05-154-18/+21
| | | | | | change. llvm-svn: 208832
* Remove XFAIL from a number of tests that aren't expected to failJustin Bogner2014-05-156-18/+0
| | | | | | | | These tests haven't been failing on darwin11 or 12 since r189610 when pr17027 was fixed, but they've been keeping the libc++ bot red by XPASSing since then. llvm-svn: 208831
* Thread Safety Analysis: add new node types to thread safety TIL.DeLesley Hutchins2014-05-158-178/+678
| | | | | | This fills in a few missing gaps in functionality. llvm-svn: 208830
* InstCombine: Optimize -x s< cstDavid Majnemer2014-05-152-0/+19
| | | | | | | | | | | | | | Summary: This gets rid of a sub instruction by moving the negation to the constant when valid. Reviewers: nicholas Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D3773 llvm-svn: 208827
* migrate litlint from argparse to optparse. reenabledGreg Fitzgerald2014-05-142-8/+6
| | | | llvm-svn: 208826
* PR19742: cv-qualifiers and ref-qualifiers aren't allowed on functions withinRichard Smith2014-05-143-68/+94
| | | | | | | pointer and reference types, even if those types are produced by template instantiation. llvm-svn: 208825
* When an overloaded comparison operator returns a reference, do not considerRichard Trieu2014-05-142-0/+15
| | | | | | it for -Wunused-comparion warnings. This fixes PR19724. llvm-svn: 208824
* Disabled litlint. It requires Python 2.7 or laterGreg Fitzgerald2014-05-141-1/+2
| | | | llvm-svn: 208823
* [liblang] Introduce clang_getModuleForFile, which given a CXFile header ↵Argyrios Kyrtzidis2014-05-145-9/+50
| | | | | | file, returns the module that contains it, if one exists. llvm-svn: 208822
* Make verbose clang builds also build compiler_rt verboselyJonathan Roelofs2014-05-141-0/+2
| | | | llvm-svn: 208821
* DwarfDebug: Don't set frame index locations on abstract variables.David Blaikie2014-05-141-2/+0
| | | | | | | | Abstract variables should never have/use locations. In this case the data wasn't used, so no functional change intended here, just simplification. llvm-svn: 208820
* add script to ensure lit test contains %runGreg Fitzgerald2014-05-142-1/+31
| | | | llvm-svn: 208819
* [PECOFF] Read files lazily.Rui Ueyama2014-05-141-9/+20
| | | | | | | | ExportedSymbolRenameFile is not always used. In most cases we don't need to read given files at all. So lazy load would help. This doesn't change the meaining of the program. llvm-svn: 208818
* DebugInfo: Sure up subprogram variable list handling with more assertions ↵David Blaikie2014-05-1420-113/+69
| | | | | | | | | | | | and fewer conditionals. Many old tests using prior schemas still had some brokenness here (both indirect arrays and arrays with single bogus elements). Fixed those up so they don't hit the new assertions. Also reduced nesting in some places, etc. llvm-svn: 208817
* DebugInfo: Assert that a CU's subprogram list contains only subprograms.David Blaikie2014-05-143-4/+4
| | | | llvm-svn: 208816
* Remove trailing whitespaces.Rui Ueyama2014-05-143-5/+5
| | | | llvm-svn: 208815
* [mach-o] Add test case for parsing nlist -> ScopeNick Kledzik2014-05-142-0/+61
| | | | llvm-svn: 208814
* Add -print_atoms options to DarwinLdDriver which dumps final state of all ↵Nick Kledzik2014-05-145-3/+17
| | | | | | atoms in yaml llvm-svn: 208813
* Teach llvm-nm to know about fat archives (aka MachOUniversal filesKevin Enderby2014-05-145-5/+55
| | | | | | containing archives). First step as other tools will be updated next. llvm-svn: 208812
* Rename ComputeMaskedBits to computeKnownBits. "Masked" has beenJay Foad2014-05-1444-313/+311
| | | | | | inappropriate since it lost its Mask parameter in r154011. llvm-svn: 208811
* Converting some for loops to use range-based for loops. No functional ↵Aaron Ballman2014-05-141-23/+14
| | | | | | changes intended. llvm-svn: 208810
* InstSimplify: Optimize signed icmp of -(zext V)David Majnemer2014-05-142-0/+82
| | | | | | | | | | | | | | | | Summary: We know that -(zext V) will always be <= zero, simplify signed icmps that have these. Uncovered using http://www.cs.utah.edu/~regehr/souper/ Reviewers: nicholas Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D3754 llvm-svn: 208809
* Rename CodeGenModule::getLLVMLinkageforDeclarator -> getLLVMLinkageForDeclaratorHans Wennborg2014-05-142-4/+4
| | | | | | No functionality change. llvm-svn: 208808
* [ASan/Win tests] Add a PR reference for the FileCheck bugTimur Iskhodzhanov2014-05-141-2/+1
| | | | llvm-svn: 208807
* Remove an unneeded stderr redirectionTimur Iskhodzhanov2014-05-141-1/+1
| | | | llvm-svn: 208805
* Added gdbremote tests to verify kill and continue after attach.Todd Fiala2014-05-142-12/+104
| | | | llvm-svn: 208804
* Remove --check-prefix=CHECK as it's uselessTimur Iskhodzhanov2014-05-141-1/+1
| | | | llvm-svn: 208803
* [ASan tests] Add the first Windows-only lit testTimur Iskhodzhanov2014-05-145-6/+63
| | | | | | Reviewed at http://reviews.llvm.org/D3767 llvm-svn: 208802
* Amending r208783 based on a suggestion by David Blaikie.Aaron Ballman2014-05-141-14/+12
| | | | llvm-svn: 208800
* When we generate a redeclaration for anJohn McCall2014-05-143-1/+26
| | | | | | | elaborated-type-specifier, place it in the correct context. llvm-svn: 208799
* DebugInfo: Do not delay attaching DW_AT_inline attribute to abstract ↵David Blaikie2014-05-142-18/+5
| | | | | | | | | | definitions. This is just unneccessary - we only create abstract definitions when we're inlining anyway, so there's no reason to delay this to see if we're going to inline anything. llvm-svn: 208798
* Fix regression introduced in r205566.Rui Ueyama2014-05-148-30/+44
| | | | | | | | | | | | | | | In r205566, I made a change to Resolver so that Resolver revisit only archive files in --start-group and --end-group pair. That's not correct, as it also has to revisit DSO files. This patch is to fix the issue. Added a test to demonstrate the fix. I confirmed that it succeeded before r205566, failed after r205566, and is ok with this patch. Differential Revision: http://reviews.llvm.org/D3734 llvm-svn: 208797
* Fixed SectionLoadHistory::GetSectionLoadListForStopID() to always return a ↵Greg Clayton2014-05-141-10/+6
| | | | | | | | valid "SectionLoadList *". <rdar://problem/15818525> llvm-svn: 208796
* Fix typo in comment.Logan Chien2014-05-141-1/+1
| | | | llvm-svn: 208795
* Fix up TestLldbGdbServer C++ test slug exe.Todd Fiala2014-05-141-1/+1
| | | | | | Missing header for Linux, replaces with iostreams. llvm-svn: 208794
OpenPOWER on IntegriCloud