Home
last modified time | relevance | path

Searched refs:IntPart (Results 1 – 3 of 3) sorted by relevance

/llvm-project-15.0.7/llvm/unittests/ADT/
H A DAPFixedPointTest.cpp194 void CheckIntPart(const FixedPointSemantics &Sema, int64_t IntPart) { in CheckIntPart() argument
199 (IntPart << Scale) + (1ULL << (Scale - 1)), in CheckIntPart()
202 ASSERT_EQ(ValWithFract.getIntPart(), IntPart); in CheckIntPart()
211 APInt(Sema.getWidth(), (IntPart << Scale), Sema.isSigned()), Sema); in CheckIntPart()
212 ASSERT_EQ(WholeNum.getIntPart(), IntPart); in CheckIntPart()
217 APInt(Sema.getWidth(), (IntPart << Scale), Sema.isSigned()), Sema); in CheckIntPart()
218 ASSERT_EQ(Negative.getIntPart(), IntPart); in CheckIntPart()
/llvm-project-15.0.7/llvm/lib/Support/
H A DAPFixedPoint.cpp379 APSInt IntPart = Val >> Scale; in toString() local
387 IntPart.toString(Str, /*Radix=*/10); in toString()
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstCombineAndOrXor.cpp1012 struct IntPart { struct
1019 static Optional<IntPart> matchIntPart(Value *V) { in matchIntPart() argument
1037 static Value *extractIntPart(const IntPart &P, IRBuilderBase &Builder) { in extractIntPart()
1059 Optional<IntPart> L0 = matchIntPart(Cmp0->getOperand(0)); in foldEqOfParts()
1060 Optional<IntPart> R0 = matchIntPart(Cmp0->getOperand(1)); in foldEqOfParts()
1061 Optional<IntPart> L1 = matchIntPart(Cmp1->getOperand(0)); in foldEqOfParts()
1062 Optional<IntPart> R1 = matchIntPart(Cmp1->getOperand(1)); in foldEqOfParts()
1086 IntPart L = {L0->From, L0->StartBit, L0->NumBits + L1->NumBits}; in foldEqOfParts()
1087 IntPart R = {R0->From, R0->StartBit, R0->NumBits + R1->NumBits}; in foldEqOfParts()