Vedant Kumar
bf51e703cf
[Driver] Compute effective target triples once per job (NFCI)
...
Compute an effective target triple exactly once in ConstructJob(), and
then simply pass around references to it. This eliminates wasteful
re-computation of effective triples (e.g in getARMFloatABI()).
Differential Revision: https://reviews.llvm.org/D22290
llvm-svn: 275895
2016-07-18 19:56:38 +00:00
Hans Wennborg
7e8f01adff
docs/conf.py: update version to 4.0
...
llvm-svn: 275848
2016-07-18 18:13:08 +00:00
Hans Wennborg
60d06bfc4f
Trunk release notes are now for 4.0.0
...
The 3.9 release are on the 3.9 branch.
llvm-svn: 275844
2016-07-18 18:05:19 +00:00
Paul Robinson
f9ede1c2fa
Release note for 'nodebug' on variables
...
llvm-svn: 275817
2016-07-18 17:19:12 +00:00
Sean Silva
a834ff260a
[Driver] Add flags for enabling both types of PGO Instrumentation
...
The flags:
Enable IR-level instrumentation -fprofile-generate or -fprofile-generate=
When applying profile data: -fprofile-use=/path/to/profdata
Patch by Jake VanAdrighem!
Differential Revision: https://reviews.llvm.org/D21823
llvm-svn: 275668
2016-07-16 02:54:58 +00:00
Aaron Ballman
51fb031a36
Removing a few more :option: tags that we do not have corresponding .. option directives for; these are causing the sphinx bot to fail ( http://lab.llvm.org:8011/builders/clang-sphinx-docs/builds/15214/steps/docs-clang-html/logs/stdio ).
...
llvm-svn: 275560
2016-07-15 13:13:45 +00:00
Aaron Ballman
05efec8b84
Removing a few more :option: tags that we do not have corresponding .. option directives for; these are causing the sphinx bot to fail ( http://lab.llvm.org:8011/builders/clang-sphinx-docs/builds/15213/steps/docs-clang-html/logs/stdio ).
...
llvm-svn: 275558
2016-07-15 12:55:47 +00:00
Aaron Ballman
4f6b3ecfd2
Despite there being an option, it seems that Sphinx has decided that "=123" is part of the option directive name, and so having "=0" in the option tag is problematic. Since the option tag is part of the option directive definition, it's superfluous, and so I've removed it.
...
llvm-svn: 275440
2016-07-14 17:15:06 +00:00
Aaron Ballman
dea435261d
Removing a few more :option: tags that we do not have corresponding .. option directives for; these are causing the sphinx bot to fail ( http://lab.llvm.org:8011/builders/clang-sphinx-docs/builds/15197/steps/docs-clang-html/logs/stdio ).
...
llvm-svn: 275430
2016-07-14 15:32:11 +00:00
Aaron Ballman
34be2a0a61
Removing more :option: tags that we do not have corresponding .. option directives for; these are causing the sphinx bot to fail ( http://lab.llvm.org:8011/builders/clang-sphinx-docs/builds/15195/steps/docs-clang-html/logs/stdio ).
...
llvm-svn: 275416
2016-07-14 14:07:37 +00:00
Aaron Ballman
c337fafa36
This is a malformed :option: tag -- we don't have an option directive that matches it, so turning it actual text instead of a markup tag. This will hopefully fix the clang docs build ( http://lab.llvm.org:8011/builders/clang-sphinx-docs/builds/15194/steps/docs-clang-html/logs/stdio )
...
llvm-svn: 275407
2016-07-14 13:01:00 +00:00
Etienne Bergeron
14ef11c110
fix missing whitespace in sphinx doc
...
llvm-svn: 275256
2016-07-13 06:37:39 +00:00
Clement Courbet
425175934e
[ASTMatchers] isSignedInteger() and isUnsignedInteger()
...
Complementary to isInteger(), these match signed and unsigned integers
respectively.
Review: http://reviews.llvm.org/D21989
llvm-svn: 275157
2016-07-12 06:36:00 +00:00
Adrian Prantl
59a6e24d8d
[man page] Document -gline-tables-only in the clang man page.
...
llvm-svn: 275076
2016-07-11 17:03:16 +00:00
Adrian Prantl
6e7300bdd0
[man page] Fix two sphinx build errors.
...
These options were referenced by other paragraphs, but never specified.
llvm-svn: 275075
2016-07-11 17:03:13 +00:00
Aaron Ballman
5c574341f5
Add AST matchers for handling bit-fields and narrowing based on their width.
...
llvm-svn: 274652
2016-07-06 18:25:16 +00:00
Clement Courbet
6ecaec83ba
[ASTMatchers] New forEachOverriden matcher.
...
Matches methods overridden by the given method.
llvm-svn: 274531
2016-07-05 07:49:31 +00:00
Sylvestre Ledru
c0a3d717c7
fix two typos in the doc
...
llvm-svn: 274447
2016-07-02 19:17:58 +00:00
Haojian Wu
e775de8171
[ASTMatcher] Add a node matcher for EnumType.
...
Reviewers: aaron.ballman
Subscribers: cfe-commits, klimek
Differential Revision: http://reviews.llvm.org/D21860
llvm-svn: 274217
2016-06-30 07:50:01 +00:00
Samuel Benzaquen
49385c78bc
[ASTMatchers] Add isLambda() matcher.
...
llvm-svn: 274015
2016-06-28 14:08:56 +00:00
Peter Collingbourne
8dd14da0dc
CodeGen: Update Clang to use the new type metadata.
...
Differential Revision: http://reviews.llvm.org/D21054
llvm-svn: 273730
2016-06-24 21:21:46 +00:00
Cong Liu
8a02efb143
IgnoringImplicit matcher.
...
llvm-svn: 273659
2016-06-24 09:38:03 +00:00
Pirama Arumuga Nainar
c85c85301d
Add documentation for RenderScript changes
...
Summary:
- Document the new 'kernel' attribute
- Mention RenderScript support in the Release Notes.
Reviewers: rsmith
Subscribers: tberghammer, danalbert, cfe-commits, srhines
Differential Revision: http://reviews.llvm.org/D21212
llvm-svn: 273283
2016-06-21 16:09:30 +00:00
George Burgess IV
bc8cc5ac9c
[Docs] More warning fixes to unbreak the docs buildbot.
...
A number of warnings still remain, but these were the last of the
"unlexable code"-related ones (AFAICT).
I changed a few examples in docs/UsersManual.rst to showcase
-Wextra-tokens because it's already documented (-Wmultichar isn't), and
the sphinx C lexer apparently can't handle char literals like 'ab'. It
seemed like a better overall approach than just marking the code blocks
as none or console.
llvm-svn: 273232
2016-06-21 02:19:43 +00:00
George Burgess IV
61e43277ef
[Docs] Try to fix the docs buildbot.
...
It's complaining that it couldn't lex a compiler warning as C++. I don't
blame it.
llvm-svn: 273227
2016-06-21 00:16:23 +00:00
Evgeniy Stepanov
5b49eb42c5
[sanitizer] Allow sanitize coverage w/o sanitizers.
...
The reason is that this (a) seems to work just fine and (b) useful when building stuff with
sanitizer+coverage, but need to exclude the sanitizer for a particular source file.
llvm-svn: 272717
2016-06-14 21:33:40 +00:00
Adam Nemet
0c58eb711c
Fix documentation bot after r272656
...
llvm-svn: 272699
2016-06-14 19:33:16 +00:00
Adam Nemet
2de463ece3
Add loop pragma for Loop Distribution
...
Summary:
This is similar to other loop pragmas like 'vectorize'. Currently it
only has state values: distribute(enable) and distribute(disable). When
one of these is specified the corresponding loop metadata is generated:
!{!"llvm.loop.distribute.enable", i1 true/false}
As a result, loop distribution will be attempted on the loop even if
Loop Distribution in not enabled globally. Analogously, with 'disable'
distribution can be turned off for an individual loop even when the pass
is otherwise enabled.
There are some slight differences compared to the existing loop pragmas.
1. There is no 'assume_safety' variant which makes its handling slightly
different from 'vectorize'/'interleave'.
2. Unlike the existing loop pragmas, it does not have a corresponding
numeric pragma like 'vectorize' -> 'vectorize_width'. So for the
consistency checks in CheckForIncompatibleAttributes we don't need to
check it against other pragmas. We just need to check for duplicates of
the same pragma.
Reviewers: rsmith, dexonsmith, aaron.ballman
Subscribers: bob.wilson, cfe-commits, hfinkel
Differential Revision: http://reviews.llvm.org/D19403
llvm-svn: 272656
2016-06-14 12:04:26 +00:00
Vedant Kumar
f3300c9f74
[docs] Coverage: Document the profile merge pool specifier
...
llvm-svn: 272604
2016-06-14 00:42:12 +00:00
Chandler Carruth
b1bcd5dc7b
Revert "[ASTMatchers] New forEachOverriden matcher."
...
This reverts commit r272386. It doesn't compile with MSVC and those bots
have been red the entire day as a consequence.
llvm-svn: 272453
2016-06-11 04:45:38 +00:00
Clement Courbet
8251ebfac6
[ASTMatchers] New forEachOverriden matcher.
...
Matches methods overridden by the given method.
llvm-svn: 272386
2016-06-10 11:54:43 +00:00
Rafael Espindola
8b5b61aaf3
Replace an ambiguous "it"
...
Thanks to Sean for the suggestion.
llvm-svn: 272260
2016-06-09 13:35:55 +00:00
Vedant Kumar
89262b6928
[docs] Coverage: Clarify return value of __llvm_profile_write_file
...
llvm-svn: 272215
2016-06-08 22:32:03 +00:00
Vedant Kumar
32a9bfa42a
[docs] Coverage: Flesh out instructions for avoiding static initializeres
...
llvm-svn: 272214
2016-06-08 22:24:52 +00:00
Vedant Kumar
b06294da84
[docs] Coverage: Explain how to avoid static initializers
...
llvm-svn: 272067
2016-06-07 22:25:29 +00:00
Aaron Ballman
230ad97156
Make isNoThrow and hasDynamicExceptionSpec polymorphic so they can be used with both functionDecl and functionPrototype matchers.
...
Patch by Don Hinton.
llvm-svn: 272028
2016-06-07 17:34:45 +00:00
Aaron Ballman
ba8dbbe86f
Adding an AST matcher to ignore parenthesis in *types* (rather than expressions). This is required for traversing certain types (like function pointer types).
...
llvm-svn: 271927
2016-06-06 18:52:17 +00:00
Rafael Espindola
811e1ee03e
Add a release note about the --build-id change.
...
llvm-svn: 271918
2016-06-06 18:23:11 +00:00
Vedant Kumar
62baa4c752
[docs] Clarify limitations section of SourceBasedCodeCoverage.rst
...
Mention that the code coverage tool becomes less precise whenever
unpredictable changes in control flow occur.
Thanks to Sean Silva for pointing this out!
llvm-svn: 271902
2016-06-06 15:44:40 +00:00
Vedant Kumar
553a0d62f2
[docs] Add a limitations section to SourceBasedCodeCoverage.rst
...
llvm-svn: 271544
2016-06-02 17:19:45 +00:00
Vedant Kumar
6c53d8f94c
[docs] Fix misplaced comma
...
llvm-svn: 271472
2016-06-02 02:45:59 +00:00
Vedant Kumar
0819f36ddd
[docs] Minor formatting changes and typo fixes
...
llvm-svn: 271471
2016-06-02 02:25:13 +00:00
Vedant Kumar
4c1112c3b7
[docs] Use cpp code-blocks where appropriate
...
llvm-svn: 271461
2016-06-02 01:15:59 +00:00
Vedant Kumar
01d91eeac5
[docs] Add missing newline to console section
...
llvm-svn: 271457
2016-06-02 01:01:48 +00:00
Vedant Kumar
a530a3615e
[docs] Document the source-based code coverage feature
...
Differential Revision: http://reviews.llvm.org/D20715
llvm-svn: 271454
2016-06-02 00:51:50 +00:00
Piotr Padlewski
cfed2bf588
[ASTMatchers] Breaking change of `has` matcher
...
has matcher can now match to implicit and paren casts
http://reviews.llvm.org/D20801
llvm-svn: 271288
2016-05-31 15:25:05 +00:00
Alexey Bataev
44b67508ea
[OPENMP] Update in ReleaseNotes for OpenMP support.
...
Added notes about full support of all non-offloading features of OpenMP
4.5 + info about option -fopenmp-version=[31|40|45] that allows to
control supported OpenMP version.
llvm-svn: 271263
2016-05-31 11:17:08 +00:00
Etienne Bergeron
5500f95a00
[ASTMatchers] Add support of hasCondition for SwitchStmt.
...
Summary:
The switch statement could be added to the hasCondition matcher.
Example:
```
clang-query> match switchStmt(hasCondition(ignoringImpCasts(declRefExpr())))
```
Output:
```
Match #1 :
Binding for "root":
SwitchStmt 0x2f9b528 </usr/local/google/home/etienneb/examples/enum.cc:35:3, line:38:3>
|-<<<NULL>>>
|-ImplicitCastExpr 0x2f9b510 <line:35:11> 'int' <IntegralCast>
| `-ImplicitCastExpr 0x2f9b4f8 <col:11> 'enum Color' <LValueToRValue>
| `-DeclRefExpr 0x2f9b4d0 <col:11> 'enum Color' lvalue Var 0x2f9a118 'C' 'enum Color'
`-CompoundStmt 0x2f9b610 <col:14, line:38:3>
|-CaseStmt 0x2f9b578 <line:36:3, col:22>
| |-ImplicitCastExpr 0x2f9b638 <col:8> 'int' <IntegralCast>
| | `-DeclRefExpr 0x2f9b550 <col:8> 'enum Size' EnumConstant 0x2f99e40 'Small' 'enum Size'
| |-<<<NULL>>>
| `-ReturnStmt 0x2f9b5d0 <col:15, col:22>
| `-IntegerLiteral 0x2f9b5b0 <col:22> 'int' 1
`-DefaultStmt 0x2f9b5f0 <line:37:3, col:12>
`-BreakStmt 0x2f9b5e8 <col:12>
1 match.
```
Reviewers: aaron.ballman, sbenza, klimek
Subscribers: klimek, cfe-commits
Differential Revision: http://reviews.llvm.org/D20767
llvm-svn: 271208
2016-05-30 15:25:25 +00:00
Peter Collingbourne
b0195f28d7
docs: Clarify that LTO visibility is based on source-level symbol visibility.
...
llvm-svn: 271063
2016-05-27 22:31:30 +00:00
Kostya Serebryany
2494e8a6a2
[msan] add a sentence about inline assembly
...
llvm-svn: 271005
2016-05-27 15:49:32 +00:00