oota-llvm.git
10 years ago[OCaml] Add Target and TargetMachine bindings to Llvm_target
Peter Zotov [Fri, 15 Nov 2013 02:51:57 +0000 (02:51 +0000)]
[OCaml] Add Target and TargetMachine bindings to Llvm_target

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

10 years ago[OCaml] Refactor Llvm_target interface
Peter Zotov [Fri, 15 Nov 2013 02:51:44 +0000 (02:51 +0000)]
[OCaml] Refactor Llvm_target interface

This commit brings the module structure, argument order and
primitive names in Llvm_target in order with the rest of the bindings,
in preparation for adding TargetMachine API.

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

10 years ago[OCaml] Fix building of stub libraries
Peter Zotov [Fri, 15 Nov 2013 02:51:27 +0000 (02:51 +0000)]
[OCaml] Fix building of stub libraries

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

10 years ago[llvm-c] Make LLVMGetTargetFromName actually work
Peter Zotov [Fri, 15 Nov 2013 02:51:18 +0000 (02:51 +0000)]
[llvm-c] Make LLVMGetTargetFromName actually work

LLVMGetTargetFromName used to compare two char* strings directly.

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

10 years ago[llvm-c] Add missing const qualifiers to LLVMCreateTargetMachine
Peter Zotov [Fri, 15 Nov 2013 02:51:12 +0000 (02:51 +0000)]
[llvm-c] Add missing const qualifiers to LLVMCreateTargetMachine

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

10 years ago[llvm-c] Simplify signature of LLVMGetTargetFromName
Peter Zotov [Fri, 15 Nov 2013 02:51:01 +0000 (02:51 +0000)]
[llvm-c] Simplify signature of LLVMGetTargetFromName

LLVMGetTargetFromName was not yet present in an LLVM release,
so this does not break compatibility.

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

10 years agoMake all the conditional Mips 16 branches get initially set for the
Reed Kotler [Fri, 15 Nov 2013 02:21:52 +0000 (02:21 +0000)]
Make all the conditional Mips 16 branches get initially set for the
short form. Constant islands will expand them if they are out of range.
Since there is not direct object emitter at this time, it does not
have any material affect because the assembler sorts this out. But we
need to know for the actual constant island work. We track the difference
by putting # 16 inst in the comments.

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

10 years agoUse a reference rather than a pointer as we don't expect a NULL
Eric Christopher [Fri, 15 Nov 2013 01:43:19 +0000 (01:43 +0000)]
Use a reference rather than a pointer as we don't expect a NULL
DbgVariable.

No functional change.

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

10 years agoAdd addrspacecast instruction.
Matt Arsenault [Fri, 15 Nov 2013 01:34:59 +0000 (01:34 +0000)]
Add addrspacecast instruction.

Patch by Michele Scandale!

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

10 years agoInclude raw_ostream.h.
Rui Ueyama [Fri, 15 Nov 2013 01:25:34 +0000 (01:25 +0000)]
Include raw_ostream.h.

Including only Debug.h did not cause a compilation error, but you couldn't
do anything (like writing something with <<) to raw_ostreams returned by
llvm::dbgs() or llvm::errs() without including raw_ostream.h. So including
it from Debug.h should make sense.

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

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

10 years agoR600: Fix scheduling of instructions that use the LDS output queue
Tom Stellard [Fri, 15 Nov 2013 00:12:45 +0000 (00:12 +0000)]
R600: Fix scheduling of instructions that use the LDS output queue

The LDS output queue is accessed via the OQAP register.  The OQAP
register cannot be live across clauses, so if value is written to the
output queue, it must be retrieved before the end of the clause.
With the machine scheduler, we cannot statisfy this constraint, because
it lacks proper alias analysis and it will mark some LDS accesses as
having a chain dependency on vertex fetches.  Since vertex fetches
require a new clauses, the dependency may end up spiltting OQAP uses and
defs so the end up in different clauses.  See the lds-output-queue.ll
test for a more detailed explanation.

To work around this issue, we now combine the LDS read and the OQAP
copy into one instruction and expand it after register allocation.

This patch also adds some checks to the EmitClauseMarker pass, so that
it doesn't end a clause with a value still in the output queue and
removes AR.X and OQAP handling from the scheduler (AR.X uses and defs
were already being expanded post-RA, so the scheduler will never see
them).

Reviewed-by: Vincent Lejeune <vljn at ovi.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194755 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoTeach the Makefile build system how to handle SOURCES which include
Chandler Carruth [Thu, 14 Nov 2013 23:51:29 +0000 (23:51 +0000)]
Teach the Makefile build system how to handle SOURCES which include
subdirectories. The only thing needed here is to create the appropriate
object file directories and add those as dependencies for the
compilation rules.

As a consequence, factor the non-source-file-specific dependencies for
compilation rules into a helper variable. This fixes an issue where the
project makefile wasn't actually a dependency of a bunch of compilation
make rules for no apparant reason.

This should have no observable effect for current makefile usage, but
will simplify how we build other libraries and is something CMake
already supports.

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

10 years agoR600/SI: Add processor type for Hawaii
Tom Stellard [Thu, 14 Nov 2013 23:46:00 +0000 (23:46 +0000)]
R600/SI: Add processor type for Hawaii

Patch by: Alex Deucher

Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@194752 91177308-0d34-0410-b5e6-96231b3b80d8

10 years agoWhen folding memory operands, preserve existing MachineMemOperands.
Andrew Trick [Thu, 14 Nov 2013 23:45:04 +0000 (23:45 +0000)]
When folding memory operands, preserve existing MachineMemOperands.

This comes into play with patchpoint, which can fold multiple
operands. Since the patchpoint is already treated as a call, the
machine mem operands won't affect anything, and there's nothing to
test. But we still want to do the right thing here to be sure that our
MIs obey the rules.

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

10 years agoR600/SI: Remove redundant legalizeOperands call
Matt Arsenault [Thu, 14 Nov 2013 23:44:25 +0000 (23:44 +0000)]
R600/SI: Remove redundant legalizeOperands call

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

10 years agoSimplify testcase.
Eric Christopher [Thu, 14 Nov 2013 23:43:10 +0000 (23:43 +0000)]
Simplify testcase.

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

10 years agoAdd #include raw_ostream.h in lib/Target/R600/SIFixSGPRCopies.cpp
Hans Wennborg [Thu, 14 Nov 2013 23:24:09 +0000 (23:24 +0000)]
Add #include raw_ostream.h in lib/Target/R600/SIFixSGPRCopies.cpp

This was casuing my release+asserts build on Windows to fail.

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

10 years agoR600/SI: Specify S_ADDK/S_MULK set SCC and are commutable
Matt Arsenault [Thu, 14 Nov 2013 22:32:49 +0000 (22:32 +0000)]
R600/SI: Specify S_ADDK/S_MULK set SCC and are commutable

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

10 years agoDebugInfo: Simplify/narrow null-check for getOrCreateType
David Blaikie [Thu, 14 Nov 2013 22:25:02 +0000 (22:25 +0000)]
DebugInfo: Simplify/narrow null-check for getOrCreateType

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

10 years agoRecognize 0x0000 as a COFF file magic.
Rui Ueyama [Thu, 14 Nov 2013 22:09:08 +0000 (22:09 +0000)]
Recognize 0x0000 as a COFF file magic.

Summary:
Some machine-type-neutral object files containing only undefined symbols
actually do exist in the Windows standard library. Need to recognize them
as COFF files.

Reviewers: Bigcheese

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2164

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

10 years ago[AArch64] Remove redundant Neon_immAllOnes/Neon_immAllZeros leaf patterns.
Chad Rosier [Thu, 14 Nov 2013 22:02:46 +0000 (22:02 +0000)]
[AArch64] Remove redundant Neon_immAllOnes/Neon_immAllZeros leaf patterns.

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

10 years agoDwarfCompileUnit::getOrCreateContext: Return the compile unit DIE rather than null.
David Blaikie [Thu, 14 Nov 2013 21:24:34 +0000 (21:24 +0000)]
DwarfCompileUnit::getOrCreateContext: Return the compile unit DIE rather than null.

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

10 years agoRemove unnecessary 'else' after return.
David Blaikie [Thu, 14 Nov 2013 19:37:56 +0000 (19:37 +0000)]
Remove unnecessary 'else' after return.

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

10 years agoTypos. (Test commit.)
Paul Robinson [Thu, 14 Nov 2013 18:47:23 +0000 (18:47 +0000)]
Typos.  (Test commit.)

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

10 years agoFix regular expression to work with multiple-digit version numbers
Dmitri Gribenko [Thu, 14 Nov 2013 18:31:30 +0000 (18:31 +0000)]
Fix regular expression to work with multiple-digit version numbers

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

10 years agoARM: produce friendly error for invalid inline asm
Tim Northover [Thu, 14 Nov 2013 17:15:39 +0000 (17:15 +0000)]
ARM: produce friendly error for invalid inline asm

We used to perform an invalid operation on an MVT and crash, which wasn't much
fun.

Patch by Oliver Stannard.

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

10 years agoAdd a triple and switch test to FileCheck.
Rafael Espindola [Thu, 14 Nov 2013 17:12:32 +0000 (17:12 +0000)]
Add a triple and switch test to FileCheck.

On windows we don't print .weak for function definitions, so count was only
finding 1 'weak'.

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

10 years agollvm-cov.test: Remove XFAIL:arm. Seems this is passing since my tweaks.
NAKAMURA Takumi [Thu, 14 Nov 2013 17:08:26 +0000 (17:08 +0000)]
llvm-cov.test: Remove XFAIL:arm. Seems this is passing since my tweaks.

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

10 years agoError if we see an alias to a declaration.
Rafael Espindola [Thu, 14 Nov 2013 13:58:06 +0000 (13:58 +0000)]
Error if we see an alias to a declaration.

In ELF and COFF an alias is just another offset in a section. There is no way
to represent an alias to something in another file.

In MachO, the spec has the N_INDR type which should allow for exactly that, but
is not currently implemented. Given that it is specified but not implemented,
we error in codegen to avoid miscompiling but don't reject aliases to
declarations in the verifier to leave the option open of implementing it.

In the past we have used alias to declarations as a way of implementing
weakref, which is why it exists in some old tests which this patch updates.

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

10 years ago[asan] Poor man's coverage that works with ASan
Kostya Serebryany [Thu, 14 Nov 2013 13:27:41 +0000 (13:27 +0000)]
[asan] Poor man's coverage that works with ASan

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

10 years ago[msan] Use CHECK-DAG instead of CHECK where order of instructions does not matter.
Evgeniy Stepanov [Thu, 14 Nov 2013 12:46:12 +0000 (12:46 +0000)]
[msan] Use CHECK-DAG instead of CHECK where order of instructions does not matter.

This may fix hexagon-elf bots.

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

10 years ago[msan] Fast path optimization for wrap-indirect-calls feature of MemorySanitizer.
Evgeniy Stepanov [Thu, 14 Nov 2013 12:29:04 +0000 (12:29 +0000)]
[msan] Fast path optimization for wrap-indirect-calls feature of MemorySanitizer.

Indirect call wrapping helps MSanDR (dynamic instrumentation companion tool
for MSan) to catch all cases where execution leaves a compiler-instrumented
module by allowing the tool to rewrite targets of indirect calls.

This change is an optimization that skips wrapping for calls when target is
inside the current module. This relies on the linker providing symbols at the
begin and end of the module code (or code + data, does not really matter).
Gold linker provides such symbols by default. GNU (BFD) linker needs a link
flag: -Wl,--defsym=__executable_start=0.

More info:
https://code.google.com/p/memory-sanitizer/wiki/MSanDR#Native_exec

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

10 years agollvm-cov requires IR and Support as libraries. Instrumentation would be overkill.
NAKAMURA Takumi [Thu, 14 Nov 2013 11:45:16 +0000 (11:45 +0000)]
llvm-cov requires IR and Support as libraries. Instrumentation would be overkill.

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

10 years agollvm-cov.test: Tweak win32 hosts not confused by \r\n in llvm-cov's stdout.
NAKAMURA Takumi [Thu, 14 Nov 2013 11:45:10 +0000 (11:45 +0000)]
llvm-cov.test: Tweak win32 hosts not confused by \r\n in llvm-cov's stdout.

"diff -b" -- Ignore space changes.

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

10 years agoIR/GCOV.cpp: Use PRIu64 as format string with uint64_t.
NAKAMURA Takumi [Thu, 14 Nov 2013 11:45:04 +0000 (11:45 +0000)]
IR/GCOV.cpp: Use PRIu64 as format string with uint64_t.

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

10 years agoWhitespace.
NAKAMURA Takumi [Thu, 14 Nov 2013 11:44:58 +0000 (11:44 +0000)]
Whitespace.

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

10 years agoAVX-512: Handled extractelement from mask vector;
Elena Demikhovsky [Thu, 14 Nov 2013 11:29:27 +0000 (11:29 +0000)]
AVX-512: Handled extractelement from mask vector;
Added VMOSHDUP/VMOVSLDUP shuffle instructions.

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

10 years agoFix the header comment of the new pass manager stuff to not claim to be
Chandler Carruth [Thu, 14 Nov 2013 10:55:14 +0000 (10:55 +0000)]
Fix the header comment of the new pass manager stuff to not claim to be
the legacy stuff. =]

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

10 years agoIndentation fixes
Matt Arsenault [Thu, 14 Nov 2013 10:08:50 +0000 (10:08 +0000)]
Indentation fixes

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

10 years agoAdd a comment
Matt Arsenault [Thu, 14 Nov 2013 08:06:38 +0000 (08:06 +0000)]
Add a comment

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

10 years agoFix trailing whitespace in debug printing
Matt Arsenault [Thu, 14 Nov 2013 08:06:35 +0000 (08:06 +0000)]
Fix trailing whitespace in debug printing

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

10 years agoR600/SI: Add testcase for problem I ran into
Matt Arsenault [Thu, 14 Nov 2013 07:57:29 +0000 (07:57 +0000)]
R600/SI: Add testcase for problem I ran into
with the older version of the moveToVALU changes.

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

10 years agoyaml::Input::mapTag(): Don't use StringRef to hold return type of std::string.
NAKAMURA Takumi [Thu, 14 Nov 2013 07:08:56 +0000 (07:08 +0000)]
yaml::Input::mapTag(): Don't use StringRef to hold return type of std::string.

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

10 years agoWhitespace.
NAKAMURA Takumi [Thu, 14 Nov 2013 07:08:49 +0000 (07:08 +0000)]
Whitespace.

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

10 years agoAArch64DAGToDAGISel::SelectVTBL(): Fix a warning. [-Wunused-variable]
NAKAMURA Takumi [Thu, 14 Nov 2013 07:04:07 +0000 (07:04 +0000)]
AArch64DAGToDAGISel::SelectVTBL(): Fix a warning. [-Wunused-variable]

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

10 years agoMinor extension to llvm.experimental.patchpoint: don't require a call.
Andrew Trick [Thu, 14 Nov 2013 06:54:10 +0000 (06:54 +0000)]
Minor extension to llvm.experimental.patchpoint: don't require a call.

If a null call target is provided, don't emit a dummy call. This
allows the runtime to reserve as little nop space as it needs without
the requirement of emitting a call.

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

10 years agoAdd test case for AArch64 NEON instruction set misc.
Kevin Qin [Thu, 14 Nov 2013 06:45:17 +0000 (06:45 +0000)]
Add test case for AArch64 NEON instruction set misc.

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

10 years ago[OCaml] Build stub OCaml libraries for all configured targets
Peter Zotov [Thu, 14 Nov 2013 06:34:21 +0000 (06:34 +0000)]
[OCaml] Build stub OCaml libraries for all configured targets

This allows to only link in the needed targets, reducing binary
size and more importantly link time.

Note that this is an incomplete implementation: currently,
LLVM does not have the plumbing which would allow to conditionally
link in AsmPrinter, AsmParser and Disassembler for the targets
which support them. This should be improved in the future.

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

10 years ago[OCaml] Expose LLVM's fatal error and stacktrace APIs
Peter Zotov [Thu, 14 Nov 2013 06:34:13 +0000 (06:34 +0000)]
[OCaml] Expose LLVM's fatal error and stacktrace APIs

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

10 years agoDon't mangle \n and "
Rafael Espindola [Thu, 14 Nov 2013 06:05:49 +0000 (06:05 +0000)]
Don't mangle \n and "

There is nothing special about quotes and newlines from the object
file point of view, only the assembler has to worry about expanding
the \n and \".

This patch then removes the special handling from the Mangler.

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

10 years agoAdd external project LDC to release notes.
Kai Nacke [Thu, 14 Nov 2013 05:57:40 +0000 (05:57 +0000)]
Add external project LDC to release notes.

LDC, the LLVM-based D compiler, is already using LLVM 3.4.

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

10 years agoR600/SIFixSGPRCopies.cpp: Fix \param to \return. [-Wdocumentation]
NAKAMURA Takumi [Thu, 14 Nov 2013 04:05:28 +0000 (04:05 +0000)]
R600/SIFixSGPRCopies.cpp: Fix \param to \return. [-Wdocumentation]

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

10 years agoWhitespace.
NAKAMURA Takumi [Thu, 14 Nov 2013 04:05:22 +0000 (04:05 +0000)]
Whitespace.

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

10 years ago[AArch64 neon] support poly64 and relevant intrinsic functions.
Kevin Qin [Thu, 14 Nov 2013 03:27:58 +0000 (03:27 +0000)]
[AArch64 neon] support poly64 and relevant intrinsic functions.

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

10 years agoremove extra semicolon
Nick Kledzik [Thu, 14 Nov 2013 03:03:05 +0000 (03:03 +0000)]
remove extra semicolon

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

10 years agoImplement aarch64 neon instruction class SIMD misc.
Kevin Qin [Thu, 14 Nov 2013 02:44:13 +0000 (02:44 +0000)]
Implement aarch64 neon instruction class SIMD misc.

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

10 years agoAdd dyn_cast<> support to YAML I/O's IO class
Nick Kledzik [Thu, 14 Nov 2013 02:38:07 +0000 (02:38 +0000)]
Add dyn_cast<> support to YAML I/O's IO class

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

10 years agoAdded BlockFrequencyInfo::view for displaying the block frequency propagation graph...
Michael Gottesman [Thu, 14 Nov 2013 02:27:46 +0000 (02:27 +0000)]
Added BlockFrequencyInfo::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.

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

10 years agoSuppress llvm-cov.test on Win32, with REQUIRES: shell
NAKAMURA Takumi [Thu, 14 Nov 2013 02:05:41 +0000 (02:05 +0000)]
Suppress llvm-cov.test on Win32, with REQUIRES: shell

"cd" is unsupported in lit internal runner.

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

10 years agoUpdate emacs llvm mode.
Matt Arsenault [Thu, 14 Nov 2013 02:03:02 +0000 (02:03 +0000)]
Update emacs llvm mode.

It seems this hasn't been done in a while.

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

10 years agoImplement AArch64 NEON instruction set AdvSIMD (table).
Jiangning Liu [Thu, 14 Nov 2013 01:57:32 +0000 (01:57 +0000)]
Implement AArch64 NEON instruction set AdvSIMD (table).

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

10 years agoFixing a heisenbug where the memory dependence analysis behaves differently
Yunzhong Gao [Thu, 14 Nov 2013 01:10:52 +0000 (01:10 +0000)]
Fixing a heisenbug where the memory dependence analysis behaves differently
with and without -g.

Adding a test case to make sure that the threshold used in the memory
dependence analysis is respected. The test case also checks that debug
intrinsics are not counted towards this threshold.

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

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

10 years agoAdd simple support for tags in YAML I/O
Nick Kledzik [Thu, 14 Nov 2013 00:59:59 +0000 (00:59 +0000)]
Add simple support for tags in YAML I/O

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

10 years agollvm-cov: Slightly improved error checking.
Yuchen Wu [Thu, 14 Nov 2013 00:38:41 +0000 (00:38 +0000)]
llvm-cov: Slightly improved error checking.

- readInt() should check all 4 bytes can be read, not just 1.
- In the event of false data in the gcno file, it was possible to index
  into a non-existent index of SmallVector, causing assertion error.

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

10 years agollvm-cov: Removed StringMap holding GCOVLines.
Yuchen Wu [Thu, 14 Nov 2013 00:32:00 +0000 (00:32 +0000)]
llvm-cov: Removed StringMap holding GCOVLines.

According to the hazy gcov documentation, it appeared to be technically
possible for lines within a block to belong to different source files.
However, upon further investigation, gcov does not actually support
multiple source files for a single block.

This change removes a level of separation between blocks and lines by
replacing the StringMap of GCOVLines with a SmallVector of ints
representing line numbers. This also means that the GCOVLines class is
no longer needed.

This paves the way for supporting the "-a" option, which will output
block information.

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

10 years agollvm-cov: Replaced asserts with proper error handling.
Yuchen Wu [Thu, 14 Nov 2013 00:07:15 +0000 (00:07 +0000)]
llvm-cov: Replaced asserts with proper error handling.

Unified the interface for read functions. They all return a boolean
indicating if the read from file succeeded. Functions that previously
returned the read value now store it into a variable that is passed in
by reference instead. Callers will need to check the return value to
detect if an error occurred.

Also added a new test which ensures that no assertions occur when file
contains invalid data. llvm-cov should return with error code 1 upon
failure.

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

10 years agoFixed 80+ violations.
Michael Gottesman [Thu, 14 Nov 2013 00:05:07 +0000 (00:05 +0000)]
Fixed 80+ violations.

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

10 years agoR600: Fix uninitialized variable usage
Tom Stellard [Wed, 13 Nov 2013 23:58:51 +0000 (23:58 +0000)]
R600: Fix uninitialized variable usage

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

10 years agoTake care of long short branch immediate instructions for mips16 in
Reed Kotler [Wed, 13 Nov 2013 23:52:18 +0000 (23:52 +0000)]
Take care of long short branch immediate instructions for mips16 in
constant islands.

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

10 years agoR600/SI: Add support for private address space load/store
Tom Stellard [Wed, 13 Nov 2013 23:36:50 +0000 (23:36 +0000)]
R600/SI: Add support for private address space load/store

Private address space is emulated using the register file with
MOVRELS and MOVRELD instructions.

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

10 years agoR600/SI: Prefer SALU instructions for bit shift operations
Tom Stellard [Wed, 13 Nov 2013 23:36:37 +0000 (23:36 +0000)]
R600/SI: Prefer SALU instructions for bit shift operations

All shift operations will be selected as SALU instructions and then
if necessary lowered to VALU instructions in the SIFixSGPRCopies pass.

This allows us to do more operations on the SALU which will improve
performance and is also required for implementing private memory
using indirect addressing, since the private memory pointers must stay
in the scalar registers.

This patch includes some fixes from Matt Arsenault.

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

10 years agollvm-cov: Changed XFAIL targets to be more generic.
Yuchen Wu [Wed, 13 Nov 2013 23:33:17 +0000 (23:33 +0000)]
llvm-cov: Changed XFAIL targets to be more generic.

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

10 years agoAdded basic unit test for llvm-cov.
Yuchen Wu [Wed, 13 Nov 2013 22:50:15 +0000 (22:50 +0000)]
Added basic unit test for llvm-cov.

This test compares the output of llvm-cov against a coverage file
generated by gcov. Currently, llvm-cov does not work on certain
platforms (namely big-endian architectures such as PowerPC, among
others). These platforms are marked as XFAIL for now, but will be fixed
later.

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

10 years agoadd more comments around the delinearization of arrays
Sebastian Pop [Wed, 13 Nov 2013 22:37:58 +0000 (22:37 +0000)]
add more comments around the delinearization of arrays

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

10 years agoPath: Add tests for existing file magics.
Rui Ueyama [Wed, 13 Nov 2013 21:55:41 +0000 (21:55 +0000)]
Path: Add tests for existing file magics.

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

10 years agoWhitespace.
Rui Ueyama [Wed, 13 Nov 2013 20:31:21 +0000 (20:31 +0000)]
Whitespace.

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

10 years agoRevert my CMake patches concerning building with /MT (r194589, r194596)
Hans Wennborg [Wed, 13 Nov 2013 20:29:10 +0000 (20:29 +0000)]
Revert my CMake patches concerning building with /MT (r194589, r194596)

Reid pointed out we already have LLVM_USE_CRT_{buildtype} to set it.

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

10 years agoSimplify code. No functionality change.
Jakub Staszak [Wed, 13 Nov 2013 20:18:38 +0000 (20:18 +0000)]
Simplify code. No functionality change.

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

10 years agoUse StringRef instead of std::string
Jakub Staszak [Wed, 13 Nov 2013 20:09:11 +0000 (20:09 +0000)]
Use StringRef instead of std::string

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

10 years ago[AArch64] Add support for legacy AArch32 NEON scalar shift by immediate
Chad Rosier [Wed, 13 Nov 2013 20:05:37 +0000 (20:05 +0000)]
[AArch64] Add support for legacy AArch32 NEON scalar shift by immediate
instructions.  This patch does not include the shift right and accumulate
instructions.  A number of non-overloaded intrinsics have been remove in favor
of their overloaded counterparts.

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

10 years agoCMake: make building with /MT an option instead of always forcing it
Hans Wennborg [Wed, 13 Nov 2013 19:12:02 +0000 (19:12 +0000)]
CMake: make building with /MT an option instead of always forcing it
for release builds.

This is a follow-up to r194589. Aaron pointed out that building
libraries with /MT and using them in an application that uses a
different run-time library can be a bad idea.

Move the option to build with /MT behind a CMake option so it can be
turned on selectively, such as when building the toolchain installer.

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

10 years agoEnable generating legacy IT block for AArch32
Weiming Zhao [Wed, 13 Nov 2013 18:29:49 +0000 (18:29 +0000)]
Enable generating legacy IT block for AArch32

By default, the behavior of IT block generation will be determinated
dynamically base on the arch (armv8 vs armv7). This patch adds backend
options: -arm-restrict-it and -arm-no-restrict-it.  The former one
restricts the generation of IT blocks (the same behavior as thumbv8) for
both arches. The later one allows the generation of legacy IT block (the
same behavior as ARMv7 Thumb2) for both arches.

Clang will support -mrestrict-it and -mno-restrict-it, which is
compatible with GCC.

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

10 years agocmake: link release builds statically against run-time library on windows (use /MT...
Hans Wennborg [Wed, 13 Nov 2013 18:16:23 +0000 (18:16 +0000)]
cmake: link release builds statically against run-time library on windows (use /MT instead of /MD)

This should fix the problem of snapshot builds created with MSVC 2012 not
working for users with MSVC 2010, etc.

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

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

10 years agoDIEHash: Move header include to be first in the implementation file to flush out...
David Blaikie [Wed, 13 Nov 2013 18:07:27 +0000 (18:07 +0000)]
DIEHash: Move header include to be first in the implementation file to flush out header inclusion ordering issues

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

10 years ago[SystemZ] Add the general form of BCR
Richard Sandiford [Wed, 13 Nov 2013 16:57:53 +0000 (16:57 +0000)]
[SystemZ] Add the general form of BCR

At the moment this is just the MC support.

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

10 years agoMove Delinearization pass into an anonymous namespace.
Benjamin Kramer [Wed, 13 Nov 2013 15:35:17 +0000 (15:35 +0000)]
Move Delinearization pass into an anonymous namespace.

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

10 years agoMake sure LLVMLoadLibraryPermanently gets an extern "C" symbol.
Benjamin Kramer [Wed, 13 Nov 2013 15:35:13 +0000 (15:35 +0000)]
Make sure LLVMLoadLibraryPermanently gets an extern "C" symbol.

Otherwise it's impossible to use it. Also don't include C++ headers in
a C header.

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

10 years agoFileCheck: fix matching of one check-prefix is a prefix of another
Alexey Samsonov [Wed, 13 Nov 2013 14:12:52 +0000 (14:12 +0000)]
FileCheck: fix matching of one check-prefix is a prefix of another

Summary:
Fix a case when "FileCheck --check-prefix=CHECK --check-prefix=CHECKER"
would silently ignore check-lines of the form:
  CHECKER: foo

Reviewers: dsanders

Reviewed By: dsanders

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2168

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

10 years agoRemove AllowQuotesInName and friends from MCAsmInfo.
Rafael Espindola [Wed, 13 Nov 2013 14:01:59 +0000 (14:01 +0000)]
Remove AllowQuotesInName and friends from MCAsmInfo.

Accepting quotes is a property of an assembler, not of an object file. For
example, ELF can support any names for sections and symbols, but the gnu
assembler only accepts quotes in some contexts and llvm-mc in a few more.

LLVM should not produce different symbols based on a guess about which assembler
will be reading the code it is printing.

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

10 years agoDon't call doFinalization from verifyFunction.
Rafael Espindola [Wed, 13 Nov 2013 13:44:11 +0000 (13:44 +0000)]
Don't call doFinalization from verifyFunction.

verifyFunction needs to call doInitialization to collect metadata and avoid
crashing when verifying debug info in a function.

But it should not call doFinalization since that is where the verifier will
check declarations, variables and aliases, which is not desirable when one
only wants to verify a function.

A possible cleanup would be to split the class into a ModuleVerifier and
FunctionVerifier.

Issue reported by Ilia Filippov. Patch by Michael Kruse.

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

10 years agoFix bug in .gpword directive parsing.
Vladimir Medic [Wed, 13 Nov 2013 13:18:04 +0000 (13:18 +0000)]
Fix bug in .gpword directive parsing.

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

10 years agoSupport for microMIPS trap instruction with immediate operands.
Zoran Jovanovic [Wed, 13 Nov 2013 13:15:03 +0000 (13:15 +0000)]
Support for microMIPS trap instruction with immediate operands.

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

10 years agoFix -Wdelete-non-virtual-dtor warnings by making SampleProfile methods non-virtual
Alexey Samsonov [Wed, 13 Nov 2013 13:09:39 +0000 (13:09 +0000)]
Fix -Wdelete-non-virtual-dtor warnings by making SampleProfile methods non-virtual

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

10 years agoSampleProfileLoader pass. Initial setup.
Diego Novillo [Wed, 13 Nov 2013 12:22:21 +0000 (12:22 +0000)]
SampleProfileLoader pass. Initial setup.

This adds a new scalar pass that reads a file with samples generated
by 'perf' during runtime. The samples read from the profile are
incorporated and emmited as IR metadata reflecting that profile.

The profile file is assumed to have been generated by an external
profile source. The profile information is converted into IR metadata,
which is later used by the analysis routines to estimate block
frequencies, edge weights and other related data.

External profile information files have no fixed format, each profiler
is free to define its own. This includes both the on-disk representation
of the profile and the kind of profile information stored in the file.
A common kind of profile is based on sampling (e.g., perf), which
essentially counts how many times each line of the program has been
executed during the run.

The SampleProfileLoader pass is organized as a scalar transformation.
On startup, it reads the file given in -sample-profile-file to
determine what kind of profile it contains.  This file is assumed to
contain profile information for the whole application. The profile
data in the file is read and incorporated into the internal state of
the corresponding profiler.

To facilitate testing, I've organized the profilers to support two file
formats: text and native. The native format is whatever on-disk
representation the profiler wants to support, I think this will mostly
be bitcode files, but it could be anything the profiler wants to
support. To do this, every profiler must implement the
SampleProfile::loadNative() function.

The text format is mostly meant for debugging. Records are separated by
newlines, but each profiler is free to interpret records as it sees fit.
Profilers must implement the SampleProfile::loadText() function.

Finally, the pass will call SampleProfile::emitAnnotations() for each
function in the current translation unit. This function needs to
translate the loaded profile into IR metadata, which the analyzer will
later be able to use.

This patch implements the first steps towards the above design. I've
implemented a sample-based flat profiler. The format of the profile is
fairly simplistic. Each sampled function contains a list of relative
line locations (from the start of the function) together with a count
representing how many samples were collected at that line during
execution. I generate this profile using perf and a separate converter
tool.

Currently, I have only implemented a text format for these profiles. I
am interested in initial feedback to the whole approach before I send
the other parts of the implementation for review.

This patch implements:

- The SampleProfileLoader pass.
- The base ExternalProfile class with the core interface.
- A SampleProfile sub-class using the above interface. The profiler
  generates branch weight metadata on every branch instructions that
  matches the profiles.
- A text loader class to assist the implementation of
  SampleProfile::loadText().
- Basic unit tests for the pass.

Additionally, the patch uses profile information to compute branch
weights based on instruction samples.

This patch converts instruction samples into branch weights. It
does a fairly simplistic conversion:

Given a multi-way branch instruction, it calculates the weight of
each branch based on the maximum sample count gathered from each
target basic block.

Note that this assignment of branch weights is somewhat lossy and can be
misleading. If a basic block has more than one incoming branch, all the
incoming branches will get the same weight. In reality, it may be that
only one of them is the most heavily taken branch.

I will adjust this assignment in subsequent patches.

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

10 years agoFileCheck: fix a bug with multiple --check-prefix options.
Alexey Samsonov [Wed, 13 Nov 2013 11:56:22 +0000 (11:56 +0000)]
FileCheck: fix a bug with multiple --check-prefix options.

Summary:
This fixes a subtle bug in new FileCheck feature added
in r194343. When we search for the first satisfying check-prefix,
we should actually return the first encounter of some check-prefix as a
substring, even if it's not a part of valid check-line. Otherwise
"FileCheck --check-prefix=FOO --check-prefix=BAR" with check file:

  FOO not a vaild check-line
  FOO: foo
  BAR: bar

incorrectly accepted file:

  fog
  bar

as it skipped the first two encounters of FOO, matching only BAR: line.

Reviewers: arsenm, dsanders

Reviewed By: dsanders

CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2166

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

10 years agoXCore target: implement exception handling
Robert Lytton [Wed, 13 Nov 2013 10:19:31 +0000 (10:19 +0000)]
XCore target: implement exception handling

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

10 years agoFix typo + add URL
Sylvestre Ledru [Wed, 13 Nov 2013 10:07:16 +0000 (10:07 +0000)]
Fix typo + add URL

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

10 years agoThis patch fixes a bug in floating point operands parsing, when instruction alias...
Vladimir Medic [Wed, 13 Nov 2013 09:48:53 +0000 (09:48 +0000)]
This patch fixes a bug in floating point operands parsing, when instruction alias uses default register operand.

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

10 years agoAdd XFAIL:arm again on 4 MCJIT tests, since r194558. AArch64 has been left removed.
NAKAMURA Takumi [Wed, 13 Nov 2013 07:43:10 +0000 (07:43 +0000)]
Add XFAIL:arm again on 4 MCJIT tests, since r194558. AArch64 has been left removed.

They are failing on clang-native-arm-cortex-a9.

Please tweak MCJIT/lit.local.cfg, if this didn't satisfy bots.

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

10 years agoRemove XFAIL:aarch64,arm from 4 tests in test/ExecutionEngine/MCJIT.
NAKAMURA Takumi [Wed, 13 Nov 2013 06:28:00 +0000 (06:28 +0000)]
Remove XFAIL:aarch64,arm from 4 tests in test/ExecutionEngine/MCJIT.

They are reported as XPASSing.

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