[llvm] 7e48c2d - [RISCV][NFC] Fix doc comment for RISCVDAGToDAGISel::selectSETCC
Alex Bradbury via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 4 05:30:24 PDT 2023
Author: Alex Bradbury
Date: 2023-07-04T13:30:08+01:00
New Revision: 7e48c2d85e6d7a306dedef900e74f861c5a66312
URL: https://github.com/llvm/llvm-project/commit/7e48c2d85e6d7a306dedef900e74f861c5a66312
DIFF: https://github.com/llvm/llvm-project/commit/7e48c2d85e6d7a306dedef900e74f861c5a66312.diff
LOG: [RISCV][NFC] Fix doc comment for RISCVDAGToDAGISel::selectSETCC
The doc comment referred to a boolean parameter that has since been
replaced with an ISD::CondCode.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
index 03b320cc966eb8..839ec4d46717ca 100644
--- a/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
@@ -2487,8 +2487,8 @@ bool RISCVDAGToDAGISel::selectShiftMask(SDValue N, unsigned ShiftWidth,
/// RISC-V doesn't have general instructions for integer setne/seteq, but we can
/// check for equality with 0. This function emits instructions that convert the
/// seteq/setne into something that can be compared with 0.
-/// When \p Equal is false, we match setne. When \p Equal is true, we match
-/// seteq.
+/// \p ExpectedCCVal indicates the condition code to attempt to match (e.g.
+/// ISD::SETNE).
bool RISCVDAGToDAGISel::selectSETCC(SDValue N, ISD::CondCode ExpectedCCVal,
SDValue &Val) {
assert(ISD::isIntEqualitySetCC(ExpectedCCVal) &&
More information about the llvm-commits
mailing list