Petr Hosek
27f2fb013f
[MC] Support symbolic expressions in assembly directives
...
This matches the behavior of GNU assembler which supports symbolic
expressions in absolute expressions used in assembly directives.
Differential Revision: http://reviews.llvm.org/D20752
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271102 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 05:57:48 +00:00
Zachary Turner
5cfb6469b8
[pdb] Finish conversion to zero copy pdb access.
...
This converts remaining uses of ByteStream, which was still
left in the symbol stream and type stream, to using the new
StreamInterface zero-copy classes.
RecordIterator is finally deleted, so this is the only way left
now. Additionally, more error checking is added when iterating
the various streams.
With this, the transition to zero copy pdb access is complete.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271101 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 05:21:57 +00:00
Renato Golin
b0771c89b2
Revert "Revert "Map DynamicNoPIC to Static on non-darwin.""
...
This reverts commit r271096, as reverting it broke even more buildbots!
But that also means I'll break on ARM again... :(
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271099 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 04:47:13 +00:00
Sean Silva
9214c0d716
Add a comment about why we need to buffer the attribute changes.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271097 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 04:24:39 +00:00
Renato Golin
ff7695ffc7
Revert "Map DynamicNoPIC to Static on non-darwin."
...
This reverts commit r271052, as it broke some ARM buildbots.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271096 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 04:24:26 +00:00
Kostya Serebryany
8c598528c3
[libFuzzer] fix a failure that occurs when running individual inputs
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271095 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 04:19:46 +00:00
Sean Silva
28cd01c46e
Small cleanup.
...
Centralize assertion.
Clean up max loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271094 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 04:19:45 +00:00
Sean Silva
74391ad33a
Inline this into its only use. NFC.
...
The name was out of date at this point and it seems simple enough to
have in-line.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271093 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 04:19:40 +00:00
Sean Silva
21bbb92ca3
Bring back r271090 in a way that doesn't depend on r271089.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271092 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 04:05:36 +00:00
Sean Silva
c44d843ff4
Revert r271089 and r271090.
...
It was triggering an msan bot.
Revert "[IRPGO] Set the function entry count metadata."
This reverts commit r271090.
Revert "[IRPGO] Centralize the function attribute inliner hint logic. NFC."
This reverts commit r271089.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271091 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 03:56:25 +00:00
Sean Silva
ef7704b344
[IRPGO] Set the function entry count metadata.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271090 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 03:02:54 +00:00
Sean Silva
2abc50b71c
[IRPGO] Centralize the function attribute inliner hint logic. NFC.
...
This keeps the logic in the same function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271089 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 03:02:50 +00:00
Krzysztof Parzyszek
537cc1b99b
[Hexagon] Add option to enable subregister liveness tracking
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271088 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 02:02:51 +00:00
Krzysztof Parzyszek
d074accb5e
[Hexagon] Separate C8 and USR to avoid unwanted subregister composition
...
Composing subreg_loreg with subreg_oveflow leads to strange results with
lane masks for register classes with subreg_loreg. In particular, dead
lane detection generates incorrect code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271087 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 01:51:16 +00:00
Michael Zolotukhin
a8ae925774
[LoopUnrollAnalyzer] Add a comment to visitCastInst.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271086 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 01:40:14 +00:00
Matthias Braun
8bcf561616
AArch64: Fix indentation
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271084 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 01:06:51 +00:00
Sean Silva
669fa32c40
[docs] Be a bit more precise.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271083 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 01:03:36 +00:00
Matt Arsenault
c3eeba0f4c
AMDGPU: Cleanup vector insert/extract tests
...
This mostly makes sure that 3-vector dynamic inserts
and extracts are covered.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271082 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 00:51:06 +00:00
Matt Arsenault
0c56b68bee
AMDGPU: Fix trailing whitespace
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271081 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 00:50:51 +00:00
Matt Arsenault
14cb586d5e
AMDGPU: Add fract intrinsic
...
Remove broken patterns matching it. This was matching the
unsafe math pattern and expanding the fix for the buggy instruction
from the pattern. The problems are also on CI. Remove the workarounds
and only use fract with unsafe math or from the intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271078 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 00:19:52 +00:00
Evgeny Stupachenko
6be2be5352
The patch fixes r271071
...
Summary:
unused variables in Release mode:
BasicBlock *Header
unsigned OrigCount
put under DEBUG
From: Evgeny Stupachenko <evstupac@gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271076 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 00:14:58 +00:00
Xinliang David Li
921e2ae3fa
Fix windows build bot failure
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271075 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-28 00:03:35 +00:00
Xinliang David Li
bc6df7a799
[PM] Port the Sample FDO to new PM (part-2)
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271072 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 23:20:16 +00:00
Evgeny Stupachenko
1369b53da1
The patch refactors unroll pass.
...
Summary:
Unroll factor (Count) calculations moved to a new function.
Early exits on pragma and "-unroll-count" defined factor added.
New type of unrolling "Force" introduced (previously used implicitly).
New unroll preference "AllowRemainder" introduced and set "true" by default.
(should be set to false for architectures that suffers from it).
Reviewers: hfinkel, mzolotukhin, zzheng
Differential Revision: http://reviews.llvm.org/D19553
From: Evgeny Stupachenko <evstupac@gmail.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271071 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 23:15:06 +00:00
Sanjoy Das
051a0b5646
Use C++ casts to avoid a warning
...
warning: cast from type ‘const void*’ to type
‘llvm::PrettyStackTraceEntry*’ casts away qualifiers [-Wcast-qual]
PrettyStackTraceHead = (PrettyStackTraceEntry*)Top;
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271069 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 23:04:28 +00:00
Andrew Kaylor
c465f6c040
Update the stack coloring pass to remove lifetime intrinsics in the optnone/opt-bisect skip case.
...
Differential Revision: http://reviews.llvm.org/D20453
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271068 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 22:56:49 +00:00
Vitaly Buka
5683aa8247
[asan] Add option to enable asan-use-after-scope from clang.
...
Clang will have -fsanitize-address-use-after-scope flag.
PR27453
Reviewers: kcc, eugenis, aizatsky
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D20750
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271067 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 22:55:10 +00:00
Rafael Espindola
3d3b6e3e28
Start using shouldAssumeDSOLocal on ARM.
...
Given where this is used it should be a nop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271066 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 22:41:51 +00:00
Lang Hames
7ac928f303
[Kaleidoscope][BuildingAJIT] Add stub chapter text for Building A JIT Chapter 4.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271064 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 22:34:56 +00:00
Xinliang David Li
329be24262
[PM] Port the Sample FDO to new PM (part-1)
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271062 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 22:30:44 +00:00
Lang Hames
fe7405cb98
[Kaleidoscope][Orc] Remove the reference to the Orc directory that was removed
...
in r271059.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271061 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 22:21:12 +00:00
Lang Hames
7a2177551f
[Kaleidoscope] Remove the old Kaleidoscope/ORC tutorial series.
...
This code has been superseded by the new Building A JIT series.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271059 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 22:17:56 +00:00
Matthias Braun
a827bf1ce5
MachineScheduler: Introduce ONLY1 reason to improve debug output
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271058 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 22:14:26 +00:00
Matthias Braun
da265fc2fa
AArch64Subtarget: Use default member initializers
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271057 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 22:14:09 +00:00
David Majnemer
b2f9f8e5dd
Don't discard errors
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271056 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 22:07:50 +00:00
Lang Hames
b0acadce69
[Kaleidoscope][BuildingAJIT] Add code for chapter 4.
...
This chapter will cover lazy compilation directly from ASTs using the Compile
Callbacks and Indirect Stubs APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271054 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 21:50:13 +00:00
Kostya Serebryany
dc4065fcc1
[libFuzzer] use __sanitizer_set_report_fd with -close_fd_mask. This allows us to keep asan reports when closing target's stderr
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271053 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 21:46:22 +00:00
Rafael Espindola
a31d45bb57
Map DynamicNoPIC to Static on non-darwin.
...
DynamicNoPIC was only every used on darwin. This maps it to static on
ELF. It matches what is done on X86.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271052 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 21:44:18 +00:00
Sanjay Patel
1d110c83c2
[InstCombine] move and/sext fold to helper function; NFCI
...
We need to enhance the pattern matching on these to look through bitcasts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271051 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 21:41:29 +00:00
David Majnemer
1fd36bf601
Don't iterate endlessly if an error occurs.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271048 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 21:25:05 +00:00
Xinliang David Li
a5135a874c
FileCheck: dump command line context with empty input
...
Differential Revision: http://reviews.llvm.org/D20716
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271047 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 21:23:25 +00:00
Krzysztof Parzyszek
c1712d6440
[Hexagon] Use standard macros to initialize HexagonExpandCondsets pass
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271045 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 21:15:34 +00:00
Richard Smith
0513d1e203
Fix compilation with GCC, which treats this as a constructor name not a type
...
name. (GCC is correct here per the latest language DRs.)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271044 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 21:05:35 +00:00
Krzysztof Parzyszek
8e211bbca8
[Hexagon] Do not create passes in the constructor of HexagonPassConfig
...
When running mir tests, a pass created in that constructor would not be
freed, leading to memory leaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271043 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 20:48:39 +00:00
Davide Italiano
cd543d7ad6
[LCSSA] Simplify. Suggested by Sanjoy.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271041 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 20:25:31 +00:00
Zachary Turner
fb799608d4
[pdb] Fix size check when reading stream bytes.
...
We were accidentally bounds checking the read against the output
ArrayRef instead of against the size of the read.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271040 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 20:17:33 +00:00
Davide Italiano
59250f2810
[Timer] Add missing slash in doxygen commit.
...
Pointed out by: Sean Silva.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271039 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 20:04:16 +00:00
Petr Hosek
6cc1a144bd
Revert "[MC] Support symbolic expressions in assembly directives"
...
This reverts commit r271028, it causes the directive_fill.s to fail.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271038 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 19:58:05 +00:00
Davide Italiano
775400f2fb
[Timer] Expose an API to check if the timer is running.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271037 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 19:12:26 +00:00
David Blaikie
91b286fa88
SmallVector: Replace some pre-C++11 move helpers with standard algorithms
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271036 91177308-0d34-0410-b5e6-96231b3b80d8
2016-05-27 19:05:14 +00:00