Home
last modified time | relevance | path

Searched refs:countTrailingOnes (Results 1 – 24 of 24) 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.cpp37 EXPECT_EQ(128u, Minus1.countTrailingOnes()); in TEST()
82 EXPECT_EQ(128u, u128max.countTrailingOnes()); in TEST()
90 EXPECT_EQ(64u, u64max.countTrailingOnes()); in TEST()
99 EXPECT_EQ(0u, zero.countTrailingOnes()); in TEST()
109 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/X86/
DX86FloatingPoint.cpp946 unsigned N = countTrailingOnes(STReturns); in handleCall()
1423 unsigned NumSTUses = countTrailingOnes(STUses); in handleSpecialFP()
1430 unsigned NumSTDefs = countTrailingOnes(STDefs); in handleSpecialFP()
1440 unsigned NumSTPopped = countTrailingOnes(STPopped); in handleSpecialFP()
DX86InstrCompiler.td1496 return countTrailingOnes<uint64_t>(Imm) >= 5;
1499 return countTrailingOnes<uint64_t>(Imm) >= 6;
DX86ISelDAGToDAG.cpp919 if (countTrailingOnes(Mask >> MaskTZ) + MaskTZ + MaskLZ != 64) return true; in FoldMaskAndShiftToScale()
DX86InstrInfo.td2226 return getI8Imm(countTrailingOnes(N->getZExtValue()));
2230 return isMask_64(Imm) && (countTrailingOnes<uint64_t>(Imm) > 32);
/external/llvm/include/llvm/ADT/
DAPInt.h1396 unsigned countTrailingOnes() const { in countTrailingOnes() function
1398 return llvm::countTrailingOnes(VAL); in countTrailingOnes()
/external/llvm/lib/Transforms/Scalar/
DAlignmentFromAssumptions.cpp253 MaskSCEV->getValue()->getValue().countTrailingOnes(); in extractAlignmentInfo()
/external/llvm/lib/Analysis/
DValueTracking.cpp310 unsigned TrailZ = KnownZero.countTrailingOnes() + in computeKnownBitsMul()
311 KnownZero2.countTrailingOnes(); in computeKnownBitsMul()
1329 unsigned TrailZ = LocalKnownZero.countTrailingOnes(); in computeKnownBits()
1364 LocalKnownZero.countTrailingOnes())); in computeKnownBits()
1410 std::min(KnownZero2.countTrailingOnes(), in computeKnownBits()
1411 KnownZero3.countTrailingOnes())); in computeKnownBits()
DScalarEvolution.cpp3810 return Zeros.countTrailingOnes(); in GetMinTrailingZeros()
/external/llvm/include/llvm/Support/
DMathExtras.h403 std::size_t countTrailingOnes(T Value, ZeroBehavior ZB = ZB_Width) {
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp124 if (CN->getAPIntValue().countTrailingOnes() < EltSize) in isBuildVectorAllOnes()
127 if (CFPN->getValueAPF().bitcastToAPInt().countTrailingOnes() < EltSize) in isBuildVectorAllOnes()
2019 unsigned TrailZ = KnownZero.countTrailingOnes() + in computeKnownBits()
2020 KnownZero2.countTrailingOnes(); in computeKnownBits()
2303 unsigned KnownZeroOut = KnownZero2.countTrailingOnes(); in computeKnownBits()
2307 KnownZero2.countTrailingOnes()); in computeKnownBits()
6705 unsigned AlignBits = KnownZero.countTrailingOnes(); in InferPtrAlignment()
DTargetLowering.cpp1310 MinBits = C->getAPIntValue().countTrailingOnes(); in SimplifySetCC()
1720 ShiftBits = C1.countTrailingOnes(); in SimplifySetCC()
DSelectionDAGBuilder.cpp1960 DAG.getConstant(countTrailingOnes(B.Mask), VT), ISD::SETNE); in visitBitTestCase()
DDAGCombiner.cpp9702 if (countTrailingOnes(NotMask >> NotMaskTZ) + NotMaskTZ + NotMaskLZ != 64) in CheckForMaskedLoad()
/external/llvm/lib/Transforms/Utils/
DLocal.cpp958 unsigned TrailZ = KnownZero.countTrailingOnes(); in getOrEnforceKnownAlignment()
/external/llvm/lib/Target/AArch64/
DAArch64ISelDAGToDAG.cpp1418 MSB = Srl_imm + (VT == MVT::i32 ? countTrailingOnes<uint32_t>(And_imm) in isBitfieldExtractOpFromAnd()
1419 : countTrailingOnes<uint64_t>(And_imm)) - in isBitfieldExtractOpFromAnd()
1869 MaskWidth = countTrailingOnes(NonZeroBits >> ShiftAmount); in isBitfieldPositioningOp()
/external/llvm/lib/Target/NVPTX/
DNVPTXISelDAGToDAG.cpp4760 uint64_t NumBits = countTrailingOnes(MaskVal); in SelectBFE()
4824 NumBits = countTrailingOnes(MaskVal) - ShiftAmt; in SelectBFE()
4827 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.cpp422 return KnownZero.countTrailingOnes() >= 2; in isWordAligned()
/external/llvm/lib/Target/ARM/
DARMISelDAGToDAG.cpp2311 unsigned Width = countTrailingOnes(And_imm) - 1; in SelectV6T2BitfieldExtractOp()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp2472 unsigned trailingOnes = RHS.countTrailingOnes(); in DemandedBitsLHSMask()
/external/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp2532 MB = 64 - countTrailingOnes(Imm64); in Select()