summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Convert Out::InterpSection to In::InterpSection.Rui Ueyama2016-11-025-40/+37
| | | | | | Differential Revision: https://reviews.llvm.org/D26225 llvm-svn: 285851
* Reduce number of classes by merging DIHelper with ObjectFile.Rui Ueyama2016-11-023-57/+31
| | | | | | | | | | DIHelper is a class having only one member, and ObjectFile has a unique pointer to a DIHelper. So we can directly have ObjectFile have the member. Differential Revision: https://reviews.llvm.org/D26223 llvm-svn: 285850
* regcall: Implement regcall Calling Conv in clangErich Keane2016-11-0224-37/+441
| | | | | | | | | | This patch implements the register call calling convention, which ensures as many values as possible are passed in registers. CodeGen changes were committed in https://reviews.llvm.org/rL284108. Differential Revision: https://reviews.llvm.org/D25204 llvm-svn: 285849
* [Documentation] Fix Clang-tidy misc-use-after-move and cert-msc50-cpp style ↵Eugene Zelenko2016-11-022-4/+9
| | | | | | and misspelling. llvm-svn: 285848
* Remove KQueue.cppPavel Labath2016-11-024-136/+0
| | | | | | | | | | | | | Summary: This class is unused. Reviewers: clayborg Subscribers: mgorny, modocache, lldb-commits Differential Revision: https://reviews.llvm.org/D26237 llvm-svn: 285847
* [Hexagon] Remove registers coalesced in expand-condsets from live intervalsKrzysztof Parzyszek2016-11-022-0/+52
| | | | llvm-svn: 285846
* Add support for old versions of MacOS to libunwind. Fixes PR22203. Thanks to ↵Marshall Clow2016-11-021-4/+18
| | | | | | Jeremy for the bug report and the patch. llvm-svn: 285845
* [AMDGPU][mc] Improve test of special asm symbols.Artem Tamazov2016-11-021-31/+27
| | | | | | | | Test simplified. Coverage extended. Differential Revision: https://reviews.llvm.org/D26198 llvm-svn: 285844
* Fix crash in PseudoTerminal on Windows.Zachary Turner2016-11-021-6/+9
| | | | | | | Patch by Rudy Pons Differential Revision: https://reviews.llvm.org/D25681 llvm-svn: 285843
* [clang-tidy] Extend misc-use-after-move to support unique_ptr and shared_ptr.Martin Bohme2016-11-023-26/+153
| | | | | | | | | | | | | | Summary: As a unique_ptr or shared_ptr that has been moved from is guaranteed to be null, we only warn if the pointer is dereferenced. Reviewers: hokein, alexfh, aaron.ballman Subscribers: Prazek, cfe-commits Differential Revision: https://reviews.llvm.org/D26041 llvm-svn: 285842
* [lli/COFF] Set the correct alignment for common symbolsDavide Italiano2016-11-023-0/+18
| | | | | | | | | | Otherwise we set it always to zero, which is not correct, and we assert inside alignTo (Assertion failed: Align != 0u && "Align can't be 0."). Differential Revision: https://reviews.llvm.org/D26173 llvm-svn: 285841
* AMDGPU: Cleanup some xfailed testsMatt Arsenault2016-11-023-52/+10
| | | | | | Some of these are already fixed or tested somewhere else. llvm-svn: 285840
* [CMake] Support LLDB_TEST_CLANG in check-lldb target(s)Chris Bieneman2016-11-021-0/+4
| | | | | | This just hooks up the in-tree compiler to be optionally used when running the test suite. llvm-svn: 285839
* Find clang resource directory via *nix-style lookupChris Bieneman2016-11-023-21/+40
| | | | | | | | | | | | | | | | | Summary: This patch allows the Darwin build to fall back to to Posix-style lookups for the clang resource directory if the debugger library isn't inside a framework. The patch also includes a bit of refactoring and cleanup around the *nix resolution of the binary and lib directories to reuse the code instead of duplicating it. With this patch Darwin builds that don't build a framework only have 3 failing tests on my system (TestExec.py). Reviewers: zturner, labath, spyffe, tfiala Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D26170 llvm-svn: 285838
* Fix build due to missing definition.Zachary Turner2016-11-021-1/+1
| | | | llvm-svn: 285837
* Add CodeViewRecordIO for reading and writing.Zachary Turner2016-11-0218-1152/+1190
| | | | | | | | | | | | | | | Using a pattern similar to that of YamlIO, this allows us to have a single codepath for translating codeview records to and from serialized byte streams. The current patch only hooks this up to the reading of CodeView type records. A subsequent patch will hook it up for writing of CodeView type records, and then a third patch will hook up the reading and writing of CodeView symbols. Differential Revision: https://reviews.llvm.org/D26040 llvm-svn: 285836
* AMDGPU: Allow additional implicit operands on MOVRELS instructionsNicolai Haehnle2016-11-022-1/+35
| | | | | | | | | | | | | | | | | | | Summary: The post-RA scheduler occasionally uses additional implicit operands when the vector implicit operand as a whole is killed, but some subregisters are still live because they are directly referenced later. Unfortunately, this seems incredibly subtle to reproduce. Fixes piglit spec/glsl-110/execution/variable-indexing/vs-temp-array-mat2-index-wr.shader_test and others. Reviewers: arsenm, tstellarAMD Subscribers: kzhuravl, wdng, yaxunl, tony-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D25656 llvm-svn: 285835
* Fix some warnings compiling with clang-cl on Windows.Zachary Turner2016-11-022-4/+3
| | | | llvm-svn: 285834
* Change task stealing to always get task from head of victim's deque.Andrey Churbanov2016-11-021-13/+8
| | | | | | Differential Revision: https://reviews.llvm.org/D26187 llvm-svn: 285833
* Fix Clang-tidy readability-redundant-string-cstr warningsMalcolm Parsons2016-11-0213-23/+22
| | | | | | | | | | Reviewers: beanz, lattner, jlebar Subscribers: jholewinski, llvm-commits, mehdi_amini Differential Revision: https://reviews.llvm.org/D26235 llvm-svn: 285832
* Add conditions for PPC to libunwind. Fixes PR22200. Thanks to Jeremy for the ↵Marshall Clow2016-11-021-1/+2
| | | | | | bug report and the patch. llvm-svn: 285831
* [ARM][MC] Cleanup ARM Target Assembly ParserNirav Dave2016-11-024-542/+536
| | | | | | | | | | | | | | Summary: Correctly parse end-of-statement tokens and handle preprocessor end-of-line comments in ARM assembly processor. Reviewers: rnk, majnemer Subscribers: aemerson, rengolin, llvm-commits Differential Revision: https://reviews.llvm.org/D26152 llvm-svn: 285830
* Improve and cleanup comments in DwarfExpression.hAdrian Prantl2016-11-021-15/+14
| | | | llvm-svn: 285829
* BranchRelaxation: Fix computing indirect branch block sizeMatt Arsenault2016-11-022-17/+71
| | | | llvm-svn: 285828
* Simplify control flow in the the DWARF expression compilerAdrian Prantl2016-11-025-69/+107
| | | | | | by refactoring common code into a DwarfExpressionCursor wrapper. llvm-svn: 285827
* Emit DW_OP_piece also if the previous value was a constant.Adrian Prantl2016-11-023-6/+126
| | | | | | This fixes a bug in the DWARF backend. llvm-svn: 285826
* Simplify the test case from r285289.Alex Lorenz2016-11-021-20/+13
| | | | | | | | | This commit simplifies and clarifies the test code that was added in r285289. Suggested by David Blaikie. llvm-svn: 285825
* [ELF] - Allow "-Ttext xxx", "-Tbss xxx", "-Tdata bss" commandline.George Rimar2016-11-022-6/+13
| | | | | | | So patch just defines an alias for -Txxx=YYY forms, this is consistent with ld and should fix PR30814. llvm-svn: 285824
* Add a note that points to the linkage specifier for the C++ linkage errorsAlex Lorenz2016-11-029-11/+35
| | | | | | | | | | | | This commit improves the "must have C++ linkage" error diagnostics that are emitted for C++ declarations like templates and literal operators by adding an additional note that points to the appropriate extern "C" linkage specifier. rdar://19021120 Differential Revision: https://reviews.llvm.org/D26189 llvm-svn: 285823
* Use !operator to test if APInt is zero/non-zero. NFCI.Simon Pilgrim2016-11-021-3/+3
| | | | | | Avoids APInt construction and slower comparisons. llvm-svn: 285822
* [asan] Add more dynamic CRT mode testsReid Kleckner2016-11-0214-47/+78
| | | | | | | | | | | | Only tests using %clang_cl_asan were using the dynamic CRT before this. The unit tests and lit tests using %clangxx_asan were using the static CRT. Many cross-platform tests fail with the dynamic CRT, so I had to add win32-(static|dynamic)-asan lit features. Also deletes some redundant tests in TestCases/Windows that started failing with this switch. llvm-svn: 285821
* [asan] Use the dynamic ASan runtime if -shared-libasan is passedReid Kleckner2016-11-021-1/+2
| | | | | | | | | | -shared-libasan is likely to be used as a link flag if the user is using the GCC-style clang driver. This logic is already tested in clang-cl tests, and the new flag to exercise it will be covered by asan tests. llvm-svn: 285820
* Simplify typedefs. NFC.Rafael Espindola2016-11-021-15/+14
| | | | llvm-svn: 285819
* Implement another part of P0031; adding constexpr to move_iteratorMarshall Clow2016-11-0225-70/+425
| | | | llvm-svn: 285818
* Inline a version of getSectionStringTable into the only use.Rafael Espindola2016-11-021-10/+4
| | | | llvm-svn: 285817
* Pass the section table to getSectionStringTable. NFC.Rafael Espindola2016-11-021-1/+1
| | | | | | This will let us simplify the llvm side. llvm-svn: 285816
* Compute the section table lazily.Rafael Espindola2016-11-021-55/+52
| | | | | | As a consequence this move a bunch of error checking out of the constructor. llvm-svn: 285815
* [mips] Always run the MipsOptimizePICCall pass.Vasileios Kalintiris2016-11-021-8/+1
| | | | | | | | | | | | | Summary: Remove this pass from addMachineSSAOptimization() and register it unconditionally in through addPreRegAlloc(). This pass is required for generating correct PIC calls. Reviewers: sdardis Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D26036 llvm-svn: 285814
* Create the virtual register for the global base in the intersection ofJoerg Sonnenberger2016-11-021-2/+2
| | | | | | | | GPRC and GPRC_NOR0 (or the 64bit equivalent) and not just the latter. GPRC_NOR0 contains ZERO as alternative meaning of r0 and is therefore not a true subclass of GPRC. llvm-svn: 285813
* Inline getSectionStringTableIndex() into only caller. NFC.Rafael Espindola2016-11-021-9/+3
| | | | llvm-svn: 285812
* Don't use getNumSections.Rafael Espindola2016-11-021-3/+4
| | | | | | It is just the size of sections() which we were already calling. llvm-svn: 285811
* Turn on the /bigobj switch for RecursiveASTVisitorTest.cpp; we are now ↵Aaron Ballman2016-11-021-0/+1
| | | | | | bumping up against that limit with MSVC 2015 in Win64 debug build mode. llvm-svn: 285810
* Add a new clang-tidy check for cert-msc50-cpp (and cert-msc30-c) that ↵Aaron Ballman2016-11-029-0/+142
| | | | | | | | corresponds to the CERT C++ secure coding rule: https://www.securecoding.cert.org/confluence/display/cplusplus/MSC50-CPP.+Do+not+use+std%3A%3Arand%28%29+for+generating+pseudorandom+numbers Patch by Benedek Kiss llvm-svn: 285809
* Update for llvm change.Rafael Espindola2016-11-021-3/+3
| | | | llvm-svn: 285808
* Avoid a report_fatal_error in sections().Rafael Espindola2016-11-026-36/+34
| | | | | | | Have it return a ErrorOr<Range> and delete section_begin and section_end. llvm-svn: 285807
* Removing a switch statement that contains a default label, but no case ↵Aaron Ballman2016-11-021-5/+1
| | | | | | labels. Silences an MSVC warning; NFC. llvm-svn: 285806
* Simplify SHF_LINK_ORDER handling. NFC.Rafael Espindola2016-11-021-19/+9
| | | | | | | | | While ARM is the only currently user we support this is a general feature. This avoids a second walk over the sections. llvm-svn: 285805
* getNumSections should return a uintX_t. NFC.Rafael Espindola2016-11-021-4/+3
| | | | llvm-svn: 285804
* Simplify getSection. NFC.Rafael Espindola2016-11-021-4/+3
| | | | llvm-svn: 285803
* Simplify.Joerg Sonnenberger2016-11-021-2/+2
| | | | llvm-svn: 285802
OpenPOWER on IntegriCloud