1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 19:42:54 +02:00
Commit Graph

138929 Commits

Author SHA1 Message Date
Matt Arsenault
58e2ff3f3c AMDGPU: Don't use offen if it is 0
This removes many re-initializations of a base register to 0.

llvm-svn: 282999
2016-10-01 01:37:15 +00:00
Mehdi Amini
d309b57e6e Use StringRef in LTOCodegenerator (NFC)
llvm-svn: 282998
2016-10-01 01:18:23 +00:00
Mehdi Amini
f1666198ae Use StringRef in LTOModule implementation (NFC)
llvm-svn: 282997
2016-10-01 01:18:16 +00:00
Mehdi Amini
621ad4232b Use StringRef in Triple API (NFC)
llvm-svn: 282996
2016-10-01 01:16:22 +00:00
Kostya Serebryany
0d42a944a6 [libFuzzer] implement the -shrink=1 option that tires to make elements of the corpus smaller, off by default
llvm-svn: 282995
2016-10-01 01:04:29 +00:00
Nirav Dave
ad117417c8 [MC] Prevent out of order HashDirective lexing in AsmLexer.
To lex hash directives we peek ahead to find component tokens, create a
unified token, and unlex the peeked tokens so the parser does not need
to parse the tokens then. Make sure we do not to lex another hash
directive during peek operation.

This fixes PR28921.

Reviewers: rnk, loladiro

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D24839

llvm-svn: 282992
2016-10-01 00:42:32 +00:00
Mehdi Amini
0b0e71240c [ASAN] Add the binder globals on Darwin to llvm.compiler.used to avoid LTO dead-stripping
The binder is in a specific section that "reverse" the edges in a
regular dead-stripping: the binder is live as long as a global it
references is live.

This is a big hammer that prevents LLVM from dead-stripping these,
while still allowing linker dead-stripping (with special knowledge
of the section).

Differential Revision: https://reviews.llvm.org/D24673

llvm-svn: 282988
2016-10-01 00:05:34 +00:00
Kostya Serebryany
7a1929a3d8 [libFuzzer] remove some experimental code
llvm-svn: 282983
2016-09-30 23:29:27 +00:00
Davide Italiano
3f321aa5e6 [llvm-objdump] Switch to a range loop. NFCI.
llvm-svn: 282982
2016-09-30 23:22:42 +00:00
Matthias Braun
e96951abbc ScheduleDAGInstrs: Cleanup, use range based for; NFC
llvm-svn: 282979
2016-09-30 23:08:07 +00:00
Kostya Serebryany
30316a2bd2 [libFuzzer] fix openssl fuzzer tests when running on a machine w/o openssl installed
llvm-svn: 282972
2016-09-30 22:35:08 +00:00
Kostya Serebryany
841b6806c7 [libFuzzer] remove unused option
llvm-svn: 282971
2016-09-30 22:29:57 +00:00
Reid Kleckner
5f6739ae19 [SEH] Emit the parent frame offset label even if there are no funclets
This avoids errors about references to undefined local labels from
unreferenced filter functions.

Fixes (sort of) PR30431

llvm-svn: 282967
2016-09-30 22:10:12 +00:00
Quentin Colombet
86ffc4ee4a [AArch64][RegisterBankInfo] Use the helper functions for the checks
This makes sure the helper functions work as expected.

NFC.

llvm-svn: 282961
2016-09-30 21:46:21 +00:00
Quentin Colombet
cb5efa1795 [AArch64][RegisterBankInfo] Rename getValueMappingIdx to getValueMapping
We don't return index, we return the actual ValueMapping.

NFC.

llvm-svn: 282960
2016-09-30 21:46:19 +00:00
Quentin Colombet
66021ca5d5 [AArch64][RegisterBankInfo] Compress the ValueMapping table a bit.
We don't need to have singleton ValueMapping on their own, we can just
reuse one of the elements of the 3-ops mapping.
This allows even more code sharing.

NFC.

llvm-svn: 282959
2016-09-30 21:46:17 +00:00
Quentin Colombet
138aafd3ba [AArch64][RegisterBankInfo] Refactor the code to access AArch64::ValMapping
Use a helper function to access ValMapping. This should make the code
easier to understand and maintain.

NFC.

llvm-svn: 282958
2016-09-30 21:46:15 +00:00
Quentin Colombet
d414a349f2 [AArch64][RegisterBankInfo] Rename getRegBankIdx to getRegBankIdxOffset
The function name did not make it clear that the returned value was an
offset to apply to a register bank index.

NFC.

llvm-svn: 282957
2016-09-30 21:46:12 +00:00
Quentin Colombet
efb70bd767 [AArch64][RegisterBankInfo] Use the static opds mapping for alt mappings
Avoid to rely on the dynamically allocated operands mapping for the
alternative mapping.
NFC.

llvm-svn: 282956
2016-09-30 21:45:56 +00:00
Kostya Serebryany
a9a320d2db [libFuzzer] move common parts of shell scripts into a separate file
llvm-svn: 282954
2016-09-30 21:12:30 +00:00
Mike Aizatsky
d7a929dcd9 [libfuzzer] sancov documentation update
llvm-svn: 282953
2016-09-30 21:07:04 +00:00
Piotr Padlewski
470234459d NFC Add const
llvm-svn: 282952
2016-09-30 21:05:55 +00:00
Piotr Padlewski
41b1b96125 NFC fix class members initialization
llvm-svn: 282951
2016-09-30 21:05:52 +00:00
Piotr Padlewski
40ebe4972e NFC fix doxygen comments
llvm-svn: 282950
2016-09-30 21:05:49 +00:00
Rui Ueyama
d0fef82d91 Do not pass a superblock to PDBFileBuilder.
When we create a PDB file using PDBFileBuilder, the information
in the superblock, such as the size of the resulting file, is not
available.

Previously, PDBFileBuilder::initialize took a superblock assuming
that all the members of the struct are correct. That is useful when
you want to restore the exact information from a YAML file, but
that's probably the only use case in which that is useful.
When we are creating a PDB file on the fly, we have to backfill the
members.

This patch redefines PDBFileBuilder::initialize to take only a
block size. Now all the other members are left as default values,
so that they'll be updated when commit() is called.

Differential Revision: https://reviews.llvm.org/D25108

llvm-svn: 282944
2016-09-30 20:52:12 +00:00
Rui Ueyama
64da81a152 Pass a filename instead of a msf::WritableStream to PDBFileBuilder::commit.
WritableStream needs the exact file size to open a file, but
until we fix the final layout of a PDB file, we don't know the
size of the file.

This patch changes the parameter type of PDBFileBuilder::commit
to solve that chiecken-and-egg problem. Now the function opens
a file after fixing the layout, so it can create a file with the
exact size.

Differential Revision: https://reviews.llvm.org/D25107

llvm-svn: 282940
2016-09-30 20:34:44 +00:00
Joerg Sonnenberger
6d49ecc781 Sort LLVM_VERSION_INFO
llvm-svn: 282939
2016-09-30 20:34:02 +00:00
Joerg Sonnenberger
00b3ff650b GC left-over from workarounds for missing pid_t and size_t
llvm-svn: 282938
2016-09-30 20:32:42 +00:00
Joerg Sonnenberger
1613180421 GC ENABLE_PIC
llvm-svn: 282936
2016-09-30 20:30:25 +00:00
Joerg Sonnenberger
9f26389695 GC HAVE___DSO_HANDLE
llvm-svn: 282935
2016-09-30 20:29:19 +00:00
Joerg Sonnenberger
71a638ab96 Correctly expand HOST_LINK_VERSION.
llvm-svn: 282934
2016-09-30 20:28:42 +00:00
Joerg Sonnenberger
38c1555f13 Fix expansion of HAVE_SYS_MMAN_H
llvm-svn: 282933
2016-09-30 20:27:41 +00:00
Joerg Sonnenberger
6e6867f3cf GC HAVE_LINK_EXPORT_DYNAMIC.
llvm-svn: 282932
2016-09-30 20:26:31 +00:00
Joerg Sonnenberger
3901f9c0f8 GC HAVE_MMAP and HAVE_MMAP_FILE
llvm-svn: 282931
2016-09-30 20:24:54 +00:00
Joerg Sonnenberger
efcaf5ad89 Spell comment consistently with other library comments.
llvm-svn: 282930
2016-09-30 20:24:21 +00:00
Joerg Sonnenberger
21eac1d550 Sort LINK_POLLY_INTO_TOOLS.
llvm-svn: 282929
2016-09-30 20:21:35 +00:00
Joerg Sonnenberger
b5dfdcff7b GC STDC_HEADERS.
llvm-svn: 282928
2016-09-30 20:19:02 +00:00
Joerg Sonnenberger
876dd494c5 Deal with the (historic) MAP_ANONYMOUS vs MAP_ANON directly by using CPP
to check for the former, don't depend on (dangling) HAVE_MMAP_ANONYMOUS.

llvm-svn: 282925
2016-09-30 20:17:23 +00:00
Joerg Sonnenberger
c42de87cd4 Retire NEED_DEV_ZERO_FOR_MMAP. It should be needed only on outdated
systems. It wasn't even hooked up in cmake, so problems on such systems
would be visible with 3.9 release already.

llvm-svn: 282924
2016-09-30 20:16:01 +00:00
Joerg Sonnenberger
9d06fa6416 HAVE_LINK_R is not the only reason why this needs config.h.
llvm-svn: 282923
2016-09-30 20:11:21 +00:00
Joerg Sonnenberger
4d7547a981 GC HAVE_LIBDL, HAVE_LIBM and HAVE_LIBOLE32
llvm-svn: 282922
2016-09-30 20:09:45 +00:00
Joerg Sonnenberger
2f93d5e4ce Sort HAVE_LIBEDIT.
llvm-svn: 282921
2016-09-30 20:08:36 +00:00
Hans Wennborg
a560abffe4 X86: Allow conditional tail calls in Win64 "leaf" functions (PR26302)
We can't use Jcc to leave a Win64 function in general, because that
confuses the unwinder. However, for "leaf" functions, that is, functions
where the return address is always on top of the stack and which don't
have unwind info, it's OK.

Differential Revision: https://reviews.llvm.org/D24836

llvm-svn: 282920
2016-09-30 20:07:35 +00:00
Joerg Sonnenberger
80aa46d9db Turn ENABLE_CRASH_OVERRIDES into a 0/1 definition.
llvm-svn: 282919
2016-09-30 20:06:19 +00:00
Joerg Sonnenberger
a74d4452a5 Convert ENABLE_BACKTRACES into a 0/1 definition.
llvm-svn: 282918
2016-09-30 20:04:24 +00:00
Joerg Sonnenberger
943a1211b2 GC TIME_WITH_SYS_TIME and TM_IN_SYS_TIME
llvm-svn: 282917
2016-09-30 19:59:58 +00:00
Joerg Sonnenberger
8aae501f9f GC STAT_MACROS_BROKEN.
llvm-svn: 282915
2016-09-30 19:58:44 +00:00
Joerg Sonnenberger
639a3a8055 GC NEED_USCORE.
llvm-svn: 282914
2016-09-30 19:57:54 +00:00
Joerg Sonnenberger
e80a413c56 Turn LLVM_USE_OPROFILE into a 0/1 definition.
llvm-svn: 282909
2016-09-30 19:55:37 +00:00
Joerg Sonnenberger
58fed84cb6 Turn LLVM_USE_INTEL_JITEVENTS into a 0/1 definition.
llvm-svn: 282908
2016-09-30 19:54:25 +00:00