summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Handle X86::reloc_riprel_4byte in 32 bits mode.Rafael Espindola2015-03-182-0/+5
| | | | | | | | We can get there with .code64. Fixes pr22349. llvm-svn: 232651
* [Hexagon] Use pseudo-instructions for true/false predicate valuesKrzysztof Parzyszek2015-03-181-23/+6
| | | | llvm-svn: 232650
* Always add some fake threads with x86_64 registers no matter what the ↵Greg Clayton2015-03-181-28/+24
| | | | | | architecture since this is just for testing that we can add new threads with completely different registers contexts to a process. llvm-svn: 232649
* Fix linking of unit tests via CMake on Windows.Zachary Turner2015-03-1813-270/+158
| | | | | | | A previous attempt to make the unit tests link properly on Linux broke it for Windows. This patch fixes it for both platforms. llvm-svn: 232648
* Use utils/update_llc_test_checks.py to update all CHECKsSanjay Patel2015-03-181-448/+1384
| | | | | | | | The checks here were so vague that we could nuke intrinsics from existence and still pass the test because we'd match the function name. llvm-svn: 232647
* PECOFF: Do not copy all undefined symbols to a set. NFC.Rui Ueyama2015-03-181-12/+8
| | | | llvm-svn: 232646
* [Hexagon] Intrinsics for circular and bit-reversed loads and storesKrzysztof Parzyszek2015-03-1811-6/+1306
| | | | llvm-svn: 232645
* fixed to test features, not CPU modelSanjay Patel2015-03-181-4/+5
| | | | | | | | | | | | The 'vmovntdq' was only passing due to a fluke in SandyBridge codegen that splits 32-byte stores in half, but that meant that the test was not correctly checking for the 32-byte store that we thought we were generating. The lax checking in this file will be addressed in another commit. There are bigger problems here. llvm-svn: 232644
* [Hexagon] Handle ENDLOOP0 in InsertBranch and RemoveBranchKrzysztof Parzyszek2015-03-182-20/+30
| | | | llvm-svn: 232643
* [ARM] Remove XFAIL from passing RT testRenato Golin2015-03-181-1/+0
| | | | | | | | | This test started passing without warning, so in theory, we shouldn't mark is as XPASS, but the buildbots are red and there's been an uncaught regression meanwhile. Since it's passing on {ARM,Thumb2} x {NEON,VFPv3}, I'll risk future failures for the benefit of getting the bots green again. llvm-svn: 232642
* Provide std::abs(<floating-point>) in <cmath> on Solaris.Eric Fiselier2015-03-181-0/+4
| | | | | | | | | | | | | | | | 1) <cstdlib> header should define std::abs([int|long|long long]) functions. They use "using ::abs" to import these functions (which are declared in <stdlib.h>) into std namespace. 2) <cmath> header should define std::abs([float|double|long double]) function. If we try define new functions in std namespace, then it will cause compile error in <cstdlib> because "using ::abs" will try import not only [int|long|long long] functions, but also [float|double|long double] which are defined in <math.h> header on solaris. Patch by C Bergstrom. llvm-svn: 232641
* Skip intermittently failing test on FreeBSDEd Maste2015-03-181-0/+1
| | | | | | | | It is already skipped on the other platforms anyhow. llvm.org/pr19246 llvm-svn: 232640
* Remove unused parameter.Rui Ueyama2015-03-181-7/+3
| | | | llvm-svn: 232639
* Appease clang/test/Parser/opencl-atomics-cl20.cl for 32-bit targets with ↵NAKAMURA Takumi2015-03-181-3/+3
| | | | | | explicit triple. llvm-svn: 232638
* Add support for .ifnes psuedo-op.Sid Manning2015-03-183-10/+61
| | | | llvm-svn: 232636
* clang-format: Fix bad wrapping after "*" introduced in r232044.Daniel Jasper2015-03-182-3/+7
| | | | | | | | | | | | Before: void aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaaaaaaaaaa* const aaaaaaaaaaaa) {} After: void aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa( aaaaaaaaaaaaaaaaaaaaaaaaa* const aaaaaaaaaaaa) {} llvm-svn: 232635
* Convert open options for POSIX open on target platform.Robert Flack2015-03-182-3/+3
| | | | | | | | | | | | | | | | | | | | This moves the conversion of the open options to the target platform. On mac fcntl.h has different values for O_CREAT and O_TRUNC than on linux so by transmitting the standardized lldb open options we can correctly convert them on the target platform. Test Plan: On linux: lldb-server p --listen *:1234 On mac: lldb platform select remote-linux platform connect connect://ip-of-linux-box:1234 target create ~/path/to/linux/binary b main process launch Binary is successfully pushed to linux remote, process successfully launches and break in the main method. Differential Revision: http://reviews.llvm.org/D8395 llvm-svn: 232634
* Fix comment in tools/lldb-mi/MIDriver.cppIlia K2015-03-181-1/+1
| | | | llvm-svn: 232633
* [clang-format] Add missing test for std::function<void( int, int )>Daniel Jasper2015-03-181-9/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | spacing also fixed by r230473. The fix in r230473 was done to enable fixing the spacing for std::function<void( int, int )>. I did not realized that it also fixed this issue. Since it is fairly different from Deleted &operator=(const Deleted &)& = default; fixed in r230473, it seems sensible to add the regression test for it. Also cleaned up the test by removing duplicated code and comment, and kept repeated test set consistent. Result of running the new tests with r230473 backed out: [ RUN ] FormatTest.ConfigurableSpacesInParentheses Actual: "std::function<void(int, int)> callback;" Expected: "std::function<void( int, int )> callback;" Actual: "std::function<void( int, int )> callback;" Expected: "std::function<void(int, int)> callback;" Actual: "std::function<void( int, int ) > callback;" Expected: "std::function<void(int, int)> callback;" [ FAILED ] FormatTest.ConfigurableSpacesInParentheses (402 ms) Result of new tests with r230473: [ RUN ] FormatTest.ConfigurableSpacesInParentheses [ OK ] FormatTest.ConfigurableSpacesInParentheses (209 ms) Review: http://reviews.llvm.org/D7922 Patch by Jean-Philippe Dufraigne. Thanks! llvm-svn: 232632
* OpenCL: CL2.0 atomic typesAnastasia Stulova2015-03-186-8/+120
| | | | | | | | | | | | OpenCL C Spec v2.0 Section 6.13.11 - Made c11 _Atomic being not accepted for OpenCL - Implemented CL2.0 atomics by aliasing them to the corresponding c11 atomic types using implicit typedef - Added diagnostics for atomics Khronos extension enabling llvm-svn: 232631
* clang-format these lines to fix Visual C++ warning.Yaron Keren2015-03-181-2/+2
| | | | | | | | | | | | Visual C++ 2013 complains "warning C4138: '*/' found outside of comment" about the code CallInst */*CI*/ but compiles OK. clang-formatting these lines adds an extra space and makes Visual C++ satisfied. llvm-svn: 232630
* Change test to accept an additional critical edge split.Daniel Jasper2015-03-181-2/+1
| | | | | | | | The two hot blocks are right next to each other and I verified that there is no performance regression by compressing/uncompressing some files with a minigzip built with the different options. llvm-svn: 232629
* [ARM] Align stack objects passed to memory intrinsicsJohn Brawn2015-03-186-21/+337
| | | | | | | | | | | | Memcpy, and other memory intrinsics, typically tries to use LDM/STM if the source and target addresses are 4-byte aligned. In CodeGenPrepare look for calls to memory intrinsics and, if the object is on the stack, 4-byte align it if it's large enough that we expect that memcpy would want to use LDM/STM to copy it. Differential Revision: http://reviews.llvm.org/D7908 llvm-svn: 232627
* Add missing newline to end of test file.John Brawn2015-03-181-1/+1
| | | | llvm-svn: 232626
* Parse .note.android.ident header from elf filesTamas Berghammer2015-03-181-1/+15
| | | | | | | | | | | In android a .note.android.ident section header is added to the elf files to provide information for the debuggers that it is an android specific module. This CL add logic to parse it out from the elf files and set the module specification based on it. Differential revision: http://reviews.llvm.org/D8377 llvm-svn: 232625
* Fix another ternary Visual C++ is OK wiht but gcc not.Yaron Keren2015-03-181-1/+1
| | | | llvm-svn: 232624
* Fix gcc ambiguity error (Visual C++ was OK with these).Yaron Keren2015-03-181-3/+3
| | | | llvm-svn: 232623
* Remove many superfluous SmallString::str() calls.Yaron Keren2015-03-1844-128/+126
| | | | | | | | | | | | | | | Now that SmallString is a first-class citizen, most SmallString::str() calls are not required. This patch removes a whole bunch of them, yet there are lots more. There are two use cases where str() is really needed: 1) To use one of StringRef member functions which is not available in SmallString. 2) To convert to std::string, as StringRef implicitly converts while SmallString do not. We may wish to change this, but it may introduce ambiguity. llvm-svn: 232622
* Make lldb-mi handle only MI commandsHafiz Abid Qadeer2015-03-186-277/+5
| | | | | | | | | | | | | | | | | | | | | Summary: Previously lldb-mi can also act as a driver like normal lldb. It needed a lot of redundant code in the lldb-mi for that. I think that if a user wants command line lldb driver then he/she should use the lldb for it. This change will cleanup the code a lot. When this change goes in, it will allow us to remove some more redundant code too. All tests pass on Linux. Did some sanity testing on command line and with eclipse. Reviewers: ki.stfu Reviewed By: ki.stfu Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8381 llvm-svn: 232621
* Fix a typo in EmulateInstructioinMIPS64Pavel Labath2015-03-181-1/+1
| | | | llvm-svn: 232620
* Initial Assembly profiler for mips64Bhushan D. Attarde2015-03-1810-2/+633
| | | | | | | | | | | Summary: This is initial implementation of assembly profiler which only scans prologue/epilogue assembly instructions to create CFI instructions. Reviewers: clayborg, jasonmolenda Differential Revision: http://reviews.llvm.org/D7696 llvm-svn: 232619
* Clean up CommandObjectBreakpointNameList: remove duplicated 'protected' ↵Ilia K2015-03-181-1/+0
| | | | | | access modifier llvm-svn: 232618
* llgoi: Fix type identity for imported binary packages.Peter Collingbourne2015-03-183-10/+21
| | | | | | | | | | | | go/loader creates a fresh package map for each source package it imports. In llgoi this caused binary imported packages to be imported anew for every input line, resulting in spurious type errors and panics in go/ssa when encountering previously imported types. Fix this by setting types.Config.Packages to our internal package map. Differential Revision: http://reviews.llvm.org/D8409 llvm-svn: 232617
* Lex: Don't call getIdentifierInfo on annotation tokensDavid Majnemer2015-03-182-1/+9
| | | | | | | | These calls are usually guarded by checks for isAnnotation() but it looks like we missed a spot. This would cause the included test to crash clang. llvm-svn: 232616
* MS ABI: Define _HAS_CHAR16_T_LANGUAGE_SUPPORT when appropriateDavid Majnemer2015-03-182-2/+9
| | | | | | | If we are in MSVC 2015 compatibility mode and C++11 language conformance is enabled, define _HAS_CHAR16_T_LANGUAGE_SUPPORT to 1. llvm-svn: 232615
* Add llgo-go to installation.Peter Collingbourne2015-03-181-3/+5
| | | | llvm-svn: 232614
* [mips] Add itineraries for ext and ins instructions.Kai Nacke2015-03-182-2/+6
| | | | | | | | | | | Currently, there are no itineraries defined for ext and ins instructions. This patch adds these itineraries and uses them in the instruction definitions. Reviewed By: dsanders Differential Revision: http://reviews.llvm.org/D7209 llvm-svn: 232613
* llgoi: Fix importing source packages together with dependent binary packages.Peter Collingbourne2015-03-184-1/+27
| | | | | | | | | | Note that this means that llgoi does not support the case where a package's pkgpath is different from its import path, but I don't think this should actually happen with llgoi. Differential Revision: http://reviews.llvm.org/D8403 llvm-svn: 232612
* MSVC Compat: Permit char16_t, char32_t and _Atomic when targeting > 2013David Majnemer2015-03-183-11/+18
| | | | | | | | We disabled support for _Atomic because the STL had name conflicts, they've been resolved in 2015. Similarly, reenable char16_t and char32_t. llvm-svn: 232611
* [OPENMP] Fix crash on code emitting if errors are found.Alexey Bataev2015-03-184-1/+8
| | | | | | | Codegen for threadprivate variables (and in some other cases) may cause crash of the compiler if some diagnostic is produced later. This happens because some of the autogenerated globals are not removed from InternalVars StringMap when llvm::Module is reset. Differential Revision: http://reviews.llvm.org/D8360 llvm-svn: 232610
* MS ABI: Empty pack expansions had their mangling changed in 2013->2015David Majnemer2015-03-183-4/+15
| | | | | | | | | | We used to support the 2013 mangling and changed it to the more reasonable 2015 mangling. Let's make the mangling conditional on what version of MSVC is targeted. This fixes PR21888. llvm-svn: 232609
* Split comma-separated \param(s). [-Wdocumentation]NAKAMURA Takumi2015-03-181-1/+2
| | | | llvm-svn: 232584
* Make module files passed to a module build via -fmodule-file= available toRichard Smith2015-03-189-10/+104
| | | | | | | | | consumers of that module. Previously, such a file would only be available if the module happened to actually import something from that module. llvm-svn: 232583
* Fix test in release mode. This reapplies r232456, corresponding to r232579.NAKAMURA Takumi2015-03-181-1/+1
| | | | llvm-svn: 232582
* [bpf] fix buildAlexei Starovoitov2015-03-181-1/+1
| | | | | | | | fix BPF backend build broken by r232429 Patch by Brenden Blanco llvm-svn: 232581
* Add testcases for BEXTR.Josh Magee2015-03-181-0/+30
| | | | | | These BEXTR cases are a check for the 64-bit load form and two negative cases where the bitrange is non-contiguous. From a private patch equivalent to r189742/PR17028. llvm-svn: 232580
* Fix the LLVM type used when lowering initializer list reference temporaries ↵Nick Lewycky2015-03-182-2/+38
| | | | | | to global variables. Reapplies r232454 with fix for PR22940. llvm-svn: 232579
* Missed testcase for r232577Krzysztof Parzyszek2015-03-181-0/+160
| | | | llvm-svn: 232578
* Generate bit manipulation instructions on HexagonKrzysztof Parzyszek2015-03-181-0/+149
| | | | llvm-svn: 232577
* [SCEV] Make isImpliedCond smarter.Sanjoy Das2015-03-183-0/+83
| | | | | | | | | | | | | | | | | | Summary: This change teaches isImpliedCond to infer things like "X sgt 0" => "X - 1 sgt -1". The `ConstantRange` class has the logic to do the heavy lifting, this change simply gets ScalarEvolution to exploit that when reasonable. Depends on D8345 Reviewers: atrick Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8346 llvm-svn: 232576
OpenPOWER on IntegriCloud