[PATCH] D147197: [llvm-docs] Added documentation for the 'neg' operation

Victor Salami Oyale via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 29 20:49:03 PDT 2023


oyalesalami created this revision.
oyalesalami added a reviewer: samtebbs.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
oyalesalami requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fixing the github issue: https://github.com/llvm/llvm-project/issues/19751
Details were gotten from .../llvm/include/llvm-c/Core.h:3910.
It looks like the function is depreciated.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D147197

Files:
  llvm/docs/LangRef.rst


Index: llvm/docs/LangRef.rst
===================================================================
--- llvm/docs/LangRef.rst
+++ llvm/docs/LangRef.rst
@@ -9132,7 +9132,17 @@
 .. code-block:: text
 
       <result> = fadd float 4.0, %var          ; yields float:result = 4.0 + %var
+      .
+.. _i_neg:
+'``neg``' Instruction
+^^^^^^^^^^^^^^^^^^^^^
 
+Overview:
+"""""""""
+
+The '``sub``' instruction is used to represent the '``neg``'
+instruction.
+      
 .. _i_sub:
 
 '``sub``' Instruction


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D147197.509545.patch
Type: text/x-patch
Size: 493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230330/734fbefa/attachment.bin>


More information about the cfe-commits mailing list