[PATCH] D153012: Update module flags documentation for Min.

Jacob Bramley via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 04:24:23 PDT 2023


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

This updates the documentation to match the implementation. Warning and
Min interact in the same way as Warning and Max.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153012

Files:
  llvm/docs/LangRef.rst


Index: llvm/docs/LangRef.rst
===================================================================
--- llvm/docs/LangRef.rst
+++ llvm/docs/LangRef.rst
@@ -7611,9 +7611,10 @@
    * - 2
      - **Warning**
            Emits a warning if two values disagree. The result value will be the
-           operand for the flag from the first module being linked, or the max
-           if the other module uses **Max** (in which case the resulting flag
-           will be **Max**).
+           operand for the flag from the first module being linked, unless the
+           other module uses **Min** or **Max**, in which case the result will
+           be **Min** (with the min value) or **Max** (with the max value),
+           respectively.
 
    * - 3
      - **Require**


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153012.531696.patch
Type: text/x-patch
Size: 767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230615/8852dcde/attachment.bin>


More information about the llvm-commits mailing list