diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -4093,9 +4093,12 @@ The two strings '``true``' and '``false``' are both valid constants of the ``i1`` type. **Integer constants** - Standard integers (such as '4') are constants of the - :ref:`integer ` type. Negative numbers may be used with - integer types. + Standard integers (such as '4') are constants of the :ref:`integer + ` type. They can be either decimal or + hexadecimal. Decimal integers can be prefixed with - to represent + negative integers, whilst hexadecimal integers must be prefixed + with either u or s to indicate whether they are unsigned or signed + respectively, e.g u0x1234. **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