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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Benjamin Kramer [Mon, 2 Dec 2013 10:29:26 +0000 (10:29 +0000)]
XCore: Unbreak C++11 build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196089
91177308-0d34-0410-b5e6-
96231b3b80d8
Robert Lytton [Mon, 2 Dec 2013 10:18:37 +0000 (10:18 +0000)]
XCore target: fix large code model 'select' indirect address handling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196088
91177308-0d34-0410-b5e6-
96231b3b80d8
Robert Lytton [Mon, 2 Dec 2013 10:18:31 +0000 (10:18 +0000)]
XCore target: Add large code model
When using large code model:
Global objects larger than 'CodeModelLargeSize' bytes are placed in sections named with a trailing ".large"
The folded global address of such objects are lowered into the const pool.
During inspection it was noted that LowerConstantPool() was using a default offset of zero.
A fix was made, but due to only offsets of zero being generated, testing only verifies the change is not detrimental.
Correct the flags emitted for explicitly specified sections.
We assume the size of the object queried by getSectionForConstant() is never greater than CodeModelLargeSize.
To handle greater than CodeModelLargeSize, changes to AsmPrinter would be required.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196087
91177308-0d34-0410-b5e6-
96231b3b80d8
Robert Lytton [Mon, 2 Dec 2013 10:18:24 +0000 (10:18 +0000)]
XCore target: extend tests in preparation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196086
91177308-0d34-0410-b5e6-
96231b3b80d8
Robert Lytton [Mon, 2 Dec 2013 10:18:19 +0000 (10:18 +0000)]
XCore target: Fix eliminateFrameIndex() to handle large frames
Large frame offsets are loaded from the ConstantPool.
Where possible, offsets are encoded using the smaller MKMSK instruction.
Large frame offsets can only be used when there is a frame-pointer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196085
91177308-0d34-0410-b5e6-
96231b3b80d8
Robert Lytton [Mon, 2 Dec 2013 10:18:14 +0000 (10:18 +0000)]
XCore target: Enable frames larger than 65535 to be lowered
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196084
91177308-0d34-0410-b5e6-
96231b3b80d8
Alexander Kornienko [Mon, 2 Dec 2013 09:28:49 +0000 (09:28 +0000)]
Remove an empty directory left after r194304, which incompletely reverted r194218
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196081
91177308-0d34-0410-b5e6-
96231b3b80d8
Kostya Serebryany [Mon, 2 Dec 2013 08:07:15 +0000 (08:07 +0000)]
[tsan] fix instrumentation of vector vptr updates (https://code.google.com/p/thread-sanitizer/issues/detail?id=43)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196079
91177308-0d34-0410-b5e6-
96231b3b80d8
Alp Toker [Mon, 2 Dec 2013 07:15:33 +0000 (07:15 +0000)]
Update the LTO GoldPlugin documentation
* Update build instructions to reflect the current source tree layout.
* Don't inflict CVS on readers; there's a perfectly good git mirror.
* configure with --disable-werror making it possible to build using clang.
* ar and nm-new now support the -plugin option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196069
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 2 Dec 2013 05:42:16 +0000 (05:42 +0000)]
Remove leftovers from a non-MC asm printer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196068
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 2 Dec 2013 05:24:28 +0000 (05:24 +0000)]
Remove #if 0 declarations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196067
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Mon, 2 Dec 2013 05:10:04 +0000 (05:10 +0000)]
Remove dead code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@196066
91177308-0d34-0410-b5e6-
96231b3b80d8