Michael Gottesman [Sun, 23 Feb 2014 04:43:26 +0000 (04:43 +0000)]
[python-bindings] Remove some cruft that snuck in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201966
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Sat, 22 Feb 2014 20:14:02 +0000 (20:14 +0000)]
Make test more resilient against scheduling decisions.
Should bring the atom buildbots back to life.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201951
91177308-0d34-0410-b5e6-
96231b3b80d8
Manman Ren [Sat, 22 Feb 2014 19:31:28 +0000 (19:31 +0000)]
Fix typo
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201944
91177308-0d34-0410-b5e6-
96231b3b80d8
Nico Rieck [Sat, 22 Feb 2014 16:12:20 +0000 (16:12 +0000)]
MC: Support COFF string tables larger than 10MB
Offsets past the range of single-slash encoding are encoded as base64,
padded to 6 characters, and prefixed with two slashes. This encoding is
undocumented but used by MSVC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201940
91177308-0d34-0410-b5e6-
96231b3b80d8
Logan Chien [Sat, 22 Feb 2014 15:39:39 +0000 (15:39 +0000)]
Don't inline get[S|U]LEB128Size() until they are proved to be hot.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201939
91177308-0d34-0410-b5e6-
96231b3b80d8
Logan Chien [Sat, 22 Feb 2014 14:00:39 +0000 (14:00 +0000)]
Move get[S|U]LEB128Size() to LEB128.h.
This commit moves getSLEB128Size() and getULEB128Size() from
MCAsmInfo to LEB128.h and removes some copy-and-paste code.
Besides, this commit also adds some unit tests for the LEB128
functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201937
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Sat, 22 Feb 2014 13:29:31 +0000 (13:29 +0000)]
Revert "Revert "Use relative rpath so that the installation and build dirs are relocatable.""
This reverts commit r201934.
Polly has been fixed to work with this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201936
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Sat, 22 Feb 2014 12:36:28 +0000 (12:36 +0000)]
Revert "Use relative rpath so that the installation and build dirs are relocatable."
This reverts commit r201921.
This should bring the polly bots back. I will try to build it locally to
understand how cmake was setting the rpath of LLVMPolly.so.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201934
91177308-0d34-0410-b5e6-
96231b3b80d8
Logan Chien [Sat, 22 Feb 2014 09:06:55 +0000 (09:06 +0000)]
Add const to some member functions of SuccIterator.
The operator+() and operator-() do not change the member
variables of SuccIterator. This CL will qualify the *this*
pointer with const.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201933
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Sat, 22 Feb 2014 07:31:10 +0000 (07:31 +0000)]
Prune debug message in AddLLVM.cmake.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201932
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Sat, 22 Feb 2014 07:27:04 +0000 (07:27 +0000)]
llvm/test/CodeGen/X86/shift-pcmp.ll: Tweak to appease FileCheck. "CHECK-LABEL" doesn't identify labels magically and CHECK-LABEL behaves free from other contexts.
For targeting pecoff, ".def foo" appears before ".short 32".
.def foo;
...
.LCPI0_0:
.short 32
foo:
CHECK-LABEL seeks not from ".short 32" but from the top of the input.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201931
91177308-0d34-0410-b5e6-
96231b3b80d8
Logan Chien [Sat, 22 Feb 2014 06:34:10 +0000 (06:34 +0000)]
Include <cctype> for isdigit().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201930
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael Gottesman [Sat, 22 Feb 2014 05:39:35 +0000 (05:39 +0000)]
[python-bindings] Added OpCode like support for all enumerations with unittests.
Also fixed some trailing whitespace issues.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201929
91177308-0d34-0410-b5e6-
96231b3b80d8
Quentin Colombet [Sat, 22 Feb 2014 01:06:41 +0000 (01:06 +0000)]
[CodeGenPrepare] Fix the check of the legality of an instruction.
The API expects an ISD opcode, not an IR opcode.
Fixes a regression for R600.
Related to <rdar://problem/
15519855>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201923
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Sat, 22 Feb 2014 00:54:14 +0000 (00:54 +0000)]
Use relative rpath so that the installation and build dirs are relocatable.
This works by asking cmake to use the "install rpath", but setting that rpath
to be relative.
Thanks a lot to Brad King for the help with CMake!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201921
91177308-0d34-0410-b5e6-
96231b3b80d8
Quentin Colombet [Sat, 22 Feb 2014 00:34:11 +0000 (00:34 +0000)]
Switch the LLVM error reporting on the new diagnostic system.
The LLVM diagnostic are now wired-up in clang (since r200931),
thus the user experience will not be impacted by this change
anymore.
Related to <rdar://problem/
15886697>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201915
91177308-0d34-0410-b5e6-
96231b3b80d8
Quentin Colombet [Sat, 22 Feb 2014 00:07:45 +0000 (00:07 +0000)]
[CodeGenPrepare] Move CodeGenPrepare into lib/CodeGen.
CodeGenPrepare uses extensively TargetLowering which is part of libLLVMCodeGen.
This is a layer violation which would introduce eventually a dependence on
CodeGen in ScalarOpts.
Move CodeGenPrepare into libLLVMCodeGen to avoid that.
Follow-up of <rdar://problem/
15519855>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201912
91177308-0d34-0410-b5e6-
96231b3b80d8
Quentin Colombet [Fri, 21 Feb 2014 23:42:41 +0000 (23:42 +0000)]
[DAGCombiner] PCMP* sets its result to all ones or zeros so we can AND with the
shifted mask rather than masking and shifting separately.
The patch adds this transformation to the DAGCombiner:
(shl (and (setcc:i8v16 ...) N01C) N1C) -> (and (setcc:i8v16 ...) N01C<<N1C)
<rdar://problem/
16054492>
Patch by Adam Nemet <anemet@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201906
91177308-0d34-0410-b5e6-
96231b3b80d8
Juergen Ributzka [Fri, 21 Feb 2014 23:29:32 +0000 (23:29 +0000)]
[Stackmaps] Move the target-independent frame index elimination for stackmaps and patchpoints into target-specific code.
The lowering of the frame index for stackmaps and patchpoints requires some
target-specific magic and should therefore be handled in the target-specific
eliminateFrameIndex method.
This is related to <rdar://problem/
16106219>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201904
91177308-0d34-0410-b5e6-
96231b3b80d8
Aaron Ballman [Fri, 21 Feb 2014 20:46:48 +0000 (20:46 +0000)]
Shankar kindly pointed out that I wasn't following the coding convention properly, so moving raw_ostream.h above system_error.h.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201885
91177308-0d34-0410-b5e6-
96231b3b80d8
Aaron Ballman [Fri, 21 Feb 2014 20:42:18 +0000 (20:42 +0000)]
Fixing the MSVC build by including a file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201884
91177308-0d34-0410-b5e6-
96231b3b80d8
Rui Ueyama [Fri, 21 Feb 2014 20:27:15 +0000 (20:27 +0000)]
llvm-objdump/COFF: LoadConfiguration does not exist in object file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201883
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 21 Feb 2014 20:21:55 +0000 (20:21 +0000)]
Add missing include.
Should fix the bots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201882
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 21 Feb 2014 20:10:59 +0000 (20:10 +0000)]
Add a SymbolicFile interface between Binary and ObjectFile.
This interface allows IRObjectFile to be implemented without having dummy
methods for all section and segment related methods.
Both llvm-ar and llvm-nm are changed to use it. Unfortunately the mangler is
still not plugged in since it requires some refactoring to make a Module hold
a DataLayout.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201881
91177308-0d34-0410-b5e6-
96231b3b80d8
David Blaikie [Fri, 21 Feb 2014 19:13:09 +0000 (19:13 +0000)]
DebugInfo: Remove the empty macinfo section.
We were just emitting a label for this section for no real reason - this
caused us to emit the section even though we never put anything in it.
Not bothering with a test (though not adamantly anti-test) because it
seems somewhat arbitrary to test for the absence of this section anymore
than the absence of any other section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201876
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 21 Feb 2014 18:34:28 +0000 (18:34 +0000)]
Rename a few more DataLayout variables from TD to DL.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201870
91177308-0d34-0410-b5e6-
96231b3b80d8
Sebastian Pop [Fri, 21 Feb 2014 18:15:18 +0000 (18:15 +0000)]
add -da-delinearize runs and checks to MIV testcases
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201869
91177308-0d34-0410-b5e6-
96231b3b80d8
Sebastian Pop [Fri, 21 Feb 2014 18:15:15 +0000 (18:15 +0000)]
fix a corner case in delinearization
handle special cases Step==1, Step==-1, GCD==1, and GCD==-1
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201868
91177308-0d34-0410-b5e6-
96231b3b80d8
Sebastian Pop [Fri, 21 Feb 2014 18:15:11 +0000 (18:15 +0000)]
normalize the last delinearized dimension
in the dependence test, we used to discard some information that the
delinearization provides: the size of the innermost dimension of an array,
i.e., the size of scalars stored in the array, and the remainder of the
delinearization that provides the offset from which the array reads start,
i.e., the base address of the array.
To avoid losing this data in the rest of the data dependence analysis, the fix
is to multiply the access function in the last delinearized dimension by its
size, effectively making the size of the last dimension to always be in bytes,
and then add the remainder of delinearization to the last subscript,
effectively making the last subscript start at the base address of the array.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201867
91177308-0d34-0410-b5e6-
96231b3b80d8
Sebastian Pop [Fri, 21 Feb 2014 18:15:07 +0000 (18:15 +0000)]
fail delinearization when the size of subscripts differs
Because the delinearization is not a global analysis pass, it will compute the
delinearization independently of knowledge about the way the delinearization
happened for other data accesses to the same array: the dependence analysis will
only trigger the delinearization on a tuple of access functions, and thus
delinearization may compute different subscripts sizes for a same array. When
that happens the safest is to discard the delinearized information.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201866
91177308-0d34-0410-b5e6-
96231b3b80d8
Sylvestre Ledru [Fri, 21 Feb 2014 17:58:12 +0000 (17:58 +0000)]
Remove dead declaration
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201863
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 21 Feb 2014 14:57:09 +0000 (14:57 +0000)]
[CMake] llvm-c/lto.h should be installed if libLTO.a is built.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201859
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 21 Feb 2014 14:17:43 +0000 (14:17 +0000)]
[CMake] libLTO: Use (SHARED|STATIC) to build both shared LTO and LTO_static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201856
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 21 Feb 2014 14:17:29 +0000 (14:17 +0000)]
[CMake] llvm_add_library: Add dependencies also to objlibs as workaround of CMake issue 14747.
http://www.cmake.org/Bug/view.php?id=14747
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201855
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 21 Feb 2014 14:17:17 +0000 (14:17 +0000)]
[CMake] Introduce "llvm_add_library(SHARED STATIC)" to build both shared lib and static lib simulataneously.
llvm_add_library(foo SHARED STATIC
DEPENDS <dependent targets...>
LINK_LIBS <required libraries...>
)
It generates both foo (foo.so) and foo_static(foo.a) and both of them depend on DEPENDS and LINK_LIBS.
Then, also obj.foo is generated. obj.foo depends on DEPENDS, but doesn't depend on LINK_LIBS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201854
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 21 Feb 2014 14:17:07 +0000 (14:17 +0000)]
Teach LLVM-Config to use logical target names (2/2)
The module still needs to collect the list of all available libraries
in order to satisfy the 'all' component. Provide this in the package
configuration file, 'LLVMConfig.cmake', as a LLVM_AVAILABLE_LIBS
variable. (A variable is scoped better than a global property.)
Since this won't be set for our own build, fall back to looking up the
LLVM_LIBS property to get the value when it is not set.
Contributed by Brad King.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201853
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Fri, 21 Feb 2014 14:16:52 +0000 (14:16 +0000)]
Teach LLVM-Config to use logical target names (1/2)
LLVM library names are now available as logical CMake targets both
to our own build and to application CMake code. Replace use of
'list(FIND)' with a simple 'if(TARGET)' to determine whether a
library is available.
Contributed by Brad King.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201852
91177308-0d34-0410-b5e6-
96231b3b80d8
Kevin Qin [Fri, 21 Feb 2014 07:45:48 +0000 (07:45 +0000)]
[AArch64] Add register constraints to avoid generating STLXR and STXR with unpredictable behavior.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201841
91177308-0d34-0410-b5e6-
96231b3b80d8
Filip Pizlo [Fri, 21 Feb 2014 03:17:31 +0000 (03:17 +0000)]
This test was failing on non-X86-64 platforms because stackmaps only work on X86-64.
Disable it on non-X86-64 platforms and add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201838
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 21 Feb 2014 03:13:54 +0000 (03:13 +0000)]
Make DisableIntegratedAS a TargetOption.
This replaces the old NoIntegratedAssembler with at TargetOption. This is
more flexible and will be used to forward clang's -no-integrated-as option.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201836
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 21 Feb 2014 02:01:42 +0000 (02:01 +0000)]
One last pass of DataLayout variable renaming.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201834
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 21 Feb 2014 01:53:35 +0000 (01:53 +0000)]
Rename a few more DataLayout variables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201833
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Fri, 21 Feb 2014 00:06:31 +0000 (00:06 +0000)]
Rename many DataLayout variables from TD to DL.
I am really sorry for the noise, but the current state where some parts of the
code use TD (from the old name: TargetData) and other parts use DL makes it
hard to write a patch that changes where those variables come from and how
they are passed along.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201827
91177308-0d34-0410-b5e6-
96231b3b80d8
Filip Pizlo [Thu, 20 Feb 2014 23:57:31 +0000 (23:57 +0000)]
Stackmaps are used for OSR exits, which is a custom kind of unwinding. Hence, they
should not be marked nounwind.
Marking them nounwind caused crashes in the WebKit FTL JIT, because if we enable
sufficient optimizations, LLVM starts eliding compact_unwind sections (or any unwind
data for that matter), making deoptimization via stackmaps impossible.
This changes the stackmap intrinsic to be may-throw, adds a test for exactly the
sympton that WebKit saw, and fixes TableGen to handle un-attributed intrinsics.
Thanks to atrick and philipreames for reviewing this.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201826
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 20 Feb 2014 23:00:15 +0000 (23:00 +0000)]
Make sure that value handle users see the transformation of an indirect call to a direct call. This is important for the CallGraph iteration. Patch by Björn Steinbrink!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201822
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Bendersky [Thu, 20 Feb 2014 22:19:24 +0000 (22:19 +0000)]
Set the SuppressWarnings option on tool level and propagate to the library.
The SuppressWarnings flag, unfortunately, isn't very useful for custom tools
that want to use the LLVM module linker. So I'm changing it to a parameter of
the Linker, and the flag itself moves to the llvm-link tool.
For the time being as SuppressWarnings is pretty much the only "option" it
seems reasonable to propagate it to Linker objects. If we end up with more
options in the future, some sort of "struct collecting options" may be a
better idea.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201819
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 20 Feb 2014 21:05:21 +0000 (21:05 +0000)]
cstdint is a C++11 header, LLVM provides its own version of it.
Some versions of libstdc++ forbid using cstdint in C++98 mode.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201812
91177308-0d34-0410-b5e6-
96231b3b80d8
Michael J. Spencer [Thu, 20 Feb 2014 20:46:23 +0000 (20:46 +0000)]
[Support] Correctly handle zero length inputs to UTF conversion functions on Windows.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201811
91177308-0d34-0410-b5e6-
96231b3b80d8
Adrian Prantl [Thu, 20 Feb 2014 19:55:44 +0000 (19:55 +0000)]
test_debuginfo.pl: Make failures easier to debug by printing the debugger
output.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201809
91177308-0d34-0410-b5e6-
96231b3b80d8
Rui Ueyama [Thu, 20 Feb 2014 19:32:00 +0000 (19:32 +0000)]
Fix build breakage.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201805
91177308-0d34-0410-b5e6-
96231b3b80d8
Rui Ueyama [Thu, 20 Feb 2014 19:14:56 +0000 (19:14 +0000)]
Object/COFF: Fix possible truncation bug.
VA can be 64 bit, as the image base can be larger than 4GB, so we need to
handle 64 bit VAs properly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201803
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 20 Feb 2014 17:36:31 +0000 (17:36 +0000)]
Remove unnecessary copy of array_lengthof.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201798
91177308-0d34-0410-b5e6-
96231b3b80d8
Oliver Stannard [Thu, 20 Feb 2014 17:19:26 +0000 (17:19 +0000)]
AArch64: __va_list.__stack must be 8-byte aligned
The va_start macro for AArch64 must set va_list.__stack to the address
following the last named argument on the stack, rounded up to an alignment
of 8 bytes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201797
91177308-0d34-0410-b5e6-
96231b3b80d8
Chad Rosier [Thu, 20 Feb 2014 16:00:08 +0000 (16:00 +0000)]
[AArch64] Add support for TargetTransformInfo Analysis.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201793
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Thu, 20 Feb 2014 14:58:19 +0000 (14:58 +0000)]
[mips] Make it impossible to have UnknownABI in CodeGen and Integrated Assembler.
Summary:
This removes the need to coerce UnknownABI to the default ABI (O32 for
MIPS32, N64 for MIPS64 [*]) in both MipsSubtarget and MipsAsmParser.
Clang has been updated to disable both possible default ABI's before enabling
the ABI it intends to use.
[*] N64 being the default for MIPS64 is not actually correct.
However N32 is not fully implemented/tested yet.
Depends on: D2830
Reviewers: jacksprat, matheusalmeida
Reviewed By: matheusalmeida
Differential Revision: http://llvm-reviews.chandlerc.com/D2832
Differential Revision: http://llvm-reviews.chandlerc.com/D2846
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201792
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Thu, 20 Feb 2014 13:42:30 +0000 (13:42 +0000)]
[CMake] Move intrinsics_gen to lib/Target out of add_public_tablegen_target.
add_public_tablegen_target is used somewhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201787
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Thu, 20 Feb 2014 13:42:16 +0000 (13:42 +0000)]
[CMake] intrinsics_gen: Use add_public_tablegen_target().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201786
91177308-0d34-0410-b5e6-
96231b3b80d8
Benjamin Kramer [Thu, 20 Feb 2014 13:36:32 +0000 (13:36 +0000)]
AsmParser: Disable Darwin-style macro argument expansion on non-darwin targets.
There is code in the wild that relies on $0 not being expanded.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201784
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Thu, 20 Feb 2014 13:13:33 +0000 (13:13 +0000)]
[mips] Make mips64 the default CPU for the mips64 architecture
Summary:
This is consistent with the integrated assembler.
All mips64 codegen tests previously passed -mcpu. Removed -mcpu from
blez_bgez.ll and const-mult.ll to cover the default case.
Ideally, the two implementations of selectMipsCPU() will be merged but it's
proven difficult to find a home for the function that doesn't cause link errors.
For now, we'll hoist the common functionality into a function and mark it with
FIXME's.
Reviewers: jacksprat, matheusalmeida
Reviewed By: matheusalmeida
Differential Revision: http://llvm-reviews.chandlerc.com/D2830
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201782
91177308-0d34-0410-b5e6-
96231b3b80d8
Evgeniy Stepanov [Thu, 20 Feb 2014 11:37:03 +0000 (11:37 +0000)]
Unconditionally include msan_interface.h when building with MSan.
Any version of Clang that does not provide this header is way too old to
bootstrap with MSan.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201776
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Thu, 20 Feb 2014 09:24:15 +0000 (09:24 +0000)]
Added release note about making all inline assembly parsed (even for assembly
output) when the integrated assembler is enabled.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201770
91177308-0d34-0410-b5e6-
96231b3b80d8
NAKAMURA Takumi [Thu, 20 Feb 2014 09:16:23 +0000 (09:16 +0000)]
COFFObjectFile.cpp: Appease msvc in r201760.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201769
91177308-0d34-0410-b5e6-
96231b3b80d8
Craig Topper [Thu, 20 Feb 2014 07:59:43 +0000 (07:59 +0000)]
[x86] Switch PAUSE instruction to use XS prefix instead of HasREPPrefix. Remove HasREPPrefix support from disassembler table generator since its now only used by CodeGenOnly instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201767
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Thu, 20 Feb 2014 07:34:13 +0000 (07:34 +0000)]
AVX-512: added a lit test for truncate operation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201763
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Thu, 20 Feb 2014 07:00:10 +0000 (07:00 +0000)]
AVX-512: Fixed compilation issue
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201761
91177308-0d34-0410-b5e6-
96231b3b80d8
Rui Ueyama [Thu, 20 Feb 2014 06:51:07 +0000 (06:51 +0000)]
llvm-objdump/COFF: Print SEH table addresses.
SEH table addresses are VA in COFF file. In this patch we convert VA to RVA
before printing it, because dumpbin prints them as RVAs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201760
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 20 Feb 2014 06:35:31 +0000 (06:35 +0000)]
Fix change in behaviour accidentally introduced in r201754.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201758
91177308-0d34-0410-b5e6-
96231b3b80d8
Elena Demikhovsky [Thu, 20 Feb 2014 06:34:39 +0000 (06:34 +0000)]
AVX-512: Assembly parsing of broadcast semantic in AVX-512; imlemented by Nis Zinovy (zinovy.y.nis@intel.com)
Fixed truncate i32 to i1; a test will be provided in the next commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201757
91177308-0d34-0410-b5e6-
96231b3b80d8
Rui Ueyama [Thu, 20 Feb 2014 06:02:09 +0000 (06:02 +0000)]
Object/COFF: Fix padding between CSDVersion and EditList.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201756
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Thu, 20 Feb 2014 05:06:26 +0000 (05:06 +0000)]
Simplify the implementation of getUnderlyingObjectsForInstr, without intending to change the semantics at all.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201754
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 20 Feb 2014 02:50:45 +0000 (02:50 +0000)]
Add support for hashing attributes with DW_FORM_block. This required
passing down an AsmPrinter instance so we could compute the size of
the block which could be target specific. All of the test cases in
the unittest don't have any target specific data so we can use a NULL
AsmPrinter there. This also depends upon block data being added as
integers.
We can now hash the entire fission-cu.ll compile unit so turn the
flag on there with the hash value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201752
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 20 Feb 2014 02:40:45 +0000 (02:40 +0000)]
Make DIELoc/DIEBlock's ComputeSize method const. Add a setSize
method to actually set it in the class to avoid computing it
multiple times.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201751
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 20 Feb 2014 02:40:41 +0000 (02:40 +0000)]
Format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201750
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 20 Feb 2014 01:27:51 +0000 (01:27 +0000)]
This tests DW_FORM_sdata, not DW_FORM_block. Make the test say so.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201749
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 20 Feb 2014 00:59:17 +0000 (00:59 +0000)]
Fix commit thinkos from splitting out patches.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201748
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 20 Feb 2014 00:54:40 +0000 (00:54 +0000)]
Add support for hashing DW_FORM_sdata and a small testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201747
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 20 Feb 2014 00:54:38 +0000 (00:54 +0000)]
Format.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201746
91177308-0d34-0410-b5e6-
96231b3b80d8
Eric Christopher [Thu, 20 Feb 2014 00:54:35 +0000 (00:54 +0000)]
Remove FIXME that had snuck in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201745
91177308-0d34-0410-b5e6-
96231b3b80d8
Tobias Grosser [Wed, 19 Feb 2014 22:16:53 +0000 (22:16 +0000)]
Avoid collisions with Objective-C++ keywords
Change parameter names exposed in headers to avoid collisions with Objective-C++
keywords.
Contributed-by: Graham Lee <graham@iamleeg.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201727
91177308-0d34-0410-b5e6-
96231b3b80d8
Tobias Grosser [Wed, 19 Feb 2014 22:16:49 +0000 (22:16 +0000)]
Fix typo
Found by: Duncan P. N. Exon Smith <dexonsmith@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201726
91177308-0d34-0410-b5e6-
96231b3b80d8
Reed Kotler [Wed, 19 Feb 2014 22:11:45 +0000 (22:11 +0000)]
Make one statement easier to understand from post commmit feedback from a
review of the previous patch that introduced this week.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201723
91177308-0d34-0410-b5e6-
96231b3b80d8
Roman Divacky [Wed, 19 Feb 2014 21:35:39 +0000 (21:35 +0000)]
Expand 64bit {SHL,SHR,SRA}_PARTS on sparcv9.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201718
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 19 Feb 2014 20:30:41 +0000 (20:30 +0000)]
move getNameWithPrefix and getSymbol to TargetMachine.
TargetLoweringBase is implemented in CodeGen, so before this patch we had
a dependency fom Target to CodeGen. This would show up as a link failure of
llvm-stress when building with -DBUILD_SHARED_LIBS=ON.
This fixes pr18900.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201711
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 19 Feb 2014 17:23:20 +0000 (17:23 +0000)]
Add back r201608, r201622, r201624 and r201625
r201608 made llvm corretly handle private globals with MachO. r201622 fixed
a bug in it and r201624 and r201625 were changes for using private linkage,
assuming that llvm would do the right thing.
They all got reverted because r201608 introduced a crash in LTO. This patch
includes a fix for that. The issue was that TargetLoweringObjectFile now has
to be initialized before we can mangle names of private globals. This is
trivially true during the normal codegen pipeline (the asm printer does it),
but LTO has to do it manually.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201700
91177308-0d34-0410-b5e6-
96231b3b80d8
Eli Bendersky [Wed, 19 Feb 2014 17:09:35 +0000 (17:09 +0000)]
Refactor TargetOptions initialization into a single place.
The same code (~20 lines) for initializing a TargetOptions object from CodeGen
cmdline flags is duplicated 4 times in 4 different tools. This patch moves it
into a utility function.
Since the CodeGen/CommandFlags.h file defines cl::opt flags in a header, it's
a bit of a touchy situation because we should only link them into tools. So this
patch puts the init function in the header.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201699
91177308-0d34-0410-b5e6-
96231b3b80d8
Christian Pirker [Wed, 19 Feb 2014 16:58:28 +0000 (16:58 +0000)]
Test commit - remove the new line to lib/Target/AArch64/AArch64TargetMachine.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201698
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Wed, 19 Feb 2014 16:27:36 +0000 (16:27 +0000)]
[mips] Use multiple FileCheck prefixes rather than run the test multiple times
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201695
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Wed, 19 Feb 2014 16:13:26 +0000 (16:13 +0000)]
[mips] In the integrated assembler, select the default feature bits by changing the CPU value.
This is consistent with the way CodeGen acheives this. However, CodeGen
always selects mips32 (even when the architecture is mips64).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201694
91177308-0d34-0410-b5e6-
96231b3b80d8
Christian Pirker [Wed, 19 Feb 2014 16:07:32 +0000 (16:07 +0000)]
Test commit - added a new line to lib/Target/AArch64/AArch64TargetMachine.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201692
91177308-0d34-0410-b5e6-
96231b3b80d8
Venkatraman Govindaraju [Wed, 19 Feb 2014 15:57:49 +0000 (15:57 +0000)]
[Sparc] Remove spurious checks from a testcase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201690
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Wed, 19 Feb 2014 15:55:21 +0000 (15:55 +0000)]
[mips] Use llvm::Triple in ParseMipsTriple() instead of manually parsing it
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201689
91177308-0d34-0410-b5e6-
96231b3b80d8
Rafael Espindola [Wed, 19 Feb 2014 15:49:46 +0000 (15:49 +0000)]
This reverts commit r201625 and r201624.
Since r201608 got reverted, it is not safe to use private linkage in these cases
until it is committed back.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201688
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Wed, 19 Feb 2014 15:30:54 +0000 (15:30 +0000)]
[mips] Add explicit N32 and N64 tests to nabi-regs.s test
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201684
91177308-0d34-0410-b5e6-
96231b3b80d8
Alexey Samsonov [Wed, 19 Feb 2014 15:18:30 +0000 (15:18 +0000)]
Support GTest for FreeBSD platforms (9.x)
Patch by Viktor Kutuzov!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201683
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Sanders [Wed, 19 Feb 2014 15:16:47 +0000 (15:16 +0000)]
[mips] Remove unused NotN64 predicate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201682
91177308-0d34-0410-b5e6-
96231b3b80d8
Cameron McInally [Wed, 19 Feb 2014 15:16:09 +0000 (15:16 +0000)]
Fix AVX512 vector sqrt assembly strings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201681
91177308-0d34-0410-b5e6-
96231b3b80d8
Logan Chien [Wed, 19 Feb 2014 15:04:29 +0000 (15:04 +0000)]
Disable override and final C++ keyword in gcc 4.6.
According to http://gcc.gnu.org/projects/cxx0x.html,
override and final keyword was added in gcc 4.7. Thus,
we should not use these keywords in gcc 4.6 even when
__GXX_EXPERIMENTAL_CXX0X__ is available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201679
91177308-0d34-0410-b5e6-
96231b3b80d8
Daniel Jasper [Wed, 19 Feb 2014 12:26:01 +0000 (12:26 +0000)]
Revert r201622 and r201608.
This causes the LLVMgold plugin to segfault. More information on the
replies to r201608.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201669
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Wed, 19 Feb 2014 12:24:19 +0000 (12:24 +0000)]
X86: move test requiring X86TargetLowering info into its own directory
If LLVM is built without X86 as a supported target then the test would
mysteriously fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201668
91177308-0d34-0410-b5e6-
96231b3b80d8
Tim Northover [Wed, 19 Feb 2014 10:32:40 +0000 (10:32 +0000)]
Try addding datalayout in case that's what Hexagon doesn't like.
Just a wild stab in the dark really, but in the absence of any ability to
reproduce the problem...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201658
91177308-0d34-0410-b5e6-
96231b3b80d8