summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ARMInstrInfo.cpp: Reformat.NAKAMURA Takumi2015-09-221-66/+65
| | | | llvm-svn: 248260
* Fix utf8 chars.NAKAMURA Takumi2015-09-221-1/+1
| | | | llvm-svn: 248259
* [mips][ias] Implement .cpreturn directive.Daniel Sanders2015-09-224-0/+73
| | | | | | | | | | | | | | | | | Summary: Based on a patch by David Chisnall. I've modified the original patch as follows: * Moved the expansion to the TargetStreamers so that the directive isn't expanded when emitting assembly. * Fixed an operand order bug. * Changed the move instructions from DADDu to OR to match recent changes to GAS. Reviewers: vkalintiris Subscribers: llvm-commits, emaste, seanbruno, theraven Differential Revision: http://reviews.llvm.org/D13017 llvm-svn: 248258
* [mips][sched] Added class for WSBHDaniel Sanders2015-09-223-6/+9
| | | | | | | | | | | | | Summary: No functional change since no InstrItinData is provided. Reviewers: vkalintiris Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12190 llvm-svn: 248257
* Check for GLIBC before including execinfo.hVasileios Kalintiris2015-09-221-1/+1
| | | | | | | | | | Reviewers: ovyalov, clayborg Subscribers: tberghammer, danalbert, llvm-commits, srhines Differential Revision: http://reviews.llvm.org/D13016 llvm-svn: 248256
* Use fcntl.h to retrieve the O_CREAT and O_RDWR constants.Vasileios Kalintiris2015-09-221-1/+1
| | | | | | | | | | | | | | | Summary: Normally, these macros are defined in fnctl.h. However, GLIBC exposes their definition through <sys/file.h> too. This change allows us to compile LLDB with non-GLIBC C libraries. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13022 llvm-svn: 248255
* clang-format: Fix alignConsecutiveAssignments.Daniel Jasper2015-09-222-34/+48
| | | | | | | | | | | | | It wasn't correctly handling this case: int oneTwoThree = 123; int oneTwo = 12; method(); Review: http://reviews.llvm.org/D12369 Patch by Beren Minor. Thank you! llvm-svn: 248254
* [llvm-mc-fuzzer] Support untested instruction discovery for variable length ↵Daniel Sanders2015-09-221-0/+11
| | | | | | | | | | | | | | | | | | | | | instruction sets like microMIPS. Summary: For fixed length instructions, we can use -max_len to limit the fuzzer to a single instruction. This doesn't work for variable length instruction sets since a 4-byte input could consist of one 4-byte instruction or two 2-byte instructions. This patch adds a --insn-limit to llvm-mc-fuzzer to limit the input in terms of instructions processed. Reviewers: kcc Subscribers: kcc, llvm-commits Differential Revision: http://reviews.llvm.org/D12960 llvm-svn: 248253
* misc-unused-parameter: Ignore lambda static invokers.Daniel Jasper2015-09-222-1/+7
| | | | llvm-svn: 248252
* [lldb-mi] Fix unresolved reference to llvm_regcomp and llvm_regfree.Daniel Sanders2015-09-221-1/+3
| | | | | | | | Subscribers: krytarowski, labath, lldb-commits Differential Revision: http://reviews.llvm.org/D13027 llvm-svn: 248251
* [X86][SSE] Match zero/any extension shuffles that don't start from the first ↵Simon Pilgrim2015-09-229-189/+345
| | | | | | | | | | | | element This patch generalizes the lowering of shuffles as zero extensions to allow extensions that don't start from the first element. It now recognises extensions starting anywhere in the lower 128-bits or at the start of any higher 128-bit lane. The motivation was to reduce the number of high cost pshufb calls, but it also improves the SSE2 case as well. Differential Revision: http://reviews.llvm.org/D12561 llvm-svn: 248250
* [ELF2] Fix gcc buildDenis Protivensky2015-09-221-8/+8
| | | | | | Remove explicit qualification in template instantiation. llvm-svn: 248249
* [LLDB][MIPS] microMIPS breakpoints, disassembly and compressed addressesJaydeep Patil2015-09-226-7/+135
| | | | | | | | | | | | SUMMARY: This patch detects microMIPS symbols, sets breakpoints using un-compressed address and display disassembly in mixed mode for microMIPS applications (running on bare-iron targets). Reviewers: clayborg Subscribers: nitesh.jain, mohit.bhakkad, sagar, bhushan and lldb-commits Differential Revision: http://reviews.llvm.org/D12079 llvm-svn: 248248
* xUnit test formatter: add options for ignoring skipped testsTodd Fiala2015-09-221-1/+68
| | | | | | | | | | | | | Skipped tests can be dropped from xUnit reports if either the name or the skip reason matches one of a given set of regular expression patterns (via re.search(), not re.match()). New formatter option for the xunit formatter: --ignore-skip-matching-reason and --ignore-skip-matching-name Both are results-formatter options. llvm-svn: 248247
* Remove extra 'nullptr' entry from an array in tablegen register info file. ↵Craig Topper2015-09-221-1/+1
| | | | | | It should never have been accessed. llvm-svn: 248246
* Fix formatting of a tablegen register info file by putting a line break in a ↵Craig Topper2015-09-221-3/+2
| | | | | | better place. llvm-svn: 248245
* Use makeArrayRef and None to simplify some code in a tablegen register info ↵Craig Topper2015-09-221-12/+18
| | | | | | | | | | file. Additionally const correct a couple static array. Previously the code added an extra nullptr entry to a static array and then created an ArrayRef with a size one less than the static array. If there were no other entries the array would just contain the nullptr and the ArrayRef would be crated with size 0. Instead, put the right number of entries in the array and explicitly emit 'None' if the size would be 0. This allows the static array constructor of makeArrayRef to be used. llvm-svn: 248244
* Fix typos.Bruce Mitchener2015-09-2210-14/+14
| | | | | | | | | | | | Summary: Another round of minor typo fixes. Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D13026 llvm-svn: 248243
* AMDGPU: Remove unnecessary checkMatt Arsenault2015-09-221-4/+0
| | | | | | | If the instruction doesn't have enough operands, it either shouldn't be marked as isCommutable or is malformed. llvm-svn: 248242
* LiveIntervalAnalysis: Factor common code into splitSeparateComponents; NFCMatthias Braun2015-09-227-64/+61
| | | | llvm-svn: 248241
* Fix <atomic> with -pedantic-errorsEric Fiselier2015-09-221-1/+1
| | | | llvm-svn: 248240
* [llvm-readobj/MachO] Ensure we always have valid CmdName/SegmentName.Davide Italiano2015-09-221-2/+2
| | | | | | | | Otherwise we might end up printing garbage while dumping. Differential Revision: http://reviews.llvm.org/D13041 llvm-svn: 248239
* Remove declarations for methods that do not exist.Matthias Braun2015-09-221-5/+0
| | | | llvm-svn: 248238
* Fix r248164. [-Wdocumentation]NAKAMURA Takumi2015-09-221-1/+1
| | | | llvm-svn: 248237
* Remove expectedFailureFreeBSD from passing test_expr_null_with_dwarfEd Maste2015-09-221-1/+0
| | | | | | llvm.org/pr21550 llvm-svn: 248236
* Add bug number to FIXME comment.Nico Weber2015-09-221-1/+1
| | | | llvm-svn: 248235
* ms Intrin.h: Fix __movsw's and __stosw's inline asm.Nico Weber2015-09-222-4/+36
| | | | | | | | | | | Before, clang's internal assembler would reject the inline asm in clang's Intrin.h. To make sure this doesn't happen for other Intrin.h functions using __asm__ blocks, add 32-bit and 64-bit codegen tests for Intrin.h. Sadly, these tests discovered that __readcr3 and __writecr3 have bad implementations in 64-bit builds. This will have to be fixed in a follow-up. llvm-svn: 248234
* Remove unused TargetTransformInfo dependency from SafeStack pass.Evgeniy Stepanov2015-09-221-2/+0
| | | | llvm-svn: 248233
* Split the curses stuff out into a separate file so that we can import curses ↵Greg Clayton2015-09-222-129/+185
| | | | | | | | | | and lldbcurses at the module level. Added key press handling and a first responder system and the ability for windows that can be first responders to be selected and have key presses routed to the first resonder, delegates and also travel up the parent chain. Remove the temp file that was being created. llvm-svn: 248232
* [LoopUnswitch] Require DominatorTree info.Michael Zolotukhin2015-09-221-11/+7
| | | | | | | | | | | | | | | | | | | | | Summary: We should either require the DT info to be available, or check if it's available in every place we use DT (and we already miss such check in one place, which causes failures in some cases). As other loop passes preserve DT and it's usually available, it makes sense to just require it here. There is no regression test, because the bug only shows up if pass manager decides to clean DT info right before LoopUnswitch. If loop-unswitch is run separately, DT is available, so bug isn't exposed. Reviewers: chandlerc, hfinkel Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13036 llvm-svn: 248230
* Remove the Chunk terminology from ELF.Rafael Espindola2015-09-227-33/+31
| | | | llvm-svn: 248229
* test framework: parallel test runner sends terminate to formatter before ↵Todd Fiala2015-09-223-4/+23
| | | | | | | | | | | | printing to stdout The parallel test runner now sends the terminate event to the formatter (if there is one) after the parallel test runs but before dumping anything to stdout/stderr at the end of the run. This allows the existing stdout/stderr summary reporting to co-exist nicely with a formatter like the test_results.Curses that otherwise clobbers the screen. llvm-svn: 248228
* [SCEV] Use SaveAndRestore<T> instead of a hand rolled struct; NFCI.Sanjoy Das2015-09-221-13/+2
| | | | | | | `ClearWalkingBEDominatingCondsOnExit` is exactly `SaveAndRestore<bool>`, so use `SaveAndRestore<bool>` instead. llvm-svn: 248227
* Rename Chunks.(h|cpp) to InputSection.(h|cpp). NFC.Rafael Espindola2015-09-227-10/+10
| | | | llvm-svn: 248226
* COFF: Add /nosymtab command line option.Rui Ueyama2015-09-215-1/+13
| | | | | | | | | | | | | This is an LLD extension to MSVC link.exe command line. MSVC linker does not write symbol tables for executables. We do unless no /debug option is given. There's a situation that we want to enable debug info but don't want to emit the symbol table. One example is when we are comparing output file size. With this patch, you can tell the linker to not create a symbol table by just specifying /nosymtab. llvm-svn: 248225
* function names should start with a lower case letter; NFCSanjay Patel2015-09-211-91/+91
| | | | llvm-svn: 248224
* More MSVC fixes.Rafael Espindola2015-09-211-16/+12
| | | | llvm-svn: 248223
* don't repeat function/variable names in header comments; NFCSanjay Patel2015-09-211-87/+74
| | | | llvm-svn: 248222
* Add msbuild-bin/cl to CLANG_LINKS_TO_CREATEHans Wennborg2015-09-211-0/+4
| | | | | | This got lost in r248043 which refactored the symlink creation. llvm-svn: 248221
* [LICM] Hoist calls to readonly argmemonly functions even with stores in the loopPhilip Reames2015-09-212-0/+80
| | | | | | | | | | | | We know that an argmemonly function can only access memory pointed to by it's pointer arguments. Rather than needing to consider all possible stores as aliasing (as we do for a readonly function), we can only consider the aliasing of the pointer arguments. Note that this change only addresses hoisting. I'm thinking about how to address speculation safety as well, but that will be a different change. FYI, argmemonly disallows accessing memory through non-pointer typed arguments. Differential Revision: http://reviews.llvm.org/D12771 llvm-svn: 248220
* Trying to fix the MSVC build.Rafael Espindola2015-09-211-4/+4
| | | | llvm-svn: 248219
* Remove unused includes.Rafael Espindola2015-09-211-5/+0
| | | | llvm-svn: 248218
* [LLD][MachO] Fix a FIXME: Subtract base address from atom address when buildingLang Hames2015-09-213-5/+13
| | | | | | export trie. llvm-svn: 248217
* Fix for pr24866Philip Reames2015-09-212-1/+52
| | | | | | Turns out that not every basic block is guaranteed to have a node within the DominatorTree. This is really hard to trigger, but the test case from the PR managed to do so. There's active discussion continuing about what documentation and/or invariants needed cleaned up. llvm-svn: 248216
* Make InputSection able to relocate itself.Rafael Espindola2015-09-214-134/+162
| | | | | | This matches the organization used in COFF. llvm-svn: 248215
* Move OutputSectionBase and derived classes out of Writer.cpp.Rafael Espindola2015-09-214-822/+990
| | | | | | | The file was getting a bit too big and OutputSection is a central enough concept in ELF linking to justify its own file. llvm-svn: 248214
* Fix UB: can't bind a reference to nullptr (NFC)Mehdi Amini2015-09-211-1/+1
| | | | | From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 248213
* auto and range-for-ify some things to make changing container types a bit ↵David Blaikie2015-09-211-36/+25
| | | | | | easier in the (possibly near) future llvm-svn: 248212
* OpenMP Initial testsuite change to purely llvm-lit based testingJonathan Peyton2015-09-2173-0/+5992
| | | | | | | | | | | | | | | This change introduces a check-libomp target which is based upon llvm's lit test infrastructure. Each test (generated from the University of Houston's OpenMP testsuite) is compiled and then run. For each test, an exit status of 0 indicates success and non-zero indicates failure. This way, FileCheck is not needed. I've added a bit of logic to generate symlinks (libiomp5 and libgomp) in the build tree so that gcc can be tested as well. When building out-of- tree builds, the user will have to provide llvm-lit either by specifying -DLIBOMP_LLVM_LIT_EXECUTABLE or having llvm-lit in their PATH. Differential Revision: http://reviews.llvm.org/D11821 llvm-svn: 248211
* [DAGCombiner] Improve FMA support for interpolation patternsSimon Pilgrim2015-09-214-1/+595
| | | | | | | | | | This patch adds support for combining patterns such as (FMUL(FADD(1.0, x), y)) and (FMUL(FSUB(x, 1.0), y)) to their FMA equivalents. This is useful in particular for linear interpolation cases such as (FADD(FMUL(x, t), FMUL(y, FSUB(1.0, t)))) Differential Revision: http://reviews.llvm.org/D13003 llvm-svn: 248210
OpenPOWER on IntegriCloud