projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c88b87f
)
Missing syntax highlighting for LLVM IR in Langref
author
Sushma Unnibhavi
<sushmaunnibhavi@gmail.com>
Sun, 11 Apr 2021 06:47:49 +0000
(12:17 +0530)
committer
xgupta
<shivam98.tkg@rediffmail.com>
Sun, 11 Apr 2021 06:49:58 +0000
(12:19 +0530)
Added syntax highlighting
Differential Revision: https://reviews.llvm.org/D100125
llvm/docs/LangRef.rst
patch
|
blob
|
history
diff --git
a/llvm/docs/LangRef.rst
b/llvm/docs/LangRef.rst
index
794ca10
..
64436f2
100644
(file)
--- a/
llvm/docs/LangRef.rst
+++ b/
llvm/docs/LangRef.rst
@@
-939,7
+939,7
@@
the COMDAT key's section is the largest:
As a syntactic sugar the ``$name`` can be omitted if the name is the same as
the global name:
-.. code-block::
text
+.. code-block::
llvm
$foo = comdat any
@foo = global i32 2, comdat
@@
-963,7
+963,7
@@
if a collision occurs in the symbol table.
The combined use of COMDATS and section attributes may yield surprising results.
For example:
-.. code-block::
text
+.. code-block::
llvm
$foo = comdat any
$bar = comdat any