platform/upstream/llvm.git
9 years agollvm-ar: Move archive writer to Object.
Peter Collingbourne [Mon, 8 Jun 2015 02:32:01 +0000 (02:32 +0000)]
llvm-ar: Move archive writer to Object.

No functional change intended, other than some minor changes to certain
diagnostics.

Differential Revision: http://reviews.llvm.org/D10296

llvm-svn: 239278

9 years ago[TableGen] Remove unnecessary default constructed SMLoc that just existed to return...
Craig Topper [Mon, 8 Jun 2015 01:35:45 +0000 (01:35 +0000)]
[TableGen] Remove unnecessary default constructed SMLoc that just existed to return. Instead just call the default constructor in the return.

llvm-svn: 239277

9 years ago[TableGen] Use range-based for loop. NFC
Craig Topper [Mon, 8 Jun 2015 01:35:43 +0000 (01:35 +0000)]
[TableGen] Use range-based for loop. NFC

llvm-svn: 239276

9 years ago[TableGen] Remove unnecessary extern declaration that's already in an included header...
Craig Topper [Mon, 8 Jun 2015 01:35:42 +0000 (01:35 +0000)]
[TableGen] Remove unnecessary extern declaration that's already in an included header file.

llvm-svn: 239275

9 years ago[TableGen] Use the SMLoc header file instead of SourceMgr header file in a couple...
Craig Topper [Mon, 8 Jun 2015 01:35:40 +0000 (01:35 +0000)]
[TableGen] Use the SMLoc header file instead of SourceMgr header file in a couple places. NFC

llvm-svn: 239274

9 years ago[Driver] Inject the MSVC compatibility version into the triple
David Majnemer [Mon, 8 Jun 2015 00:22:46 +0000 (00:22 +0000)]
[Driver] Inject the MSVC compatibility version into the triple

Encoding the version into the triple will allow us to communicate to
LLVM what functions it can expect to depend upon in the implementation.

llvm-svn: 239273

9 years agoCOFF: Fix memory leak.
Rui Ueyama [Mon, 8 Jun 2015 00:09:25 +0000 (00:09 +0000)]
COFF: Fix memory leak.

llvm-svn: 239272

9 years agoCOFF: Fix typo.
Rui Ueyama [Sun, 7 Jun 2015 23:10:50 +0000 (23:10 +0000)]
COFF: Fix typo.

This change doesn't change its functionality since the value
passed here is converted to uint16_t immediately.

llvm-svn: 239271

9 years agoCOFF: Simplify. NFC.
Rui Ueyama [Sun, 7 Jun 2015 23:02:50 +0000 (23:02 +0000)]
COFF: Simplify. NFC.

llvm-svn: 239270

9 years agoCOFF: Use llvm::cl::ExpandReponseFiles.
Rui Ueyama [Sun, 7 Jun 2015 23:00:29 +0000 (23:00 +0000)]
COFF: Use llvm::cl::ExpandReponseFiles.

llvm-svn: 239269

9 years agoCOFF: Add a glossary to README.
Rui Ueyama [Sun, 7 Jun 2015 22:42:52 +0000 (22:42 +0000)]
COFF: Add a glossary to README.

llvm-svn: 239268

9 years agoCOFF: Use named constants instead of sizeof().
Rui Ueyama [Sun, 7 Jun 2015 22:00:28 +0000 (22:00 +0000)]
COFF: Use named constants instead of sizeof().

llvm-svn: 239267

9 years agoCOFF: Remove dead code.
Rui Ueyama [Sun, 7 Jun 2015 21:58:34 +0000 (21:58 +0000)]
COFF: Remove dead code.

/include'ed symbols are already added to Config->GCRoots.
Marking symbols twice doesn't have any effect.

llvm-svn: 239266

9 years ago[objdump] Moving PrintImmHex out of MachODump and in to llvm-objdump and setting...
Colin LeMahieu [Sun, 7 Jun 2015 21:07:17 +0000 (21:07 +0000)]
[objdump] Moving PrintImmHex out of MachODump and in to llvm-objdump and setting instprinter appropriately.

llvm-svn: 239265

9 years ago[X86] Added tzcnt vector tests.
Simon Pilgrim [Sun, 7 Jun 2015 21:01:34 +0000 (21:01 +0000)]
[X86] Added tzcnt vector tests.

llvm-svn: 239264

9 years ago[MC] Function naming NFC.
Colin LeMahieu [Sun, 7 Jun 2015 20:29:37 +0000 (20:29 +0000)]
[MC] Function naming NFC.

llvm-svn: 239263

9 years agoSeparateConstOffsetFromGEP: Pass address space to isLegalAddressingMode
Matt Arsenault [Sun, 7 Jun 2015 20:17:44 +0000 (20:17 +0000)]
SeparateConstOffsetFromGEP: Pass address space to isLegalAddressingMode

llvm-svn: 239262

9 years agoMake NaryReassociate pass the address space to isLegalAddressingMode
Matt Arsenault [Sun, 7 Jun 2015 20:17:42 +0000 (20:17 +0000)]
Make NaryReassociate pass the address space to isLegalAddressingMode

No test since the kinds of transforms this prevents seem to not really
be relevant for SI's different addressing modes.

llvm-svn: 239261

9 years agoAdd isLegalAddressingMode address space argument to TTI
Matt Arsenault [Sun, 7 Jun 2015 20:12:03 +0000 (20:12 +0000)]
Add isLegalAddressingMode address space argument to TTI

Update to match the TLI version, and remove the TLI version's
default argument.

llvm-svn: 239260

9 years ago[cmake] [OCaml] Make ocamldoc targets depend on output files
Peter Zotov [Sun, 7 Jun 2015 19:22:22 +0000 (19:22 +0000)]
[cmake] [OCaml] Make ocamldoc targets depend on output files

OCaml doc builds fail without .cmi files, and .cmi files are collected
in ocaml_outputs. Therefore, make doc targets depend on ocaml_outputs as
well.

Fixes: https://llvm.org/bugs/show_bug.cgi?id=23777

Patch by Michał Górny <mgorny@gentoo.org>

llvm-svn: 239259

9 years agoUpdate dosep to display dotest command invoked on failure.
Chaoren Lin [Sun, 7 Jun 2015 18:50:40 +0000 (18:50 +0000)]
Update dosep to display dotest command invoked on failure.

llvm-svn: 239258

9 years ago[X86] Added BitScanForward/BitScanReverse memory folding + tests
Simon Pilgrim [Sun, 7 Jun 2015 18:34:25 +0000 (18:34 +0000)]
[X86] Added BitScanForward/BitScanReverse memory folding + tests

llvm-svn: 239257

9 years agoRemove global std::string. NFC.
Benjamin Kramer [Sun, 7 Jun 2015 16:36:28 +0000 (16:36 +0000)]
Remove global std::string. NFC.

llvm-svn: 239254

9 years agoFixed line endings
Simon Pilgrim [Sun, 7 Jun 2015 16:09:48 +0000 (16:09 +0000)]
Fixed line endings

llvm-svn: 239253

9 years ago[DAGCombiner] Added CTPOP vector constant folding support.
Simon Pilgrim [Sun, 7 Jun 2015 15:37:14 +0000 (15:37 +0000)]
[DAGCombiner] Added CTPOP vector constant folding support.

Added tests to the existing SSE/AVX test files.

llvm-svn: 239252

9 years ago[AsmWriter] Rewrite module asm printing using StringRef::split.
Benjamin Kramer [Sun, 7 Jun 2015 13:59:33 +0000 (13:59 +0000)]
[AsmWriter] Rewrite module asm printing using StringRef::split.

No change in output intended.

llvm-svn: 239251

9 years agoFix doxygen comments. NFC
Filipe Cabecinhas [Sun, 7 Jun 2015 06:40:24 +0000 (06:40 +0000)]
Fix doxygen comments. NFC

llvm-svn: 239250

9 years ago[TableGen] Remove unnecessary include. NFC.
Craig Topper [Sun, 7 Jun 2015 06:01:22 +0000 (06:01 +0000)]
[TableGen] Remove unnecessary include. NFC.

llvm-svn: 239249

9 years ago[TableGen] Remove unnecessary forward declaration. NFC
Craig Topper [Sun, 7 Jun 2015 06:01:19 +0000 (06:01 +0000)]
[TableGen] Remove unnecessary forward declaration. NFC

llvm-svn: 239248

9 years ago[TableGen] Write one of the Record constructors in terms of the other constructor...
Craig Topper [Sun, 7 Jun 2015 06:01:17 +0000 (06:01 +0000)]
[TableGen] Write one of the Record constructors in terms of the other constructor to reduce code duplication. NFC

llvm-svn: 239247

9 years ago[TableGen] Remove unused function. NFC
Craig Topper [Sun, 7 Jun 2015 06:01:15 +0000 (06:01 +0000)]
[TableGen] Remove unused function. NFC

llvm-svn: 239246

9 years ago[TableGen] Use 'isa' to check if something is an UnsetInit rather than getting the...
Craig Topper [Sun, 7 Jun 2015 06:01:13 +0000 (06:01 +0000)]
[TableGen] Use 'isa' to check if something is an UnsetInit rather than getting the UnsetInit singleton and comparing pointers. NFC.

llvm-svn: 239245

9 years agoCOFF: Make local variables local.
Rui Ueyama [Sun, 7 Jun 2015 03:55:28 +0000 (03:55 +0000)]
COFF: Make local variables local.

llvm-svn: 239244

9 years agoCOFF: Add /opt:noref option.
Rui Ueyama [Sun, 7 Jun 2015 03:17:42 +0000 (03:17 +0000)]
COFF: Add /opt:noref option.

This option disables dead-stripping.

llvm-svn: 239243

9 years agoCOFF: Support resonpse files.
Rui Ueyama [Sun, 7 Jun 2015 02:55:19 +0000 (02:55 +0000)]
COFF: Support resonpse files.

llvm-svn: 239242

9 years ago[Object/ELF] Don't confuse isDefined() and isCommon.
Davide Italiano [Sun, 7 Jun 2015 02:45:19 +0000 (02:45 +0000)]
[Object/ELF] Don't confuse isDefined() and isCommon.

Reported by Rafael Espindola. Pointy-hat to me.

llvm-svn: 239241

9 years agoTeaching llvm-mc how to understand the defsym command line option. This allows integ...
Colin LeMahieu [Sun, 7 Jun 2015 01:46:24 +0000 (01:46 +0000)]
Teaching llvm-mc how to understand the defsym command line option.  This allows integer-constant symbols to be defined on the command line and used during assembly.

llvm-svn: 239240

9 years agoCOFF: Move Windows-specific code from Chunk.{cpp,h} to DLL.{cpp,h}.
Rui Ueyama [Sun, 7 Jun 2015 01:15:04 +0000 (01:15 +0000)]
COFF: Move Windows-specific code from Chunk.{cpp,h} to DLL.{cpp,h}.

llvm-svn: 239239

9 years agoCOFF: Fix default output file path.
Rui Ueyama [Sun, 7 Jun 2015 00:20:32 +0000 (00:20 +0000)]
COFF: Fix default output file path.

Default output filename is the same as the first object file's
name with its extension replaced with ".exe".

llvm-svn: 239238

9 years agoCOFF: Add comments and move main function to the top. NFC.
Rui Ueyama [Sat, 6 Jun 2015 23:32:08 +0000 (23:32 +0000)]
COFF: Add comments and move main function to the top. NFC.

llvm-svn: 239237

9 years agoCOFF: Rename writeHeader -> writeHeaderTo.
Rui Ueyama [Sat, 6 Jun 2015 23:19:38 +0000 (23:19 +0000)]
COFF: Rename writeHeader -> writeHeaderTo.

Chunk has writeTo function which takes uint8_t *Buf.
writeHeaderTo feels more consistent with that because this member
function also takes uint8_t *Buf.

llvm-svn: 239236

9 years agoCOFF: Inline a constant that is used only once.
Rui Ueyama [Sat, 6 Jun 2015 23:19:36 +0000 (23:19 +0000)]
COFF: Inline a constant that is used only once.

llvm-svn: 239235

9 years agoRemove redundant `using namespace`.
Rui Ueyama [Sat, 6 Jun 2015 23:11:39 +0000 (23:11 +0000)]
Remove redundant `using namespace`.

llvm-svn: 239234

9 years agoCOFF: Add .didat section.
Rui Ueyama [Sat, 6 Jun 2015 23:07:01 +0000 (23:07 +0000)]
COFF: Add .didat section.

llvm-svn: 239233

9 years agoCOFF: Update comments.
Rui Ueyama [Sat, 6 Jun 2015 22:56:55 +0000 (22:56 +0000)]
COFF: Update comments.

llvm-svn: 239232

9 years ago[Object/ELF] Provide helpers for symbol types.
Davide Italiano [Sat, 6 Jun 2015 22:54:09 +0000 (22:54 +0000)]
[Object/ELF] Provide helpers for symbol types.

These were, originally, in a different form in lld.
They can be reused for other tools, e.g. llvm-readobj.

llvm-svn: 239231

9 years agoCOFF: Move .idata constructor from Writer to Chunk.
Rui Ueyama [Sat, 6 Jun 2015 22:46:15 +0000 (22:46 +0000)]
COFF: Move .idata constructor from Writer to Chunk.

Previously, half of the constructor for .idata contents was in Chunks.cpp
and the rest was in Writer.cpp. This patch moves the latter to Chunks.cpp.
Now IdataContents class manages everything for .idata section.

llvm-svn: 239230

9 years ago[InstCombine, InstSimplify] Move xforms from Combine to Simplify
David Majnemer [Sat, 6 Jun 2015 22:40:21 +0000 (22:40 +0000)]
[InstCombine, InstSimplify] Move xforms from Combine to Simplify

There were several SelectInst combines that always returned an existing
instruction instead of modifying an old one or creating a new one.
These are prime candidates for moving to InstSimplify.

llvm-svn: 239229

9 years agoUse early return idiom. NFC
Filipe Cabecinhas [Sat, 6 Jun 2015 20:44:53 +0000 (20:44 +0000)]
Use early return idiom. NFC

llvm-svn: 239228

9 years ago[MC] Common symbols weren't being checked for redeclaration which allowed an assembly...
Colin LeMahieu [Sat, 6 Jun 2015 20:12:40 +0000 (20:12 +0000)]
[MC] Common symbols weren't being checked for redeclaration which allowed an assembly file to generate an assertion in setCommon(): !isCommon().  This change allows redeclaration as long as the size and alignment match exactly, otherwise report a fatal error.

llvm-svn: 239227

9 years ago[Mips] Factor out some bit manipulation code into separate routines
Simon Atanasyan [Sat, 6 Jun 2015 17:26:35 +0000 (17:26 +0000)]
[Mips] Factor out some bit manipulation code into separate routines

No functional changes.

llvm-svn: 239226

9 years ago[Mips] Check symbol alignment for some MIPS relocations.
Simon Atanasyan [Sat, 6 Jun 2015 17:26:28 +0000 (17:26 +0000)]
[Mips] Check symbol alignment for some MIPS relocations.

llvm-svn: 239225

9 years ago[Mips] Perform an overflow checking for relocations results
Simon Atanasyan [Sat, 6 Jun 2015 17:26:18 +0000 (17:26 +0000)]
[Mips] Perform an overflow checking for relocations results

llvm-svn: 239224

9 years ago[Mips] Rearrange relocation related cases in the `switch` operator
Simon Atanasyan [Sat, 6 Jun 2015 17:26:09 +0000 (17:26 +0000)]
[Mips] Rearrange relocation related cases in the `switch` operator

No functional changes.

llvm-svn: 239223

9 years ago[Mips] Use signed/unsigned types in relocation calculations consistently
Simon Atanasyan [Sat, 6 Jun 2015 17:26:04 +0000 (17:26 +0000)]
[Mips] Use signed/unsigned types in relocation calculations consistently

No functional changes.

llvm-svn: 239222

9 years ago[Mips] Handle all grouped relocations in a uniform way
Simon Atanasyan [Sat, 6 Jun 2015 17:25:58 +0000 (17:25 +0000)]
[Mips] Handle all grouped relocations in a uniform way

No functional changes.

llvm-svn: 239221

9 years agoUse skipIf instead of skipUnless in TestTerminal for better readability.
Chaoren Lin [Sat, 6 Jun 2015 14:51:34 +0000 (14:51 +0000)]
Use skipIf instead of skipUnless in TestTerminal for better readability.

llvm-svn: 239220

9 years agoAdd NVIDIA vprintf printing to RuntimeDebugBuilder
Tobias Grosser [Sat, 6 Jun 2015 08:43:22 +0000 (08:43 +0000)]
Add NVIDIA vprintf printing to RuntimeDebugBuilder

llvm-svn: 239219

9 years ago[LoopUnroll] Fix truncation bug in canUnrollCompletely.
Sanjoy Das [Sat, 6 Jun 2015 05:24:10 +0000 (05:24 +0000)]
[LoopUnroll] Fix truncation bug in canUnrollCompletely.

Summary:
canUnrollCompletely takes `unsigned` values for `UnrolledCost` and
`RolledDynamicCost` but is passed in `uint64_t`s that are silently
truncated.  Because of this, when `UnrolledSize` is a large integer
that has a small remainder with UINT32_MAX, LLVM tries to completely
unroll loops with high trip counts.

Reviewers: mzolotukhin, chandlerc

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D10293

llvm-svn: 239218

9 years ago[CVP] Don't assume Constants of type i1 can be known to be true or false
David Majnemer [Sat, 6 Jun 2015 04:56:51 +0000 (04:56 +0000)]
[CVP] Don't assume Constants of type i1 can be known to be true or false

CVP wants to analyze the condition operand of a select along an edge.
It succeeds in getting back a Constant but not a ConstantInt.  Instead,
it gets a ConstantExpr.  It then assumes that the Constant must be equal
to false because it isn't equal to true.

Instead, perform an additional comparison.

This fixes PR23752.

llvm-svn: 239217

9 years agoCOFF: Merge Chunk::applyRelocations with Chunk::writeTo.
Rui Ueyama [Sat, 6 Jun 2015 04:07:39 +0000 (04:07 +0000)]
COFF: Merge Chunk::applyRelocations with Chunk::writeTo.

In this design, Chunk is the only thing that knows how to write
its contents to output file as well as how to apply relocations
there. The writer shouldn't know about the details.

llvm-svn: 239216

9 years ago[InstCombine] Don't miscompile select to poison
David Majnemer [Sat, 6 Jun 2015 02:30:43 +0000 (02:30 +0000)]
[InstCombine] Don't miscompile select to poison

If we have (select a, b, c), it is sometimes valid to simplify this to a
single select operand.  However, doing so is only valid if the
computation doesn't inject poison into the computation.

It might be helpful to consider the following example:
  (select (icmp ne %i, INT_MAX), (add nsw %i, 1), INT_MIN)

The select is equivalent to (add %i, 1) but not (add nsw %i, 1).

Self hosting on x86_64 revealed that this occurs very, very rarely so
bailing out is hopefully pretty reasonable.

llvm-svn: 239215

9 years agoHandle 16 bit PC relative relocations.
Rafael Espindola [Sat, 6 Jun 2015 02:29:56 +0000 (02:29 +0000)]
Handle 16 bit PC relative relocations.

Fixes pr23771.

llvm-svn: 239214

9 years agoclang-cl: Implement /GL in terms of -flto.
Peter Collingbourne [Sat, 6 Jun 2015 02:09:34 +0000 (02:09 +0000)]
clang-cl: Implement /GL in terms of -flto.

No documentation yet; the linker needs more work.

Differential Revision: http://reviews.llvm.org/D10270

llvm-svn: 239213

9 years agoCOFF: Read linker directives from bitcode files.
Peter Collingbourne [Sat, 6 Jun 2015 02:00:45 +0000 (02:00 +0000)]
COFF: Read linker directives from bitcode files.

Differential Revision: http://reviews.llvm.org/D10285

llvm-svn: 239212

9 years agoTargetParser: Fix comments in enum(s) introduced in r239150. [-Wdocumentation]
NAKAMURA Takumi [Sat, 6 Jun 2015 01:41:35 +0000 (01:41 +0000)]
TargetParser: Fix comments in enum(s) introduced in r239150. [-Wdocumentation]

llvm-svn: 239211

9 years ago[TableGen] Change OpInit::getNumOperands and getOperand to use unsigned integers...
Craig Topper [Sat, 6 Jun 2015 01:34:04 +0000 (01:34 +0000)]
[TableGen] Change OpInit::getNumOperands and getOperand to use unsigned integers. NFC

llvm-svn: 239210

9 years ago[TableGen] Remove trailing whitespace, add space between 'if' and paren, other format...
Craig Topper [Sat, 6 Jun 2015 01:34:01 +0000 (01:34 +0000)]
[TableGen] Remove trailing whitespace, add space between 'if' and paren, other formatting fixes. NFC

llvm-svn: 239209

9 years ago[TableGen] Remove unnecessary temporary. NFC
Craig Topper [Sat, 6 Jun 2015 01:34:00 +0000 (01:34 +0000)]
[TableGen] Remove unnecessary temporary. NFC

llvm-svn: 239208

9 years ago[TableGen] Fold variable declaration/initialization into if condition for a couple...
Craig Topper [Sat, 6 Jun 2015 01:33:58 +0000 (01:33 +0000)]
[TableGen] Fold variable declaration/initialization into if condition for a couple short lived variables. NFC

llvm-svn: 239207

9 years ago[TableGen] Remove unnecessary outer 'if' and merge it's conditions into the inner...
Craig Topper [Sat, 6 Jun 2015 01:33:55 +0000 (01:33 +0000)]
[TableGen] Remove unnecessary outer 'if' and merge it's conditions into the inner 'if's. NFC

llvm-svn: 239206

9 years ago[TableGen] Fold variable declarations with their assignments. NFC
Craig Topper [Sat, 6 Jun 2015 00:44:45 +0000 (00:44 +0000)]
[TableGen] Fold variable declarations with their assignments. NFC

llvm-svn: 239205

9 years ago[TableGen] Correct the documentation for 'foreach' in the Language Intro.
Craig Topper [Sat, 6 Jun 2015 00:44:42 +0000 (00:44 +0000)]
[TableGen] Correct the documentation for 'foreach' in the Language Intro.

llvm-svn: 239204

9 years agoFix TestAttachDenied and TestChangeProcessGroup for remote Windows to Android.
Chaoren Lin [Sat, 6 Jun 2015 00:25:50 +0000 (00:25 +0000)]
Fix TestAttachDenied and TestChangeProcessGroup for remote Windows to Android.

Summary: Updated `append_to_remote_wd` to work for both remote and local.

Reviewers: clayborg, ovyalov

Reviewed By: ovyalov

Subscribers: tberghammer, lldb-commits

Differential Revision: http://reviews.llvm.org/D10288

llvm-svn: 239203

9 years agoUpdate TestGdbRemoteAbort and TestGdbRemoteSegFault to use `get_signal_number`.
Chaoren Lin [Sat, 6 Jun 2015 00:19:01 +0000 (00:19 +0000)]
Update TestGdbRemoteAbort and TestGdbRemoteSegFault to use `get_signal_number`.

Reviewers: clayborg, ovyalov

Reviewed By: ovyalov

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D10286

llvm-svn: 239201

9 years ago[dsymutil] Fix misspelled CHECK line.
Frederic Riss [Fri, 5 Jun 2015 23:46:18 +0000 (23:46 +0000)]
[dsymutil] Fix misspelled CHECK line.

llvm-svn: 239200

9 years agoRemove unused editline includes
Pavel Labath [Fri, 5 Jun 2015 23:14:14 +0000 (23:14 +0000)]
Remove unused editline includes

LLDB included editline in a couple of places, not respecting LLDB_DISABLE_LIBEDIT. As far as I can tell, these includes are not used, so I am removing them.

llvm-svn: 239199

9 years ago[dsymutil] Add support for linking the debug_frame section.
Frederic Riss [Fri, 5 Jun 2015 23:06:11 +0000 (23:06 +0000)]
[dsymutil] Add support for linking the debug_frame section.

Linking the debug frame section is actually very easy as we just have to
patch the start address in the FDE header and then copy the rest of the
FDE without even looking at it. The only small complexity comes from the
handling of the CIEs that we should unique across object file. This is
also really easy by using a StringMap keyed on the raw contents of the
CIE.

llvm-svn: 239198

9 years agoMove a test from static-assert.cpp to DeclPrinterTest
David Majnemer [Fri, 5 Jun 2015 22:40:53 +0000 (22:40 +0000)]
Move a test from static-assert.cpp to DeclPrinterTest

It's better not to rely on the diagnostics engine to pretty print the
argument to decltype.  Instead, exercise the functionality in
DeclPrinterTest.

llvm-svn: 239197

9 years agoFix PR#23767. Add tests for iterator invalidation for deque::erase/pop_front/pop_back
Marshall Clow [Fri, 5 Jun 2015 22:34:19 +0000 (22:34 +0000)]
Fix PR#23767. Add tests for iterator invalidation for deque::erase/pop_front/pop_back

llvm-svn: 239196

9 years agoFix TestNamespace and TestThreadJump for remote Windows to Android.
Chaoren Lin [Fri, 5 Jun 2015 22:03:19 +0000 (22:03 +0000)]
Fix TestNamespace and TestThreadJump for remote Windows to Android.

Summary:
Update DYLDRendezvous and SOEntry to use FileSpecs instead of storing paths as
strings, which caused incorrect comparison results due to denormalization.

Reviewers: clayborg, vharron, ovyalov

Reviewed By: ovyalov

Subscribers: jwolfe, emaste, tberghammer, lldb-commits

Differential Revision: http://reviews.llvm.org/D10267

llvm-svn: 239195

9 years agoFix typo of function name.
Eric Christopher [Fri, 5 Jun 2015 22:03:01 +0000 (22:03 +0000)]
Fix typo of function name.

llvm-svn: 239194

9 years agoRename the single non-style conformant function in TargetCodeGenInfo
Eric Christopher [Fri, 5 Jun 2015 22:03:00 +0000 (22:03 +0000)]
Rename the single non-style conformant function in TargetCodeGenInfo
and update all callers.

llvm-svn: 239193

9 years agoMove the code in TargetPassConfig::addPass that inserts machine printer pass to
Akira Hatanaka [Fri, 5 Jun 2015 21:58:14 +0000 (21:58 +0000)]
Move the code in TargetPassConfig::addPass that inserts machine printer pass to
the overloaded version of addPass which takes Pass*.

This change enables inserting the machine printer pass when the overloaded
version of addPass that takes Pass* is called to add a pass, instead of the
one which takes AnalysisID. I need this to prevent make-check tests from
failing when I commit another patch later.

llvm-svn: 239192

9 years ago[dsymutil] Rename a variable to appease some bots.
Frederic Riss [Fri, 5 Jun 2015 21:21:57 +0000 (21:21 +0000)]
[dsymutil] Rename a variable to appease some bots.

Anyway having the type and the name of the member being the same
thing wasn't the wisest of the choices.

llvm-svn: 239190

9 years ago[dsymutil] Have the YAML deserialization rewrite the object address of symbols.
Frederic Riss [Fri, 5 Jun 2015 21:12:07 +0000 (21:12 +0000)]
[dsymutil] Have the YAML deserialization rewrite the object address of symbols.

The main use of the YAML debug map format is for testing inside LLVM. If we have IR
files in the tests used to generate object files, then we obviously don't know the
addresses of the symbols inside the object files beforehand.

This change lets the YAML import lookup the addresses in the object files and rewrite
them. This will allow to have test that really don't need any binary input.

llvm-svn: 239189

9 years agoUnique file names for TestStarted and TestFinished.
Chaoren Lin [Fri, 5 Jun 2015 21:08:24 +0000 (21:08 +0000)]
Unique file names for TestStarted and TestFinished.

Summary: This fixes the issue of multiple test suites opening the same file for writing.

Reviewers: clayborg, zturner

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D10284

llvm-svn: 239188

9 years ago[ASan] Bump maximum allowed malloc() size in ASan allocator to 1Tb.
Alexey Samsonov [Fri, 5 Jun 2015 20:50:02 +0000 (20:50 +0000)]
[ASan] Bump maximum allowed malloc() size in ASan allocator to 1Tb.

1Tb of RAM ought to be enough for anybody.

llvm-svn: 239187

9 years ago[dsymutil] Apply clang-format. NFC
Frederic Riss [Fri, 5 Jun 2015 20:27:07 +0000 (20:27 +0000)]
[dsymutil] Apply clang-format. NFC

llvm-svn: 239186

9 years ago[dsymutil] Out-line the YAML serialization code. NFC
Frederic Riss [Fri, 5 Jun 2015 20:27:04 +0000 (20:27 +0000)]
[dsymutil] Out-line the YAML serialization code. NFC

It will get a bit bigger in an upcoming commit. No need to have all
of that in the header.

Also move parseYAMLDebugMap() to the same place as the serialization
code. This way it will be able to share a private Context object with
it.

llvm-svn: 239185

9 years agoFix extern warnings produced by ittnotify_static.c
Jonathan Peyton [Fri, 5 Jun 2015 20:24:13 +0000 (20:24 +0000)]
Fix extern warnings produced by ittnotify_static.c

when compiling with gcc or clang numerous warnings concerning the usage
of extern "C" linkage.  All the __kmp_itt_sync* variables are declared
like: extern "C" type __kmp_itt_sync... = definition; through various macros.
This note from cppreference.com explains why this is a problem.
// From http://en.cppreference.com/w/cpp/language/language_linkage
extern "C" int x; // a declaration and not a definition
// The above line is equivalent to extern "C" { extern int x; }
extern "C" { int x; } // a declaration and definition
Since the __kmp_itt_* variables are being declared and defined, these variables
should use the bracketed version instead.

llvm-svn: 239184

9 years ago[TestGdbRemoteAbort] Skip on API 16 Android devices
Siva Chandra [Fri, 5 Jun 2015 19:54:49 +0000 (19:54 +0000)]
[TestGdbRemoteAbort] Skip on API 16 Android devices

Summary:
This change also adds the infrastructure required to specify the API
levels for which tests should be skipped.

Reviewers: chying, labath

Reviewed By: labath

Subscribers: tberghammer, lldb-commits

Differential Revision: http://reviews.llvm.org/D10282

llvm-svn: 239183

9 years agoRemoved unused private fields in RegisterContextLinux_mips
Ed Maste [Fri, 5 Jun 2015 18:50:33 +0000 (18:50 +0000)]
Removed unused private fields in RegisterContextLinux_mips

llvm-svn: 239181

9 years ago[Mips] Add test to check jal -> jalx conversion
Simon Atanasyan [Fri, 5 Jun 2015 18:26:44 +0000 (18:26 +0000)]
[Mips] Add test to check jal -> jalx conversion

No functional changes.

llvm-svn: 239180

9 years ago[Mips] Add test to check relocation result shifting in case of N64 ABI
Simon Atanasyan [Fri, 5 Jun 2015 18:26:38 +0000 (18:26 +0000)]
[Mips] Add test to check relocation result shifting in case of N64 ABI

llvm-svn: 239179

9 years ago[Mips] Fix rel-gprel16.test test case
Simon Atanasyan [Fri, 5 Jun 2015 18:26:33 +0000 (18:26 +0000)]
[Mips] Fix rel-gprel16.test test case

This test case uses too large GP0 value. Now the test is correct. Later
we need to implement overflow checking to catch such cases.

llvm-svn: 239178

9 years ago[Mips] Fix hilo16-9-micro.test test case
Simon Atanasyan [Fri, 5 Jun 2015 18:26:25 +0000 (18:26 +0000)]
[Mips] Fix hilo16-9-micro.test test case

This test case uses too large addends in relocations. Now the test is correct.
Later we need to implement overflow checking to catch such cases.

llvm-svn: 239177

9 years agoRevert accidental commit
David Majnemer [Fri, 5 Jun 2015 18:24:55 +0000 (18:24 +0000)]
Revert accidental commit

This change was unrelated to r239170.

llvm-svn: 239176

9 years agoRevert "[InstCombine] Rephrase fix to SimplifyWithOpReplaced"
Renato Golin [Fri, 5 Jun 2015 18:24:12 +0000 (18:24 +0000)]
Revert "[InstCombine] Rephrase fix to SimplifyWithOpReplaced"

This reverts commit r239141. This commit was an attempt to reintroduce
a previous patch that broke many self-hosting bots with clang timeouts,
but it still has slowdown issues, at least  on ARM, increasing the
compilation time (stage 2, clang's) by 5x.

llvm-svn: 239175

9 years agoRefactor padding writing into a helper function.
Rafael Espindola [Fri, 5 Jun 2015 18:21:00 +0000 (18:21 +0000)]
Refactor padding writing into a helper function.

llvm-svn: 239174