summaryrefslogtreecommitdiffstats
path: root/llvm
Commit message (Collapse)AuthorAgeFilesLines
...
* Delete MCSectionData.Rafael Espindola2015-05-277-139/+64
| | | | llvm-svn: 238331
* Delete dead code. NFC.Rafael Espindola2015-05-272-8/+0
| | | | llvm-svn: 238330
* Stop using MCSectionData in WinCOFFObjectWriter.cpp.Rafael Espindola2015-05-271-15/+8
| | | | llvm-svn: 238329
* clang-format WinCOFFObjectWriter.cpp. NFC.Rafael Espindola2015-05-271-82/+102
| | | | llvm-svn: 238328
* Remove uses of MCSectionData from MachObjectWriter.cpp.Rafael Espindola2015-05-271-6/+4
| | | | llvm-svn: 238327
* [mips][microMIPSr6] Implement BEQZALC, BGEZALC, BGTZALC, BLEZALC, BLTZALC ↵Jozef Kolek2015-05-275-7/+107
| | | | | | | | | | | and BNEZALC instructions This patch implements microMIPS32r6 BEQZALC, BGEZALC, BGTZALC, BLEZALC, BLTZALC and BNEZALC instructions using mapping. Differential Revision: http://reviews.llvm.org/D10031 llvm-svn: 238325
* AVX-512: Fixed a bug in extracting subvector from v64i1Elena Demikhovsky2015-05-272-0/+17
| | | | | | By Igor Breger (igor.breger@intel.com) llvm-svn: 238322
* Move getSubsectionInsertionPoint to MCSection.Rafael Espindola2015-05-274-35/+36
| | | | llvm-svn: 238320
* Remove uses of MCSectionData from ELFObjectWriter. NFC.Rafael Espindola2015-05-271-9/+7
| | | | llvm-svn: 238317
* Use operator<< instead of print in a few more places.Rafael Espindola2015-05-279-18/+13
| | | | llvm-svn: 238315
* We always have an InstPrinter.Rafael Espindola2015-05-271-8/+6
| | | | llvm-svn: 238311
* Revert r238305: [PM] Use a simpler technique to drop optional analysisChandler Carruth2015-05-271-49/+120
| | | | | | | | | manager arguments... I have no idea why, but compilers seem to hate this and its late, so I'm not going to debug it. :: sigh :: This is why we can't have nice things. llvm-svn: 238306
* [PM] Use a simpler technique to drop optional analysis manager argumentsChandler Carruth2015-05-271-120/+49
| | | | | | | | | | | | | | | | | | | when invoking run methods. This technique was suggested by Dinesh Dwivedi who also wrote the original patch. During the code review, they explained to me that this isn't a fully general technique as we need to know the signatures of the method candidates. Since this is really a narrower utility, I switched the names and structure to be more clearly a specialized run method invoke helper and commented it accordingly. I still think this is a pretty big win. Very sorry to Dinesh for the extreme delay in landing this patch. I've been far to busy poking at other things. Original review: http://reviews.llvm.org/D3543 llvm-svn: 238305
* Revert r238190 and r238197: [mips] Make TTypeEncoding indirect to allow ↵Daniel Sanders2015-05-275-50/+11
| | | | | | | | | | .eh_frame to be read-only. This broke the llvm-mips-linux builder and several of our out-of-tree builders. Initial investigations show that the commit probably isn't the problem but reverting anyway while I investigate. llvm-svn: 238302
* AVX-512: Implemented all forms of sign-extend and zero-extend instructions ↵Elena Demikhovsky2015-05-277-144/+1913
| | | | | | | | | | | for KNL and SKX Implemented DAG lowering for all these forms. Added tests for DAG lowering and encoding. By Igor Breger (igor.breger@intel.com) llvm-svn: 238301
* Add some more detailed docs about the current state of Phabricator andChandler Carruth2015-05-271-1/+11
| | | | | | reviwes.llvm.org to help reduce confusion. llvm-svn: 238295
* [X86] Implement the support for shrink-wrapping.Quentin Colombet2015-05-274-35/+668
| | | | | | | | | | | | | With this patch the x86 backend is now shrink-wrapping capable and this functionality can be tested by using the -enable-shrink-wrap switch. The next step is to make more test and enable shrink-wrapping by default for x86. Related to <rdar://problem/20821487> llvm-svn: 238293
* [ShrinkWrap] Add a target hook to check whether or notQuentin Colombet2015-05-272-5/+34
| | | | | | | | | the target can handle a given basic block as prologue or epilogue. Related to <rdar://problem/20821487> llvm-svn: 238292
* ARMLoadStoreOptimizer: Code cleanup; NFCMatthias Braun2015-05-271-15/+12
| | | | llvm-svn: 238289
* MachineBasicBlock: Cleanup computeRegisterLiveness()Matthias Braun2015-05-272-24/+23
| | | | | | | | | - Clean documentation comment - Change the API to accept an iterator so you can actually pass MachineBasicBlock::end() now. - Add more "const". llvm-svn: 238288
* MCSymbol: Make print() robust against empty namesMatthias Braun2015-05-271-0/+4
| | | | | | | This shouldn't happen, but it's nice not to abort when printing broken machine functions. llvm-svn: 238287
* Object/COFF: Add accessors for import header bitfields.Rui Ueyama2015-05-271-0/+2
| | | | llvm-svn: 238277
* [inliner] Fix the early-exit of the inline cost analysis to correctlyChandler Carruth2015-05-272-25/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | model the dense vector instruction bonuses. Previously, this code really didn't effectively compute the density of inlined vector instructions and apply the intended inliner bonus. It would try to compute it repeatedly while analyzing the function and didn't handle the case where future vector instructions would tip the scales back towards the bonus. Instead, speculatively apply all possible bonuses to the threshold initially. Once we *know* that a certain bonus can not be applied, subtract it. This should delay early bailout enough to get much more consistent results without actually causing us to analyze huge swaths of code. I expect some (hopefully mild) compile time hit here, and some swings in performance, but this was definitely the intended behavior of these bonuses. This also dramatically simplifies the computation of the bonuses to not interact with each other in confusing ways. The previous code didn't do a good job of this and the values for bonuses may be surprising but are at least now clearly written in the code. Finally, fix code to be in line with comments and use zero as the bailout condition. Patch by Easwaran Raman, with some comment tweaks by me to try and further clarify what is going on with this code. http://reviews.llvm.org/D8267 llvm-svn: 238276
* Object/COFF: Add coff_import_header.Rui Ueyama2015-05-271-0/+11
| | | | | | This type is described in the PE/COFF spec section 7.1. llvm-svn: 238275
* [BitcodeReader] Change assert to report_fatal_errorFilipe Cabecinhas2015-05-273-1/+7
| | | | | | | | It can be triggered by user input. Bug found with AFL fuzz. llvm-svn: 238272
* [BitstreamReader] Make sure the Array operand type is an encodingFilipe Cabecinhas2015-05-273-0/+8
| | | | | | Bug found with AFL fuzz. llvm-svn: 238269
* clang-format a couple of linesFilipe Cabecinhas2015-05-271-2/+2
| | | | llvm-svn: 238268
* [BitcodeReader] Make sure abbrev records have at least one operand (record code)Filipe Cabecinhas2015-05-263-0/+8
| | | | | | Bug found with AFL fuzz. llvm-svn: 238265
* Add initial support for the convergent attribute.Owen Anderson2015-05-2616-5/+61
| | | | llvm-svn: 238264
* [BitcodeReader] Sanity check on Comdat IDFilipe Cabecinhas2015-05-264-2/+14
| | | | | | | | Shouldn't be an assert, since user input can trigger it. Bug found with AFL fuzz. llvm-svn: 238261
* clang-format TargetRegistry.h. NFC.Rafael Espindola2015-05-261-1117/+1086
| | | | llvm-svn: 238255
* [PlaceSafepoints] Entry safepoint location doesn't need to be a terminatorPhilip Reames2015-05-261-17/+1
| | | | | | | | | | Long ago, the poll insertion code assumed that the insertion site was a terminator. As a result, the entry selection code would split a basic block to ensure it could pass a terminator. The insertion code was updated quite a while ago - possibly before it ever landed upstream - but the now redundant work was never removed. While I'm at it, remove a comment which doesn't apply to the upstreamed code. NFC intended. llvm-svn: 238254
* [PlaceSafepoints] Cleanup InsertSafepointPoll functionPhilip Reames2015-05-265-20/+28
| | | | | | While working on another change, I noticed that the naming in this function was mildly deceptive. While fixing that, I took the oppurtunity to modernize some of the code. NFC intended. llvm-svn: 238252
* [lib/Fuzzer] make the fuzzing timeout 1200 seconds by default (was: infinity)Kostya Serebryany2015-05-263-2/+4
| | | | llvm-svn: 238251
* Simplify boolean conditional return statements.Rafael Espindola2015-05-261-4/+1
| | | | | | Patch by Richard <legalize@xmission.com>. llvm-svn: 238250
* Object/COFF: Add COFFSymbolRef::isAbsolute().Rui Ueyama2015-05-261-0/+4
| | | | | | | COFFSymbolRef has many predicates, like isCommon() or isExternal(), but this predicate was missing. llvm-svn: 238247
* Remove NoFramePointerElim and NoFramePointerElimOverride from TargetOptions andAkira Hatanaka2015-05-267-62/+42
| | | | | | | | | | remove ExecutionEngine's dependence on CodeGen. NFC. This is a follow-up to r238080. Differential Revision: http://reviews.llvm.org/D9830 llvm-svn: 238244
* Use "auto &" in range-based for-loop and remove the extra braces.Adrian Prantl2015-05-261-2/+1
| | | | llvm-svn: 238243
* Fix a use-after-free in a DEBUG output.Adrian Prantl2015-05-261-4/+4
| | | | llvm-svn: 238242
* [lib/Fuzzer] fix docsKostya Serebryany2015-05-262-5/+5
| | | | llvm-svn: 238236
* [lib/Fuzzer] fix build with assertionsKostya Serebryany2015-05-262-3/+4
| | | | llvm-svn: 238235
* Print "lock \t foo" instead of "lock \n foo".Rafael Espindola2015-05-2612-39/+20
| | | | | | | | | | | This gets gas and llc -filetype=obj to agree on the order of prefixes. For llvm-mc we need to fix the asm parser to know that it makes a difference on which line the "lock" is in. Part of pr23594. llvm-svn: 238232
* R600: Use SIGN_EXTEND_INREG for SEXT loadsJan Vesely2015-05-262-76/+42
| | | | | | Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Matt Arsenault <Matthew.Arsenault@amd.com> llvm-svn: 238229
* R600: Add comments to subword private address load lowering codeJan Vesely2015-05-261-0/+13
| | | | | | | | v2: Use C++ comments and end with periods Signed-off-by: Jan Vesely <jan.vesely@rutgers.edu> Reviewed-by: Matt Arsenault <Matthew.Arsenault@amd.com> llvm-svn: 238228
* Revert "Re-commit changes in r237579 with fix for bug breaking windows builds."Diego Novillo2015-05-2614-979/+21
| | | | | | | This reverts commit r238201 to fix linking problems in x86 Linux http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20150525/278413.html llvm-svn: 238223
* Make EmitFunctionHeader virtualMatt Arsenault2015-05-261-1/+1
| | | | | | | | | | This is to fix problems introduced by r232481. For HSAIL, this function does essentially nothing desirable, and injects unwanted / incorrect stuff before the function. The only thing it really needs to do is call EmitFunctionEntryLabel in this case. llvm-svn: 238222
* Forgot to add lit.local.cfg for new R600 directoryMatt Arsenault2015-05-261-0/+3
| | | | llvm-svn: 238218
* CodeGenPrepare: Don't match addressing modes through addrspacecastMatt Arsenault2015-05-262-1/+57
| | | | | | | This was resulting in the addrspacecast being removed and incorrectly replaced with a ptrtoint when sinking. llvm-svn: 238217
* Object/COFF: Define .idata import directory table entry.Rui Ueyama2015-05-261-0/+8
| | | | | | This data type is described in the Microsoft PE/COFF spec rev. 8.3 5.4.1. llvm-svn: 238214
* Object: Add Archive::getNumberOfSymbols().Rui Ueyama2015-05-262-14/+14
| | | | | | Add a function that returns number of symbols in archive headers. llvm-svn: 238213
OpenPOWER on IntegriCloud