oota-llvm.git
10 years agoFix typo.
Eric Christopher [Wed, 4 Dec 2013 23:55:09 +0000 (23:55 +0000)]
Fix typo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196434 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDwarfUnit: Correct comment by generalizing over all units, not just compilation units.
David Blaikie [Wed, 4 Dec 2013 23:39:02 +0000 (23:39 +0000)]
DwarfUnit: Correct comment by generalizing over all units, not just compilation units.

Code review feedback on r196394 by Paul Robinson.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196433 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix a bug in darwin's 32-bit X86 handling of evaluating fixups.
Kevin Enderby [Wed, 4 Dec 2013 23:36:24 +0000 (23:36 +0000)]
Fix a bug in darwin's 32-bit X86 handling of evaluating fixups.

Where it would use a scattered relocation entry but falls back to a
normal relocation entry because the FixupOffset is more than 24-bits.

The bug is in the X86MachObjectWriter::RecordScatteredRelocation() where
it changes reference parameter FixedValue but then returns false to indicate
it did not create a scattered relocation entry.  The fix is simply to save the
original value of the parameter FixedValue at the start of the method and
restore it if we are returning false in that case.

rdar://15526046

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196432 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUpdate comment.
Eric Christopher [Wed, 4 Dec 2013 23:24:38 +0000 (23:24 +0000)]
Update comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196431 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUpdate comment.
Eric Christopher [Wed, 4 Dec 2013 23:24:28 +0000 (23:24 +0000)]
Update comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196430 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemove incorrect comment and pointless cast.
Eric Christopher [Wed, 4 Dec 2013 23:05:21 +0000 (23:05 +0000)]
Remove incorrect comment and pointless cast.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196427 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoconst on its own line is confusing.
Eric Christopher [Wed, 4 Dec 2013 22:54:45 +0000 (22:54 +0000)]
const on its own line is confusing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196426 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd support for parsing ARM symbol variants on ELF targets
David Peixotto [Wed, 4 Dec 2013 22:43:20 +0000 (22:43 +0000)]
Add support for parsing ARM symbol variants on ELF targets

ARM symbol variants are written with parens instead of @ like this:

  .word __GLOBAL_I_a(target1)

This commit adds support for parsing these symbol variants in
expressions. We introduce a new flag to MCAsmInfo that indicates the
parser should use parens to parse the symbol variant. The expression
parser is modified to look for symbol variants using parens instead
of @ when the corresponding MCAsmInfo flag is true.

The MCAsmInfo parens flag is enabled only for ARM on ELF.

By adding this flag to MCAsmInfo, we are able to get rid of
redundant ARM-specific symbol variants and use the generic variants
instead (e.g. VK_GOT instead of VK_ARM_GOT). We use the new
UseParensForSymbolVariant attribute in MCAsmInfo to correctly print
the symbol variants for arm.

To achive this we need to keep a handle to the MCAsmInfo in the
MCSymbolRefExpr class that we can check when printing the symbol
variant.

Updated Tests:
  Changed case of symbol variant to match the generic kind.
  test/CodeGen/ARM/tls-models.ll
  test/CodeGen/ARM/tls1.ll
  test/CodeGen/ARM/tls2.ll
  test/CodeGen/Thumb2/tls1.ll
  test/CodeGen/Thumb2/tls2.ll

PR18080

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196424 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSimplify check.
Eric Christopher [Wed, 4 Dec 2013 22:29:02 +0000 (22:29 +0000)]
Simplify check.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196422 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoReformat slightly.
Eric Christopher [Wed, 4 Dec 2013 22:26:43 +0000 (22:26 +0000)]
Reformat slightly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196421 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMake RangeSpanList take a symbol for the beginning of the range
Eric Christopher [Wed, 4 Dec 2013 22:04:50 +0000 (22:04 +0000)]
Make RangeSpanList take a symbol for the beginning of the range
rather than magically making the names match.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196419 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd a FIXME for making the symbol emission functions const.
Eric Christopher [Wed, 4 Dec 2013 22:04:46 +0000 (22:04 +0000)]
Add a FIXME for making the symbol emission functions const.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196418 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDwarfDebug: Unconditionalize trivial asm comments
David Blaikie [Wed, 4 Dec 2013 21:51:05 +0000 (21:51 +0000)]
DwarfDebug: Unconditionalize trivial asm comments

While we still have a few (~4) non-trivial comments with string
concatenation, etc that should remain conditionalized, these trivial
literal comments can be simplified.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196416 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDwarfDebug: Reduce code duplication for sec offset emission
David Blaikie [Wed, 4 Dec 2013 21:31:26 +0000 (21:31 +0000)]
DwarfDebug: Reduce code duplication for sec offset emission

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196414 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoCouple of small logical cleanups to use !empty rather than other
Eric Christopher [Wed, 4 Dec 2013 21:20:15 +0000 (21:20 +0000)]
Couple of small logical cleanups to use !empty rather than other
checks. No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196412 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Replace size() with empty() in bool check.
Yuchen Wu [Wed, 4 Dec 2013 19:18:23 +0000 (19:18 +0000)]
llvm-cov: Replace size() with empty() in bool check.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196400 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUse move and stack allocation for RangeSpanLists. As a result make
Eric Christopher [Wed, 4 Dec 2013 19:06:58 +0000 (19:06 +0000)]
Use move and stack allocation for RangeSpanLists. As a result make
a few things more const as well because we're now using const
references to refer to iterators.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196398 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDebugInfo: Improve test to use llvm-dwarfdump
David Blaikie [Wed, 4 Dec 2013 18:40:29 +0000 (18:40 +0000)]
DebugInfo: Improve test to use llvm-dwarfdump

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196396 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoTest fix for r196394
David Blaikie [Wed, 4 Dec 2013 18:34:28 +0000 (18:34 +0000)]
Test fix for r196394

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196395 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDebugInfo: Remove unused start/end labels for the debug_abbrevs section
David Blaikie [Wed, 4 Dec 2013 18:12:28 +0000 (18:12 +0000)]
DebugInfo: Remove unused start/end labels for the debug_abbrevs section

Since we always emit only one abbrevation section (shared by all the
compilation units in this module) there's no need for a separate label
at the start of each one (and we weren't using the CU ID anyway, so
there really was only one label). Use the section label instead and drop
the wholely unused debug_abbrev_end label.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196394 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix assembly syntax for AVX512 vector blend instructions.
Cameron McInally [Wed, 4 Dec 2013 18:05:36 +0000 (18:05 +0000)]
Fix assembly syntax for AVX512 vector blend instructions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196393 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDebugInfo: Avoid recreating matching labels in disparate places.
David Blaikie [Wed, 4 Dec 2013 17:55:41 +0000 (17:55 +0000)]
DebugInfo: Avoid recreating matching labels in disparate places.

Instead, reuse the same MCSymbol - this should make the code easier to
follow by avoiding hard to trace dependencies between different bits of
code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196392 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[X86] Check YMM31/ZMM31 as well
Michael Liao [Wed, 4 Dec 2013 17:44:22 +0000 (17:44 +0000)]
[X86] Check YMM31/ZMM31 as well

- No test case as there's no calling convention preserve YMM31/ZMM31 only

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196391 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUpdate the UseFusedMAC definition to directly specify its dependence on having
Chad Rosier [Wed, 4 Dec 2013 17:16:36 +0000 (17:16 +0000)]
Update the UseFusedMAC definition to directly specify its dependence on having
VFP4.
Patch by Daniel Stewart!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196390 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoSuppress '(x < y) ? a : 0 -> (x < y) & a' transform on X86 architectures with dedicat...
Cameron McInally [Wed, 4 Dec 2013 14:52:33 +0000 (14:52 +0000)]
Suppress '(x < y) ? a : 0 -> (x < y) & a' transform on X86 architectures with dedicated mask registers.

Patch by Aleksey Bader.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196386 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[CMake] add_lit_target: Let lit.site.cfg free from "--param build_mode" on single...
NAKAMURA Takumi [Wed, 4 Dec 2013 11:15:17 +0000 (11:15 +0000)]
[CMake] add_lit_target: Let lit.site.cfg free from "--param build_mode" on single configuration builds, like autoconf build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196377 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUpdate email address.
Bill Wendling [Wed, 4 Dec 2013 09:42:49 +0000 (09:42 +0000)]
Update email address.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196369 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUn-revert r196358: "llvm-cov: Added support for function checksums."
Daniel Jasper [Wed, 4 Dec 2013 08:57:17 +0000 (08:57 +0000)]
Un-revert r196358: "llvm-cov: Added support for function checksums."

And add the proper fix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196367 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRevert r196358: "llvm-cov: Added support for function checksums."
Daniel Jasper [Wed, 4 Dec 2013 08:23:33 +0000 (08:23 +0000)]
Revert r196358: "llvm-cov: Added support for function checksums."

This currently breaks clang/test/CodeGen/code-coverage.c. The root cause
is that the newly introduced access to Funcs[j] is out of bounds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196365 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64 Neon] Add ACLE intrinsic vceqz_f64.
Kevin Qin [Wed, 4 Dec 2013 08:02:34 +0000 (08:02 +0000)]
[AArch64 Neon] Add ACLE intrinsic vceqz_f64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196362 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64 NEON] Add missing compare intrinsics.
Kevin Qin [Wed, 4 Dec 2013 07:53:28 +0000 (07:53 +0000)]
[AArch64 NEON] Add missing compare intrinsics.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196360 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Added support for function checksums.
Yuchen Wu [Wed, 4 Dec 2013 06:00:17 +0000 (06:00 +0000)]
llvm-cov: Added support for function checksums.

The function checksums are hashed from the concatenation of the function
name and line number.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196358 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Added checks for ident, checksum, name.
Yuchen Wu [Wed, 4 Dec 2013 05:42:28 +0000 (05:42 +0000)]
llvm-cov: Added checks for ident, checksum, name.

Added additional checks for the Identifier, CfgChecksum and Name for
each GCOVFunction. Also added function names in error messages.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196356 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Capitalized GCNO and GCDA for consistency.
Yuchen Wu [Wed, 4 Dec 2013 05:07:36 +0000 (05:07 +0000)]
llvm-cov: Capitalized GCNO and GCDA for consistency.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196354 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Split GCOVFile's read into GCNO and GCDA.
Yuchen Wu [Wed, 4 Dec 2013 04:49:23 +0000 (04:49 +0000)]
llvm-cov: Split GCOVFile's read into GCNO and GCDA.

This splits the file-scope read() function into readGCNO() and
readGCDA(). Also broke file format read into functions that first read
the file type, then check the version.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196353 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix a funny typo.
Rafael Espindola [Wed, 4 Dec 2013 02:26:54 +0000 (02:26 +0000)]
Fix a funny typo.

Thanks for j`ey and Sean Silva for noticing it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196344 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[LangRef] Remove (non-normative) paragraph that doesn't make sense.
Sean Silva [Wed, 4 Dec 2013 02:19:25 +0000 (02:19 +0000)]
[LangRef] Remove (non-normative) paragraph that doesn't make sense.

It appears to be referring to nonexistent entities. This must be a
carry-over from an older version of the document.

Patch by Mikael Lyngvig!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196342 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoProduce deterministic coff files.
Rafael Espindola [Wed, 4 Dec 2013 02:02:55 +0000 (02:02 +0000)]
Produce deterministic coff files.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196341 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd -mcpu=core2 to all llc invocations in this test.
Rafael Espindola [Wed, 4 Dec 2013 01:25:24 +0000 (01:25 +0000)]
Add -mcpu=core2 to all llc invocations in this test.

Should fix the atom buildbot.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196340 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Stackmap] Specify the triple and cpu to fix the unit test.
Juergen Ributzka [Wed, 4 Dec 2013 01:02:37 +0000 (01:02 +0000)]
[Stackmap] Specify the triple and cpu to fix the unit test.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196339 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[Stackmap] Emit multi-byte nops for X86.
Juergen Ributzka [Wed, 4 Dec 2013 00:39:08 +0000 (00:39 +0000)]
[Stackmap] Emit multi-byte nops for X86.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196334 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agofinal patch for very long conditional branches for mips16 constant islands.
Reed Kotler [Tue, 3 Dec 2013 23:42:51 +0000 (23:42 +0000)]
final patch for very long conditional branches for mips16 constant islands.
this completes the basic port of ARM constant islands to Mips16.
More testing, code review, cleanup is in order but basically everything
seems to be working. A bug in gas is preventing some of the runtime
testing but I hope to resolve this soon.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196331 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agocheck-llvm: Ask llvm-config about assertion mode, instead of llc.
NAKAMURA Takumi [Tue, 3 Dec 2013 23:22:25 +0000 (23:22 +0000)]
check-llvm: Ask llvm-config about assertion mode, instead of llc.

Add --assertion-mode to llvm-config. It emits ON or OFF according to NDEBUG.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196329 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoutils/llvm-lit: Generate "llvm-lit.py" rather than "llvm-lit" on Win32 hosts to let...
NAKAMURA Takumi [Tue, 3 Dec 2013 23:22:18 +0000 (23:22 +0000)]
utils/llvm-lit: Generate "llvm-lit.py" rather than "llvm-lit" on Win32 hosts to let llvm-lit.py --use-processes work.

llvm-lit needs suffix.py for multiprocess to find a main module.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196328 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUpdate comment grammar and contents.
Eric Christopher [Tue, 3 Dec 2013 22:05:55 +0000 (22:05 +0000)]
Update comment grammar and contents.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196323 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUse CHECK-LABEL to make this test more strict.
Rafael Espindola [Tue, 3 Dec 2013 21:12:36 +0000 (21:12 +0000)]
Use CHECK-LABEL to make this test more strict.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196321 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix mingw32 thiscall + sret.
Rafael Espindola [Tue, 3 Dec 2013 20:51:23 +0000 (20:51 +0000)]
Fix mingw32 thiscall + sret.

Unlike msvc, when handling a thiscall + sret gcc will
* Put the sret in %ecx
* Put the this pointer is (%esp)

This fixes, for example, calling stringstream::str.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196312 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFixed various whitespace/spelling/80+ issues.
Michael Gottesman [Tue, 3 Dec 2013 20:21:17 +0000 (20:21 +0000)]
Fixed various whitespace/spelling/80+ issues.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196310 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoReturn true on success in cl::ExpandResponseFiles
Reid Kleckner [Tue, 3 Dec 2013 19:13:18 +0000 (19:13 +0000)]
Return true on success in cl::ExpandResponseFiles

This fixes a logic bug pointed out by Juraj Ivancic.

No behavior change because none of the in-tree clients of
cl::ExpandResponseFiles check the return value.  In this case, the
@prefixed arguments are left in the command line.  Downstream command
line processing has the opportunity to emit errors about it, so this
isn't that bad.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196306 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Another fix to llvm-cov test.
Yuchen Wu [Tue, 3 Dec 2013 19:05:03 +0000 (19:05 +0000)]
llvm-cov: Another fix to llvm-cov test.

Copy all test files to temporary directory, not just test.* files. Tests
didn't fail because the missing files occurred in XFAILS.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196305 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix a typo in a comment
Timur Iskhodzhanov [Tue, 3 Dec 2013 18:57:43 +0000 (18:57 +0000)]
Fix a typo in a comment

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196304 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAvoid buffer copies when a Twine already is a StringRef.
David Blaikie [Tue, 3 Dec 2013 18:18:28 +0000 (18:18 +0000)]
Avoid buffer copies when a Twine already is a StringRef.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196301 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoTeach the internalize pass to skip dllexported symbols because they could be
Yunzhong Gao [Tue, 3 Dec 2013 18:05:14 +0000 (18:05 +0000)]
Teach the internalize pass to skip dllexported symbols because they could be
referenced in a way that even the linker does not see.

Differential Revision: http://llvm-reviews.chandlerc.com/D2280

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196300 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoopt: Mirror vectorization presets of clang
Arnold Schwaighofer [Tue, 3 Dec 2013 16:33:06 +0000 (16:33 +0000)]
opt: Mirror vectorization presets of clang

clang enables vectorization at optimization levels > 1 and size level < 2. opt
should behave similarily.

Loop vectorization and SLP vectorization can be disabled with the flags
-disable-(loop/slp)-vectorization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196294 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoReland 196270 "Generalize debug info / EH emission in AsmPrinter"
Timur Iskhodzhanov [Tue, 3 Dec 2013 15:10:23 +0000 (15:10 +0000)]
Reland 196270 "Generalize debug info / EH emission in AsmPrinter"

Addressing the existense AMDGPUAsmPrinter and other subclasses of AsmPrinter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196288 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-config: With --build-mode, show ${CMAKE_CFG_INTDIR} on multiconfig builder.
NAKAMURA Takumi [Tue, 3 Dec 2013 14:35:17 +0000 (14:35 +0000)]
llvm-config: With --build-mode, show ${CMAKE_CFG_INTDIR} on multiconfig builder.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196283 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix lit config for disabled MCJIT tests on ARM
Renato Golin [Tue, 3 Dec 2013 13:48:28 +0000 (13:48 +0000)]
Fix lit config for disabled MCJIT tests on ARM

Separating permanent from temporary targets, added the bug that
will fix the temporary (PR18057).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196274 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRevert r196270, "Generalize debug info / EH emission in AsmPrinter"
NAKAMURA Takumi [Tue, 3 Dec 2013 13:15:54 +0000 (13:15 +0000)]
Revert r196270, "Generalize debug info / EH emission in AsmPrinter"

It broke CodeGen/R600 tests with +Asserts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196272 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoGeneralize debug info / EH emission in AsmPrinter
Timur Iskhodzhanov [Tue, 3 Dec 2013 12:05:18 +0000 (12:05 +0000)]
Generalize debug info / EH emission in AsmPrinter

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196270 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAddrspacecasts are no-ops on ARM.
James Molloy [Tue, 3 Dec 2013 11:23:11 +0000 (11:23 +0000)]
Addrspacecasts are no-ops on ARM.

Testcase added.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196269 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[SystemZ] Fix choice of known-zero mask in insertion optimization
Richard Sandiford [Tue, 3 Dec 2013 11:01:54 +0000 (11:01 +0000)]
[SystemZ] Fix choice of known-zero mask in insertion optimization

The backend converts 64-bit ORs into subreg moves if the upper 32 bits
of one operand and the low 32 bits of the other are known to be zero.
It then tries to peel away redundant ANDs from the upper 32 bits.

Since AND masks are canonicalized to exclude known-zero bits,
the test ORs the mask and the known-zero bits together before
checking for redundancy.  The problem was that it was using the
wrong node when checking for known-zero bits, so could drop ANDs
that were still needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196267 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoEnhance the fix of PR17631
Michael Liao [Tue, 3 Dec 2013 09:17:32 +0000 (09:17 +0000)]
Enhance the fix of PR17631

- The fix to PR17631 fixes part of the cases where 'vzeroupper' should
  not be issued before 'call' insn. There're other cases where helper
  calls will be inserted not limited to epilog. These helper calls do
  not follow the standard calling convention and won't clobber any YMM
  registers. (So far, all call conventions will clobber any or part of
  YMM registers.)
  This patch enhances the previous fix to cover more cases 'vzerosupper' should
  not be inserted by checking if that function call won't clobber any YMM
  registers and skipping it if so.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196261 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDisable Remote MCJIT tests on ARM
Renato Golin [Tue, 3 Dec 2013 08:39:15 +0000 (08:39 +0000)]
Disable Remote MCJIT tests on ARM

The communication protocol is unstable on ARM when compiled
with Clang, which is disrupting the self-hosting buildbots that
are going to be added this week. I'm working on a solution, but
remote MCJIT is not high-priority for ARM at the moment, so it
might take a while.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196257 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFurther fix to llvm-cov test.
Daniel Jasper [Tue, 3 Dec 2013 08:21:14 +0000 (08:21 +0000)]
Further fix to llvm-cov test.

It turns out that in some build systems, tests are executed in a
non-writable directory. Hopefully, this finally fixes the issue.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196256 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoFix llvm-cov test as suggested in r196228's post commit review.
Daniel Jasper [Tue, 3 Dec 2013 07:56:23 +0000 (07:56 +0000)]
Fix llvm-cov test as suggested in r196228's post commit review.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196255 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoCopy input files to test directory.
Daniel Jasper [Tue, 3 Dec 2013 07:35:32 +0000 (07:35 +0000)]
Copy input files to test directory.

With r196184, llvm-cov creates a new file right next to the input file.
However, the Inputs-directory can't simply be assumed to be writable
under all build systems.

Also, this prevents a new source file from showing up in the source tree
if the test aborts before the call to "rm".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196228 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemove superfluous label.
Bill Wendling [Tue, 3 Dec 2013 07:34:19 +0000 (07:34 +0000)]
Remove superfluous label.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196227 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64]Add missing floating point convert, round and misc intrinsics.
Hao Liu [Tue, 3 Dec 2013 06:06:55 +0000 (06:06 +0000)]
[AArch64]Add missing floating point convert, round and misc intrinsics.
E.g. int64x1_t vcvt_s64_f64(float64x1_t a) -> FCVTZS Dd, Dn

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196210 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAArch64: add missing ACLE intrinsics mapping to general arithmetic operation from...
Hao Liu [Tue, 3 Dec 2013 05:58:30 +0000 (05:58 +0000)]
AArch64: add missing ACLE intrinsics mapping to general arithmetic operation from VFP instructions.
E.g. float64x1_t vadd_f64(float64x1_t a, float64x1_t b) -> FADD Dd, Dn, Dm.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196208 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov.test: Resurrect part of r194694 for win32 hosts.
NAKAMURA Takumi [Tue, 3 Dec 2013 05:40:25 +0000 (05:40 +0000)]
llvm-cov.test: Resurrect part of r194694 for win32 hosts.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196207 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoWhitespace.
NAKAMURA Takumi [Tue, 3 Dec 2013 05:28:27 +0000 (05:28 +0000)]
Whitespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196203 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAArch64: Add missing scalar pair intrinsics.
Hao Liu [Tue, 3 Dec 2013 03:39:47 +0000 (03:39 +0000)]
AArch64: Add missing scalar pair intrinsics.
E.g. "float32_t vaddv_f32(float32x2_t a)" to be matched into "faddp s0, v1.2s".

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196198 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm/test/Transforms/SampleProfile/syntax.ll: Relax an expression, not to check local...
NAKAMURA Takumi [Tue, 3 Dec 2013 02:20:53 +0000 (02:20 +0000)]
llvm/test/Transforms/SampleProfile/syntax.ll: Relax an expression, not to check locale-dependent message.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196195 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Cleaned up print() function slightly.
Yuchen Wu [Tue, 3 Dec 2013 01:35:31 +0000 (01:35 +0000)]
llvm-cov: Cleaned up print() function slightly.

Changed while to for loop. Removed unnecessary if statement.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196194 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd some missing pattern matches for AArch64 Neon intrinsics like vuqadd_s64 and...
Jiangning Liu [Tue, 3 Dec 2013 01:33:52 +0000 (01:33 +0000)]
Add some missing pattern matches for AArch64 Neon intrinsics like vuqadd_s64 and friends.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196192 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdd some missing pattern matches for AArch64 Neon intrinsics like vmull_high_n_s16...
Jiangning Liu [Tue, 3 Dec 2013 01:29:32 +0000 (01:29 +0000)]
Add some missing pattern matches for AArch64 Neon intrinsics like vmull_high_n_s16 and friends.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196190 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDon't set PrivateGlobalPrefix for NVPTX and R600.
Rafael Espindola [Tue, 3 Dec 2013 01:03:35 +0000 (01:03 +0000)]
Don't set PrivateGlobalPrefix for NVPTX and R600.

These targets have special asm printers that don't use these.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196187 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Removed output to STDOUT/specified file.
Yuchen Wu [Tue, 3 Dec 2013 00:57:11 +0000 (00:57 +0000)]
llvm-cov: Removed output to STDOUT/specified file.

Instead of asking the user to specify a single file to output coverage
info and defaulting to STDOUT, llvm-cov now creates files for each
source file with a naming system of: <source filename> + ".llcov".

This is what gcov does and although it can clutter the working directory
with numerous coverage files, it will be easier to hook the llvm-cov
output to tools which operate on this assumption (such as lcov).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196184 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoAdded MachineBlockFrequencyInfo::view for displaying the block frequency propagation...
Michael Gottesman [Tue, 3 Dec 2013 00:49:33 +0000 (00:49 +0000)]
Added MachineBlockFrequencyInfo::view for displaying the block frequency propagation graph via graphviz.

This is useful for debugging issues in the BlockFrequency implementation
since one can easily visualize where probability mass and other errors
occur in the propagation.

This is the MI version of r194654.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196183 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRefactor the handling of lexical block and inline scope ranges
Eric Christopher [Tue, 3 Dec 2013 00:45:59 +0000 (00:45 +0000)]
Refactor the handling of lexical block and inline scope ranges
into a single function. No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196181 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUpdate doxygen tags.
Eric Christopher [Tue, 3 Dec 2013 00:45:56 +0000 (00:45 +0000)]
Update doxygen tags.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196180 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoReorder member function declarations to match source order.
Eric Christopher [Tue, 3 Dec 2013 00:45:54 +0000 (00:45 +0000)]
Reorder member function declarations to match source order.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196179 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMake ranges and range lists be a discrete entity that can be located
Eric Christopher [Tue, 3 Dec 2013 00:45:45 +0000 (00:45 +0000)]
Make ranges and range lists be a discrete entity that can be located
and emitted per function and CU. Begins coalescing ranges as a first
class entity through debug info. No functional change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196178 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Store blocks rather than counts per line.
Yuchen Wu [Tue, 3 Dec 2013 00:38:21 +0000 (00:38 +0000)]
llvm-cov: Store blocks rather than counts per line.

Each line stores all the blocks that execute on that line, instead of
only storing the line counts previously accumulated. This provides more
information for each line, and will be useful for options in enabling
block and branch information.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196177 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Added edge struct for traversal in block.
Yuchen Wu [Tue, 3 Dec 2013 00:24:44 +0000 (00:24 +0000)]
llvm-cov: Added edge struct for traversal in block.

Added GCOVEdge which are simple structs owned by the GCOVFunction that
stores the source and destination GCOVBlocks, as well as the counts.
Changed GCOVBlocks so that it stores a vector of source GCOVEdges and a
vector of destination GCOVEdges, rather than just the block number.

Storing the block number was only useful for knowing the number of edges
and for debug info. Using a struct is useful for traversing the edges,
especially back edges which may be needed later.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196175 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agollvm-cov: Split up reading of GCNO and GCDA files.
Yuchen Wu [Tue, 3 Dec 2013 00:15:49 +0000 (00:15 +0000)]
llvm-cov: Split up reading of GCNO and GCDA files.

There are now two functions: readGCNO() and readGCDA().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196173 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDebug Info: rename getDebugInfoVersionFromModule to getDebugMetadataVersionFromModule.
Manman Ren [Tue, 3 Dec 2013 00:12:14 +0000 (00:12 +0000)]
Debug Info: rename getDebugInfoVersionFromModule to getDebugMetadataVersionFromModule.

Suggested by Eric.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196172 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemove PPCScoreboardHazardRecognizer
Hal Finkel [Mon, 2 Dec 2013 23:52:46 +0000 (23:52 +0000)]
Remove PPCScoreboardHazardRecognizer

PPCScoreboardHazardRecognizer was a subclass of ScoreboardHazardRecognizer
which did only one thing: filtered out nodes in EmitInstruction for which
DAG->getInstrDesc(SU) returned NULL. This used to be the case for PPC pseudo
instructions. As far as I can tell, this is no longer true, and so we can use
ScoreboardHazardRecognizer directly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196171 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRefactor the setting of PrivateGlobalPrefix.
Rafael Espindola [Mon, 2 Dec 2013 23:39:26 +0000 (23:39 +0000)]
Refactor the setting of PrivateGlobalPrefix.

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196170 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDon't set PrivateGlobalPrefix twice in the same function.
Rafael Espindola [Mon, 2 Dec 2013 23:26:31 +0000 (23:26 +0000)]
Don't set PrivateGlobalPrefix twice in the same function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196169 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoConvert two char* that are only ever used as booleans to bool.
Rafael Espindola [Mon, 2 Dec 2013 23:04:51 +0000 (23:04 +0000)]
Convert two char* that are only ever used as booleans to bool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196168 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUse local variable for repeated use rather than 'get' method. No functional change...
Kay Tiong Khoo [Mon, 2 Dec 2013 22:23:32 +0000 (22:23 +0000)]
Use local variable for repeated use rather than 'get' method. No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196164 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoMove variables to where they are used and give them better names. No functional chang...
Kay Tiong Khoo [Mon, 2 Dec 2013 22:20:40 +0000 (22:20 +0000)]
Move variables to where they are used and give them better names. No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196163 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRename variables to be consistent (CST -> Cst). No functional change intended.
Kay Tiong Khoo [Mon, 2 Dec 2013 22:11:56 +0000 (22:11 +0000)]
Rename variables to be consistent (CST -> Cst). No functional change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196161 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoRemove unnecessary/commented-out header inclusion.
David Blaikie [Mon, 2 Dec 2013 22:11:08 +0000 (22:11 +0000)]
Remove unnecessary/commented-out header inclusion.

Review feedback from Eric Christopher on r196140

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196160 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDebugInfo: Rename generic unit references to "TheU" instead of TheCU now that they...
David Blaikie [Mon, 2 Dec 2013 22:09:48 +0000 (22:09 +0000)]
DebugInfo: Rename generic unit references to "TheU" instead of TheCU now that they might be type units instead of compile units.

CR feedback from Eric Christopher on r196139.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196159 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoDebug Info: drop debug info via upgrading path if version number does not match.
Manman Ren [Mon, 2 Dec 2013 21:29:56 +0000 (21:29 +0000)]
Debug Info: drop debug info via upgrading path if version number does not match.

Add a helper function getDebugInfoVersionFromModule to return the debug info
version number for a module.

"Verifier/module-flags-1.ll" checks for verification errors.
It will seg fault when calling getDebugInfoVersionFromModule because of the
incorrect format for module flags in the testing case. We make
getModuleFlagsMetadata more robust by checking for error conditions.

PR17982

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196158 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoUpdate Ocaml/vmcore.ml to emit a "Debug Info Version" module flag.
Manman Ren [Mon, 2 Dec 2013 21:25:56 +0000 (21:25 +0000)]
Update Ocaml/vmcore.ml to emit a "Debug Info Version" module flag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196156 91177308-0d34-0410-b5e6-96231b3b80d8

10 years ago[AArch64] Implemented vcopy_lane patterns using scalar DUP instruction.
Chad Rosier [Mon, 2 Dec 2013 21:05:16 +0000 (21:05 +0000)]
[AArch64] Implemented vcopy_lane patterns using scalar DUP instruction.
Patch by Ana Pazos!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196151 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoInlineFunction.cpp: Remove a return value that is always false
Mark Seaborn [Mon, 2 Dec 2013 20:50:59 +0000 (20:50 +0000)]
InlineFunction.cpp: Remove a return value that is always false

Remove some associated dead code.

This cleanup is associated with PR17872.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196147 91177308-0d34-0410-b5e6-96231b3b80d8