Elad Cohen
fb6358d2b5
[Modules] Add 'freestanding' to the 'requires-declaration' feature-list.
...
This adds support for modules that require (non-)freestanding
environment, such as the compiler builtin mm_malloc submodule.
Differential Revision: https://reviews.llvm.org/D23871
llvm-svn: 280613
2016-09-04 06:00:42 +00:00
Bruno Cardoso Lopes
6736e199c7
[Modules] Add 'gnuinlineasm' to the 'requires-declaration' feature-list.
...
This adds support for modules that require (no-)gnu-inline-asm
environment, such as the compiler builtin cpuid submodule.
This is the gnu-inline-asm variant of https://reviews.llvm.org/D23871
Differential Revision: https://reviews.llvm.org/D23905
rdar://problem/26931199
llvm-svn: 280159
2016-08-30 21:25:42 +00:00
Sjoerd Meijer
0a8d4216ad
This adds new options -fdenormal-fp-math and passes through option -ffast-math
...
to CC1, which are translated to function attributes and can e.g. be mapped on
build attributes FP_exceptions and FP_denormal. Setting these build attributes
allows better selection of floating point libraries.
Differential Revision: https://reviews.llvm.org/D23840
llvm-svn: 280064
2016-08-30 08:09:45 +00:00
Kostya Serebryany
3b41971763
[sanitizer-coverage] add two more modes of instrumentation: trace-div and trace-gep, mostly usaful for value-profile-based fuzzing; clang part
...
llvm-svn: 280044
2016-08-30 01:27:03 +00:00
Sylvestre Ledru
61122c4fd0
Fix a typo in the doc: overriden -> overridden
...
llvm-svn: 279942
2016-08-28 20:22:34 +00:00
Andrey Bokhanko
9d126a466f
Fixed a typo (compilation_commands.json --> compile_commands.json).
...
llvm-svn: 279240
2016-08-19 13:36:31 +00:00
Manman Ren
11f2a47772
Module: add -fprebuilt-module-path to support loading prebuilt modules.
...
In this mode, there is no need to load any module map and the programmer can
simply use "@import" syntax to load the module directly from a prebuilt
module path. When loading from prebuilt module path, we don't support
rebuilding of the module files and we ignore compatible configuration
mismatches.
rdar://27290316
Differential Revision: http://reviews.llvm.org/D23125
llvm-svn: 279096
2016-08-18 17:42:15 +00:00
Aaron Ballman
75de707d84
Correct the documentation for isSignedInteger() and isUnsignedInteger().
...
Patch by Visoiu Mistrih Francis
llvm-svn: 279055
2016-08-18 12:26:17 +00:00
Kostya Serebryany
070bcb0d68
[sanitizer-coverag] update the docs in __sanitizer_cov_trace_cmp
...
llvm-svn: 279028
2016-08-18 01:26:36 +00:00
Aaron Ballman
a086b9fd15
Add an AST matcher for external formal linkage.
...
Patch by Visoiu Mistrih
llvm-svn: 278926
2016-08-17 13:10:42 +00:00
Paul Robinson
8ce9b44dfe
Replace an obsolete company name.
...
llvm-svn: 278710
2016-08-15 18:45:52 +00:00
Martin Bohme
8cef2c2f2d
[ASTMatchers] Add matchers canReferToDecl() and hasUnderlyingDecl()
...
Summary: Required for D22220
Reviewers: sbenza, klimek, aaron.ballman, alexfh
Subscribers: alexfh, klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D23004
llvm-svn: 278123
2016-08-09 15:07:52 +00:00
Sylvestre Ledru
83bbd5731b
clang-format: Add SpaceAfterTemplate
...
Summary:
This is required for compliance with the Mozilla style guide.
This is a rebase+minor change of Birunthan Mohanathas's patch
Reviewers: djasper
Subscribers: klimek, cfe-commits, opilarium
Differential Revision: https://reviews.llvm.org/D23317
llvm-svn: 278121
2016-08-09 14:24:40 +00:00
Sylvestre Ledru
ea49d3addc
Add the new scan-build option (--show-description) in the 4.0 release notes
...
llvm-svn: 277935
2016-08-06 20:23:54 +00:00
Benjamin Kramer
87e6d99487
Make isExternC work on VarDecls too.
...
llvm-svn: 277712
2016-08-04 10:02:03 +00:00
Vitaly Buka
ca2f9d1cb2
Updated documentation
...
Reviewers: kcc, eugenis
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D22992
llvm-svn: 277488
2016-08-02 17:51:48 +00:00
Haojian Wu
99e39a7af8
Fix a typo in document.
...
llvm-svn: 277174
2016-07-29 17:30:13 +00:00
Haojian Wu
b33b02e9f0
[ASTMatcher] Add templateName matcher.
...
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D22963
llvm-svn: 277155
2016-07-29 15:45:11 +00:00
Haojian Wu
d898b0982a
[ASTMatcher] Add hasTemplateArgument/hasAnyTemplateArgument support in functionDecl.
...
Reviewers: klimek
Subscribers: klimek, cfe-commits
Differential Revision: https://reviews.llvm.org/D22957
llvm-svn: 277142
2016-07-29 13:57:27 +00:00
Vedant Kumar
ae00885108
[docs] Coverage: Reference the new -output-dir option
...
llvm-svn: 277081
2016-07-28 23:22:42 +00:00
Vedant Kumar
3f42b13c20
[docs] Mention some new options in llvm-cov
...
llvm-svn: 277080
2016-07-28 23:18:48 +00:00
Vedant Kumar
5fb00e4bd7
Revert "[Driver] Compute effective target triples once per job (NFCI)"
...
This reverts commit r275895 in order to address some post-commit review
feedback from Eric Christopher (see: the list thread for r275895).
llvm-svn: 276936
2016-07-27 23:01:55 +00:00
Hans Wennborg
6e70f4e171
UsersManual.rst: update clang-cl option list
...
llvm-svn: 276891
2016-07-27 16:56:03 +00:00
Xinliang David Li
b7b335a2ce
[Profile] Enable profile merging with -fprofile-generat[=<dir>]
...
This patch enables raw profile merging for this option which is the
new intended behavior.
llvm-svn: 276484
2016-07-22 22:25:01 +00:00
Xinliang David Li
7cd5e38d75
[Profile] Document new profile file name modifiers
...
Differential Revision: http://reviews.llvm.org/D22593
llvm-svn: 276207
2016-07-20 23:32:50 +00:00
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