Repository navigation
[SelectionDAG] Document that UADDO/USUBO_CARRRY follow getBooleanContents. NFC - #224764
Merged
Merged
Conversation
…ents. NFC Use 'true' instead of '1'. Follow up from post commit discussion in llvm#223396.
|
@llvm/pr-subscribers-llvm-selectiondag Author: Craig Topper (topperc) ChangesUse 'true' instead of '1'. Follow up from post commit discussion in #223396. 1 Files Affected:
diff --git a/llvm/include/llvm/CodeGen/ISDOpcodes.h b/llvm/include/llvm/CodeGen/ISDOpcodes.h
index 9c3757203299ed..bcf7173b19dfc8 100644
--- a/llvm/include/llvm/CodeGen/ISDOpcodes.h
+++ b/llvm/include/llvm/CodeGen/ISDOpcodes.h
@@ -306,13 +306,14 @@ enum NodeType {
/// Carry-using nodes for multiple precision addition and subtraction.
/// These nodes take three operands: The first two are the normal lhs and
- /// rhs to the add or sub, and the third is a boolean value that is 1 if and
- /// only if there is an incoming carry/borrow. These nodes produce two
+ /// rhs to the add or sub, and the third is a boolean value that is true if
+ /// and only if there is an incoming carry/borrow. These nodes produce two
/// results: the normal result of the add or sub, and a boolean value that is
- /// 1 if and only if there is an outgoing carry/borrow.
+ /// true if and only if there is an outgoing carry/borrow. If the type of the
+ /// boolean is not i1 then the high bits conform to getBooleanContents.
///
/// Care must be taken if these opcodes are lowered to hardware instructions
- /// that use the inverse logic -- 0 if and only if there is an
+ /// that use the inverse logic -- false if and only if there is an
/// incoming/outgoing carry/borrow. In such cases, you must preserve the
/// semantics of these opcodes by inverting the incoming carry/borrow, feeding
/// it to the add/sub hardware instruction, and then inverting the outgoing
|
chfast
approved these changes
Sep 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use 'true' instead of '1'.
Follow up from post commit discussion in #223396.