llvm-project/clang/docs
Sanjay Patel a24296b459 add __builtin_unpredictable and convert to metadata
This patch depends on r246688 (D12341).

The goal is to make LLVM generate different code for these functions for a target that
has cheap branches (see PR23827 for more details):

int foo();

int normal(int x, int y, int z) {
   if (x != 0 && y != 0) return foo();
   return 1;
}

int crazy(int x, int y) {
   if (__builtin_unpredictable(x != 0 && y != 0)) return foo();
   return 1;
}

Differential Revision: http://reviews.llvm.org/D12458

llvm-svn: 246699
2015-09-02 20:01:30 +00:00
..
CommandGuide Add a -gmodules option to the driver and a -dwarf-ext-refs to cc1 2015-08-27 19:46:20 +00:00
analyzer [Static Analyzer] Checks to catch nullability related issues. 2015-08-26 23:17:43 +00:00
tools Fix AST matcher documentation. 2015-08-14 11:47:51 +00:00
AddressSanitizer.rst [docs] Several updates to the Address Sanitizer webpage. 2015-06-25 23:36:44 +00:00
AttributeReference.rst Adding a title to appease the sphinx build bot. 2015-06-23 17:31:30 +00:00
AutomaticReferenceCounting.rst Allow (Object *)kMyGlobalCFObj casts without bridging 2015-02-25 20:09:06 +00:00
Block-ABI-Apple.rst
Block-ABI-Apple.txt
BlockLanguageSpec.rst
CMakeLists.txt Doxygen: add build option to use svg instead of png files for graphs 2015-08-17 23:38:56 +00:00
ClangCheck.rst
ClangFormat.rst docs: remove double carriage-return 2014-11-02 21:27:52 +00:00
ClangFormatStyleOptions.rst Add WebKit brace style configuration option. 2015-08-10 13:43:19 +00:00
ClangPlugins.rst Remove buggy example code from the documentation 2014-01-26 05:08:07 +00:00
ClangTools.rst Document removed flags in release notes 2014-03-21 07:25:01 +00:00
ControlFlowIntegrity.rst CodeGen: Improve CFI type blacklisting mechanism. 2015-07-15 12:15:56 +00:00
ControlFlowIntegrityDesign.rst docs: Document byte arrays. 2015-03-12 00:30:41 +00:00
CrossCompilation.rst Grammar bug. NFC 2015-07-06 15:25:31 +00:00
DataFlowSanitizer.rst
DataFlowSanitizerDesign.rst
DriverArchitecture.png
DriverInternals.rst Driver: Replace a couple of out of date terms in the docs 2015-07-03 08:03:43 +00:00
ExternalClangExamples.rst Update mailing list references to lists.llvm.org 2015-08-05 03:55:23 +00:00
FAQ.rst
HowToSetupToolingForLLVM.rst
InternalsManual.rst Update mailing list references to lists.llvm.org 2015-08-05 03:55:23 +00:00
IntroductionToTheClangAST.rst
JSONCompilationDatabase.rst
LanguageExtensions.rst add __builtin_unpredictable and convert to metadata 2015-09-02 20:01:30 +00:00
LeakSanitizer.rst [docs] Several updates to the Address Sanitizer webpage. 2015-06-25 23:36:44 +00:00
LibASTMatchers.rst
LibASTMatchersReference.html Updating the AST matcher documentation with a new entry; NFC. 2015-08-28 19:39:56 +00:00
LibASTMatchersTutorial.rst Fix typo in tutorial. 2015-06-02 22:40:27 +00:00
LibFormat.rst
LibTooling.rst Update documentation to match recent API change. newFrontendActionFactory now returns a unique_ptr. 2014-05-01 20:04:39 +00:00
MSVCCompatibility.rst Fix some glitches in the MSVCCompatibility document 2015-05-07 07:48:16 +00:00
Makefile Doxygen: add build option to use svg instead of png files for graphs 2015-08-17 23:38:56 +00:00
Makefile.sphinx
MemorySanitizer.rst [msan] Change track-origins default mode from 1 to 2. 2015-02-26 15:59:30 +00:00
Modules.rst Fix "the the" in comments/documentation/etc. 2015-06-19 01:52:53 +00:00
ObjectiveCLiterals.rst Fix typo. NFC. 2015-06-27 19:04:55 +00:00
PCHInternals.rst Update PCHInternals.rst to document PCH wrapped in object file containers. 2015-07-08 16:52:51 +00:00
PCHLayout.graffle
PCHLayout.png
PTHInternals.rst PTHInternals.rst: PCH is now a thing, update docs to reflect it 2014-07-07 14:02:39 +00:00
RAVFrontendAction.rst Update the documentation for API change to CreateASTConsumer the rest of the way. 2014-10-22 23:57:14 +00:00
README.txt
ReleaseNotes.rst Make trunk release notes point to 3.7, not 3.6 2015-09-01 21:13:14 +00:00
SafeStack.rst docs: Fix bad link in SafeStack.rst. 2015-06-25 21:02:17 +00:00
SanitizerCoverage.rst [libFuzzer] minimal documentation on data-flow-guided fuzzing 2015-07-31 21:48:10 +00:00
SanitizerSpecialCaseList.rst Clean up language and grammar. 2014-05-20 17:10:39 +00:00
ThreadSafetyAnalysis.rst Updating the documentation to include an operator! for negative capability support. 2015-05-22 13:36:48 +00:00
ThreadSanitizer.rst [docs] Recommend to use CMake for building sanitizers. 2015-02-18 22:26:20 +00:00
Tooling.rst
UsersManual.rst [OPENMP] Info about OpenMP Support in Users Manual, NFC. 2015-08-24 05:31:10 +00:00
conf.py Docs: keep copyright years up-to-date 2015-08-12 19:45:01 +00:00
doxygen.cfg.in Doxygen: add build option to use svg instead of png files for graphs 2015-08-17 23:38:56 +00:00
doxygen.intro
index.rst Sphinx-based clang man pages 2015-06-30 02:52:38 +00:00
make.bat

README.txt

See llvm/docs/README.txt