Zlatko Buljan
01654c4941
[mips][microMIPS] Implement LH, LHE, LHU and LHUE instructions
...
Differential Revision: http://reviews.llvm.org/D9824
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254897 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-07 08:29:31 +00:00
Craig Topper
1632a3b152
Add uint8_t size to LegalizeTypeAction enum and use the enum type directly to remove some typecasts. NFC
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254895 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-07 06:31:41 +00:00
Craig Topper
260f72a264
Add uint8_t size to LegalizeAction enum so we can use the enum type directly and remove some casts. NFC
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254893 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-07 06:01:51 +00:00
Davide Italiano
0511c3bfdd
[llvm-objdump/MachoDump] Make code much more concise.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254888 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-07 00:03:28 +00:00
Keno Fischer
41e546b231
[Verifier] Fix !dbg validation if Scope is the Subprogram
...
Summary:
We are inserting both Scope and SP into the Seen map and check whether
it was already there in which case we skip the validation (the idea
being that we already checked this Subprogram before). However,
if (Scope == SP) as MDNodes, then inserting the Scope, will trigger
the Seen check causing us to incorrectly not validate this !dbg
attachment. Fix this by not performing the SP Seen check if Scope == SP
Reviewers: pcc, dexonsmith, dblaikie
Subscribers: dblaikie, llvm-commits
Differential Revision: http://reviews.llvm.org/D14697
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254887 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 23:05:38 +00:00
Simon Pilgrim
3b8cbdadaf
[X86][AVX] Tidied up BROADCASTPD/BROADCASTPS tests
...
Regenerate tests using update_llc_test_checks.py
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254886 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 20:12:19 +00:00
Lang Hames
1ecc6c0df2
[Orc] Rename IndirectStubsManagerBase to IndirectStubsManager.
...
No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254885 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 19:44:45 +00:00
Dan Gohman
001f341707
[WebAssembly] Factor out a TypeToString function, since we need it in multiple places.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254884 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 19:42:29 +00:00
Dan Gohman
577f887f75
[WebAssembly] Make tableswitch's 'default' operand explicit. NFC.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254883 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 19:34:57 +00:00
Dan Gohman
4693393907
[WebAssembly] Enable folding of offsets into global variable addresses.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254882 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 19:33:32 +00:00
Dan Gohman
d749dbb6ec
[WebAssembly] Tighten up some testcase regular expressions.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254881 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 19:31:44 +00:00
Dan Gohman
51b079cd28
[WebAssembly] Add some more ideas to README.txt.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254880 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 19:29:54 +00:00
Sanjay Patel
180d5cb8e1
[x86] add missing maxnum/minnum tests for 256-bit vectors
...
Also, switch to x86-64 because once we can lower these to something
more reasonable, there will be less noise in the checks. And add
AVX runs because those will be different than SSE.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254879 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 18:05:12 +00:00
Rafael Espindola
e89ea49c12
Create llvm.global_ctors in the new format.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254878 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 16:18:25 +00:00
Marina Yatsina
1c73aa0b63
[X86] Add support for loopz, loopnz for Intel syntax
...
According to x86 spec, loopz and loopnz should be supported for Intel syntax, where loopz is equivalent to loope and loopnz is equivalent to loopne.
Differential Revision: http://reviews.llvm.org/D15148
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254877 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 15:31:47 +00:00
Asaf Badouh
023610af4f
[X86][AVX512] add vmovss/sd missing encoding
...
Differential Revision: http://reviews.llvm.org/D14701
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254875 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 13:26:56 +00:00
Michael Kuperstein
f7fc15ed79
[X86] Always generate precise CFA adjustments.
...
This removes the code path that generate "synchronous" (only correct at call site) CFA.
We will probably want to re-introduce it once we are capable of emitting different
.eh_frame and .debug_frame sections.
Differential Revision: http://reviews.llvm.org/D14948
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254874 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 13:06:20 +00:00
Igor Breger
e407ee0520
AVX512: support AVX512BW Intrinsic in 32bit mode.
...
Differential Revision: http://reviews.llvm.org/D15076
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254873 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 11:35:18 +00:00
Craig Topper
e6bc7d1f0d
Use make_range to reduce mentions of iterator type. NFC
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254872 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 05:08:07 +00:00
Craig Topper
eb32659b9c
Minor formatting fix. NFC
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254871 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-06 05:07:58 +00:00
Sanjoy Das
a8231e7f59
[InstCombine] Call getCmpPredicateForMinMax only with a valid SPF
...
Summary:
There are `SelectPatternFlavor`s that don't represent min or max idioms,
and we should not be passing those to `getCmpPredicateForMinMax`.
Fixes PR25745.
Reviewers: majnemer
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D15249
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254869 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 23:44:22 +00:00
Davide Italiano
3aa1034794
[llvm-readobj] report_error() does not return, so we can simplify.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254868 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 23:36:52 +00:00
Dan Gohman
9eb92586b2
[WebAssembly] Don't perform the returned-argument optimization on constants.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254866 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 22:12:39 +00:00
Dan Gohman
39f84fda2f
[WebAssembly] Replace the fake JUMP_TABLE instruction with a def : Pat. NFC.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254864 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 20:46:53 +00:00
Dan Gohman
76e67ade5a
[WebAssembly] Implement direct calls to external symbols.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254863 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 20:41:36 +00:00
Sanjay Patel
27951cf8f8
Add vector fmaxnum tests that correspond to the existing fminnum tests
...
Note: missing 256-bit tests for min and max should also be added.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254862 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 20:27:10 +00:00
Dan Gohman
b975ecb43f
[WebAssembly] Support inline asm constraints of type i16 and similar.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254861 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 20:03:44 +00:00
Sanjay Patel
26a006a71e
fix typo; NFC
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254860 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 19:54:59 +00:00
Dan Gohman
64d85bf50c
[WebAssembly] Update a stale comment. NFC.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254859 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 19:43:19 +00:00
JF Bastien
1f5f023fe6
WebAssembly: improve readme, add placeholder for tests.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254857 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 19:36:33 +00:00
Dan Gohman
ecc456747e
[WebAssembly] Move useAA() out of line to make it more convenient to experiment with.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254856 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 19:27:18 +00:00
Dan Gohman
e7174bd9a6
[WebAssembly] Call TargetPassConfig base class functions in overriding functions.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254855 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 19:24:17 +00:00
Dan Gohman
e05c0dfd57
[WebAssembly] Expand frem as a floating point library function.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254854 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 19:15:57 +00:00
Craig Topper
5fa397629b
[Hexagon] Don't call getNumImplicitDefs and then iterate over the count. getNumImplicitDefs contains a loop so its better to just loop over the null terminated implicit def list. NFC
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254852 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 17:34:07 +00:00
Keno Fischer
b2387dc751
[ASAN] Add doFinalization to reset state
...
Summary: If the same pass manager is used for multiple modules ASAN
complains about GlobalsMD being initialized twice. Fix this by
resetting GlobalsMD in a new doFinalization method to allow this
use case.
Reviewers: kcc
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D14962
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254851 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 14:42:34 +00:00
Simon Pilgrim
092921b3d8
[X86][ADX] Added memory folding patterns and stack folding tests
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254844 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 07:27:50 +00:00
Craig Topper
79402ee6f9
Replace uint16_t with the MCPhysReg typedef in many places. A lot of physical register arrays already use this typedef.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254843 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 07:13:35 +00:00
Craig Topper
83f50fab53
Use std::fill instead of memset to initialize an array to avoid hardcoded count and a multiply. The outputed code is identical.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254842 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 07:13:25 +00:00
Simon Pilgrim
fbbab8b959
[X86][FMA4] Explicitly set the domain of FMA4 float/double scalar instructions
...
Both were defaulting to the float domain - now matches the packed instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254841 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 07:07:42 +00:00
Xinliang David Li
a8bc4db3b2
[PGO] Add version to getPGOFuncName method
...
Different version of indexed format may use different
name uniquing schemes for static functions. Pass the
version info to the name interface so that different
schmes can be picked (for profile lookup).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254838 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 05:16:36 +00:00
Cong Hou
c7d0ead45b
Normalize successors' probabilities when building MBBs for jump table.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254837 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 05:00:55 +00:00
David Blaikie
2b76269756
[llvm-dwp] Add coverage for both the presence and absence of type units, and fix/remove the emission of a broken tu_index when no type units are present
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254833 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 03:41:53 +00:00
David Blaikie
28683ac9d5
[llvm-dwp] Fix the type_units.test since I renamed its inputs as well
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254830 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 03:11:17 +00:00
David Blaikie
eaf992ce08
[llvm-dwp] Rename the sufficiently-modified test to reflect it's non-simplicity
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254829 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 03:10:05 +00:00
David Blaikie
32ad075fd5
[llvm-dwp] clang-format this to catch anything I've missed along the way
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254828 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 03:06:30 +00:00
David Blaikie
543e02b438
[llvm-dwp] Support debug_tu_index
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254827 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 03:05:45 +00:00
Dan Gohman
8893466777
[WebAssembly] Implement ReverseBranchCondition, and re-enable MachineBlockPlacement
...
This patch introduces a codegen-only instruction currently named br_unless,
which makes it convenient to implement ReverseBranchCondition and re-enable
the MachineBlockPlacement pass. Then in a late pass, it lowers br_unless
back into br_if.
Differential Revision: http://reviews.llvm.org/D14995
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254826 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 03:03:35 +00:00
Kostya Serebryany
35be75843e
[libFuzzer] one more trophie
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254825 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 02:23:49 +00:00
Kostya Serebryany
d33fc70ecf
[libFuzzer] don't reload the corpus more than once every second
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254824 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 02:09:22 +00:00
Lang Hames
830355b852
Whitespace.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254821 91177308-0d34-0410-b5e6-96231b3b80d8
2015-12-05 01:44:20 +00:00