[PATCH] D100710: Added example for integer constant
Sushma Unnibhavi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 17 11:19:55 PDT 2021
sushmaunnibhavi created this revision.
sushmaunnibhavi added a reviewer: xgupta.
Herald added a subscriber: jdoerfert.
sushmaunnibhavi requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D100710
Files:
llvm/docs/LangRef.rst
Index: llvm/docs/LangRef.rst
===================================================================
--- llvm/docs/LangRef.rst
+++ llvm/docs/LangRef.rst
@@ -3595,6 +3595,11 @@
Standard integers (such as '4') are constants of the
:ref:`integer <t_integer>` type. Negative numbers may be used with
integer types.
+
+ .. code-block:: llvm
+
+ %sum1 = add i32 %in, 1
+
**Floating-point constants**
Floating-point constants use standard decimal notation (e.g.
123.421), exponential notation (e.g. 1.23421e+2), or a more precise
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100710.338328.patch
Type: text/x-patch
Size: 555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210417/4f356468/attachment.bin>
More information about the llvm-commits
mailing list