summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert "[Mips] Fix createMipsRelocationHandler specialization"Denis Protivensky2015-01-271-8/+2
| | | | | | The buildbot reported build failures for clang. llvm-svn: 227179
* Fix build failure with pointer vs reference.Eric Christopher2015-01-271-1/+1
| | | | | NB: Saving files after editing helps. llvm-svn: 227178
* [Mips] Fix createMipsRelocationHandler specializationDenis Protivensky2015-01-271-2/+8
| | | | | | | gcc allows template specializations only in the same namespace where template has been declared. llvm-svn: 227177
* Update a few calls to getSubtarget<> to either be getSubtargetImplEric Christopher2015-01-275-18/+16
| | | | | | | when we didn't need the cast to the base class or the cached version off of the subtarget. llvm-svn: 227176
* Clean up the AArch64 store pair suppression pass initializationEric Christopher2015-01-271-11/+7
| | | | | | and remove and unnecessary class variable. llvm-svn: 227175
* [lld] Correct forming of ARM/Thumb atomsDenis Protivensky2015-01-2710-55/+270
| | | | | | | | | | | | Symbols addressing Thumb code have zero bit set in st_value to distinguish them from ARM instructions. This caused wrong atoms' forming because of offset of one byte brought in by that corrected st_value. Fixed reading of st_value & st_value-related things in ARMELFFile while forming atoms. Symbol table generation is also fixed for Thumb atoms. Differential Revision: http://reviews.llvm.org/D7161 llvm-svn: 227174
* The subtarget is cached on the MachineFunction. Access it directly.Eric Christopher2015-01-278-30/+18
| | | | llvm-svn: 227173
* Migrate SeparateConstOffsetFromGEP to use a Function withEric Christopher2015-01-271-1/+1
| | | | | | getSubtarget. llvm-svn: 227172
* LoopRotate: Don't walk the uses of a ConstantDavid Majnemer2015-01-272-11/+32
| | | | | | | | | | LoopRotate wanted to avoid live range interference by looking at the uses of a Value in the loop latch and seeing if any lied outside of the loop. We would wrongly perform this operation on Constants. This fixes PR22337. llvm-svn: 227171
* Remove unused include.Eric Christopher2015-01-271-1/+0
| | | | llvm-svn: 227170
* DR1902: if overload resolution recurses, and the inner overload resolutionRichard Smith2015-01-273-21/+66
| | | | | | | selects a deleted function, the outer function is still a candidate even though the initialization sequence is "otherwise ill-formed". llvm-svn: 227169
* Fix incorrect atom ordinal.Rui Ueyama2015-01-271-2/+3
| | | | | | | | Anonymous atoms created there were getting wrong atom ordinal. LayoutAfter references take precedence over atom ordinals, so the bug was not visible, though. llvm-svn: 227168
* Revert r227148 & r227154 which added a test which infinitely loops.Richard Trieu2015-01-273-28/+3
| | | | | | | | | | | | r227148 added test CommandLineTest.HideUnrelatedOptionsMulti which repeatedly outputs two following lines: -tool: CommandLine Error: Option 'test-option-1' registered more than once! -tool: CommandLine Error: Option 'test-option-2' registered more than once! r227154 depends on changes from r227148 llvm-svn: 227167
* Apply the transformation to the static type as well as the dynamic type. It ↵Enrico Granata2015-01-271-7/+7
| | | | | | doesn't make sense to carry along an untransformed static type llvm-svn: 227166
* [PM] Run clang-format over this header to clean up the very few)Chandler Carruth2015-01-271-20/+16
| | | | | | | | divergent formatting issues. This should prevent any format-only diffs from sneaking into subsequent changes to port TTI to the new pass manager. llvm-svn: 227165
* [PM] Switch a doxygen comment to the standard format. NFCChandler Carruth2015-01-271-2/+2
| | | | llvm-svn: 227164
* Allow python command interpreter commands to be interruptable via CTRL+C.Greg Clayton2015-01-274-20/+68
| | | | | | <rdar://problem/17935601> llvm-svn: 227163
* [PM] Refactor the core logic to run EarlyCSE over a function into anChandler Carruth2015-01-273-77/+96
| | | | | | | | | | | | | | | | | object that manages a single run of this pass. This was already essentially how it worked. Within the run function, it would point members at *stack local* allocations that were only live for a single run. Instead, it seems much cleaner to have a utility object whose lifetime is clearly bounded by the run of the pass over the function and can use member variables in a more direct way. This also makes it easy to plumb the analyses used into it from the pass and will make it re-usable with the new pass manager. No functionality changed here, its just a refactoring. llvm-svn: 227162
* [ASan] Use rpath in tests that produce a shared libraryKuba Brecka2015-01-272-6/+6
| | | | | | | | Modifying Darwin/interception-in-shared-lib-test.cc and suppressions-library.cc to use rpath instead of linking against the full path to the temporary file. NFC. llvm-svn: 227161
* MachineRegisterInfo can access TII off of the MachineFunction'sEric Christopher2015-01-274-5/+5
| | | | | | | subtarget and so doesn't need the TargetMachine or to access via getSubtargetImpl. Update all callers. llvm-svn: 227160
* Migrate AtomicExpandPass and DwarfEHPrepare to using a Function-ized ↵Eric Christopher2015-01-272-3/+3
| | | | | | getSubtargetImpl. llvm-svn: 227159
* Fix unsigned/signed comparison warning.Eric Christopher2015-01-271-1/+1
| | | | llvm-svn: 227158
* Migrate CodeGenPrepare to use the Function based getSubtargetEric Christopher2015-01-271-3/+5
| | | | | | code. llvm-svn: 227157
* Grab the TargetLowering info from the DAG rather than querying forEric Christopher2015-01-271-3/+2
| | | | | | a subtarget. llvm-svn: 227156
* Remove extraneous period.Eric Christopher2015-01-271-1/+1
| | | | llvm-svn: 227155
* One more fix to the new API to fix const-correctness.Chris Bieneman2015-01-273-3/+4
| | | | llvm-svn: 227154
* Fix the test to disassemble as if at address zero, not at an invalid ↵Greg Clayton2015-01-271-1/+1
| | | | | | | | address. The default SBAddress constructor sets the offset to 0xffffffffffffffff and the section to NULL. This was causing problems on clang 602 branches that use MemoryObjects to as the container for opcode bytes instead of a plain array of bytes. So we were asking for 3 bytes to be disassembled at address 0xffffffffffffffff which would cause an unsigned overflow and cause the MemoryObject to refuse to read anymore bytes. llvm-svn: 227153
* Replace this testcase with an even shorter one provided by dblaikie.Adrian Prantl2015-01-271-339/+169
| | | | llvm-svn: 227152
* Commoning of target specific load/store intrinsics in Early CSE.Chad Rosier2015-01-266-29/+486
| | | | | | | Phabricator revision: http://reviews.llvm.org/D7121 Patch by Sanjin Sijaric <ssijaric@codeaurora.org>! llvm-svn: 227149
* Pete Cooper suggested the new API should use ArrayRef instead of ↵Chris Bieneman2015-01-263-3/+27
| | | | | | SmallVectorImpl. Also adding a test case. llvm-svn: 227148
* Fix local variable names.Rui Ueyama2015-01-261-2/+3
| | | | llvm-svn: 227147
* Add test cases for PRE w/volatile loadsPhilip Reames2015-01-261-0/+82
| | | | | | These tests check that the combination of 227110 (cross block query inst) and 227112 (volatile load semantics) work together properly to allow PRE in cases where a loop contains a volatile access. llvm-svn: 227146
* [X86][SSE] Float comparisons can sometimes be safely commutedSimon Pilgrim2015-01-263-0/+385
| | | | | | | | For ordered, unordered, equal and not-equal tests, packed float and double comparison instructions can be safely commuted without affecting the results. This patch checks the comparison mode of the (v)cmpps + (v)cmppd instructions and commutes the result if it can. Differential Revision: http://reviews.llvm.org/D7178 llvm-svn: 227145
* Accept -allow-shlib-undefined in addition to --allow-shlib-undefined.Rui Ueyama2015-01-261-1/+1
| | | | | | GNU LD accepts both. CMake seems to use the former than the latter. llvm-svn: 227144
* Have the UTF conversion wrappers append a null terminator.Zachary Turner2015-01-261-4/+11
| | | | | | | | | | | This is especially useful for the UTF8 -> UTF16 direction, since there is no equivalent of llvm::SmallString<> for wide characters. This means that anyone who wants a null terminated string is forced to manually push and pop their own null terminator. Reviewed by: Reid Kleckner. llvm-svn: 227143
* Adopt CMake policy CMP0042. Set MACOSX_RPATH on by default.Eric Fiselier2015-01-261-0/+4
| | | | llvm-svn: 227142
* [X86][PCLMUL] Enable commutation for PCLMUL instructionsSimon Pilgrim2015-01-263-0/+77
| | | | | | | | Patch to allow (v)pclmulqdq to be commuted - swaps the src registers and inverts the immediate (low/high) src mask. Differential Revision: http://reviews.llvm.org/D7180 llvm-svn: 227141
* Add new HideUnrelatedOptions API that takes a SmallVectorImpl.Chris Bieneman2015-01-262-0/+23
| | | | | | Need a new API for clang-modernize that allows specifying a list of option categories to remain visible. This will allow clang-modernize to move off getRegisteredOptions. llvm-svn: 227140
* Adopt CMake policy CMP0042. Set MACOSX_RPATH on by default.Eric Fiselier2015-01-261-0/+4
| | | | llvm-svn: 227139
* Line endings fix. NFC.Simon Pilgrim2015-01-267-164/+164
| | | | llvm-svn: 227138
* R600: Cleanup or testMatt Arsenault2015-01-261-26/+32
| | | | | | | Fix broken check lines, use multiple check prefixes, add an additional test for i1 or. llvm-svn: 227137
* Line endings fix. NFC.Simon Pilgrim2015-01-261-66/+66
| | | | llvm-svn: 227136
* Don't generate llvm.expect intrinsics with -O0.Pete Cooper2015-01-262-5/+18
| | | | | | | | | | The backend won't run LowerExpect on -O0. In a debug LTO build, this results in llvm.expect intrinsics being in the LTO IR which doesn't know how to optimize them. Thanks to Chandler for the suggestion and review. Differential revision: http://reviews.llvm.org/D7183 llvm-svn: 227135
* Fix shared library buildGreg Fitzgerald2015-01-266-4/+32
| | | | | | | | | * Removed cyclic dependency between lldPECOFF and lldDriver * Added missing dependencies in unit tests Differential Revision: http://reviews.llvm.org/D7185 llvm-svn: 227134
* bpf: fix build due to 'Move DataLayout back to the TargetMachine'Alexei Starovoitov2015-01-264-4/+5
| | | | | | commit r227113 moved DataLayout llvm-svn: 227133
* Use parallel_sort in the LayoutPass.Rui Ueyama2015-01-262-3/+4
| | | | | | | | | | Time to link lld using lld improved from 5.7s to 5.4s on Windows. It's not a significant improvement but not bad for one-line change. This patch includes a bug fix for Parallel.h as the original code uses operator< instead of a compare function there. llvm-svn: 227132
* Added test for incomplete type support in vector/list/forward_list. ↵Marshall Clow2015-01-263-0/+6
| | | | | | References PR#17980 llvm-svn: 227131
* [x86][MMX] Rename and cleanup tests: arith, intrinsics and shuffleBruno Cardoso Lopes2015-01-268-537/+311
| | | | | | | | | - Rename mmx-builtins to mmx-intrinsics to match other intrinsic test naming. - Remove tests that duplicate functionality from mmx-intrinsics.ll. - Move arith related tests to mmx-arith.ll. - MMX related shuffle goes to vector-shuffle-mmx.ll. llvm-svn: 227130
* Tweak r227115 per review feedbackBen Langmuir2015-01-261-1/+1
| | | | | | | Use getAsArrayTypeUnsafe() instead of getUnqualifiedDesugaredType() to get the underlying ArrayType. llvm-svn: 227129
* Fix broken doc link to Clang 3.5 release notesReid Kleckner2015-01-261-1/+1
| | | | | | | | We appear to use 3.5.0 in the directory structure now. That's probably unnecessary. We should probably let the micro releases update the docs for the same minor version. llvm-svn: 227127
OpenPOWER on IntegriCloud