[llvm] d1c5da3 - [DOC] Improve LangRef description of declare
Valery N Dmitriev via llvm-commits
llvm-commits at lists.llvm.org
Thu May 26 14:34:49 PDT 2022
Author: Sebastian Peryt
Date: 2022-05-26T14:34:34-07:00
New Revision: d1c5da34a7eab1906112963d53bdc310a47a243d
URL: https://github.com/llvm/llvm-project/commit/d1c5da34a7eab1906112963d53bdc310a47a243d
DIFF: https://github.com/llvm/llvm-project/commit/d1c5da34a7eab1906112963d53bdc310a47a243d.diff
LOG: [DOC] Improve LangRef description of declare
This patch fixes formatting inside Functions section of declare
by making it consistent with the way how define is written.
Fixes #39844
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D125581
Added:
Modified:
llvm/docs/LangRef.rst
Removed:
################################################################################
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst
index 8d5a5f0e3163..aae95fb83d9a 100644
--- a/llvm/docs/LangRef.rst
+++ b/llvm/docs/LangRef.rst
@@ -817,6 +817,14 @@ empty list of arguments, an optional alignment, an optional :ref:`garbage
collector name <gc>`, an optional :ref:`prefix <prefixdata>`, and an optional
:ref:`prologue <prologuedata>`.
+Syntax::
+
+ declare [linkage] [visibility] [DLLStorageClass]
+ [cconv] [ret attrs]
+ <ResultType> @<FunctionName> ([argument list])
+ [(unnamed_addr|local_unnamed_addr)] [align N] [gc]
+ [prefix Constant] [prologue Constant]
+
A function definition contains a list of basic blocks, forming the CFG (Control
Flow Graph) for the function. Each basic block may optionally start with a label
(giving the basic block a symbol table entry), contains a list of instructions,
More information about the llvm-commits
mailing list