summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Revert r273427 "[ELF] - Simplify loop in parseVersionSymbols(). NFC."George Rimar2016-06-231-2/+4
| | | | llvm-svn: 273538
* Attempt to fix Windows buildbots.Rui Ueyama2016-06-231-2/+2
| | | | llvm-svn: 273537
* Implement --trace-symbol=symbol option.Rui Ueyama2016-06-2310-0/+143
| | | | | | | | | | | | | | | Patch by Shridhar Joshi. This option provides names of all the link time modules which define and reference symbols requested by user. This helps to speed up application development by detecting references causing undefined symbols. It also helps in detecting symbols being resolved to wrong (unintended) definitions in case of applications containing multiple definitions for same symbols with different types, bindings. Implements PR28226. llvm-svn: 273536
* [LLDB][MIPS] Fix Emulation of Compact branch and ADDIU instructionsSagar Thakur2016-06-232-32/+33
| | | | | | | | | | | | | | Patch by Nitesh Jain. This patch contains 2 changes: - Corrected target address calculation of compact branch instructions to reflect changes in disassembler (http://reviews.llvm.org/D17540). - Added emulation for (missing) 'Addiu' instruction. Reviewers :jaydeep, bhushan, clayborg Differential: http://reviews.llvm.org/D21064 llvm-svn: 273535
* [LLVM][MIPS] Introduce 64 bit atomic check in CheckAtomic.cmakeSagar Thakur2016-06-231-0/+37
| | | | | | | | | | Patch by Nitesh Jain. Summary: On some target like MIPS32 we need to explicitly link atomic library for 64 bit atomic operations. This module then can be used in LLDB (http://reviews.llvm.org/D20464) or Libcxx (http://reviews.llvm.org/D16613) for explicitly link to atomic library. Reviewers: chandlerc, beanz Differential: reviews.llvm.org/D20896 llvm-svn: 273534
* [AVX512] Replace masked unpack builtins with shufflevector and selects.Craig Topper2016-06-239-666/+618
| | | | llvm-svn: 273533
* Fix a bug that MIPS thunks can overwrite other section contents.Rui Ueyama2016-06-238-77/+174
| | | | | | | | | | | | | | | Peter Smith found while trying to support thunk creation for ARM that LLD sometimes creates broken thunks for MIPS. The cause of the bug is that we assign file offsets to input sections too early. We need to create all sections and then assign section offsets because appending thunks changes file offsets for all following sections. This patch separates the pass to assign file offsets from thunk creation pass. This effectively reverts r265673. Differential Revision: http://reviews.llvm.org/D21598 llvm-svn: 273532
* Revert r273524, it may have been the cause of a linux testbot failureJason Molenda2016-06-2321-32/+32
| | | | | | | | for TestNamespaceLookup.py; didn't see anything obviously wrong so I'll need to look at this more closely before re-committing. (passed OK on macOS ;) llvm-svn: 273531
* Fix doubly included headerMatt Arsenault2016-06-231-1/+0
| | | | llvm-svn: 273528
* [libFuzzer] Add standard license info and comment header to AFLDriverTest.cppVitaly Buka2016-06-231-0/+4
| | | | | | | | | | | | Summary: Add license info and brief description of file to AFLDriverTest.cpp. Reviewers: kcc, aizatsky Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D21487 llvm-svn: 273527
* Use C++ comments for large block comment.Eric Christopher2016-06-231-16/+17
| | | | llvm-svn: 273526
* AMDGPU: readlane/writelane do not read execMatt Arsenault2016-06-232-2/+26
| | | | llvm-svn: 273525
* Do some minor renames of "Mac OS X" to "macOS".Jason Molenda2016-06-2321-32/+32
| | | | | | | | | There's uses of "macosx" that will be more tricky to change, like in triples (e.g. "x86_64-apple-macosx10.11") - for now I'm just updating source comments and strings printed for humans. llvm-svn: 273524
* Fix unused variable warning by folding the temporary into the debug statement.Eric Christopher2016-06-231-2/+2
| | | | llvm-svn: 273523
* Use ranges to concisely express iterationDavid Majnemer2016-06-2318-184/+123
| | | | | | | No functional change is intended, this should just clean things up a little. llvm-svn: 273522
* [SCCP] Don't assume all Constants are ConstantIntDavid Majnemer2016-06-232-8/+18
| | | | | | This fixes PR28269. llvm-svn: 273521
* [ADT] Add a range variant of std::transformDavid Majnemer2016-06-231-0/+8
| | | | | | This will be used in a followup change in clang. llvm-svn: 273520
* [IRObjectFile] Try to be defensive, add a break.Davide Italiano2016-06-231-0/+1
| | | | | | Suggested by Sean Silva. llvm-svn: 273519
* Revert r273456, "Preserve DebugInfo when replacing values in DAGCombiner" as ↵Peter Collingbourne2016-06-238-34/+15
| | | | | | it caused pr28270. llvm-svn: 273518
* [llvm-cov] Fix a buggy lit testVedant Kumar2016-06-221-1/+1
| | | | | | | There is no check prefix for "WHOLE-FILE": this particular line was supposed to use the "ALL" prefix. llvm-svn: 273517
* [codeview] Add EFLAGS to the list of CodeView register numbersReid Kleckner2016-06-221-1/+3
| | | | llvm-svn: 273516
* AMDGPU: Fix liveness when expanding m0 loopMatt Arsenault2016-06-223-25/+89
| | | | llvm-svn: 273514
* [RS4GC] Use StringRef; NFCSanjoy Das2016-06-221-4/+3
| | | | | | Spotted during random inspection. llvm-svn: 273512
* Change that to include MCMachObjectWriter.hReid Kleckner2016-06-221-1/+1
| | | | llvm-svn: 273511
* Add one more missing MCObjectWriter.h includeReid Kleckner2016-06-221-0/+1
| | | | llvm-svn: 273510
* Fix instance of -Wdelete-incompleteReid Kleckner2016-06-221-0/+1
| | | | llvm-svn: 273508
* Prune some includes from headers and sink some inline functionsReid Kleckner2016-06-2210-23/+37
| | | | | | | | MCSymbol.h shouldn't pull in MCAssembler.h, just MCFragment.h. MCLinkerOptimizationHint.h shouldn't need MCMachObjectWriter.h. The rest is fixing the fallout. llvm-svn: 273507
* [PM]: LoopAccessInfo simple refactoringXinliang David Li2016-06-222-29/+31
| | | | | | | To make definition of mov ctors easier. Differential Revision: http://reviews.llvm.org/D21563 llvm-svn: 273506
* [CMake] Converting darwin_test_archs simple source to CChris Bieneman2016-06-221-3/+3
| | | | | | Using C instead of CXX here removes a configuration-time dependency on libcxx for the sanitizers. This should be NFC. llvm-svn: 273505
* [pdb] Treat a stream size of ~0U as 0Reid Kleckner2016-06-221-2/+4
| | | | | | My PDBs always have this size for stream 11. Not sure why. llvm-svn: 273504
* [MachO] Finish moving fat header swap functions to MachO.hChris Bieneman2016-06-222-29/+9
| | | | | | | | This is a follow-up to r273479. At the time I wrote r273479 I didn't connect the dots that the functions I was adding had to exist somewhere. Turns out, they do. This finishes moving the functions to MachO.h. Existing MachO fat header tests like test/tools/llvm-readobj/Inputs/macho-universal-archive.x86_64.i386 execute this code. llvm-svn: 273502
* [ImplicitNullChecks] Hoist trivial depdendencies if possibleSanjoy Das2016-06-222-20/+425
| | | | | | | | | | | | | | | | | | | | | | When trying to convert a loading instruction into a FAULTING_LOAD, we sometimes face code like this: if %R10 is not null: %R9<def> = MOV32ri Immediate %R9<def, tied> = AND32rm %R9, 0x20(%R10) else: goto TRAP In these cases we would like to use the AND32rm instruction as the faulting operation by hoisting the "depedency" def-ing %R9 also above the control flow, transforming the program into: %R9<def> = MOV32ri Immediate %R9<def, tied> = FAULTING_LOAD_OP(AND32rm %R9, 0x20(%R10), FailPath: TRAP) This change teaches ImplicitNullChecks to do the above, when safe. llvm-svn: 273501
* builtins: tag with noexecstackSaleem Abdulrasool2016-06-22104-0/+296
| | | | | | | | | | | | These routines do not require executable stacks. However, by default ELFish linkers may assume an executable stack on GNUish environments (and some non-GNU ones too!). The GNU extension to add a note to indicate a non-executable stack is honoured by these environments to mark the stack as non-executable (the compiler normally emits this directive on appropriate targets whenever possible). This allows normal builds from getting executable stacks due to linking to the compiler rt builtins. llvm-svn: 273500
* Use shouldAssumeDSOLocal.Rafael Espindola2016-06-222-5/+21
| | | | | | With this it handle -fPIE. llvm-svn: 273499
* Extract a few variables to make 'if' smaller. NFC.Rafael Espindola2016-06-221-7/+8
| | | | llvm-svn: 273497
* AMDGPU/SI: Define an intrinsic to expose ds_swizzle_b32Changpeng Fang2016-06-223-0/+32
| | | | | | | | Reviewers: tstellarAMD, arsenm Differential Revision: http://reviews.llvm.org/D21533 llvm-svn: 273496
* [codeview] Write LF_UDT_SRC_LINE records (PR28251)Hans Wennborg2016-06-227-90/+218
| | | | | | Differential Revision: http://reviews.llvm.org/D21621 llvm-svn: 273495
* Do not require __STDC_LIMIT_MACROS and othersPawel Bylica2016-06-221-9/+6
| | | | | | | | | | | | Summary: Do not require __STDC_LIMIT_MACROS and __STDC_CONSTANT_MACROS macros to be defined globally. They are not needed for C++11 compliant standard headers. Reviewers: joerg, jyknight Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D21553 llvm-svn: 273493
* [CMake] LLVM_BINARY_DIR was not being properly set in LLVMConfig.cmakeChris Bieneman2016-06-222-1/+3
| | | | | | LLVMConfig.cmake needs to set LLVM_BINARY_DIR differently based on whether or not it is the build directory or the install directory. The build directory just needs to set the value from the configuration, the install directory needs to set it to the install prefix. llvm-svn: 273479
* [MachO] Adding a few missing swapStruct functionsChris Bieneman2016-06-221-0/+14
| | | | | | These are just missing swap functions for handling endian conversion. llvm-svn: 273478
* [codeview] Fix the alignment padding that we add to list recordsReid Kleckner2016-06-222-5/+7
| | | | | | | Tweak the big-types.ll test case to catch this bug. We just need an enumerator name that doesn't have a length that is a multiple of 4. llvm-svn: 273477
* [asan] Fix global-registration.c on LinuxRyan Govostes2016-06-221-1/+1
| | | | llvm-svn: 273476
* [asan] Relax a flaky invalid-pointer-pairs testAnna Zaks2016-06-221-3/+3
| | | | | | | | | | | | | | This test is flaky. Specifically, on some Mac configurations we see the __sanitizer_ptr_cmp as the 0th frame. Let's relax it to not require that f is in frame #0. 61396==ERROR: AddressSanitizer: invalid-pointer-pair: 0x01e00510 0x01e004d0 0 0x18f5a3 in __sanitizer_ptr_cmp ... libclang_rt.asan_osx_dynamic.dylib+0xaf5a3) 1 0xdd924 in f(char, char*, char*) ... invalid-pointer-pairs.cc:14:14 Differential Revision: http://reviews.llvm.org/D21588 llvm-svn: 273475
* [IRObjectFile] Propagate .weak attribute correctly for ASM symbols.Davide Italiano2016-06-224-7/+16
| | | | | | | PR: 28256 Differential Revision: http://reviews.llvm.org/D21616 llvm-svn: 273474
* Update header documentation for API deliberately made publicDaniel Berlin2016-06-221-2/+3
| | | | llvm-svn: 273473
* [driver] Remove one more bunch of empty 'test inputs' folders. NFCSimon Atanasyan2016-06-220-0/+0
| | | | llvm-svn: 273471
* IR: Introduce Module::global_objects().Peter Collingbourne2016-06-227-43/+88
| | | | | | | | | | | | This is a convenience iterator that allows clients to enumerate the GlobalObjects within a Module. Also start using it in a few places where it is obviously the right thing to use. Differential Revision: http://reviews.llvm.org/D21580 llvm-svn: 273470
* AMDGPU: Run verifier after 2nd run of SIShrinkInstructionsMatt Arsenault2016-06-221-1/+1
| | | | llvm-svn: 273469
* [driver] Remove empty folders from the Inputs folder for the driver's tests. NFCSimon Atanasyan2016-06-220-0/+0
| | | | llvm-svn: 273468
* AMDGPU: Fix verifier errors in SILowerControlFlowMatt Arsenault2016-06-2213-144/+444
| | | | | | | | | | | | | The main sin this was committing was using terminator instructions in the middle of the block, and then not updating the block successors / predecessors. Split the blocks up to avoid this and introduce new pseudo instructions for branches taken with exec masking. Also use a pseudo instead of emitting s_endpgm and erasing it in the special case of a non-void return. llvm-svn: 273467
OpenPOWER on IntegriCloud