summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Restore r211547: Add newline on last line of a few files.Ed Maste2014-06-243-3/+3
| | | | llvm-svn: 211621
* Restore fixes reverted by r211607:Ed Maste2014-06-245-5/+6
| | | | | | | | | | | | | | | | | | | r209631: Use MIUtilSystemLinux on FreeBSD as well We should later rename this file (probably MIUtilSystemPOSIX), but more clean-up is still needed here, and we can wait until we better understand how this code may be shared between FreeBSD, Linux, and OS X. r209632: Add stdlib.h for malloc and friends r209633: Remove include of obsolete stropts.h header The header is for POSIX streams functionality, and does not exist on FreeBSD, OS X, or contemporary Linux distributions. Issue reported by John Wolfe. llvm-svn: 211620
* [Driver][Mips] Support mips64-linux-gnuabi64 / mips64el-linux-gnuabi64 ↵Simon Atanasyan2014-06-2420-2/+110
| | | | | | | | | target triples. The patch fixes the bug #19869. http://llvm.org/bugs/show_bug.cgi?id=19869 llvm-svn: 211619
* Remove unused files, causing CMake build error.Deepak Panickal2014-06-242-181/+0
| | | | llvm-svn: 211618
* vpblend intrinsics combines as shifts intrinsics due to absence return stmt ↵Robert Khasanov2014-06-242-0/+11
| | | | | | | | | | between them Fix PR20088 Differential Revision: http://reviews.llvm.org/D4277 llvm-svn: 211617
* R600: Remove DIV_INFMatt Arsenault2014-06-242-3/+2
| | | | | | | This corresponded to an amdil instruction which there is a 2 instruction equivalent for. llvm-svn: 211616
* Fix test added in r211610 so it doesn't race on output file creation.David Blaikie2014-06-241-1/+1
| | | | llvm-svn: 211615
* R600/SI: Move pattern to instruction definitionMatt Arsenault2014-06-241-6/+1
| | | | llvm-svn: 211614
* Fix test case in r211605/r211533Weiming Zhao2014-06-241-1/+1
| | | | | | | | The test case in "Fix PR20056: Implement pseudo LDR <reg>, =<literal/label> for AArch64" should only work with Linux. llvm-svn: 211613
* [Refactor] Create nicer test cases from C/C++Johannes Doerfert2014-06-241-1/+26
| | | | | | | | Insert a header into the new testcase containing a sample RUN line a FIXME and an XFAIL. Then insert the formated C code and finally the LLVM-IR without attributes, the module ID or the target triple. llvm-svn: 211612
* Objective-C. When we use @selector(save:), etc. there may be more Fariborz Jahanian2014-06-245-13/+67
| | | | | | | | | | | | | than one method with mismatched type of same selector name. clang issues a warning to point this out since it may cause undefined behavior. There are cases though that some APIs don't care about user methods and such warnings are perceived as noise. This patch allows users to add paren delimiters around selector name to turn off such warnings. So, @selector((save:)) will turn off the warning. It also provides 'fixit' so user knows what to do. // rdar://16458579 llvm-svn: 211611
* Add new debug kind LocTrackingOnly.Diego Novillo2014-06-248-28/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This new debug emission kind supports emitting line location information in all instructions, but stops code generation from emitting debug info to the final output. This mode is useful when the backend wants to track source locations during code generation, but it does not want to produce debug info. This is currently used by optimization remarks (-Rpass, -Rpass-missed and -Rpass-analysis). When one of the -Rpass flags is used, the front end will enable location tracking, only if no other debug option is enabled. To prevent debug information from being generated, a new debug info kind LocTrackingOnly causes DIBuilder::createCompileUnit() to not emit the llvm.dbg.cu annotation. This blocks final code generation from generating debug info in the back end. Depends on D4234. Reviewers: echristo, dblaikie Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D4235 llvm-svn: 211610
* Add new debug kind LocTrackingOnly.Diego Novillo2014-06-243-6/+29
| | | | | | | | | | | | | | | | | | | | | | | | Summary: This new debug emission kind supports emitting line location information in all instructions, but stops code generation from emitting debug info to the final output. This mode is useful when the backend wants to track source locations during code generation, but it does not want to produce debug info. This is currently used by optimization remarks (-pass-remarks, -pass-remarks-missed and -pass-remarks-analysis). To prevent debug info emission, DIBuilder never inserts the annotation 'llvm.dbg.cu' when LocTrackingOnly is enabled. Reviewers: echristo, dblaikie Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D4234 llvm-svn: 211609
* Remove ARM XFAIL from passing testGreg Fitzgerald2014-06-241-1/+0
| | | | llvm-svn: 211608
* Added support for new MI commands and bug fixes. More details in MIReadme.txt.Deepak Panickal2014-06-24113-1485/+7722
| | | | llvm-svn: 211607
* Allow static_assert inside an anonymous union; fixes PR20021 as well as ↵Aaron Ballman2014-06-242-0/+11
| | | | | | implements C++ Issue 1940. llvm-svn: 211606
* Resubmit commit r211533Weiming Zhao2014-06-247-1/+386
| | | | | | | "Fix PR20056: Implement pseudo LDR <reg>, =<literal/label> for AArch64" Missed files are added in this commit. llvm-svn: 211605
* Use lowercase windows.h for mingw cross compilation.Logan Chien2014-06-241-1/+1
| | | | llvm-svn: 211604
* CodeGen: Avoid multiple strlen callsDavid Majnemer2014-06-241-5/+4
| | | | | | | Use a StringRef to hold our section prefix. This avoids multiple calls to strlen. llvm-svn: 211602
* ARM: Fix TPsoft for Thumb modeChristian Pirker2014-06-243-5/+67
| | | | | | Reviewed at http://reviews.llvm.org/D4230 llvm-svn: 211601
* Remove an empty directory left after r211508.Alexander Kornienko2014-06-240-0/+0
| | | | llvm-svn: 211600
* Fix "warning: fallthrough annotation does not directly precede switch label" ↵Alexander Kornienko2014-06-242-19/+44
| | | | | | | | | | | | | | | | in lambdas. Summary: This patch fixes http://llvm.org/PR17864 - "warning: fallthrough annotation does not directly precede switch label" in lambdas. Reviewers: rsmith Reviewed By: rsmith Subscribers: rnk, cfe-commits Differential Revision: http://reviews.llvm.org/D4258 llvm-svn: 211599
* [mips] Correct linux dynamic linker for -mnan=2008Daniel Sanders2014-06-243-5/+65
| | | | | | | | | | | | Summary: The dynamic linker is named ld-linux-mipsn8.so.1 when -mnan=2008 is given (or is the default). It remains ld.so.1 for other cases. This is necessary for MIPS32r6/MIPS64r6 since these ISA's default to -mnan=2008. Differential Revision: http://reviews.llvm.org/D4273 llvm-svn: 211598
* Replace two release calls with std::move. I missed this on the previous commit.Rafael Espindola2014-06-241-2/+2
| | | | llvm-svn: 211597
* Update for llvm api change.Rafael Espindola2014-06-241-5/+3
| | | | llvm-svn: 211596
* Pass a unique_ptr<MemoryBuffer> to the constructors in the Binary hierarchy.Rafael Espindola2014-06-2421-88/+104
| | | | | | | Once the objects are constructed, they own the buffer. Passing a unique_ptr makes that clear. llvm-svn: 211595
* Revert: r211588 - [mips] Use __clear_cache builtin instead of cacheflush() ↵Daniel Sanders2014-06-241-2/+10
| | | | | | | | | | | | in Unix Memory::InvalidateInstructionCache() Buildbot reports a test failure on the llvm-mips-linux builder and blames r211588. Although it doesn't appear in the blamelist, it seems it could also be r211587 (because it's committed to compiler-rt?) since they were tested together. Reverting the most likely suspect (r211588) to confirm one way or the other. llvm-svn: 211594
* Revert r211121 (and r211285), "Change libclang initialization to use ↵NAKAMURA Takumi2014-06-241-9/+12
| | | | | | | | std::call_once instead of" It broke mingw builder and cygwin-clang stage2, possibly lack of tls in <mutex>. llvm-svn: 211593
* Revert r211287, "Remove support for LLVM runtime multi-threading."NAKAMURA Takumi2014-06-247-17/+99
| | | | | | libclang still requires it on cygming, lack of incomplete <mutex>. llvm-svn: 211592
* cmake: Fix reference to Pluto fileTobias Grosser2014-06-241-1/+1
| | | | llvm-svn: 211591
* [mips] Added support for assembling sdbbp.Daniel Sanders2014-06-2410-7/+59
| | | | | | | | | | Summary: This instruction is re-encoded in MIPS32r6/MIPS64r6 without changing the restrictions. We hadn't implemented it for earlier ISA's so it has been added to those too. Differential Revision: http://reviews.llvm.org/D4265 llvm-svn: 211590
* [OPENMP] Additional checking for 'collapse' clause.Alexey Bataev2014-06-248-52/+142
| | | | llvm-svn: 211589
* [mips] Use __clear_cache builtin instead of cacheflush() in Unix ↵Daniel Sanders2014-06-241-10/+2
| | | | | | | | | | Memory::InvalidateInstructionCache() MIPS64 Android bionic has removed cacheflush(). Use __clear_cache() instead for 32-bit and 64-bit MIPS Patch by Duane Sand <Duane.Sand@imgtec.com> llvm-svn: 211588
* [asan] adding support of 32-bit address sanitizer for MIPSDaniel Sanders2014-06-245-11/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The patch supports both the clang cross-compiler and native compiler Patch by Kumar Sukhani <Kumar.Sukhani@imgtec.com> Test Plan: Kumar had the following asan test results when compiled on a MIPS board: Expected Passes : 96 Expected Failures : 2 Unsupported Tests : 84 Unexpected Passes : 4 Unexpected Failures: 19 The list of unexpected failures can be found in the review. Reviewers: kcc, petarj, dsanders Reviewed By: kcc Subscribers: farazs, kcc, llvm-commits Differential Revision: http://reviews.llvm.org/D4208 llvm-svn: 211587
* ARM: remove dead CodeGen functions.Tim Northover2014-06-242-33/+0
| | | | | | These two are no longer being used by NEON codegen. llvm-svn: 211586
* [msan] Fix origin copying.Evgeniy Stepanov2014-06-242-6/+36
| | | | | | Conditions for the first and the last origin value in range were wrong. llvm-svn: 211585
* InstCombine: Disable umul.with.overflow recognition for vectors.Benjamin Kramer2014-06-242-1/+16
| | | | | | It doesn't make a lot on most targets and the code isn't ready for it. PR20113. llvm-svn: 211583
* InstCombine: Don't try to reorder shuffles where the mask is a ConstantExpr.Benjamin Kramer2014-06-242-1/+12
| | | | | | We can't analyze the individual values of a vector expression. PR20114. llvm-svn: 211581
* Add half limitsJeroen Ketema2014-06-241-0/+15
| | | | | | | | | | | These are apparently only defined in OpenCL 1.2. HALF_MAX, HALF_MIN and HALF_EPSILON are currently omitted. Clang does not seem to support the ‘h’ suffix for half float constants even with the cl_khr_fp16 extension enabled. Reviewed-by: Tom Sellard <tom@stellard.net> llvm-svn: 211579
* Introduce CLC_VERSION macros v2Jeroen Ketema2014-06-242-0/+11
| | | | | | | | | Add these out-of-order in clc.h so we can use these in other headers. v2: Take into account the lack of a definition in OpenCL 1.0 Reviewed-by: Tom Stellard <tom@stellard.net> llvm-svn: 211578
* Add MAXFLOATJeroen Ketema2014-06-241-5/+6
| | | | | | | Align definitions while we are here. Reviewed-by: Tom Stellard <tom@stellard.net> llvm-svn: 211577
* Move clcmacro.h to avoid cluttering user namespace v2Jeroen Ketema2014-06-2411-3/+9
| | | | | | | | | v2: - use quotes instead of <> - add include to r600/lib/math/nextafter.c changed Reviewed-by: Tom Stellard <tom@stellard.net> Reviewed-by: Aaron Watry <awatry@gmail.com> llvm-svn: 211576
* clang-format: Understand that breaking before lambdas is fine.Daniel Jasper2014-06-242-2/+4
| | | | | | | | | | | | Before: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa([]( const aaaaaaaaaa &a) { return a; }); After: aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa( [](const aaaaaaaaaa &a) { return a; }); llvm-svn: 211575
* [msan] Print stats even on successful run with atexit=1.Evgeniy Stepanov2014-06-244-6/+10
| | | | llvm-svn: 211574
* Remove use of llvm.codegen intrinsic for GPGPU codegenYabin Hu2014-06-246-526/+192
| | | | | | | | | | We use llvm.codegen intrinsic to generate code for embedded LLVM-IR strings. The reason we introduce such a intrinsic is that previous clang/opt tools was NOT linked with various LLVM targets and their AsmParsers and AsmPrinters. Since clang/opt been linked with all the needed libraries, we no longer need the llvm.codegen intrinsic. llvm-svn: 211573
* Driver: Restore proper naming of crashdump filesJustin Bogner2014-06-243-7/+8
| | | | | | Based on a review of r211411 by Jordan Rose. llvm-svn: 211572
* GlobalOpt: Don't optimize dllimport for initializersDavid Majnemer2014-06-242-8/+33
| | | | | | | | | Referencing a dllimport variable requires actually instructions, not just a relocation. This fixes PR19955. Differential Revision: http://reviews.llvm.org/D4249 llvm-svn: 211571
* AST: Address of dllimport functions isn't constantDavid Majnemer2014-06-243-10/+33
| | | | | | | | | | | | | | | | The address of dllimport functions can be accessed one of two ways: - Through the IAT which is symbolically referred to with a symbol starting with __imp_. - Via the wrapper-function which ends up calling through the __imp_ symbol. The problem with using the wrapper-function is that it's address will not compare as equal in all translation units. Specifically, it will compare unequally with the translation unit which defines the function. This fixes PR19955. llvm-svn: 211570
* Include <tuple> for std::tieAlexey Samsonov2014-06-241-0/+1
| | | | llvm-svn: 211569
* AST: Address of dllimport variables isn't constantDavid Majnemer2014-06-243-0/+17
| | | | | | | | | | | | | The address of dllimport variables isn't something that can be meaningfully used in a constexpr context and isn't suitable for evaluation at load-time. They require loads from memory to properly evaluate. This fixes PR19955. Differential Revision: http://reviews.llvm.org/D4250 llvm-svn: 211568
OpenPOWER on IntegriCloud