Skip to content

Commit a516c60

Browse files
authored
[NFC] Correct typo: invertion -> inversion (#147995)
1 parent 2ae76d5 commit a516c60

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9272,7 +9272,7 @@ LegalizerHelper::lowerISFPCLASS(MachineInstr &MI) {
92729272
APInt AllOneMantissa = APFloat::getLargest(Semantics).bitcastToAPInt() & ~Inf;
92739273
APInt QNaNBitMask =
92749274
APInt::getOneBitSet(BitSize, AllOneMantissa.getActiveBits() - 1);
9275-
APInt InvertionMask = APInt::getAllOnes(DstTy.getScalarSizeInBits());
9275+
APInt InversionMask = APInt::getAllOnes(DstTy.getScalarSizeInBits());
92769276

92779277
auto SignBitC = MIRBuilder.buildConstant(IntTy, SignBit);
92789278
auto ValueMaskC = MIRBuilder.buildConstant(IntTy, ValueMask);
@@ -9400,7 +9400,7 @@ LegalizerHelper::lowerISFPCLASS(MachineInstr &MI) {
94009400
NormalRes = MIRBuilder.buildAnd(DstTy, NormalRes, Sign);
94019401
else if (PartialCheck == fcPosNormal) {
94029402
auto PosSign = MIRBuilder.buildXor(
9403-
DstTy, Sign, MIRBuilder.buildConstant(DstTy, InvertionMask));
9403+
DstTy, Sign, MIRBuilder.buildConstant(DstTy, InversionMask));
94049404
NormalRes = MIRBuilder.buildAnd(DstTy, NormalRes, PosSign);
94059405
}
94069406
appendToRes(NormalRes);

llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9054,14 +9054,14 @@ SDValue TargetLowering::expandIS_FPCLASS(EVT ResultVT, SDValue Op,
90549054
APInt AllOneMantissa = APFloat::getLargest(Semantics).bitcastToAPInt() & ~Inf;
90559055
APInt QNaNBitMask =
90569056
APInt::getOneBitSet(BitSize, AllOneMantissa.getActiveBits() - 1);
9057-
APInt InvertionMask = APInt::getAllOnes(ResultVT.getScalarSizeInBits());
9057+
APInt InversionMask = APInt::getAllOnes(ResultVT.getScalarSizeInBits());
90589058

90599059
SDValue ValueMaskV = DAG.getConstant(ValueMask, DL, IntVT);
90609060
SDValue SignBitV = DAG.getConstant(SignBit, DL, IntVT);
90619061
SDValue ExpMaskV = DAG.getConstant(ExpMask, DL, IntVT);
90629062
SDValue ZeroV = DAG.getConstant(0, DL, IntVT);
90639063
SDValue InfV = DAG.getConstant(Inf, DL, IntVT);
9064-
SDValue ResultInvertionMask = DAG.getConstant(InvertionMask, DL, ResultVT);
9064+
SDValue ResultInversionMask = DAG.getConstant(InversionMask, DL, ResultVT);
90659065

90669066
SDValue Res;
90679067
const auto appendResult = [&](SDValue PartialRes) {
@@ -9205,7 +9205,7 @@ SDValue TargetLowering::expandIS_FPCLASS(EVT ResultVT, SDValue Op,
92059205
PartialRes = DAG.getNode(ISD::AND, DL, ResultVT, PartialRes, SignV);
92069206
else if (PartialCheck == fcPosNormal) {
92079207
SDValue PosSignV =
9208-
DAG.getNode(ISD::XOR, DL, ResultVT, SignV, ResultInvertionMask);
9208+
DAG.getNode(ISD::XOR, DL, ResultVT, SignV, ResultInversionMask);
92099209
PartialRes = DAG.getNode(ISD::AND, DL, ResultVT, PartialRes, PosSignV);
92109210
}
92119211
if (IsF80)
@@ -9217,7 +9217,7 @@ SDValue TargetLowering::expandIS_FPCLASS(EVT ResultVT, SDValue Op,
92179217
if (!Res)
92189218
return DAG.getConstant(IsInverted, DL, ResultVT);
92199219
if (IsInverted)
9220-
Res = DAG.getNode(ISD::XOR, DL, ResultVT, Res, ResultInvertionMask);
9220+
Res = DAG.getNode(ISD::XOR, DL, ResultVT, Res, ResultInversionMask);
92219221
return Res;
92229222
}
92239223

llvm/lib/Target/NVPTX/NVPTXInstrInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2467,7 +2467,7 @@ def : Pat<(brcond i32:$a, bb:$target),
24672467

24682468
// SelectionDAGBuilder::visitSWitchCase() will invert the condition of a
24692469
// conditional branch if the target block is the next block so that the code
2470-
// can fall through to the target block. The invertion is done by 'xor
2470+
// can fall through to the target block. The inversion is done by 'xor
24712471
// condition, 1', which will be translated to (setne condition, -1). Since ptx
24722472
// supports '@!pred bra target', we should use it.
24732473
def : Pat<(brcond (i1 (setne i1:$a, -1)), bb:$target),

0 commit comments

Comments
 (0)