Easwaran Raman
351acd7147
Remove MaxFunctionCount module flag annotation.
...
Differential revision: http://reviews.llvm.org/D19184
llvm-svn: 273198
2016-06-20 20:48:32 +00:00
Thomas Jablin
2263512a6c
test commit: remove trailing whitespace
...
llvm-svn: 273197
2016-06-20 20:43:26 +00:00
Daniel Jasper
8b61d14d7e
clang-format: [Proto] Fix "import public" after r273179.
...
llvm-svn: 273196
2016-06-20 20:39:53 +00:00
Aaron Ballman
3dd74b8edb
Fix a relatively nasty bug with fs::getPathFromOpenFD() on Windows. The GetFinalPathNameByHandle API does not behave as documented; if given a buffer that has enough space for the path but not the null terminator, the call will return the number of characters required *without* the null terminator (despite being documented otherwise) and it will not set GetLastError(). The result was that this function would return a bogus path and no error. Instead, ensure there is sufficient space for a null terminator (we already strip it off manually for compatibility with older versions of Windows).
...
llvm-svn: 273195
2016-06-20 20:28:49 +00:00
Daniel Berlin
ada263dcd0
Rename to be consistent with other type names. NFC
...
llvm-svn: 273194
2016-06-20 20:21:33 +00:00
Erik Pilkington
71a7d912dc
[Sema] Only define function as move assignment when needed
...
Fixes PR27941, a crash on invalid.
Differential revision: http://reviews.llvm.org/D20923
llvm-svn: 273193
2016-06-20 20:04:15 +00:00
Tom Stellard
1cfb9efdf7
ELF/AMDGPU: Add support for R_AMDGPU_REL32 relocations
...
Reviewers: rafael, ruiu
Subscribers: kzhuravl, llvm-commits
Differential Revision: http://reviews.llvm.org/D21294
llvm-svn: 273192
2016-06-20 19:48:29 +00:00
Yaxun Liu
143f083e4b
[OpenCL] Include opencl-c.h by default as a clang module
...
Include opencl-c.h by default as a module to utilize the automatic AST caching mechanism of clang modules.
Add an option -finclude-default-header to enable default header for OpenCL, which is off by default.
Differential Revision: http://reviews.llvm.org/D20444
llvm-svn: 273191
2016-06-20 19:26:00 +00:00
Kelvin Li
98780e6eff
[OpenMP] Add the nowait clause to target update construct.
...
Differential Revision: http://reviews.llvm.org/D21477
llvm-svn: 273190
2016-06-20 19:16:34 +00:00
George Burgess IV
d8cdc36f76
[MemorySSA] Clean up unit tests a tiny bit. NFC.
...
We recently made MemorySSA own the walker it creates. As a part of this,
the MSSA test fixture was changed to have a `Walker*` instead of a
`unique_ptr<Walker>`. So, we no longer need to do `&*Walker` in order to
get a `Walker*`.
llvm-svn: 273189
2016-06-20 19:13:07 +00:00
Matt Arsenault
802ebcb4bb
InstCombine: Don't strip convergent from intrinsic callsites
...
Specific instances of intrinsic calls may want to be convergent, such
as certain register reads but the intrinsic declaration is not.
llvm-svn: 273188
2016-06-20 19:04:44 +00:00
Rafael Espindola
524bcbf1f3
Add a isPositionIndependent helper to ARMFastISel. NFC.
...
llvm-svn: 273187
2016-06-20 19:00:05 +00:00
Sanjay Patel
445d7ecf89
[InstCombine] consolidate some icmp+logic tests and improve checks
...
llvm-svn: 273186
2016-06-20 18:40:37 +00:00
Evandro Menezes
8057265cc2
[AArch64] Adjust the loop buffer size for Exynos M1 (NFC)
...
llvm-svn: 273185
2016-06-20 18:39:41 +00:00
Lang Hames
11c43d5a37
[Kaleidoscope][BuildingAJIT] Remove some superfluous commas in Chapter 2.
...
llvm-svn: 273184
2016-06-20 18:37:52 +00:00
Lang Hames
8705d113e4
[Kaleidoscope][BuildingAJIT] Fix a punctuation mistake in Chapter 2.
...
llvm-svn: 273183
2016-06-20 18:34:46 +00:00
Matt Arsenault
2209625387
AMDGPU: Preserve undef flag on vcc when shrinking v_cndmask_b32
...
The implicit operand is added by the initial instruction construction,
so this was adding an additional vcc use. The original one
was missing the undef flag the original condition had,
so the verifier would complain.
llvm-svn: 273182
2016-06-20 18:34:00 +00:00
Matt Arsenault
b6d8c37e1a
AMDGPU: Fold more custom nodes to undef
...
This will help sneak undefs past GVN into the DAG for
some tests.
Also add missing intrinsic for rsq_legacy, even though the node
was already selected to the instruction. Also start passing
the debug location to intrinsic errors.
llvm-svn: 273181
2016-06-20 18:33:56 +00:00
Sanjay Patel
14dcb042bc
[InstCombine] update to use FileCheck with autogenerated exact checking
...
llvm-svn: 273180
2016-06-20 18:23:40 +00:00
Daniel Jasper
3d5a7d6b65
clang-format: [Proto] Don't do bad things if imports are missing ;.
...
llvm-svn: 273179
2016-06-20 18:20:38 +00:00
Matt Arsenault
4deb4ed21e
Update for DiagnosticInfoStackSize changes
...
llvm-svn: 273178
2016-06-20 18:13:09 +00:00
Matt Arsenault
ff98241f37
Generalize DiagnosticInfoStackSize to support other limits
...
Backends may want to report errors on resources other than
stack size.
llvm-svn: 273177
2016-06-20 18:13:04 +00:00
Etienne Bergeron
3ac879f9a6
Add missing decoding patterns toRoundUpToInstrBoundary
...
Summary:
The RoundUpToInstrBoundary determines intructions boundary and it's used to determine how to patch (intercept) functions.
The current x64-bit implementation is incomplete. This patch is adding patterns observed when trying to sanitize a 64-bit executable on my computer.
Thw two current functions not intercepted are:
```
RaiseExceptionStub:
000000007720C3B0 EB 06 jmp RaiseException (07720C3B8h)
000000007720C3B2 90 nop
000000007720C3B3 90 nop
000000007720C3B4 90 nop
000000007720C3B5 90 nop
000000007720C3B6 90 nop
000000007720C3B7 90 nop
RaiseException:
000000007720C3B8 FF 25 3A 18 09 00 jmp qword ptr [__imp_RaiseException (07729DBF8h)]
000000007720C3BE 8B 44 24 54 mov eax,dword ptr [rsp+54h]
000000007720C3C2 85 C0 test eax,eax
000000007720C3C4 0F 84 F5 05 00 00 je Wow64NtCreateKey+12Fh (07720C9BFh)
```
```
CreateThreadStub:
0000000077215A10 48 83 EC 48 sub rsp,48h
0000000077215A14 48 8B 44 24 78 mov rax,qword ptr [rsp+78h]
0000000077215A19 48 89 44 24 38 mov qword ptr [rsp+38h],rax
0000000077215A1E 8B 44 24 70 mov eax,dword ptr [rsp+70h]
```
Reviewers: rnk
Subscribers: wang0109, chrisha
Differential Revision: http://reviews.llvm.org/D21519
llvm-svn: 273176
2016-06-20 18:00:03 +00:00
Davide Italiano
a074fe41bf
[ELF] Accept --soname= (two dashes).
...
Update an existing test to exercise the new functionality, while
I'm here.
llvm-svn: 273175
2016-06-20 17:58:09 +00:00
Evgeniy Stepanov
352289b679
Hide send/sendto/sendmsg interptors under a flag.
...
A runtime flag to enable checking in send* interceptors.
Checking is enabled by default.
llvm-svn: 273174
2016-06-20 17:57:51 +00:00
Sanjay Patel
06918ad79e
[InstCombine] update to use FileCheck with autogenerated exact checking
...
llvm-svn: 273173
2016-06-20 17:56:13 +00:00
Matt Arsenault
a9720c67f1
AMDGPU: Use correct method for determining instruction size
...
llvm-svn: 273172
2016-06-20 17:51:32 +00:00
Adrian McCarthy
f833141187
Properly handle short file names on the command line in Windows [TAKE 2]
...
Trying to expand short names with a relative path doesn't work, so this
first gets the module name to get a full path (which can still have short
names).
llvm-svn: 273171
2016-06-20 17:51:27 +00:00
Sanjay Patel
a038240660
[InstCombine] regenerate checks
...
llvm-svn: 273170
2016-06-20 17:48:48 +00:00
Rafael Espindola
959e9c8d01
Use shouldAssumeDSOLocal.
...
With this ARM fast isel knows that PIE variable are not preemptable.
llvm-svn: 273169
2016-06-20 17:45:33 +00:00
Tom Stellard
5350894265
AMDGPU: Add support for R_AMDGPU_REL32 relocations
...
Reviewers: arsenm, kzhuravl, rafael
Subscribers: arsenm, llvm-commits, kzhuravl
Differential Revision: http://reviews.llvm.org/D21401
llvm-svn: 273168
2016-06-20 17:33:43 +00:00
Rafael Espindola
9935766458
Simplify. NFC.
...
llvm-svn: 273167
2016-06-20 17:00:13 +00:00
Tom Stellard
1c89eb7db0
AMDGPU: Emit R_AMDGPU_ABS32_{HI,LO} for scratch buffer relocations
...
Reviewers: arsenm, rafael, kzhuravl
Subscribers: rafael, arsenm, llvm-commits, kzhuravl
Differential Revision: http://reviews.llvm.org/D21400
llvm-svn: 273166
2016-06-20 16:59:44 +00:00
Sam Parker
d616cf07b2
[ARM] Enable isel of UMAAL
...
TargetLowering and DAGToDAG are used to combine ADDC, ADDE and UMLAL
dags into UMAAL. Selection is split into the two phases because it
is easier to match the two patterns at those different times.
Differential Revision: http://http://reviews.llvm.org/D21461
llvm-svn: 273165
2016-06-20 16:47:09 +00:00
Rafael Espindola
0f89833c31
Add a isPositionIndependent predicate.
...
Reduces a bit of code duplication and clarify where we are interested
just on position independence and no the location of the symbol.
llvm-svn: 273164
2016-06-20 16:43:17 +00:00
David Majnemer
41ff4fdcd4
Forgot to update callers of deleteDeadInstruction
...
llvm-svn: 273163
2016-06-20 16:07:38 +00:00
David Majnemer
c5601df9fd
Reapply "[LoopIdiom] Don't remove dead operands manually"
...
This reverts commit r273160, reapplying r273132.
RecursivelyDeleteTriviallyDeadInstructions cannot be called on a
parentless Instruction.
llvm-svn: 273162
2016-06-20 16:03:25 +00:00
Aaron Ballman
86100fc8be
Removing an unused switch statement that has only a default label. This happens to also eliminate an instance of switchception. NFC intended.
...
llvm-svn: 273161
2016-06-20 15:37:15 +00:00
Cong Liu
1c28b6d733
Revert "[LoopIdiom] Don't remove dead operands manually"
...
This reverts commit r273132.
Breaks multiple test under /llvm/test:Transforms (e.g.
llvm/test:Transforms/LoopIdiom/basic.ll.test) under asan.
llvm-svn: 273160
2016-06-20 15:22:15 +00:00
Vassil Vassilev
cc218abe34
[modules] Allow emission of update records for predefined __va_list_tag.
...
Handles the cases where old __va_list_tag is coming from a module and the new
is not, needing an update record.
Fixes https://llvm.org/bugs/show_bug.cgi?id=27890
Patch by Cristina Cristescu, Richard Smith and me.
llvm-svn: 273159
2016-06-20 15:10:40 +00:00
Paul Robinson
6d5dc402a1
Make test less sensitive to the resource directory.
...
Same tactic as linux-header-search.cpp and android-ndk-standalone.cpp.
llvm-svn: 273158
2016-06-20 14:33:49 +00:00
Rafael Espindola
ffe2e06f71
Don't go on an infinite loop on a missing ";".
...
Thanks to Will Dietz for reporting the issue.
llvm-svn: 273157
2016-06-20 14:02:22 +00:00
George Rimar
35728c3465
[ELF] - Lowercase the error messages text. NFC.
...
llvm-svn: 273156
2016-06-20 13:48:16 +00:00
George Rimar
d5d544757e
[ELF] - Removed excessive reference from pointer arguments. NFC.
...
llvm-svn: 273155
2016-06-20 13:30:37 +00:00
George Rimar
086fcae95e
[ELF] - Forgot to address these two minors before commit r273152. NFC.
...
llvm-svn: 273154
2016-06-20 13:22:54 +00:00
Simon Pilgrim
0a81b13f31
[X86][F16C] Added half <-> double conversion tests
...
llvm-svn: 273153
2016-06-20 12:51:55 +00:00
George Rimar
d3566309eb
[ELF] - Recommit r273143("[ELF] - Basic versioned symbols support implemented.")
...
With fix:
-soname flag was not set in testcase. Hash calculated for base def was different on local
and bot machines because filename fos used for calculating.
Initial commit message:
Patch implements basic support of versioned symbols.
There is no wildcards patterns matching except local: *;
There is no support for hierarchies.
There is no support for symbols overrides (@ vs @@ not handled).
This patch allows programs that using simple scripts to link and run.
Differential revision: http://reviews.llvm.org/D21018
llvm-svn: 273152
2016-06-20 11:55:12 +00:00
Simon Atanasyan
7b8481bf95
[ELF][MIPS] Fix predicate used for sorting MIPS dynamic symbol tables
...
Now it conforms requirement for std::stable_sort predicates. That
resolves build-bot failures on Windows hosts.
llvm-svn: 273151
2016-06-20 11:37:56 +00:00
Cong Liu
3688c4ca78
Add -fsyntax-only to Driver/opencl.cl test.
...
llvm-svn: 273150
2016-06-20 11:25:26 +00:00
Patrik Hagglund
4e0bd84b35
Fix formatting of r273144. NFC.
...
llvm-svn: 273149
2016-06-20 11:19:58 +00:00