summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Refactor lldb-mi testsIlia K2015-02-2036-543/+664
| | | | | | | | | | | | | | | | | | | Summary: This patch includes following changes: * split lldb-mi tests into separate folders. It will make our life simpler because we can modify a test program of certain test and don't worry about other tests * a bit refactoring * fix comments * improve some tests Reviewers: emaste, clayborg, abidh Reviewed By: clayborg, abidh Subscribers: clayborg, lldb-commits, emaste, abidh Differential Revision: http://reviews.llvm.org/D7762 llvm-svn: 230022
* Base isPodLike on is_trivially_copyable for GCC 5 and MSVCBenjamin Kramer2015-02-201-1/+9
| | | | | | | It would be nice to get rid of the version checks here, but that will have to wait until libstdc++ is upgraded to 5.0 everywhere ... llvm-svn: 230021
* I incorrectly marked the VORC instruction as isCommutable when I added it. Kit Barton2015-02-202-6/+10
| | | | | | | | This fix removes the VORC instruction definition from the isCommutable block. Phabricator review: http://reviews.llvm.org/D7772 llvm-svn: 230020
* [ASan] Make the argument of '__sanitizer_annotate_contiguous_container' is ↵Timur Iskhodzhanov2015-02-202-3/+16
| | | | | | not aligned error message easier to understand llvm-svn: 230019
* [ASan/Win] Work around PR22545 - unregister globals when using the MD runtimeTimur Iskhodzhanov2015-02-203-9/+141
| | | | llvm-svn: 230018
* Generalize statepoint lowering to use ImmutableStatepoint. Move statepoint ↵Igor Laevsky2015-02-203-40/+42
| | | | | | | | lowering into a separate function 'LowerStatepoint' which uses ImmutableStatepoint instead of a CallInst. Also related utility functions are changed to receive ImmutableCallSite. Differential Revision: http://reviews.llvm.org/D7756 llvm-svn: 230017
* Constants.cpp: Only read 32 bits for float.Benjamin Kramer2015-02-201-3/+6
| | | | | | Otherwise we'll discard the wrong half of a uint64_t on big-endian systems. llvm-svn: 230016
* Remove redundant "explicit".Rui Ueyama2015-02-201-10/+10
| | | | llvm-svn: 230015
* Deleted module-map-checker, as it's been folded into modularize.John Thompson2015-02-2027-998/+1
| | | | llvm-svn: 230014
* Constants.cpp: getElementAsAPFloat(): Don't handle constant value via host's ↵NAKAMURA Takumi2015-02-201-8/+5
| | | | | | | | float/double, just handle with APInt/APFloat. x87 FPU didn't keep SNAN, but demoted to QNAN. llvm-svn: 230013
* RewriteStatepointsForGC: Move details into anonymous namespaces. NFC.Benjamin Kramer2015-02-201-10/+12
| | | | | | While there reduce the number of duplicated std::map lookups. llvm-svn: 230012
* clang-format: [js] Support template strings.Daniel Jasper2015-02-203-1/+107
| | | | | | | | | Merge template strings (marked by backticks ``). Do not format any contents of template strings. Patch by Martin Probst. Thank you. llvm-svn: 230011
* Make the static instance of None just const.Benjamin Kramer2015-02-201-1/+1
| | | | | | This way there shouldn't be any unused variable warnings. llvm-svn: 230010
* Wrap recursive function only used in assert in #ifndef NDEBUG.Benjamin Kramer2015-02-201-1/+5
| | | | | | Avoids unused function warnings in Release builds. llvm-svn: 230009
* Add -symbol-list-lines command (MI)Ilia K2015-02-208-1/+329
| | | | | | | | | | | | | | | | | Summary: Add -symbol-list-lines command + test. All test passed on OS X. Reviewers: emaste, abidh, clayborg Reviewed By: clayborg Subscribers: lldb-commits, clayborg, abidh, emaste Differential Revision: http://reviews.llvm.org/D7768 llvm-svn: 230008
* [Mach-O] Remove redundant allocatorJean-Daniel Dupas2015-02-201-2/+1
| | | | llvm-svn: 230007
* Add -fno-implicit-modules.Manuel Klimek2015-02-2010-0/+70
| | | | | | | If this flag is set, we error out when a module build is required. This is useful in environments where all required modules are passed via -fmodule-file. llvm-svn: 230006
* Refactor OptionValue::SetValueFromCString to use llvm::StringRefPavel Labath2015-02-2048-152/+130
| | | | | | | | | | Reviewers: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D7676 llvm-svn: 230005
* [x86] Switching the shuffle equivalence test to a variadic template wasChandler Carruth2015-02-201-115/+108
| | | | | | | | the wrong answer. We also got initializer lists which are *way* cleaner for this kind of thing. Let's use those and make this a normal, boring functionn accepting ArrayRef. llvm-svn: 230004
* Reduce number of threads in lldb-mi.Hafiz Abid Qadeer2015-02-208-172/+105
| | | | | | | | | | | | | | | | | | | | | LLDB-mi have 3 threads. 1. Wait for input. 2. Process commands. 3. Process events. This revision merges 1 & 2. Same thread waits on input and then process the command. This way, no synchronization is needed between first and 2nd. Also it is easy to check when to exit. A lot of code will redundant and will be cleaned up gradually. All lldb-mi tests pass with gcc and clang as test compiler. Also did minimal testing on command line and works ok. The "quit" and "-gdb-exit" command close the application without needing any further return. Reviewed in http://reviews.llvm.org/D7746. llvm-svn: 230003
* [TSan][MIPS64] Fix few more test cases for MIPS64Mohit K. Bhakkad2015-02-207-12/+28
| | | | | | | | | | | | Patch by Sagar Thakur Reviewers: dvyukov, samsonov, kcc. Subscribers: dsanders, mohit.bhakkad, Anand.Takale, llvm-commits. Differential Revision: http://reviews.llvm.org/D7290 llvm-svn: 230002
* Fix wording and grammar in Mips subtarget options.Eric Christopher2015-02-201-23/+18
| | | | llvm-svn: 230001
* Get the cached subtarget off the MachineFunction rather thanEric Christopher2015-02-202-6/+5
| | | | | | inquiring for a new one from the TargetMachine. llvm-svn: 230000
* Get the cached subtarget off the MachineFunction rather thanEric Christopher2015-02-208-16/+17
| | | | | | inquiring for a new one from the TargetMachine. llvm-svn: 229999
* Get the cached subtarget off the MachineFunction rather thanEric Christopher2015-02-201-4/+4
| | | | | | inquiring for a new one from the TargetMachine. llvm-svn: 229998
* Driver: Fix an incorrect use of llvm::NoneJustin Bogner2015-02-201-1/+1
| | | | | | This function returns a bool, so llvm::None doesn't make sense here. llvm-svn: 229997
* Save the MachineFunction in startFunction so that we can use it forEric Christopher2015-02-202-4/+6
| | | | | | lookups of the subtarget later. llvm-svn: 229996
* Use the cached subtarget from the MachineFunction rather thanEric Christopher2015-02-202-6/+4
| | | | | | doing a lookup on the TargetMachine. llvm-svn: 229995
* Make the TargetMachine::getSubtarget that takes a Function argumentEric Christopher2015-02-203-3/+3
| | | | | | | take a reference to match the getSubtargetImpl that takes a Function argument. llvm-svn: 229994
* Disallow implicit conversions from None to integer typesJustin Bogner2015-02-202-5/+8
| | | | | | | | | | | | This fixes an error introduced in r228934 where None was converted to an int instead of the int being converted to an Optional as intended. We make that sort of mistake a compile error by changing NoneType into a scoped enum. Finally, provide a static NoneType called None to avoid forcing all users to spell it NoneType::None. llvm-svn: 229980
* Fix build with gcc. This has a -Wsequence-point error on 'MII', which is a ↵Nick Lewycky2015-02-201-5/+3
| | | | | | good point. llvm-svn: 229979
* Remove more uses of TargetMachine::getSubtargetImpl from theEric Christopher2015-02-201-9/+8
| | | | | | | | | | AsmPrinter. getSubtargetInfo now asserts that the MachineFunction exists. Debug printing of register naming now uses the register info from MCAsmInfo as that's unchanging. llvm-svn: 229978
* Fix build in release mode, -Wunused-variable on this lambda function used ↵Nick Lewycky2015-02-201-0/+1
| | | | | | only in an assert. llvm-svn: 229977
* Fix build in release mode, four cases of -Wunused-variable.Nick Lewycky2015-02-201-0/+5
| | | | llvm-svn: 229976
* Remove carriage returns.Nick Lewycky2015-02-201-5/+5
| | | | llvm-svn: 229975
* AsmPrinter::doFinalization is at the module level and so doesn'tEric Christopher2015-02-201-2/+7
| | | | | | | have access to a target specific subtarget info. Grab the module level MCSubtargetInfo for the JumpInstrTable output stubs. llvm-svn: 229974
* [Orc] Add a new JITSymbol constructor to build a symbol from an existing ↵Lang Hames2015-02-202-11/+37
| | | | | | | | | | | address. This constructor is more efficient for symbols that have already been emitted, since it avoids the construction/execution of a std::function. Update the ObjectLinkingLayer to use this new constructor where possible. llvm-svn: 229973
* [TSan][MIPS] Adding support for MIPS64Mohit K. Bhakkad2015-02-209-59/+159
| | | | | | | | | | | | Patch by Sagar Thakur Reviewers: dvyukov, samsonov, petarj, kcc, dsanders. Subscribers: mohit.bhakkad, Anand.Takale, llvm-commits. Differential Revision: http://reviews.llvm.org/D6291 llvm-svn: 229972
* Remove the MCInstrInfo cached variable as it was only used in aEric Christopher2015-02-203-17/+13
| | | | | | | single place and replace calls to getSubtargetImpl with calls to get the subtarget from the MachineFunction where valid. llvm-svn: 229971
* Fix -Wunused-variable warning in non-asserts build, and optimize a little ↵David Blaikie2015-02-201-3/+3
| | | | | | bit while I'm here. llvm-svn: 229970
* Add self to CREDITS.TXTLarisse Voufo2015-02-201-0/+3
| | | | llvm-svn: 229969
* More on adding sized deallocation functions in libc++: Continuing from ↵Larisse Voufo2015-02-2010-10/+750
| | | | | | r229281, this adds version guards and test cases. llvm-svn: 229968
* LinkerScript: Remove leaks in the parserDavid Majnemer2015-02-202-109/+159
| | | | | | | | | | | LinkerScript AST nodes are never destroyed which means that their std::vector members will never be destroyed. Instead, allocate the operand list itself in the Parser's BumpPtrAllocator. This ensures that the storage will be destroyed along with the nodes when the Parser is destroyed. llvm-svn: 229967
* [PowerPC] Loop Data Prefetching for the BG/QHal Finkel2015-02-205-0/+277
| | | | | | | | | | | | | | | | | | | | | The IBM BG/Q supercomputer's A2 cores have a hardware prefetching unit, the L1P, but it does not prefetch directly into the A2's L1 cache. Instead, it prefetches into its own L1P buffer, and the latency to access that buffer is significantly higher than that to the L1 cache (although smaller than the latency to the L2 cache). As a result, especially when multiple hardware threads are not actively busy, explicitly prefetching data into the L1 cache is advantageous. I've been using this pass out-of-tree for data prefetching on the BG/Q for well over a year, and it has worked quite well. It is enabled by default only for the BG/Q, but can be enabled for other cores as well via a command-line option. Eventually, we might want to add some TTI interfaces and move this into Transforms/Scalar (there is nothing particularly target dependent about it, although only machines like the BG/Q will benefit from its simplistic strategy). llvm-svn: 229966
* PR22435: Correctly implement tiebreaker for reference ordering in functionRichard Smith2015-02-202-159/+69
| | | | | | | template partial ordering rules. This rule applies per pair of types being compared, not per pair of function templates being compared. llvm-svn: 229965
* [x86] Remove the old vector shuffle lowering code and its flag.Chandler Carruth2015-02-202-2967/+22
| | | | | | | | | | | | | | | | | The new shuffle lowering has been the default for some time. I've enabled the new legality testing by default with no really blocking regressions. I've fuzz tested this very heavily (many millions of fuzz test cases have passed at this point). And this cleans up a ton of code. =] Thanks again to the many folks that helped with this transition. There was a lot of work by others that went into the new shuffle lowering to make it really excellent. In case you aren't using a diff algorithm that can handle this: X86ISelLowering.cpp: 22 insertions(+), 2940 deletions(-) llvm-svn: 229964
* [x86] Now that the new vector shuffle legality is enabled and everythingChandler Carruth2015-02-2014-119/+47
| | | | | | | | | is going well, remove the flag and the code for the old legality tests. This is the first step toward removing the entire old vector shuffle lowering. *Much* more code to delete coming up next. llvm-svn: 229963
* Make FileCheck be a common dependency, not an ASan one.Filipe Cabecinhas2015-02-202-5/+7
| | | | | | | | | | | | | | | | | Summary: It still gets picked up by ASan, but it also gets picked up by the other test suites. Otherwise, some test suites (e.g: UBSan) would complain they had no dependencies, and wouldn't run. Reviewers: samsonov, eugenis Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D7740 llvm-svn: 229962
* PECOFF: Fix base relocation for ImageBase.Rui Ueyama2015-02-203-4/+27
| | | | | | | | | | | | | | This is yet another edge case of base relocation for symbols. Absolute symbols are in general not target of base relocation because absolute atom is a way to point to a specific memory location. In r229816, I removed entries for absolute atoms from the base relocation table (so that they won't be fixed by the loader). However, there was one exception -- ImageBase. ImageBase points to the start address of the current image in memory. That needs to be fixed up at load time. This patch is to treat the symbol in a special manner. llvm-svn: 229961
* Bitcode: Stop assuming non-null fieldsDuncan P. N. Exon Smith2015-02-204-16/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When writing the bitcode serialization for the new debug info hierarchy, I assumed two fields would never be null. Drop that assumption, since it's brittle (and crashes the `BitcodeWriter` if wrong), and is a check better left for the verifier anyway. (No need for a bitcode upgrade here, since the new hierarchy is still not in place.) The fields in question are `MDCompileUnit::getFile()` and `MDDerivedType::getBaseType()`, the latter of which isn't null in test/Transforms/Mem2Reg/ConvertDebugInfo2.ll (see !14, a pointer to nothing). While the testcase might have bitrotted, there's no reason for the bitcode format to rely on non-null for metadata operands. This also fixes a bug in `AsmWriter` where if the `file:` is null it isn't emitted (caught by the double-round trip in the testcase I'm adding) -- this is a required field in `LLParser`. I'll circle back to ConvertDebugInfo2. Once the specialized nodes are in place, I'll be trying to turn the debug info verifier back on by default (in the newer module pass form committed r206300) and throwing more logic in there. If the testcase has bitrotted (as opposed to me not understanding the schema correctly) I'll fix it then. llvm-svn: 229960
OpenPOWER on IntegriCloud