summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Put function names on their own line.Jonathan Peyton2016-01-111-3/+5
| | | | llvm-svn: 257378
* [ORC] More MSVC error wrangling.Lang Hames2016-01-111-0/+3
| | | | llvm-svn: 257377
* Ensure -mcpu=xscale works for arm targets, after rL252903 and rL252904Dimitry Andric2016-01-111-1/+1
| | | | | | | | | | | After these revisions, for arm targets, the -mcpu=xscale option caused an error: "the clang compiler does not support '-mcpu=xscale'". Adding "v5e" as a SUB_ARCH in ARMTargetParser.def helps. Submitted by: Andrew Turner Differential Revision: http://reviews.llvm.org/D16043 llvm-svn: 257376
* [sanitizer] [msan] Fix origin store of array typesAdhemerval Zanella2016-01-112-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes the memory sanitizer origin store instrumentation for array types. This can be triggered by cases where frontend lowers function return to array type instead of aggregation. For instance, the C code: -- struct mypair { int64_t x; int y; }; mypair my_make_pair(int64_t x, int y) { mypair p; p.x = x; p.y = y; return p; } int foo (int p) { mypair z = my_make_pair(p, 0); return z.y + z.x; } -- It will be lowered with target set to aarch64-linux and -O0 to: -- [...] define i32 @_Z3fooi(i32 %p) #0 { [...] %call = call [2 x i64] @_Z12my_make_pairxi(i64 %conv, i32 0) %1 = bitcast %struct.mypair* %z to [2 x i64]* store [2 x i64] %call, [2 x i64]* %1, align 8 [...] -- The origin store will emit a 'icmp' to test each store value again the TLS origin array. However since 'icmp' does not support ArrayType the memory instrumentation phase will bail out with an error. This patch change it by using the same strategy used for struct type on array. It fixes the 'test/msan/insertvalue_origin.cc' for aarch64 (the -O0 case). llvm-svn: 257375
* Initial support for PPC target in the new ELF linker.Davide Italiano2016-01-113-0/+376
| | | | | | Differential Revision: http://reviews.llvm.org/D15968 llvm-svn: 257374
* [Orc] Fix missing return.Lang Hames2016-01-111-0/+1
| | | | llvm-svn: 257373
* [Orc] Add explicit move construction/assignment to RCMemoryManager.Lang Hames2016-01-111-3/+13
| | | | | | Yet another attempt to pacify MSVC. llvm-svn: 257372
* Preemptively disable unsigned integer sanitization in 32 and 64 bit versions ↵Marshall Clow2016-01-112-2/+11
| | | | | | of __murmur2_or_cityhash. This lets people use the unsigned integer overflow checker in UBSAN w/o getting hits from libc++'s hash code (where the unsigned integer overflow is legal and deliberate)> Patch by @danielaustin. Reviewed as: http://reviews.llvm.org/D15973 llvm-svn: 257368
* Fix some GCC 4.7 issues with the new Orc remote JIT supportDavid Blaikie2016-01-112-16/+21
| | | | | | | | I'm still seeing GCC ICE locally, but figured I'd throw this at the wall & see if it sticks for the bots at least. Will continue investigating the ICE in any case. llvm-svn: 257367
* Code refactoring for commit r257278.Chen Li2016-01-111-2/+2
| | | | llvm-svn: 257366
* [NFC] Fix whitespace.Chad Rosier2016-01-111-1/+1
| | | | llvm-svn: 257365
* [ORC] Explicitly delete copy constructors for RCMemoryManager::Alloc.Lang Hames2016-01-111-0/+3
| | | | | | More MSVC bot appeasement. llvm-svn: 257364
* Don't run dwo tests for windows targets.Zachary Turner2016-01-111-1/+2
| | | | | | | | | | -gsplit-dwarf is not implemented by clang on Windows. As such, all the dwo tests are having the -gsplit-dwarf command line option completely ignored, and the result is you get regular dwarf debug information, and it's just running the exact same tests twice, doubling the length of the test suite for no good reason. llvm-svn: 257363
* [Orc] Include <system_error> in OrcTargetClient.Lang Hames2016-01-111-0/+1
| | | | | | Another shot at appeasing the clang-x86_64-ubuntu-gdb-75 builder. llvm-svn: 257362
* Replace accidental DOS (and mixed) line endings in a few text filesDimitry Andric2016-01-115-172/+172
| | | | | | | | | | | | | | Summary: Similar to rL256704 and rL256707, fix a few text files which were accidentally checked in with DOS line endings, or mixed line endings. Reviewers: jingham, emaste Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D16027 llvm-svn: 257361
* lli/ChildTarget now depends on OrcJIT. Add that component to the Makefile. Lang Hames2016-01-111-1/+1
| | | | llvm-svn: 257360
* Remove the remote-JIT small code model tests for now. They're causingLang Hames2016-01-114-48/+0
| | | | | | | | | intermittent XPASSes on some builders. These can be reinstated when we have proper support for small-code model in the JIT. llvm-svn: 257359
* [Orc] More explicit move construction/assignment to appease MSVC.Lang Hames2016-01-111-0/+13
| | | | llvm-svn: 257358
* [Sema] Issue a warning for integer overflow in struct initializerAkira Hatanaka2016-01-112-0/+12
| | | | | | | | | | | | | | | | Clang wasn't issuing a warning when compiling the following code: struct s { unsigned x; } s = { .x = 4 * 1024 * 1024 * 1024 }; rdar://problem/23399683 Differential Revision: http://reviews.llvm.org/D15097 llvm-svn: 257357
* Fixed typo in comment. NFC.George Rimar2016-01-111-1/+1
| | | | llvm-svn: 257356
* XFAIL the remote small code model tests on x86. Small code model is not properlyLang Hames2016-01-114-4/+4
| | | | | | | supported, and only worked previously because we weren't really running them out-of-process. llvm-svn: 257355
* AMDGPU: int_to_fp test cleanupsMatt Arsenault2016-01-112-50/+162
| | | | llvm-svn: 257354
* AMDGPU: Fix ctlz combine for sub 32-bit typesMatt Arsenault2016-01-113-18/+107
| | | | llvm-svn: 257353
* AMDGPU: Pattern match ffbh pattern to instruction.Matt Arsenault2016-01-118-24/+273
| | | | | | | | The hardware instruction's output on 0 is -1 rather than 32. Eliminate a test and select to -1. This removes an extra instruction from the compatability function with HSAIL's firstbit instruction. llvm-svn: 257352
* [LLI] Remove dependence on RemoteTarget.cpp from ChildTarget's Makefile.Lang Hames2016-01-111-1/+1
| | | | | | RemoteTarget.cpp was removed in r257343. llvm-svn: 257351
* [ORC] Pacify MSVC by adding explicit move construction/assignment toLang Hames2016-01-111-2/+5
| | | | | | OrcRemoteTargetServer::Allocator. llvm-svn: 257350
* [ORC] Change 'auto' to 'std::error_code' to try to coax GCC builder intoLang Hames2016-01-111-2/+3
| | | | | | providing a more helpful error diagnostic. llvm-svn: 257349
* AMDGPU: Custom lower i64 ctlzMatt Arsenault2016-01-114-1/+143
| | | | llvm-svn: 257348
* Add documentation redirects for clang-tidy checkers that are exposed under ↵Aaron Ballman2016-01-1114-7/+90
| | | | | | multiple checker names. Updates the Python script for adding checks to properly handle these aliases. llvm-svn: 257347
* Mips: Remove lowerSELECT_CCMatt Arsenault2016-01-112-18/+2
| | | | | | This is the same as the default expansion. llvm-svn: 257346
* LegalizeDAG: Expand ctlz with ctlz_zero_undef if legalMatt Arsenault2016-01-113-2/+146
| | | | llvm-svn: 257345
* AMDGPU: Remove dead target dag combineMatt Arsenault2016-01-111-1/+0
| | | | llvm-svn: 257344
* [LLI] Replace the LLI remote-JIT support with the new ORC remote-JIT components.Lang Hames2016-01-1123-1524/+386
| | | | | | | | The new ORC remote-JITing support provides a superset of the old code's functionality, so we can replace the old stuff. As a bonus, a couple of previously XFAILed tests have started passing. llvm-svn: 257343
* Fix TestMiniDump.py for Python 2/3 (and for a change to debug info)Adrian McCarthy2016-01-111-3/+3
| | | | | | Differential Revision: http://reviews.llvm.org/D16017 llvm-svn: 257342
* [clang-format] Fix comment aligning when there are changes within the commentBenjamin Kramer2016-01-113-15/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | As soon as a comment had whitespace changes inside of the token, we couldn't identify the whole comment as a trailing comment anymore and alignment stopped working. Add a new boolean to Change for this special case and fix trailing comment identification to use it. This also changes WhitespaceManager to sum the length of all Changes inside of a token into the first Change. Before this fix int xy; // a int z; //b became int xy; // a int z; // b with this patch we immediately get to: int xy; // a int z; // b Differential Revision: http://reviews.llvm.org/D16058 llvm-svn: 257341
* Revert r257164 - it has caused spec2k6 failures in LTO modeSilviu Baranga2016-01-112-422/+3
| | | | llvm-svn: 257340
* [mips] Never select JAL for calls to an absolute immediate address.Daniel Sanders2016-01-1120-3/+34
| | | | | | | | | | | | | | | Summary: It actually takes an offset into the current PC-region. This fixes the 'expr' command in lldb. Reviewers: vkalintiris, jaydeep, bhushan Subscribers: dsanders, llvm-commits Differential Revision: http://reviews.llvm.org/D16054 llvm-svn: 257339
* [Hexagon] Add check for nullptr in getFixupNoBitsKrzysztof Parzyszek2016-01-111-15/+15
| | | | llvm-svn: 257338
* [Hexagon] Add implicit uses of GP to GP-relative loads and storesKrzysztof Parzyszek2016-01-111-1/+3
| | | | llvm-svn: 257337
* [Hexagon] Mark D14 and GP as reserved registersKrzysztof Parzyszek2016-01-111-0/+2
| | | | llvm-svn: 257336
* Don't try to parse the line table when it isn't specifiedTamas Berghammer2016-01-111-6/+11
| | | | | | | | | Previously we tried to parse the line table even if a compile unit had no DW_AT_stmt_list atribute. The problem happens when a compiler generates debug info for a compile unit but doesn't generate any line info. llvm-svn: 257335
* [ELF/AARCH64] - Implemented R_AARCH64_TSTBR14 relocation.George Rimar2016-01-113-0/+115
| | | | | | | | | R_AARCH64_TSTBR14 is calculated as S+A-P, Set the immediate field of a TBZ/TBNZ instruction to bits [15:2] of X; check -2^15 ≤ X < 2^15 Differential revision: http://reviews.llvm.org/D15824 llvm-svn: 257334
* [ELF/AARCH64] - Implemented R_AARCH64_CONDBR19 relocation.George Rimar2016-01-113-0/+123
| | | | | | | | | | | | R_AARCH64_CONDBR19 is calculated as S+A-P, Set the immediate field of a conditional branch instruction to bits [20:2] of X; check -2^20 ≤ X< 2^20. Afaik there is no document for AARCH64 instruction encoding from official for unknown reason, so I used gold source code and next link as a reference for implementation: http://kitoslab-eng.blogspot.ru/2012/10/armv8-aarch64-instruction-encoding.html. From which is clear that immediate field of a conditional branch instruction is 5 bits off. That is proved by output which is is equal to gold/bfd now. Differential revision: http://reviews.llvm.org/D15809 llvm-svn: 257333
* [ELF/AARCH64] - Implemented R_AARCH64_IRELATIVE relocation.George Rimar2016-01-113-0/+176
| | | | | | | | Implemented in the same way as was already done for x86/x64 targets (http://reviews.llvm.org/D15235). Differential revision: http://reviews.llvm.org/D15806 llvm-svn: 257332
* [ELF] - improved relocation-copy.s test (added R_X86_64_32 relocations)George Rimar2016-01-111-6/+10
| | | | | | | | | | | | * Added instructions to generate R_X86_64_32 relocations. Without that next part of code was uncovered by test, code worked without it: bool X86_64TargetInfo::relocNeedsPlt(uint32_t Type, const SymbolBody &S) const { if (needsCopyRel(Type, S)) return false; * Removed -e main, added _start Differential revision: http://reviews.llvm.org/D15714 llvm-svn: 257331
* clang-format: Fix overloading "operator," definitions more thoroughly.Daniel Jasper2016-01-112-5/+5
| | | | | | | | | | | Before: aaaaaaaaaaaaaaaaaaaaaa operator,(aaaaaaaaaaaaaaaaaaaaa & aaaaaaaaaaaaaaaaaaaaaaaaaa) const; After: aaaaaaaaaaaaaaaaaaaaaa operator,( aaaaaaaaaaaaaaaaaaaaa &aaaaaaaaaaaaaaaaaaaaaaaaaa) const; llvm-svn: 257330
* Mark TestChangeValueAPI as flaky on linux (pr25652)Pavel Labath2016-01-111-0/+1
| | | | llvm-svn: 257329
* [X86] Reduce complexity of the LEA optimization pass, by Andrey Turetsky.Alexey Bataev2016-01-111-7/+28
| | | | | | | In the OptimizeLEA pass keep instructions' positions in the basic block saved and use them for calculation of the distance between two instructions instead of std::distance. This reduces complexity of the pass from O(n^3) to O(n^2) and thus the compile time. Differential Revision: http://reviews.llvm.org/D15692 llvm-svn: 257328
* [WebAssembly] Fix a typo in a comment.Dan Gohman2016-01-111-1/+1
| | | | llvm-svn: 257327
* Fix assert hit when tree-transforming template template parameter packs.Manuel Klimek2016-01-112-2/+12
| | | | | | | | | Covers significantly more code in the template template pack argument test and fixes the resulting assert problem. Differential Revision: http://reviews.llvm.org/D15743 llvm-svn: 257326
OpenPOWER on IntegriCloud