aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorFraser Cormack <fraser@codeplay.com>2025-07-11 07:37:25 +0100
committerGitHub <noreply@github.com>2025-07-11 07:37:25 +0100
commita516c60ec34682db0d35a20fe3e299a9ae17a356 (patch)
tree14cc536d888bf91c6033b6d6be6ea743c7dd3f8a /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent2ae76d55550781326f3d1b2996143d880304353c (diff)
downloadllvm-a516c60ec34682db0d35a20fe3e299a9ae17a356.zip
llvm-a516c60ec34682db0d35a20fe3e299a9ae17a356.tar.gz
llvm-a516c60ec34682db0d35a20fe3e299a9ae17a356.tar.bz2
[NFC] Correct typo: invertion -> inversion (#147995)
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 16a10cf..e059798 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -9054,14 +9054,14 @@ SDValue TargetLowering::expandIS_FPCLASS(EVT ResultVT, SDValue Op,
APInt AllOneMantissa = APFloat::getLargest(Semantics).bitcastToAPInt() & ~Inf;
APInt QNaNBitMask =
APInt::getOneBitSet(BitSize, AllOneMantissa.getActiveBits() - 1);
- APInt InvertionMask = APInt::getAllOnes(ResultVT.getScalarSizeInBits());
+ APInt InversionMask = APInt::getAllOnes(ResultVT.getScalarSizeInBits());
SDValue ValueMaskV = DAG.getConstant(ValueMask, DL, IntVT);
SDValue SignBitV = DAG.getConstant(SignBit, DL, IntVT);
SDValue ExpMaskV = DAG.getConstant(ExpMask, DL, IntVT);
SDValue ZeroV = DAG.getConstant(0, DL, IntVT);
SDValue InfV = DAG.getConstant(Inf, DL, IntVT);
- SDValue ResultInvertionMask = DAG.getConstant(InvertionMask, DL, ResultVT);
+ SDValue ResultInversionMask = DAG.getConstant(InversionMask, DL, ResultVT);
SDValue Res;
const auto appendResult = [&](SDValue PartialRes) {
@@ -9205,7 +9205,7 @@ SDValue TargetLowering::expandIS_FPCLASS(EVT ResultVT, SDValue Op,
PartialRes = DAG.getNode(ISD::AND, DL, ResultVT, PartialRes, SignV);
else if (PartialCheck == fcPosNormal) {
SDValue PosSignV =
- DAG.getNode(ISD::XOR, DL, ResultVT, SignV, ResultInvertionMask);
+ DAG.getNode(ISD::XOR, DL, ResultVT, SignV, ResultInversionMask);
PartialRes = DAG.getNode(ISD::AND, DL, ResultVT, PartialRes, PosSignV);
}
if (IsF80)
@@ -9217,7 +9217,7 @@ SDValue TargetLowering::expandIS_FPCLASS(EVT ResultVT, SDValue Op,
if (!Res)
return DAG.getConstant(IsInverted, DL, ResultVT);
if (IsInverted)
- Res = DAG.getNode(ISD::XOR, DL, ResultVT, Res, ResultInvertionMask);
+ Res = DAG.getNode(ISD::XOR, DL, ResultVT, Res, ResultInversionMask);
return Res;
}