| Commit message (Collapse) | Author | Age | Files | Lines | 
| | 
| 
| 
| 
| 
| 
|  | 
This version of addRegular is almost identical to the other except
it lacked "size" parameter.
llvm-svn: 286416
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Summary: This will unify all BB hotness checks.
Reviewers: eraman, davidxl
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D26353
llvm-svn: 286415
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
|  | 
llvm-svn: 286412
 | 
| | 
| 
| 
|  | 
llvm-svn: 286411
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
| 
| 
|  | 
Differential revision: https://reviews.llvm.org/D22770
llvm-svn: 286409
 | 
| | 
| 
| 
|  | 
llvm-svn: 286408
 | 
| | 
| 
| 
| 
| 
| 
|  | 
Pretty bare-bones support for exception handling (no weird MSVC stuff, no SjLj
etc), but it should get things going.
llvm-svn: 286407
 | 
| | 
| 
| 
|  | 
llvm-svn: 286406
 | 
| | 
| 
| 
|  | 
llvm-svn: 286405
 | 
| | 
| 
| 
|  | 
llvm-svn: 286404
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
|  | 
llvm-svn: 286402
 | 
| | 
| 
| 
|  | 
llvm-svn: 286401
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
|  | 
llvm-svn: 286399
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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/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
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
| 
| 
| 
|  | 
This method is particular: it iterates at the top-level and does
not have an enclosing block.
llvm-svn: 286394
 | 
| | 
| 
| 
| 
| 
| 
|  | 
The last fix is unlikely to solve the issue. Reverting it to the
original file.
llvm-svn: 286393
 | 
| | 
| 
| 
|  | 
llvm-svn: 286392
 | 
| | 
| 
| 
|  | 
llvm-svn: 286390
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
| 
| 
|  | 
Suggested in D26438 since I'm touching related code.
llvm-svn: 286388
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
|  | 
llvm-svn: 286386
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
|  | 
llvm-svn: 286383
 | 
| | 
| 
| 
| 
| 
|  | 
Differential Revision: https://reviews.llvm.org/D26439
llvm-svn: 286382
 | 
| | 
| 
| 
| 
| 
|  | 
"allow" requires a direct object in this case.
llvm-svn: 286381
 | 
| | 
| 
| 
|  | 
llvm-svn: 286380
 | 
| | 
| 
| 
| 
| 
| 
|  | 
It was quite confusing that it had SectionKind of Regular, but was not
actually a InputSection.
llvm-svn: 286379
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
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
 | 
| | 
| 
| 
| 
| 
|  | 
Differential Revision: https://reviews.llvm.org/D26286
llvm-svn: 286376
 | 
| | 
| 
| 
| 
| 
|  | 
It was only used for declaring unused variables. :)
llvm-svn: 286374
 | 
| | 
| 
| 
|  | 
llvm-svn: 286373
 | 
| | 
| 
| 
|  | 
llvm-svn: 286372
 | 
| | 
| 
| 
|  | 
llvm-svn: 286371
 | 
| | 
| 
| 
|  | 
llvm-svn: 286370
 | 
| | 
| 
| 
|  | 
llvm-svn: 286369
 | 
| | 
| 
| 
|  | 
llvm-svn: 286368
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Before:
  var i = x!-1;
After:
  var i = x! - 1;
llvm-svn: 286367
 | 
| | 
| 
| 
|  | 
llvm-svn: 286366
 | 
| | 
| 
| 
|  | 
llvm-svn: 286365
 |