Home
last modified time | relevance | path

Searched refs:countTrailingOnes (Results 1 – 25 of 25) sorted by relevance

/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMUnwindOpAsm.cpp76 uint32_t Range = countTrailingOnes(Mask >> 5); // Exclude r4. in EmitRegSave()
/external/llvm/unittests/ADT/
DAPIntTest.cpp45 EXPECT_EQ(128u, Minus1.countTrailingOnes()); in TEST()
90 EXPECT_EQ(128u, u128max.countTrailingOnes()); in TEST()
98 EXPECT_EQ(64u, u64max.countTrailingOnes()); in TEST()
107 EXPECT_EQ(0u, zero.countTrailingOnes()); in TEST()
117 EXPECT_EQ(1u, one.countTrailingOnes()); in TEST()
/external/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64AddressingModes.h240 CTO = countTrailingOnes(Imm >> I); in processLogicalImmediate()
248 CTO = CLO + countTrailingOnes(Imm) - (64 - Size); in processLogicalImmediate()
/external/llvm/lib/Target/Hexagon/
DHexagonGenExtract.cpp168 uint32_t T = M.countTrailingOnes(); in INITIALIZE_PASS_DEPENDENCY()
/external/llvm/lib/Target/X86/
DX86FloatingPoint.cpp936 unsigned N = countTrailingOnes(STReturns); in handleCall()
1412 unsigned NumSTUses = countTrailingOnes(STUses); in handleSpecialFP()
1419 unsigned NumSTDefs = countTrailingOnes(STDefs); in handleSpecialFP()
1429 unsigned NumSTPopped = countTrailingOnes(STPopped); in handleSpecialFP()
DX86InstrCompiler.td1587 return countTrailingOnes<uint64_t>(Imm) >= 5;
1590 return countTrailingOnes<uint64_t>(Imm) >= 6;
DX86ISelDAGToDAG.cpp1048 if (countTrailingOnes(Mask >> MaskTZ) + MaskTZ + MaskLZ != 64) return true; in foldMaskAndShiftToScale()
DX86InstrInfo.td2289 return getI8Imm(countTrailingOnes(N->getZExtValue()), SDLoc(N));
2293 return isMask_64(Imm) && (countTrailingOnes<uint64_t>(Imm) > 32);
/external/llvm/include/llvm/ADT/
DAPInt.h1404 unsigned countTrailingOnes() const { in countTrailingOnes() function
1406 return llvm::countTrailingOnes(VAL); in countTrailingOnes()
/external/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp256 unsigned TrailingOnes = MaskSCEV->getAPInt().countTrailingOnes(); in extractAlignmentInfo()
/external/llvm/lib/Analysis/
DValueTracking.cpp347 unsigned TrailZ = KnownZero.countTrailingOnes() + in computeKnownBitsMul()
348 KnownZero2.countTrailingOnes(); in computeKnownBitsMul()
1093 if (KnownOne3.countTrailingOnes() > 0) in computeKnownBitsFromOperator()
1353 unsigned TrailZ = LocalKnownZero.countTrailingOnes(); in computeKnownBitsFromOperator()
1388 LocalKnownZero.countTrailingOnes())); in computeKnownBitsFromOperator()
1434 std::min(KnownZero2.countTrailingOnes(), in computeKnownBitsFromOperator()
1435 KnownZero3.countTrailingOnes())); in computeKnownBitsFromOperator()
1985 if (KnownZero.countTrailingOnes() >= ShiftVal) in isKnownNonZero()
DScalarEvolution.cpp4176 return Zeros.countTrailingOnes(); in GetMinTrailingZeros()
/external/llvm/include/llvm/Support/
DMathExtras.h407 std::size_t countTrailingOnes(T Value, ZeroBehavior ZB = ZB_Width) {
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp126 if (CN->getAPIntValue().countTrailingOnes() < EltSize) in isBuildVectorAllOnes()
129 if (CFPN->getValueAPF().bitcastToAPInt().countTrailingOnes() < EltSize) in isBuildVectorAllOnes()
2104 unsigned TrailZ = KnownZero.countTrailingOnes() + in computeKnownBits()
2105 KnownZero2.countTrailingOnes(); in computeKnownBits()
2394 unsigned KnownZeroLow = KnownZero2.countTrailingOnes(); in computeKnownBits()
2400 KnownZero2.countTrailingOnes()); in computeKnownBits()
7073 unsigned AlignBits = KnownZero.countTrailingOnes(); in InferPtrAlignment()
DTargetLowering.cpp1353 MinBits = C->getAPIntValue().countTrailingOnes(); in SimplifySetCC()
1772 ShiftBits = C1.countTrailingOnes(); in SimplifySetCC()
DSelectionDAGBuilder.cpp2063 ShiftOp, DAG.getConstant(countTrailingOnes(B.Mask), dl, VT), in visitBitTestCase()
DDAGCombiner.cpp10648 if (countTrailingOnes(NotMask >> NotMaskTZ) + NotMaskTZ + NotMaskLZ != 64) in CheckForMaskedLoad()
/external/llvm/lib/Transforms/Utils/
DLocal.cpp997 unsigned TrailZ = KnownZero.countTrailingOnes(); in getOrEnforceKnownAlignment()
/external/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp1497 MSB = Srl_imm + (VT == MVT::i32 ? countTrailingOnes<uint32_t>(And_imm) in isBitfieldExtractOpFromAnd()
1498 : countTrailingOnes<uint64_t>(And_imm)) - in isBitfieldExtractOpFromAnd()
1952 MaskWidth = countTrailingOnes(NonZeroBits >> ShiftAmount); in isBitfieldPositioningOp()
/external/llvm/lib/Target/NVPTX/
DNVPTXISelDAGToDAG.cpp4822 uint64_t NumBits = countTrailingOnes(MaskVal); in SelectBFE()
4886 NumBits = countTrailingOnes(MaskVal) - ShiftAmt; in SelectBFE()
4889 unsigned NumOnes = countTrailingOnes(MaskVal >> NumZeros); in SelectBFE()
/external/llvm/lib/Support/
DAPInt.cpp767 Count += llvm::countTrailingOnes(pVal[i]); in countTrailingOnesSlowCase()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp419 return KnownZero.countTrailingOnes() >= 2; in isWordAligned()
/external/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp2606 MB = 64 - countTrailingOnes(Imm64); in Select()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2566 unsigned trailingOnes = RHS.countTrailingOnes(); in DemandedBitsLHSMask()
/external/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp2344 unsigned Width = countTrailingOnes(And_imm) - 1; in SelectV6T2BitfieldExtractOp()