Michael J. Spencer
a4f9924c79
Revert "[Object] .bss sections have no content. PR15005."
...
This reverts commit r173007.
llvm-svn: 173012
2013-01-21 08:13:04 +00:00
Alexey Samsonov
b399118cad
CMake: add functions creating universal runtime libraries for several architectures on OS X and use them in ASan and UBSan build rules
...
llvm-svn: 173011
2013-01-21 08:12:20 +00:00
Craig Topper
66163a35ee
Use <0 checks in place of ==-1 because it results in simpler code.
...
llvm-svn: 173010
2013-01-21 07:25:16 +00:00
Craig Topper
9b29486f42
Use MVT instead of EVT in LowerVECTOR_SHUFFLEtoBlend.
...
llvm-svn: 173009
2013-01-21 07:19:54 +00:00
Craig Topper
32c5406dcf
Remove trailing whitespace.
...
llvm-svn: 173008
2013-01-21 06:57:59 +00:00
Michael J. Spencer
c47de41e02
[Object] .bss sections have no content. PR15005.
...
llvm-svn: 173007
2013-01-21 06:46:11 +00:00
Craig Topper
5c84c25bf4
Fix some 80 column violations.
...
llvm-svn: 173006
2013-01-21 06:21:54 +00:00
Craig Topper
2cd375896a
Make helper method static.
...
llvm-svn: 173005
2013-01-21 06:13:28 +00:00
Michael J. Spencer
b21371018c
[Support] Make test C++03.
...
llvm-svn: 173004
2013-01-21 05:39:07 +00:00
David Blaikie
0549106d88
PR14472: Preserve qualifiers while unwrapping types for debug info
...
Looks like r161368 fixed this for one case but not all. This change generalizes
the solution over all the unwrapping cases. Now that preserving the qualifiers
is done independent of the particular type being unwrapped I won't bother
adding test cases for each one but at least demonstrate that this change was
necessary & sufficient to fix the bug.
llvm-svn: 173002
2013-01-21 04:37:12 +00:00
Chandler Carruth
8717111bb1
Remove the comma from the last enumerator to fix -pedantic warnings.
...
llvm-svn: 172999
2013-01-21 02:17:36 +00:00
Chandler Carruth
511aa76048
Introduce a generic interface for querying an operation's expected
...
lowered cost.
Currently, this is a direct port of the logic implementing
isInstructionFree in CodeMetrics. The hope is that the interface can be
improved (f.ex. supporting un-formed instruction queries) and the
implementation abstracted so that as we have test cases and target
knowledge we can expose increasingly accurate heuristics to clients.
I'll start switching existing consumers over and kill off the routine in
CodeMetrics in subsequent commits.
llvm-svn: 172998
2013-01-21 01:27:39 +00:00
NAKAMURA Takumi
3c7982dfd9
Support/Compiler.h: MSC1600, aka VS2010, is not C++11-ready.
...
LLVM_HAS_CXX11_TYPETRAITS -- std::is_constructible
LLVM_HAS_CXX11_STDLIB -- std::unique_ptr
llvm-svn: 172997
2013-01-21 00:30:31 +00:00
Benjamin Kramer
135658f4bc
Disable test that fails due to lack of std::true_type in C++03.
...
Michael, can this test be ported to C++03?
llvm-svn: 172996
2013-01-20 21:52:27 +00:00
Craig Topper
cf93977920
Convert more EVT's to MVT's in the lowering methods.
...
llvm-svn: 172995
2013-01-20 21:50:27 +00:00
Craig Topper
e65a08be64
Capitalize lowerTRUNCATE so that it matches the other lower functions in this file despite it not matching coding standards.
...
llvm-svn: 172994
2013-01-20 21:34:37 +00:00
Michael J. Spencer
8af48f3864
[Core] Use LLVM's ErrorOr<T>.
...
llvm-svn: 172993
2013-01-20 21:27:05 +00:00
Renato Golin
e1fb059327
Revert CostTable algorithm, will re-write
...
llvm-svn: 172992
2013-01-20 20:57:20 +00:00
Michael J. Spencer
779c4247f7
[Support] Port ErrorOr<T> from lld to C++03.
...
llvm-svn: 172991
2013-01-20 20:32:30 +00:00
Benjamin Kramer
a6e2e2a0a7
LoopVectorize: Fix a C++11 incompatibility.
...
llvm-svn: 172990
2013-01-20 20:29:52 +00:00
Benjamin Kramer
4ab3c46874
Prune unused diagnostics.
...
Courtesy of utils/find-unused-diagnostics.sh.
llvm-svn: 172988
2013-01-20 19:29:01 +00:00
Richard Osborne
4e69724869
Add instruction encodings / disassembly support for l2rus instructions.
...
llvm-svn: 172987
2013-01-20 18:51:15 +00:00
Richard Osborne
9fbf57b26c
Add instruction encodings / disassembly support for l3r instructions.
...
llvm-svn: 172986
2013-01-20 18:37:49 +00:00
Richard Osborne
f063fcee7a
Add instruction encodings / disassembler support for 2rus instructions.
...
llvm-svn: 172985
2013-01-20 17:22:43 +00:00
Richard Osborne
3fb7395233
Add instruction encodings / disassembly support 3r instructions.
...
It is not possible to distinguish 3r instructions from 2r / rus instructions
using only the fixed bits. Therefore if an instruction doesn't match the
2r / rus format try to decode it as a 3r instruction before returning Fail.
llvm-svn: 172984
2013-01-20 17:18:47 +00:00
NAKAMURA Takumi
9439237063
llvm/test/CodeGen/X86/win_ftol2.ll: Add -cpu=generic to appease valgrind.
...
On valgrind the processor is reported;
Host CPU: athlon-fx
llvm-svn: 172983
2013-01-20 15:40:02 +00:00
NAKAMURA Takumi
a34792085c
clang/utils/valgrind/x86_64-pc-linux-gnu_gcc-4.3.3.supp: Add /usr/bin/cmp.
...
FIXME: It could be removed if;
- check-all included llvm/valgrind/supp, too.
- clang-vg didn't use "check-all".
llvm-svn: 172982
2013-01-20 15:30:41 +00:00
NAKAMURA Takumi
b909822721
llvm/utils/valgrind/x86_64-pc-linux-gnu.supp: Add /usr/bin/cmp.
...
llvm-svn: 172981
2013-01-20 15:30:29 +00:00
NAKAMURA Takumi
a589b96041
Add bitreader to LINK_COMPONENTS in users of libclang, c-arcmt-test and c-index-test.
...
They don't link cygclang.dll, but libclang.a on cygwin.
llvm-svn: 172980
2013-01-20 14:53:49 +00:00
Alexey Samsonov
4e50333684
CMake: Add add_compiler_rt_osx_object_library to create universal libraries on Mac
...
llvm-svn: 172979
2013-01-20 14:36:12 +00:00
Alexey Samsonov
d0522c73b5
CMake: use add_compiler_rt_static_runtime to build TSan and MSan runtimes. No functionality change.
...
llvm-svn: 172978
2013-01-20 14:14:13 +00:00
Alexey Samsonov
8c2cd862b6
CMake: Add add_compiler_rt_static_runtime function and use it to build generic compiler-rt libraries
...
llvm-svn: 172977
2013-01-20 13:58:10 +00:00
Alexey Samsonov
3292fde911
Temporary disable test added in r172828 as it seems to be flaky on the buildbots
...
llvm-svn: 172976
2013-01-20 13:41:26 +00:00
Alexey Samsonov
2d04812a45
Fixup for r172828: use InternalScopedBuffer in favor of large stack buffers
...
llvm-svn: 172975
2013-01-20 13:22:06 +00:00
Alexey Samsonov
29524a9871
Add top-level Clang flag -f(no-)sanitize-address-zero-base-shadow that makes AddressSanitizer use bottom of the address space for the shadow memory. On Linux it can be used with -fPIE/-pie to improve performance.
...
llvm-svn: 172974
2013-01-20 13:12:12 +00:00
Guy Benyei
1b4fb3e08b
Implement OpenCL event_t as Clang builtin type, including event_t related OpenCL restrictions (OpenCL 1.2 spec 6.9)
...
llvm-svn: 172973
2013-01-20 12:31:11 +00:00
Michael J. Spencer
359e09d4f5
[docs] Document lld's usage of C++11 features.
...
llvm-svn: 172972
2013-01-20 10:39:17 +00:00
Nadav Rotem
da9f2adffd
Fix a build error.
...
llvm-svn: 172971
2013-01-20 09:39:17 +00:00
Michael J. Spencer
0ad0f5ebe4
[docs] Update IRC information.
...
llvm-svn: 172970
2013-01-20 09:38:14 +00:00
Craig Topper
ce61fdf0a3
Make LowerVSETCC a static function and use MVT instead of EVT.
...
llvm-svn: 172969
2013-01-20 09:02:22 +00:00
Nadav Rotem
9450fcfff1
Revert 172708.
...
The optimization handles esoteric cases but adds a lot of complexity both to the X86 backend and to other backends.
This optimization disables an important canonicalization of chains of SEXT nodes and makes SEXT and ZEXT asymmetrical.
Disabling the canonicalization of consecutive SEXT nodes into a single node disables other DAG optimizations that assume
that there is only one SEXT node. The AVX mask optimizations is one example. Additionally this optimization does not update the cost model.
llvm-svn: 172968
2013-01-20 08:35:56 +00:00
Michael Gottesman
87a736ca9f
Changed IRBuilder::CreateZExtOrTrunc and IRBuilder::CreateSExtOrTrunc so they also work with vectors.
...
I also changed the name of a variable in IRBuilder::CreateFPExtOrFPTrunc to
match the names used in its two matching brethern as well.
llvm-svn: 172967
2013-01-20 07:33:26 +00:00
Nadav Rotem
f4779c1a33
Update the gcc-loops benchmark
...
llvm-svn: 172966
2013-01-20 07:01:04 +00:00
Nadav Rotem
af15daa14f
Update the linpack benchmark with different array sizes.
...
llvm-svn: 172965
2013-01-20 06:52:47 +00:00
Nadav Rotem
c42f90b1f4
LoopVectorizer: Implement a new heuristics for selecting the unroll factor.
...
We ignore the cpu frontend and focus on pipeline utilization. We do this because we
don't have a good way to estimate the loop body size at the IR level.
llvm-svn: 172964
2013-01-20 05:24:29 +00:00
Nadav Rotem
2169dbed2c
Change the cpu type in the test.
...
llvm-svn: 172963
2013-01-20 05:20:56 +00:00
Michael Gottesman
e41be48a59
More copy editing.
...
llvm-svn: 172962
2013-01-20 05:12:35 +00:00
Michael Gottesman
47c7bf0d26
Doxygenified and copy edited BasicBlock.h.
...
llvm-svn: 172961
2013-01-20 05:03:42 +00:00
Michael Gottesman
2013293d0a
Doxygenified Argument.h and performed some copy editing of the documentation.
...
llvm-svn: 172960
2013-01-20 05:03:39 +00:00
Michael Gottesman
3478f51cb8
Converted all method comments in IRBuilder.h to use doxygen style comments.
...
This implies changing method documentation from the following style:
/// MethodName - Method description...
to
/// \brief Method description...
ala the LLVM Style Guide.
llvm-svn: 172959
2013-01-20 05:03:37 +00:00