summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix a typo in EmulateInstructioinMIPS64Pavel Labath2015-03-181-1/+1
| | | | llvm-svn: 232620
* Initial Assembly profiler for mips64Bhushan D. Attarde2015-03-1810-2/+633
| | | | | | | | | | | Summary: This is initial implementation of assembly profiler which only scans prologue/epilogue assembly instructions to create CFI instructions. Reviewers: clayborg, jasonmolenda Differential Revision: http://reviews.llvm.org/D7696 llvm-svn: 232619
* Clean up CommandObjectBreakpointNameList: remove duplicated 'protected' ↵Ilia K2015-03-181-1/+0
| | | | | | access modifier llvm-svn: 232618
* llgoi: Fix type identity for imported binary packages.Peter Collingbourne2015-03-183-10/+21
| | | | | | | | | | | | go/loader creates a fresh package map for each source package it imports. In llgoi this caused binary imported packages to be imported anew for every input line, resulting in spurious type errors and panics in go/ssa when encountering previously imported types. Fix this by setting types.Config.Packages to our internal package map. Differential Revision: http://reviews.llvm.org/D8409 llvm-svn: 232617
* Lex: Don't call getIdentifierInfo on annotation tokensDavid Majnemer2015-03-182-1/+9
| | | | | | | | These calls are usually guarded by checks for isAnnotation() but it looks like we missed a spot. This would cause the included test to crash clang. llvm-svn: 232616
* MS ABI: Define _HAS_CHAR16_T_LANGUAGE_SUPPORT when appropriateDavid Majnemer2015-03-182-2/+9
| | | | | | | If we are in MSVC 2015 compatibility mode and C++11 language conformance is enabled, define _HAS_CHAR16_T_LANGUAGE_SUPPORT to 1. llvm-svn: 232615
* Add llgo-go to installation.Peter Collingbourne2015-03-181-3/+5
| | | | llvm-svn: 232614
* [mips] Add itineraries for ext and ins instructions.Kai Nacke2015-03-182-2/+6
| | | | | | | | | | | Currently, there are no itineraries defined for ext and ins instructions. This patch adds these itineraries and uses them in the instruction definitions. Reviewed By: dsanders Differential Revision: http://reviews.llvm.org/D7209 llvm-svn: 232613
* llgoi: Fix importing source packages together with dependent binary packages.Peter Collingbourne2015-03-184-1/+27
| | | | | | | | | | Note that this means that llgoi does not support the case where a package's pkgpath is different from its import path, but I don't think this should actually happen with llgoi. Differential Revision: http://reviews.llvm.org/D8403 llvm-svn: 232612
* MSVC Compat: Permit char16_t, char32_t and _Atomic when targeting > 2013David Majnemer2015-03-183-11/+18
| | | | | | | | We disabled support for _Atomic because the STL had name conflicts, they've been resolved in 2015. Similarly, reenable char16_t and char32_t. llvm-svn: 232611
* [OPENMP] Fix crash on code emitting if errors are found.Alexey Bataev2015-03-184-1/+8
| | | | | | | Codegen for threadprivate variables (and in some other cases) may cause crash of the compiler if some diagnostic is produced later. This happens because some of the autogenerated globals are not removed from InternalVars StringMap when llvm::Module is reset. Differential Revision: http://reviews.llvm.org/D8360 llvm-svn: 232610
* MS ABI: Empty pack expansions had their mangling changed in 2013->2015David Majnemer2015-03-183-4/+15
| | | | | | | | | | We used to support the 2013 mangling and changed it to the more reasonable 2015 mangling. Let's make the mangling conditional on what version of MSVC is targeted. This fixes PR21888. llvm-svn: 232609
* Split comma-separated \param(s). [-Wdocumentation]NAKAMURA Takumi2015-03-181-1/+2
| | | | llvm-svn: 232584
* Make module files passed to a module build via -fmodule-file= available toRichard Smith2015-03-189-10/+104
| | | | | | | | | consumers of that module. Previously, such a file would only be available if the module happened to actually import something from that module. llvm-svn: 232583
* Fix test in release mode. This reapplies r232456, corresponding to r232579.NAKAMURA Takumi2015-03-181-1/+1
| | | | llvm-svn: 232582
* [bpf] fix buildAlexei Starovoitov2015-03-181-1/+1
| | | | | | | | fix BPF backend build broken by r232429 Patch by Brenden Blanco llvm-svn: 232581
* Add testcases for BEXTR.Josh Magee2015-03-181-0/+30
| | | | | | These BEXTR cases are a check for the 64-bit load form and two negative cases where the bitrange is non-contiguous. From a private patch equivalent to r189742/PR17028. llvm-svn: 232580
* Fix the LLVM type used when lowering initializer list reference temporaries ↵Nick Lewycky2015-03-182-2/+38
| | | | | | to global variables. Reapplies r232454 with fix for PR22940. llvm-svn: 232579
* Missed testcase for r232577Krzysztof Parzyszek2015-03-181-0/+160
| | | | llvm-svn: 232578
* Generate bit manipulation instructions on HexagonKrzysztof Parzyszek2015-03-181-0/+149
| | | | llvm-svn: 232577
* [SCEV] Make isImpliedCond smarter.Sanjoy Das2015-03-183-0/+83
| | | | | | | | | | | | | | | | | | Summary: This change teaches isImpliedCond to infer things like "X sgt 0" => "X - 1 sgt -1". The `ConstantRange` class has the logic to do the heavy lifting, this change simply gets ScalarEvolution to exploit that when reasonable. Depends on D8345 Reviewers: atrick Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8346 llvm-svn: 232576
* [ConstantRange] Split makeICmpRegion in two.Sanjoy Das2015-03-186-20/+96
| | | | | | | | | | | | | | | | | | | | Summary: This change splits `makeICmpRegion` into `makeAllowedICmpRegion` and `makeSatisfyingICmpRegion` with slightly different contracts. The first one is useful for determining what values some expression //may// take, given that a certain `icmp` evaluates to true. The second one is useful for determining what values are guaranteed to //satisfy// a given `icmp`. Reviewers: nlewycky Reviewed By: nlewycky Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8345 llvm-svn: 232575
* [sanitizer] add run-time a flag coverage_order_pcs. When true, the PCs are ↵Kostya Serebryany2015-03-185-10/+106
| | | | | | dumped in the order of their appearance llvm-svn: 232573
* DAGCombiner: fold (xor (shl 1, x), -1) -> (rotl ~1, x)David Majnemer2015-03-182-0/+38
| | | | | | | | | | Targets which provide a rotate make it possible to replace a sequence of (XOR (SHL 1, x), -1) with (ROTL ~1, x). This saves an instruction on architectures like X86 and POWER(64). Differential Revision: http://reviews.llvm.org/D8350 llvm-svn: 232572
* Basic: Update clang to reflect changes made to LLVM datalayoutDavid Majnemer2015-03-172-9/+11
| | | | | | | We now give x86-64 COFF targets a different mangling code, update clang to use it. llvm-svn: 232571
* COFF: Let globals with private linkage reside in their own sectionDavid Majnemer2015-03-1710-13/+56
| | | | | | | | | | COFF COMDATs (for selection kinds other than 'select any') require at least one non-section symbol in the symbol table. Satisfy this by morally enhancing the linkage from private to internal. Differential Revision: http://reviews.llvm.org/D8394 llvm-svn: 232570
* Remove unneeded selection functions from HexagonISelDAGToDAGKrzysztof Parzyszek2015-03-171-189/+0
| | | | | | | - SelectSelect, and - SelectTruncate llvm-svn: 232569
* Fix a crash when the size of an 'auto' is needed and its initalizerKaelyn Takata2015-03-172-0/+31
| | | | | | | | contained a typo correction (the auto decl was being marked as dependent unnecessarily, which triggered an assertion in cases where the size of the type is needed). llvm-svn: 232568
* Improve SUMMARY reporting in sanitizers.Alexey Samsonov2015-03-174-17/+17
| | | | | | | | | Make sure SUMMARY is always reported unless print_summary flag is set to false, even if symbolizer is unavailable or report stack trace is empty. If file/line info for PC can't be evaluated, print module name/offset like we do in stack trace. llvm-svn: 232567
* docs: Update LangRef and SourceLevelDebuggingDuncan P. N. Exon Smith2015-03-172-672/+210
| | | | | | | | | | | | | | Cleanup some bitrot in SourceLevelDebugging.rst. - Pull the still-relevant details about individual descriptors into LangRef.rst. Cut a lot of it to avoid over-describing the fields, as the C++ classes and assembly format are mostly self-describing now. If there's anything specific that I shouldn't have cut, let me know and I'll add it back. - Rewrite the remaining sections to refer to the new debug info hierarchy in LangRef.rst. llvm-svn: 232566
* Add cgo dependency to llgo-stage2 and llgoi.Peter Collingbourne2015-03-171-0/+2
| | | | llvm-svn: 232564
* Build fix for building debugserver for ios.Jason Molenda2015-03-172-2/+2
| | | | llvm-svn: 232563
* Fix bug while building FP16 constant vectors for AArch64Pirama Arumuga Nainar2015-03-172-2/+13
| | | | | | | | | | | | | | Summary: Building FP16 constant vectors caused the FP16 data to be bitcast to i64. This patch creates a BITCAST node with the correct value, and adds a test to verify correct handling. Reviewers: mcrosier Reviewed By: mcrosier Subscribers: mcrosier, jmolloy, ab, srhines, llvm-commits, rengolin, aemerson Differential Revision: http://reviews.llvm.org/D8369 llvm-svn: 232562
* Appease AArch64ISelLowering.cpp miscompiled by g++-4.7.2.NAKAMURA Takumi2015-03-171-0/+6
| | | | | | I will revert this when 4.7.3 is ready. llvm-svn: 232561
* Convert CRLF to LF.Zachary Turner2015-03-178-95/+95
| | | | | | | I accidentally let some Windows line endings slip in. This is a good reminder for me to use core.eol=lf. llvm-svn: 232560
* MS ABI: Fix a couple of -Winconsistent-missing-override warningsJustin Bogner2015-03-172-3/+3
| | | | llvm-svn: 232559
* Add the option -no-symbolic-operands to llvm-objdump used with -macho andKevin Enderby2015-03-172-3/+16
| | | | | | -disassemble to not symbolic operands when disassembling. llvm-svn: 232558
* XformToShuffleWithZero - Added clearer early outs and general tidy up. NFCISimon Pilgrim2015-03-171-31/+38
| | | | llvm-svn: 232557
* Imply linker arguments from '-fveclib' option.Michael Zolotukhin2015-03-172-0/+19
| | | | | | | | | | Summary: As discussed in D8097, we should provide corresponding linking flags when 'fveclib' is specified. Reviewers: hfinkel Differential Revision: http://reviews.llvm.org/D8362 llvm-svn: 232556
* [sanitizer] change the format of coverage dump: instead of always dumping ↵Kostya Serebryany2015-03-173-39/+49
| | | | | | 32-bit offsets dump 32-bit offsets on 32-bit arch and 64-bit offsets on 64-bit arch. Also add the 'bits' parameter to sancov.py. This is a user-visible interface change. llvm-svn: 232555
* MS ABI: Build C++ default argument exprs for exported template classesReid Kleckner2015-03-176-5/+21
| | | | | | This was an omission from r232229. llvm-svn: 232554
* Selection DAG preprocessing on HexagonKrzysztof Parzyszek2015-03-171-2/+52
| | | | | | Simplify: (or (select c x 0) z) -> (select c (or x z) z) (or (select c 0 y) z) -> (select c z (or y z)) llvm-svn: 232553
* Enable TestDataFormatterStdIterator with GCC.Siva Chandra2015-03-171-1/+0
| | | | | | | | | | | | | | | | | Summary: This test now passes for Clang and GCC. I do not know why it was disabled for GCC with link to a bug which should not have had an effect on this test. Test Plan: dotest.py -C gcc -p TestDataFormatterStdIterator Reviewers: vharron Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8396 llvm-svn: 232552
* Remove StringRef->std::string->StringRef conversions.Yaron Keren2015-03-171-3/+3
| | | | | | | | As StringInit::get() accepts StringRef there is no need to construct a std::string out of the StringRef input and then construct a new StringRef from the std::string. llvm-svn: 232551
* DebugInfo: Drop fake DW_TAG_expressionDuncan P. N. Exon Smith2015-03-174-7/+3
| | | | | | | | | | | | | Break MDExpression off of DebugNode (inherit directly from `MDNode`) and drop the fake `DW_TAG_expression` tag in the process. AFAICT, there's no real functionality change here. The tag was originally used by `DIDescriptor::isExpression()` to discriminate between `MDNode`s, but in the new hierarchy we don't need that. Fixes PR22780. llvm-svn: 232550
* Emit the offset directly instead of creating a dummy expression.Rafael Espindola2015-03-172-26/+6
| | | | | | | | We were creating an expression of the form (S+C)-S which is just C. Patch by Frédéric Riss. I just added the testcase. llvm-svn: 232549
* Implement formatter for std::vector<bool, ...> of libstdc++ in Python.Siva Chandra2015-03-174-273/+126
| | | | | | | | | | | | | | | | | | | Summary: The existing formatter in C++ has been removed as it was not being used. The associated test TestDataFormatterStdVBool.py has been enabled for both Clang and GCC on Linux. Test Plan: dotest.py -p TestDataFormatterStdVBool Reviewers: vharron, clayborg Reviewed By: clayborg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8390 llvm-svn: 232548
* Add the option, -no-leading-addr llvm-objdump used with -macho andKevin Enderby2015-03-173-20/+57
| | | | | | -disassemble or -section to not print the leading addresses on each line. llvm-svn: 232547
* [docs] Fix some malformed links.Sean Silva2015-03-172-2/+2
| | | | | | Patch by Stanislav Manilov! llvm-svn: 232546
* Revert "COFF: Let globals with private linkage reside in their own section"David Majnemer2015-03-176-42/+3
| | | | | | This reverts commit r232539. This was committed accidently. llvm-svn: 232543
OpenPOWER on IntegriCloud