oota-llvm.git
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

10 years agoDebug Info: Move the constant for Debug Info Version from Dwarf.h to Metadata.h.
Manman Ren [Mon, 2 Dec 2013 20:09:52 +0000 (20:09 +0000)]
Debug Info: Move the constant for Debug Info Version from Dwarf.h to Metadata.h.

Suggested by Eric.

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

10 years agoDebugInfo: Rename DwarfCompileUnit.* to DwarfUnit.* to match their contents.
David Blaikie [Mon, 2 Dec 2013 19:33:15 +0000 (19:33 +0000)]
DebugInfo: Rename DwarfCompileUnit.* to DwarfUnit.* to match their contents.

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

10 years agoDebugInfo: Refactor CompileUnit into a Unit baseclass and CompileUnit/TypeUnit derive...
David Blaikie [Mon, 2 Dec 2013 19:33:10 +0000 (19:33 +0000)]
DebugInfo: Refactor CompileUnit into a Unit baseclass and CompileUnit/TypeUnit derived classes.

Header/cpp file rename to follow immediately - just splitting out the
commits for ease of review/reading to demonstrate that the renaming
changes are entirely mechanical.

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

10 years agoDebugInfo: Type Units: Propagate the correct DW_AT_language into type units.
David Blaikie [Mon, 2 Dec 2013 18:44:29 +0000 (18:44 +0000)]
DebugInfo: Type Units: Propagate the correct DW_AT_language into type units.

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

10 years agoConservative fix for PR17827 - don't optimize a shift + and + compare sequence where...
Kay Tiong Khoo [Mon, 2 Dec 2013 18:43:59 +0000 (18:43 +0000)]
Conservative fix for PR17827 - don't optimize a shift + and + compare sequence where the shift is logical unless the comparison is unsigned

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

10 years agoR600: Workaround for cayman loop bug
Vincent Lejeune [Mon, 2 Dec 2013 17:29:37 +0000 (17:29 +0000)]
R600: Workaround for cayman loop bug

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

10 years agoMove getSymbolWithGlobalValueBase to TargetLoweringObjectFile.
Rafael Espindola [Mon, 2 Dec 2013 16:25:47 +0000 (16:25 +0000)]
Move getSymbolWithGlobalValueBase to TargetLoweringObjectFile.

This allows it to be used in TargetLoweringObjectFileImpl.cpp.

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

10 years agoIntroduce poor man's consumeToken() in X86AsmParser
Alp Toker [Mon, 2 Dec 2013 16:06:06 +0000 (16:06 +0000)]
Introduce poor man's consumeToken() in X86AsmParser

This makes the code a little more idiomatic.

No change in behaviour.

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

10 years agoRemove dead code.
Rafael Espindola [Mon, 2 Dec 2013 15:36:37 +0000 (15:36 +0000)]
Remove dead code.

MO_JumpTableIndex and MO_ExternalSymbol don't show up on inline asm.

Keeping parts of the old asm printer just to print inline asm to a string that
we then parse back looks like a hack.

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

10 years agoAdd tests for profile sample file parsing.
Diego Novillo [Mon, 2 Dec 2013 15:12:50 +0000 (15:12 +0000)]
Add tests for profile sample file parsing.

The profile file parser needed some tests for its parsing actions.
This adds tests for each of the error messages emitted by the parser.

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

10 years agoOutput .eh_frames on COFF too now that the integrated as is used on mingw.
Rafael Espindola [Mon, 2 Dec 2013 14:59:34 +0000 (14:59 +0000)]
Output .eh_frames on COFF too now that the integrated as is used on mingw.

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

10 years agoARM: decide whether to use movw/movt based on "minsize" attribute.
Tim Northover [Mon, 2 Dec 2013 14:46:26 +0000 (14:46 +0000)]
ARM: decide whether to use movw/movt based on "minsize" attribute.

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

10 years agoCut the gold plugin README down to size
Alp Toker [Mon, 2 Dec 2013 14:17:47 +0000 (14:17 +0000)]
Cut the gold plugin README down to size

This file hasn't been updated in years. Remove old information and point to
the current documentation at GoldPlugin.rst.

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

10 years agoFix dominator descendants for unreachable blocks.
Diego Novillo [Mon, 2 Dec 2013 14:08:27 +0000 (14:08 +0000)]
Fix dominator descendants for unreachable blocks.

When a block is unreachable, asking its dom tree descendants should
return the empty set. However, the computation of the descendants
was causing a segmentation fault because the dom tree node we get
from the basic block is initially NULL.

Fixed by adding a test for a valid dom tree node before we iterate.

The patch also adds some unit tests to the existing dom tree tests.

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

10 years ago[PM] [cleanup] Rearrange the public and private sections of this class
Chandler Carruth [Mon, 2 Dec 2013 12:35:56 +0000 (12:35 +0000)]
[PM] [cleanup] Rearrange the public and private sections of this class
to be a bit more sensible. The public interface now is first followed by
the implementation details.

This also resolves a FIXME to make something private -- it was already
possible as the one special caller was already a friend.

No functionality changed.

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

10 years agoXCoreFrameLowering.cpp: Use [in,out] instead of [in] [out]. [-Wdocumentation]
NAKAMURA Takumi [Mon, 2 Dec 2013 11:31:25 +0000 (11:31 +0000)]
XCoreFrameLowering.cpp: Use [in,out] instead of [in] [out]. [-Wdocumentation]

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

10 years ago[CMake] add_lit_target: Tests should be excluded from "Build Solution".
NAKAMURA Takumi [Mon, 2 Dec 2013 11:31:19 +0000 (11:31 +0000)]
[CMake] add_lit_target: Tests should be excluded from "Build Solution".

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

10 years agoXCore target: Make handling of large frames not dependent upon an FP.
Robert Lytton [Mon, 2 Dec 2013 11:05:28 +0000 (11:05 +0000)]
XCore target: Make handling of large frames not dependent upon an FP.

eliminateFrameIndex() has been reworked to handle both small & large frames
with either a FP or SP.
An additional Slot is required for Scavenging spills when not using FP for large frames.
Reworked the handling of Register Scavenging.

Whether we are using an FP or not, whether it is a large frame or not,
and whether we are using a large code model or not are now independent.

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

10 years agoARM: add pseudo-instructions for lit-pool global materialisation
Tim Northover [Mon, 2 Dec 2013 10:35:41 +0000 (10:35 +0000)]
ARM: add pseudo-instructions for lit-pool global materialisation

These are used by MachO only at the moment, and (much like the existing
MOVW/MOVT set) work around the fact that the labels used in the actual
instructions often contain PC-dependent components, which means that repeatedly
materialising the same global can't be CSEed.

With small modifications, it could be adapted to how ELF finds the address of
_GLOBAL_OFFSET_TABLE_, which would give similar benefits in PIC mode there.

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