Dmitry Vyukov
b4ede780b0
tsan: fix crash when user defines own fopen/fileno
...
llvm-svn: 171958
2013-01-09 08:22:06 +00:00
Daniel Jasper
399d24bc7d
Improve formatting of conditional operators.
...
This addresses llvm.org/PR14864.
We used to completely mess this up and now format as:
Diag(NewFD->getLocation(),
getLangOpts().MicrosoftExt ? diag::ext_function_specialization_in_class :
diag::err_function_specialization_in_class)
<< NewFD->getDeclName();
llvm-svn: 171957
2013-01-09 07:06:56 +00:00
Nadav Rotem
3f5825c6c1
add -march to the test
...
llvm-svn: 171956
2013-01-09 07:04:23 +00:00
Will Dietz
b50565b21a
[ubsan] Drop use of __atomic_exchange_n for now to fix build for some.
...
Need a more reliable way to check for support of this intrinsic.
llvm-svn: 171955
2013-01-09 06:18:40 +00:00
Sean Silva
cc951b284b
tblgen: use an early return to reduce indentation.
...
llvm-svn: 171954
2013-01-09 05:28:12 +00:00
Nadav Rotem
977e0be4a0
Efficient lowering of vector sdiv when the divisor is a splatted power of two constant.
...
PR 14848. The lowered sequence is based on the existing sequence the target-independent
DAG Combiner creates for the scalar case.
Patch by Zvi Rackover.
llvm-svn: 171953
2013-01-09 05:14:33 +00:00
Nico Weber
69dce49c76
Don't mention -fno-diagnostics-print-source-range-info in manual.
...
Clang doesn't understand it.
If someone wants to teach clang about that flag instead, please also add
support for -fno-diagnostics-parseable-fixits for consistency.
Until then, let the documentation match the current behavior.
llvm-svn: 171952
2013-01-09 05:06:41 +00:00
Sean Silva
cb1a75e730
tblgen: Factor out common code.
...
llvm-svn: 171951
2013-01-09 04:49:14 +00:00
Eric Christopher
bf7bc4966c
Last in the series of removing unnecessary '0' arguments for
...
address space. Reordered the EmitULEB128IntValue arguments to
make this easier.
llvm-svn: 171949
2013-01-09 03:52:05 +00:00
Will Dietz
765c266892
[ubsan] Add deduplication functionality, always enabled.
...
llvm-svn: 171948
2013-01-09 03:40:03 +00:00
Will Dietz
450f1a1f45
[ubsan] Make static check data non-const so it can be used for deduplication.
...
llvm-svn: 171947
2013-01-09 03:39:41 +00:00
Andrew Trick
9f0b95f260
MIsched: add an ILP window property to machine model.
...
This was an experimental option, but needs to be defined
per-target. e.g. PPC A2 needs to aggressively hide latency.
I converted some in-order scheduling tests to A2. Hal is working on
more test cases.
llvm-svn: 171946
2013-01-09 03:36:49 +00:00
Jim Ingham
196bbc2571
Add a "--reverse" or "-r" option to the "list" with no options command. This will list backwards from the
...
last source point listed.
Also fix the setting of the default file & line to the file containing main, when you do a plain "list".
<rdar://problem/12685226>
llvm-svn: 171945
2013-01-09 03:27:33 +00:00
Eli Friedman
c52435b4a2
Make sure clang puts tokens from different files on separate lines in "-E -P" mode. <rdar://problem/12774044>
...
llvm-svn: 171944
2013-01-09 03:16:42 +00:00
NAKAMURA Takumi
d7678c6af5
[Object, DebugInfo] Make DWARFContext BE-aware.
...
test/DebugInfo/member-pointers.ll would not fail in targetting BE any more.
llvm-svn: 171943
2013-01-09 02:45:05 +00:00
Sean Silva
45e4147345
TableGen/LangRef: link bang operators into the productionlist
...
Now BangOperator should be nicely hyperlinked.
Pointed out by Joel Jones.
llvm-svn: 171942
2013-01-09 02:20:31 +00:00
Sean Silva
543fd7f8be
TableGen/LangRef: discuss specific C-like escapes
...
Suggested by Joel Jones.
llvm-svn: 171941
2013-01-09 02:20:30 +00:00
Sean Silva
dce94d3bd2
docs: Fix mention of DefmID to MultiClassID.
...
llvm-svn: 171940
2013-01-09 02:20:24 +00:00
Eli Friedman
ec94b61745
Make __has_include a bit more resilient in the presence of macros. <rdar://problem/12748859>.
...
llvm-svn: 171939
2013-01-09 02:20:00 +00:00
Sean Silva
0657b40b3c
Inline this into its only caller.
...
It's clearer and additionally this gets rid of the usage of `DefmID`,
which doesn't really correspond to anything in the language (it was just
used in the name of this parsing function which parsed a `MultiClassID`
and returned that multiclass's record).
This area of the code still needs a lot of work.
llvm-svn: 171938
2013-01-09 02:17:14 +00:00
Sean Silva
28f3721aa0
tblgen: Reuse function that is 2 lines above.
...
llvm-svn: 171937
2013-01-09 02:17:13 +00:00
Sean Silva
710c3ae5e6
fix copy-paste-o
...
llvm-svn: 171936
2013-01-09 02:11:57 +00:00
Sean Silva
c95fe2804d
docs: Bring TableGen syntax a bit closer to reality.
...
It's not just def's but actually a limited subset of Object's that are
allowed inside a multiclass.
Spotted by Joel Jones.
llvm-svn: 171935
2013-01-09 02:11:55 +00:00
Greg Clayton
89f255e426
Updated documentation on the "register_data_addr" key that can be supplied in the "thread" dictionary return value for the python OS plug-ins.
...
llvm-svn: 171934
2013-01-09 02:05:38 +00:00
Eric Christopher
e3ab3d0e2c
These functions have default arguments of 0 for the last arg. Use
...
them.
llvm-svn: 171933
2013-01-09 01:57:54 +00:00
Eric Christopher
ce0cfce775
These functions have default arguments of 0 for the last arg. Use
...
them and add one where it seemed obvious that we wanted one.
llvm-svn: 171932
2013-01-09 01:35:34 +00:00
Nadav Rotem
4c66f87e8e
ARM Cost Model: Add a basic vectorization unrolling test.
...
llvm-svn: 171931
2013-01-09 01:29:07 +00:00
Nadav Rotem
30a65bc39e
Remove the -licm pass from the loop vectorizer test because the loop vectorizer does it now.
...
llvm-svn: 171930
2013-01-09 01:20:59 +00:00
Nick Kledzik
cc3d2dca60
Better tie together ContentType and Permissions.
...
Since most content types (e.g. typeCode) have a
preferred Permission, add a function to do that mapping.
Then hook up to YAML Reader and Writer such that
the 'permissions:' key does not need to be specified unless
overriding what the content type prefers.
llvm-svn: 171929
2013-01-09 01:17:12 +00:00
Nadav Rotem
b696c36fcd
Cost Model: Move the 'max unroll factor' variable to the TTI and add initial Cost Model support on ARM.
...
llvm-svn: 171928
2013-01-09 01:15:42 +00:00
Jakob Stoklund Olesen
5e111fe533
Add a getBundleEnd() function to go with the existing getBundleStart().
...
This is easier implemented now that bundle flags are symmetric.
llvm-svn: 171927
2013-01-09 01:02:19 +00:00
Shuxin Yang
9ca562e34e
Add comment to the definition of Constant::isZeroValue().
...
(There already has a concise comment to the declaration.)
Thank Eric Christopher for his feedback!
llvm-svn: 171926
2013-01-09 00:53:25 +00:00
Douglas Gregor
3552dabfe1
When name lookup for a redeclaration finds declarations that are known
...
(because they are part of some module) but have not been made visible
(because they are in a submodule that wasn't imported), filter out
those declarations unless both the old declaration and the new
declaration have external linkage. When one or both has internal
linkage, there should be no conflict unless both are imported.
llvm-svn: 171925
2013-01-09 00:47:56 +00:00
Bill Wendling
0ec3c5ca80
Forgot the namespace identifier.
...
llvm-svn: 171924
2013-01-09 00:32:55 +00:00
Bill Wendling
69fa5c0d99
Add the integer value of the ConstantInt instead of the Constant* value.
...
This is causing some problems. The root cause is unknown at this time.
llvm-svn: 171923
2013-01-09 00:32:08 +00:00
Shuxin Yang
f0537ab681
Consider expression "0.0 - X" as the negation of X if
...
- this expression is explicitly marked no-signed-zero, or
- no-signed-zero of this expression can be derived from some context.
llvm-svn: 171922
2013-01-09 00:13:41 +00:00
Fariborz Jahanian
14da440018
put back diagnostics when flexible members are captured
...
in lambdas.
llvm-svn: 171921
2013-01-09 00:09:15 +00:00
Michael Gottesman
675444d5de
Removed extra "`" from ARC documentation.
...
llvm-svn: 171920
2013-01-08 23:55:10 +00:00
Chad Rosier
d35ae732ac
[ms-inline asm] Add a test case for the offset operator where the operand is a
...
global variable.
llvm-svn: 171919
2013-01-08 23:51:48 +00:00
Nick Kledzik
bd49198409
add extra namespace for gcc-4.7 compatibility
...
llvm-svn: 171918
2013-01-08 23:51:03 +00:00
Fariborz Jahanian
5eae4adf23
Fix typo (again).
...
llvm-svn: 171917
2013-01-08 23:48:48 +00:00
Nick Kledzik
80fe907903
fix typo
...
llvm-svn: 171916
2013-01-08 23:43:11 +00:00
Fariborz Jahanian
7a83f04094
Remove lambda from my last patch.
...
llvm-svn: 171915
2013-01-08 23:40:08 +00:00
Jim Ingham
bf2956a2f8
Add an SBProcess API to get the current StopID, either considering or ignoring stops caused by expression
...
evaluation.
<rdar://problem/12968562>
llvm-svn: 171914
2013-01-08 23:22:42 +00:00
Fariborz Jahanian
b68f7b2a77
Fixes typo in comment.
...
llvm-svn: 171913
2013-01-08 23:21:22 +00:00
Fariborz Jahanian
a716a34527
objectiveC blocks: It is impractical to capture
...
struct variables with flexiable array members in
blocks (and lambdas). Issue error instead of
crashing in IRGen. // rdar://12655829
llvm-svn: 171912
2013-01-08 23:17:51 +00:00
Michael J. Spencer
6047163a24
[lld] Add support for -mllvm.
...
There is no way to test this at the moment because the options are not
processed until the link starts, and we can't pass an empty file.
llvm-svn: 171910
2013-01-08 22:59:27 +00:00
Michael J. Spencer
79fafccb5e
[Driver] Fix indentation.
...
llvm-svn: 171909
2013-01-08 22:59:01 +00:00
Richard Smith
5f044ad5f0
PR14855: don't silently swallow a nested-name-specifier after a type name.
...
llvm-svn: 171908
2013-01-08 22:43:49 +00:00
Rafael Espindola
b68dd4717e
Clear LV cache when dropping availability attributes.
...
llvm-svn: 171906
2013-01-08 22:31:36 +00:00