summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove an overloaded function to simplify.Rui Ueyama2016-11-094-22/+14
| | | | | | | This version of addRegular is almost identical to the other except it lacked "size" parameter. llvm-svn: 286416
* Add isHotBB helper function to ProfileSummaryInfoDehao Chen2016-11-092-0/+24
| | | | | | | | | | | | Summary: This will unify all BB hotness checks. Reviewers: eraman, davidxl Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D26353 llvm-svn: 286415
* Make OutputSectionBase a class instead of class template.Rafael Espindola2016-11-0911-298/+291
| | | | | | | | The disadvantage is that we use uint64_t instad of uint32_t for some value in 32 bit files. The advantage is a substantially simpler code, faster builds and less code duplication. llvm-svn: 286414
* Fix weak symbol linkage in SBStructuredData, update docs.Todd Fiala2016-11-093-32/+33
| | | | | | | | | | | | | | | | | Summary: This change fixes an issue where I was leaking a weakly-linked symbol in the SBAPI. It also updates the docs to call out what I did wrong. Fixes: rdar://28882483 Reviewers: jingham Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D26470 llvm-svn: 286413
* Remove extra whitespaceAdrian Prantl2016-11-091-1/+1
| | | | llvm-svn: 286412
* Relax testcase so it also works on Windows.Adrian Prantl2016-11-091-1/+1
| | | | llvm-svn: 286411
* Preserve assumption cache in loop-rotate.Eli Friedman2016-11-091-0/+4
| | | | | | | | | | | No testcase included because I can't figure out how to reduce it. (It's easy to write a testcase where rotation clones an assume, but that doesn't actually seem to trigger the crash in opt on its own; maybe an issue with the laziness?) Differential Revision: https://reviews.llvm.org/D26434 llvm-svn: 286410
* [Sema][NFC] Reset HasFallthroughStmt when clearing FunctionScopeInfoErik Pilkington2016-11-091-0/+1
| | | | | | Differential revision: https://reviews.llvm.org/D22770 llvm-svn: 286409
* GlobalISel: fix typo. NFCTim Northover2016-11-092-4/+4
| | | | llvm-svn: 286408
* GlobalISel: translate invoke and landingpad instructionsTim Northover2016-11-094-4/+165
| | | | | | | Pretty bare-bones support for exception handling (no weird MSVC stuff, no SjLj etc), but it should get things going. llvm-svn: 286407
* Simplify parseEmulation. NFC.Rui Ueyama2016-11-091-6/+5
| | | | llvm-svn: 286406
* Split OutputSection ctor. NFC.Rui Ueyama2016-11-091-11/+18
| | | | llvm-svn: 286405
* [clang-tidy docs] Minor formatting changes.Alexander Kornienko2016-11-091-12/+13
| | | | llvm-svn: 286404
* Update vectorization debug info unittest.Dehao Chen2016-11-091-11/+11
| | | | | | | | | | | | | | Summary: The change will test the change in r286159. The idea behind the change: Make the dbg location different between loop header and preheader/exit. Originally, dbg location 21 exists in 3 BBs: preheader, header, critical edge (exit). Update the debug location of inside the loop header from !21 to !22 so that it will reflect the correct location. Reviewers: probinson Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D26428 llvm-svn: 286403
* [InstCombine] regenerate checks; NFCSanjay Patel2016-11-091-159/+185
| | | | llvm-svn: 286402
* [ELF][MIPS] Attempt to fix buildbotSimon Atanasyan2016-11-091-1/+1
| | | | llvm-svn: 286401
* Use an artificial debug location for non-virtual thunks.Adrian Prantl2016-11-094-8/+21
| | | | | | | | | Thunks are artificial and have no corresponding source location except for the line number on the DISubprogram, which is marked as artificial. <rdar://problem/11941095> llvm-svn: 286400
* [InstCombine] regenerate checks; NFCSanjay Patel2016-11-091-51/+83
| | | | llvm-svn: 286399
* [ELF][MIPS] Convert .MIPS.abiflags section to synthetic input sectionSimon Atanasyan2016-11-0911-144/+66
| | | | | | | | | | | | | | Previously, we have both input and output section for .MIPS.abiflags. Now we have only one class for .MIPS.abiflags, which is MipsAbiFlagsSection. This class is a synthetic input section. .MIPS.abiflags sections are handled as regular sections until the control reaches Writer. Writer then aggregates all sections whose type is SHT_MIPS_ABIFLAGS to create a single synthesized input section. The synthesized section is then processed normally as if it came from an input file. llvm-svn: 286398
* [ELF][MIPS] Convert .reginfo and .MIPS.options sections to synthetic input ↵Simon Atanasyan2016-11-0917-303/+175
| | | | | | | | | | | | | | | | | | | sections Previously, we have both input and output sections for .reginfo and .MIPS.options. Now for each such sections we have one synthetic input sections: MipsReginfoSection and MipsOptionsSection respectively. Both sections are handled as regular sections until the control reaches Writer. Writer then aggregates all sections whose type is SHT_MIPS_REGINFO or SHT_MIPS_OPTIONS to create a single synthesized input section. In that moment Writer also save GP0 value to the MipsGp0 field of the corresponding ObjectFile. This value required for R_MIPS_GPREL16 and R_MIPS_GPREL32 relocations calculation. Differential revision: https://reviews.llvm.org/D26444 llvm-svn: 286397
* [tools] Unbreak the GCC build (workaround a GCC bug).Davide Italiano2016-11-092-2/+4
| | | | | | | | | ../tools/llvm-extract/llvm-extract.cpp: In function ‘int main(int, char**)’: warning: ISO C++ forbids zero-size array ‘argv’ [-Wpedantic] GCC reference bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61259 llvm-svn: 286396
* [asan/win] Use TerminateProcess when we want to exit abnormallyReid Kleckner2016-11-091-1/+2
| | | | | | | | ExitProcess still runs some code which can lead to ASan interceptors running after CHECK failure. This can lead to deadlock if it CHECK fails again. Avoid that mess by really exiting immediately. llvm-svn: 286395
* Make BitcodeReader::parseIdentificationBlock() robust to EOFMehdi Amini2016-11-091-0/+6
| | | | | | | This method is particular: it iterates at the top-level and does not have an enclosing block. llvm-svn: 286394
* Disable cpio test on Windows again.Rui Ueyama2016-11-091-2/+3
| | | | | | | The last fix is unlikely to solve the issue. Reverting it to the original file. llvm-svn: 286393
* Attempt to fix green dragon bot.Rui Ueyama2016-11-091-3/+2
| | | | llvm-svn: 286392
* [clang-tidy docs] Recommend using add_new_check.py moreAlexander Kornienko2016-11-091-34/+48
| | | | llvm-svn: 286390
* Minor unroll pass refacoring.Evgeny Stupachenko2016-11-093-35/+38
| | | | | | | | | | | | | | | | Summary: Unrolled Loop Size calculations moved to a function. Constant representing number of optimized instructions when "back edge" becomes "fall through" replaced with variable. Some comments added. Reviewers: mzolotukhin Differential Revision: http://reviews.llvm.org/D21719 From: Evgeny Stupachenko <evstupac@gmail.com> llvm-svn: 286389
* [Verifier] clang-format a section; NFCSanjoy Das2016-11-091-6/+4
| | | | | | Suggested in D26438 since I'm touching related code. llvm-svn: 286388
* [RenderScript] Fix reduction argument printingLuke Drummond2016-11-091-0/+4
| | | | | | | | | | | | | | | | When placing function name breakpoints on RenderScript Reduction kernel functions, we were not skipping over the function prologue meaning that inspection of the arguments could be garbled as the function was not finished setting up the stack/registers. In [122fe8f](https://github.com/llvm-mirror/lldb/commit/122fe8f47255ec850155495d10526fccc51f95fb) Aidan added the `SkipPrologue` function that allows us to trivially fix up the kernel's functions' resolved addresses, falling gracefully back to the old behaviour if we don't know how to handle the prologue or can't resolve its size. llvm-svn: 286387
* [SCEV] Refactor out a useful pattern; NFCSanjoy Das2016-11-092-134/+45
| | | | llvm-svn: 286386
* Revert r286384, "X86: Introduce the "relocImm" ComplexPattern, which ↵Peter Collingbourne2016-11-097-47/+60
| | | | | | | | | represents a relocatable immediate." Suspected to be the cause of a sanitizer-windows bot failure: Assertion failed: isImm() && "Wrong MachineOperand accessor", file C:\b\slave\sanitizer-windows\llvm\include\llvm/CodeGen/MachineOperand.h, line 420 llvm-svn: 286385
* X86: Introduce the "relocImm" ComplexPattern, which represents a relocatable ↵Peter Collingbourne2016-11-097-60/+47
| | | | | | | | | | | | | | | immediate. A relocatable immediate is either an immediate operand or an operand that can be relocated by the linker to an immediate, such as a regular symbol in non-PIC code. Start using relocImm for 32-bit and 64-bit MOV instructions, and for operands of type "imm32_su". Remove a number of now-redundant patterns. Differential Revision: https://reviews.llvm.org/D25812 llvm-svn: 286384
* [Hexagon] Silence "sometimes uninitialized" warning in HexagonCopyToCombineKrzysztof Parzyszek2016-11-091-1/+3
| | | | llvm-svn: 286383
* Bitcode: Change the materializer interface to return llvm::Error.Peter Collingbourne2016-11-0919-103/+112
| | | | | | Differential Revision: https://reviews.llvm.org/D26439 llvm-svn: 286382
* Fix grammarPhilipp Stephani2016-11-091-2/+2
| | | | | | "allow" requires a direct object in this case. llvm-svn: 286381
* [Sparc] Unbreak testDouglas Katzman2016-11-091-1/+1
| | | | llvm-svn: 286380
* Make Discarded a InputSection.Rafael Espindola2016-11-093-5/+9
| | | | | | | It was quite confusing that it had SectionKind of Regular, but was not actually a InputSection. llvm-svn: 286379
* [ELF] - Add separate form for -R alias.George Rimar2016-11-091-1/+1
| | | | | | | | | | | | | | | | | | | During link of devel/chrpath (FreeBSD port), found next issue: /usr/bin/ld: error: unclosed comment in a linker script /usr/bin/ld: error: line 1: unknown directive: � /usr/bin/ld: error: �� Problem was not obvious and the reason was that we did not accept the separate form of -R. While invocation line contained it: cc -Wl,-R /usr/local/lib -o prog prog.c CPIO file produced contained /usr/local/lib file. Which looks because of reasons above contained inside the content of whole lib folder, and it then was passed as an input and proccessed as linker script. llvm-svn: 286378
* [Hexagon] Separate Hexagon subreg indices for different register classesKrzysztof Parzyszek2016-11-0925-218/+269
| | | | | | | | | | | For pairs of 32-bit registers: isub_lo, isub_hi. For pairs of vector registers: vsub_lo, vsub_hi. Add generic subreg indices: ps_sub_lo, ps_sub_hi, and a function HexagonRegisterInfo::getHexagonSubRegIndex(RegClass, GenericSubreg) that returns the appropriate subreg index for RegClass. llvm-svn: 286377
* [Sparc] LLONG is not lock-free atomic on v8Douglas Katzman2016-11-093-6/+13
| | | | | | Differential Revision: https://reviews.llvm.org/D26286 llvm-svn: 286376
* Remove TimeValue usage from lldb/TargetPavel Labath2016-11-091-3/+0
| | | | | | It was only used for declaring unused variables. :) llvm-svn: 286374
* Remove TimeValue usage from ObjectContainerBSDArchivePavel Labath2016-11-092-23/+27
| | | | llvm-svn: 286373
* Remove unused TimeValue includePavel Labath2016-11-091-1/+0
| | | | llvm-svn: 286372
* Remove TimeValue usage from lldb/HostPavel Labath2016-11-092-5/+1
| | | | llvm-svn: 286371
* Add a convenience getObj method. NFC.Rafael Espindola2016-11-093-7/+8
| | | | llvm-svn: 286370
* Remove TimeValue usage from lldb/InterpreterPavel Labath2016-11-093-6/+6
| | | | llvm-svn: 286369
* [Hexagon] Eliminate Insert4 pseudo-instruction, use combines insteadKrzysztof Parzyszek2016-11-094-53/+7
| | | | llvm-svn: 286368
* clang-format: [TypeScript] Fix bug in handling of non-null operator.Daniel Jasper2016-11-092-1/+8
| | | | | | | | | | Before: var i = x!-1; After: var i = x! - 1; llvm-svn: 286367
* Remove TimeValue usage from lldb/Core. NFC.Pavel Labath2016-11-095-45/+41
| | | | llvm-svn: 286366
* [AST] Dump dependent scope member expression with its member nameAlex Lorenz2016-11-092-0/+23
| | | | llvm-svn: 286365
OpenPOWER on IntegriCloud