summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-02-27 13:48:41 +0000
committerHans Wennborg <hans@hanshq.net>2018-02-27 13:48:41 +0000
commit7f58ee579225b15039014a70c48478d9ea89701a (patch)
treef387a06291455fba044cbbb3790877b3e1c2a587 /clang
parenta2484b251bb821561b626d55702c435b33267df1 (diff)
downloadbcm5719-llvm-7f58ee579225b15039014a70c48478d9ea89701a.tar.gz
bcm5719-llvm-7f58ee579225b15039014a70c48478d9ea89701a.zip
AttrDocs.td: fix bad indent and code block
llvm-svn: 326193
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Basic/AttrDocs.td13
1 files changed, 7 insertions, 6 deletions
diff --git a/clang/include/clang/Basic/AttrDocs.td b/clang/include/clang/Basic/AttrDocs.td
index cc7c6ff1898..4e23e27aea0 100644
--- a/clang/include/clang/Basic/AttrDocs.td
+++ b/clang/include/clang/Basic/AttrDocs.td
@@ -1480,14 +1480,15 @@ x86/x86-64 targets, which can be used to create multiple implementations of the
same function that will be resolved at runtime based on the priority of their
``target`` attribute strings. A function is considered a multiversioned function
if either two declarations of the function have different ``target`` attribute
- strings, or if it has a ``target`` attribute string of ``default``. For
- example:
+strings, or if it has a ``target`` attribute string of ``default``. For
+example:
.. code-block:: c++
- __attribute__((target("arch=atom")))
- void foo() {} // will be called on 'atom' processors.
- __attribute__((target("default")))
- void foo() {} // will be called on any other processors.
+
+ __attribute__((target("arch=atom")))
+ void foo() {} // will be called on 'atom' processors.
+ __attribute__((target("default")))
+ void foo() {} // will be called on any other processors.
All multiversioned functions must contain a ``default`` (fallback)
implementation, otherwise usages of the function are considered invalid.
OpenPOWER on IntegriCloud