Aaron Ballman
04999041e8
Replacing HUGE_VALF with llvm::huge_valf in order to work around a warning triggered in MSVC 12.
...
Patch reviewed by Reid Kleckner and Jim Grosbach.
llvm-svn: 194533
2013-11-13 00:15:44 +00:00
Fariborz Jahanian
2e793d6124
ObjectiveC migrator. Place use of NS_NONATOMIC_IOSONLY
...
on inferred property attribute under
-objcmt-ns-nonatomic-iosonly option.
// rdar://15442742
llvm-svn: 194532
2013-11-13 00:08:36 +00:00
Jason Molenda
008c45f1a1
Change SBThread::GetExtendedBacktrace to
...
SBThread::GetExtendedBacktraceThread to make it more clear what is
being returned.
llvm-svn: 194531
2013-11-12 23:33:32 +00:00
Rafael Espindola
6cd1b9aec4
Remove always true flag.
...
llvm-svn: 194530
2013-11-12 23:27:08 +00:00
Andrew Trick
0ef482ef02
Cleanup the stackmap operand folding code and fix a corner case.
...
I still don't know how to refer to the fixed operands symbolically. I
plan to look into it.
llvm-svn: 194529
2013-11-12 22:58:39 +00:00
Sebastian Pop
a1cc34b981
improve dependence analysis testcases
...
print the name of the function on which the dependence analysis is performed
such that changes to the testcase are easier to review.
llvm-svn: 194528
2013-11-12 22:47:30 +00:00
Sebastian Pop
c62c679c1b
delinearization of arrays
...
llvm-svn: 194527
2013-11-12 22:47:20 +00:00
Sebastian Pop
9f8004fb08
remove virtual methods in SCEVApplyRewriter and SCEVParameterRewriter
...
llvm-svn: 194526
2013-11-12 22:47:05 +00:00
Nadav Rotem
0ed2fdb5af
Fold (iszero(A&K1) | iszero(A&K2)) -> (A&(K1|K2)) != (K1|K2) if we know that K1 and K2 are 'one-hot' (only one bit is on).
...
llvm-svn: 194525
2013-11-12 22:38:59 +00:00
Nadav Rotem
53d32211b7
FoldBranchToCommonDest merges branches into a single branch with or/and of the condition. It has a heuristics for estimating when some of the dependencies are processed by out-of-order processors. This patch adds another rule to the heuristics that says that if the "BonusInstruction" that we speculatively execute is used by the condition of the second branch then it is okay to hoist it. This change exposes more opportunities for other passes to transform the code. It does not matter that much that we if-convert the code because the selectiondag builder splits or/and branches into multiple branches when profitable.
...
llvm-svn: 194524
2013-11-12 22:37:16 +00:00
Hans Wennborg
df01974817
clang-cl: parse the /Yc flag (PR17895)
...
llvm-svn: 194523
2013-11-12 22:35:26 +00:00
Akira Hatanaka
d6c9f6ebbe
[mips] Fix a bug in function CC_MipsO32_FP64. The second double precision
...
argument was not being passed in $f14.
llvm-svn: 194522
2013-11-12 22:16:18 +00:00
Dmitri Gribenko
d9febeb884
Documentation parsing: add support for \throws \throw \exception commands
...
llvm-svn: 194521
2013-11-12 22:16:08 +00:00
Rafael Espindola
129d313c8d
Avoid producing mismatched comdats.
...
The problem was that given
template<typename T>
struct foo {
~foo() {}
};
template class foo<int>;
We would produce a alias, creating a comdat with D0 and D1, since the symbols
have to be weak. Another TU is not required to have a explicit template
instantiation definition or an explict template instantiation declaration and
for
template<typename T>
struct foo {
~foo() {}
};
foo<int> a;
we would produce a comdat with only one symbol in it.
llvm-svn: 194520
2013-11-12 22:06:46 +00:00
Akira Hatanaka
c8e4bd156b
[mips] Run test case with command line option -mattr=+fp64.
...
llvm-svn: 194519
2013-11-12 22:06:45 +00:00
Eric Christopher
a01c954d73
Add a FIXME for 32-bit q modifiers.
...
llvm-svn: 194515
2013-11-12 21:47:44 +00:00
Justin Bogner
b10a520c8f
Protect user-supplied runtime library functions in LTO
...
Add user-supplied C runtime and compiler-rt library functions to
llvm.compiler.used to protect them from premature optimization by
passes like -globalopt and -ipsccp. Calls to (seemingly unused)
runtime library functions can be added by -instcombine and instruction
lowering.
Patch by Duncan Exon Smith, thanks!
Fixes <rdar://problem/14740087>
llvm-svn: 194514
2013-11-12 21:44:01 +00:00
Weiming Zhao
87bb4920e9
add intrinsics: __builtin_arm_{dmb,dsb} for ARM
...
llvm-svn: 194513
2013-11-12 21:42:50 +00:00
Tim Northover
8eaf1543e5
ARM: diagnose invalid system LDM/STM
...
The system LDM and STM instructions can't usually writeback to the base
register. The one exception is when an LDM is actually an exception-return
(i.e. contains PC in the register list).
(There's already a test that "ldm sp!, {r0-r3, pc}^" works, which is why there
is no positive test).
rdar://problem/15223374
llvm-svn: 194512
2013-11-12 21:32:41 +00:00
Akira Hatanaka
d748e29cd9
[mips] Revert part of r194510 that was accidentally committed.
...
llvm-svn: 194511
2013-11-12 21:10:25 +00:00
Akira Hatanaka
937ce7c143
[mips] Fix and re-enable a test case that has been disabled for a long time.
...
llvm-svn: 194510
2013-11-12 21:03:57 +00:00
Peter Zotov
7b321f832f
[OCaml] Dynamically link LLVM on --enable-shared builds
...
This commit significantly speeds up both bytecode and native
builds of LLVM clients (from ~20 second to sub-second link time),
and allows to invoke LLVM functions from OCaml toplevel.
The behavior for --disable-shared builds is unchanged.
llvm-svn: 194509
2013-11-12 20:55:49 +00:00
Peter Zotov
b1d1388ee3
[OCaml] Fix a typo
...
llvm-svn: 194508
2013-11-12 20:55:42 +00:00
Fariborz Jahanian
ff6c97c0d2
ObjectiveC. availability of Array/Dictionary subscripting
...
is further restricted in legacy runtime to deployment target
of 10.7 and later. // rdar://15363492
llvm-svn: 194507
2013-11-12 20:50:26 +00:00
Rafael Espindola
dd8757abbc
Corruptly merge constants with explicit and implicit alignments.
...
Constant merge can merge a constant with implicit alignment with one that has
explicit alignment. Before this change it was assuming that the explicit
alignment was higher than the implicit one, causing the result to be under
aligned in some cases.
Fixes pr17815.
Patch by Chris Smowton!
llvm-svn: 194506
2013-11-12 20:21:43 +00:00
Weiming Zhao
813432f1ae
Export intrinsics:__builtin_arm_{dmb,dsb} to frontend
...
llvm-svn: 194505
2013-11-12 19:57:43 +00:00
John Thompson
13e1cd3a37
Extended moduleImport test to test a module with more than one path component. This required a change to the includes test, because of the change to the headers.
...
llvm-svn: 194504
2013-11-12 19:50:49 +00:00
Fariborz Jahanian
bed1be926d
ObjectiveC migrator. Another alternative to
...
"atomic" or "nonatomic" for properties is
NS_NONATOMIC_IOSONLY. Use it if available.
// rdar://15442742
llvm-svn: 194503
2013-11-12 19:25:50 +00:00
Hans Wennborg
63d18acc7f
clang-cl: parse the /GT option
...
llvm-svn: 194502
2013-11-12 19:21:50 +00:00
Chad Rosier
1eb0ecf8ce
[AArch64] Implemented AdvSIMD scalar x indexed element format and AdvSIMD scalar
...
copy in MC layer. Added the MC layer tests. Fixed triple setting in test cases.
Patch by Ana Pazos <apazos@codeaurora.org>.
llvm-svn: 194501
2013-11-12 19:13:08 +00:00
Roman Divacky
b6517850fb
Expand rotate instructions on sparcv9 as well.
...
llvm-svn: 194500
2013-11-12 19:04:45 +00:00
Yuchen Wu
61a1bfcd61
Added summary info to GCDAProfiling.
...
This function will be called by GCOVProfiling to write and update object
and program summaries to be read in by llvm-cov.
llvm-svn: 194499
2013-11-12 18:45:50 +00:00
Sylvestre Ledru
f8ffda089e
Remove trailing spaces
...
llvm-svn: 194498
2013-11-12 18:07:35 +00:00
Andrew Trick
3112a5e4c0
Simplify operand folding when rematerializing a load.
...
We already know how to fold a reload from a frameindex without
analyzing the load instruction. Generalize this to handle any
frameindex load. This streamlines the logic for rematerializing loads
from stack arguments. As a side effect, it allows stackmaps to record
a stack argument location without spilling it.
Verified no effect on codegen for llvm test-suite.
llvm-svn: 194497
2013-11-12 18:06:12 +00:00
Andrew Trick
eb443d7f23
GraphViz CFGPrinter: wrap long lines.
...
llvm-svn: 194496
2013-11-12 18:06:09 +00:00
Andrew Trick
0926513eb1
whitespace
...
llvm-svn: 194495
2013-11-12 18:06:06 +00:00
Manuel Klimek
31cd3fc088
Add test for injecting diagnostic consumers into a ClangTool.
...
As suggested by pcc on 194226.
llvm-svn: 194494
2013-11-12 17:53:18 +00:00
Alexander Kornienko
875395f9f8
Remove extra whitespace instead of breaking the line in comments when possible.
...
Summary: Solves the problem described in http://llvm.org/PR17756
Reviewers: klimek
Reviewed By: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2131
llvm-svn: 194493
2013-11-12 17:50:13 +00:00
Rui Ueyama
3f902b2788
[MachO] Simplify conditionals. No functionality change.
...
llvm-svn: 194492
2013-11-12 17:46:55 +00:00
Alexander Kornienko
3abbb8a433
Do not insert backslashes, when breaking line comments after preprocessor directives.
...
Summary: This solves http://llvm.org/PR17536
Reviewers: klimek, djasper
Reviewed By: klimek
CC: cfe-commits, klimek
Differential Revision: http://llvm-reviews.chandlerc.com/D2142
llvm-svn: 194491
2013-11-12 17:30:49 +00:00
Andy Gibbs
78fc064b1a
PassManagerBase has moved into the legacy namespace as of r194324; match it here.
...
llvm-svn: 194490
2013-11-12 17:10:46 +00:00
Fariborz Jahanian
fd4ce193ba
ObjectiveC driver change. re-apply patch reverted in
...
r194450 with a modified test. // rdar://15363492
llvm-svn: 194489
2013-11-12 17:08:46 +00:00
Manuel Klimek
8f5c84fb74
Upgrade the VS solution to 2012.
...
Now we can compile a VSPackage that works with VS 2010-2013 from within VS 2012.
llvm-svn: 194488
2013-11-12 17:01:53 +00:00
Ed Maste
7b24e95e69
Log failure to restore thread state in ThreadPlanCallFunction::DoTakedown
...
In order to help track down llvm.org/pr17226.
llvm-svn: 194487
2013-11-12 16:47:08 +00:00
Rafael Espindola
e1b88dad8f
Revert "Remove unused variable."
...
This reverts commit r194485.
The variable is unused in some macro instantiations, but not others. We should
probably fix clang to not warn on this.
llvm-svn: 194486
2013-11-12 16:37:31 +00:00
Rafael Espindola
984d3c4587
Remove unused variable.
...
llvm-svn: 194485
2013-11-12 16:31:59 +00:00
Vincent Lejeune
aee3a10440
R600: Reenable llvm.R600.load.input/interp.input for compatibility
...
llvm-svn: 194484
2013-11-12 16:26:47 +00:00
Alp Toker
93c9afc66e
Future-proof version checking with MSVC_VERSION
...
This mirrors lld r194481
llvm-svn: 194483
2013-11-12 15:42:53 +00:00
Manuel Klimek
eff9a4d336
Fix key bindings for VS 2010.
...
Set the default key-binding only in the text editor; the
global binding of ctrl-r,ctrl-f was already taken in VS 2010.
llvm-svn: 194482
2013-11-12 15:25:18 +00:00
Alp Toker
c544d5b7e8
Get lld building with MSVC2013
...
llvm-svn: 194481
2013-11-12 15:14:33 +00:00