/freebsd-13-stable/contrib/llvm-project/llvm/lib/Analysis/ |
H A D | CmpInstAnalysis.cpp | 108 if (!C->isPowerOf2()) 115 if (!(*C + 1).isPowerOf2()) 122 if (!(*C + 1).isPowerOf2()) 129 if (!C->isPowerOf2())
|
H A D | TargetTransformInfo.cpp | 647 if (CI->getValue().isPowerOf2()) 668 if (CI->getValue().isPowerOf2()) 674 if (CI->getValue().isPowerOf2())
|
H A D | Loads.cpp | 34 assert(APAlign.isPowerOf2() && "must be a power of 2!");
|
H A D | BranchProbabilityInfo.cpp | 770 if (AndRHS->getValue().isPowerOf2())
|
/freebsd-13-stable/contrib/llvm-project/clang/include/clang/Basic/ |
H A D | Sanitizers.h | 74 bool isPowerOf2() const { function in class:clang::SanitizerMask 154 assert(K.isPowerOf2() && "Has to be a single sanitizer."); 163 assert(K.isPowerOf2() && "Has to be a single sanitizer.");
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | SwiftCallingConv.cpp | 26 static bool isPowerOf2(unsigned n) { function 406 assert(isPowerOf2(unitSize.getQuantity())); 648 if (!isPowerOf2(size)) { 695 if (numElts >= 4 && isPowerOf2(numElts)) { 759 if (numElts > 2 && !isPowerOf2(numElts) &&
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 1195 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) 1270 if (!CI2->getValue().isPowerOf2()) 1632 if (*XorC == ~C && (C + 1).isPowerOf2()) 1635 if (*XorC == C && (C + 1).isPowerOf2()) 1640 if (*XorC == -C && C.isPowerOf2()) 1644 if (*XorC == C && (-C).isPowerOf2()) 1768 if ((~(*C2) + 1).isPowerOf2()) { 1871 if (Cmp.getOperand(1) == Y && (-C).isPowerOf2()) { 1912 if (*MaskC == C && (C + 1).isPowerOf2()) { 1992 bool CIsPowerOf2 = C.isPowerOf2(); [all...] |
H A D | InstCombineAndOrXor.cpp | 133 if (AndRHSV.isPowerOf2()) { 235 bool IsAPow2 = (ACst && !ACst->isZero() && ACst->getValue().isPowerOf2()); 236 bool IsBPow2 = (BCst && !BCst->isZero() && BCst->getValue().isPowerOf2()); 506 (BCst->getValue() & (BCst->getValue() ^ DCst->getValue())).isPowerOf2()) { 829 if (Xor.isPowerOf2()) { 960 assert(HighestBit.isPowerOf2() && "expected to be power of two (non-zero)"); 1012 if (!OtherHighestBit.isPowerOf2()) 1256 if ((PredL == ICmpInst::ICMP_ULT && LHSC->getValue().isPowerOf2()) || 2338 if (LAddOpnd == RAddOpnd && DiffC.isPowerOf2()) { 2354 if (LowRangeDiff.isPowerOf2() [all...] |
H A D | InstCombineAddSub.cpp | 982 if (match(E, m_And(m_Value(Op), m_APInt(AI))) && (*AI + 1).isPowerOf2()) { 1236 if (RHSVal.isPowerOf2()) 1238 else if (XorRHS->getValue().isPowerOf2()) 1256 if (LHS->hasOneUse() && (XorRHS->getValue()+1).isPowerOf2()) {
|
H A D | InstCombineMulDivRem.cpp | 105 if (match(C, m_APInt(IVal)) && IVal->isPowerOf2()) 122 if (!match(Elt, m_APInt(IVal)) || !IVal->isPowerOf2()) 246 if (Val.isNegative() && PosVal.isPowerOf2()) { 1138 if (I.isExact() && Op1C->isNonNegative() && Op1C->isPowerOf2()) {
|
H A D | InstCombineCasts.cpp | 934 if ((Op1CV->isNullValue() || Op1CV->isPowerOf2()) && 941 if (KnownZeroMask.isPowerOf2()) { // Exactly 1 possible 1? 1305 ICI->isEquality() && (Op1C->isZero() || Op1C->getValue().isPowerOf2())){ 1309 if (KnownZeroMask.isPowerOf2()) {
|
H A D | InstCombineSelect.cpp | 152 if (!AndMask.isPowerOf2()) 198 if (!TC.isPowerOf2() && !FC.isPowerOf2()) 2207 if (!(*MaxValue + 1).isPowerOf2() || -*MinValue != *MaxValue + 1)
|
H A D | InstCombineSimplifyDemanded.cpp | 679 if (RA.isPowerOf2()) {
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
H A D | StraightLineStrengthReduce.cpp | 607 if (IndexOffset.isPowerOf2()) { 612 if ((-IndexOffset).isPowerOf2()) {
|
H A D | SeparateConstOffsetFromGEP.cpp | 863 if (ElementSize.isPowerOf2()) { 924 if (ElementSize.isPowerOf2()) {
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/SystemZ/ |
H A D | SystemZTargetTransformInfo.cpp | 418 (CVal->getValue().isPowerOf2() || (-CVal->getValue()).isPowerOf2()))
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/AArch64/ |
H A D | AArch64FastISel.cpp | 567 if (C->getValue().isPowerOf2()) 570 if (C->getValue().isPowerOf2()) 796 if (C->getValue().isPowerOf2()) 1256 if (C->getValue().isPowerOf2()) 1642 if (C->getValue().isPowerOf2()) 2342 if (C->getValue().isPowerOf2()) 2346 if (C->getValue().isPowerOf2()) { 4695 if (C->getValue().isPowerOf2()) 4700 if (C->getValue().isPowerOf2()) { 4935 !(C.isPowerOf2() || ( [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | APInt.h | 468 bool isPowerOf2() const { function 1849 if (!isPowerOf2())
|
/freebsd-13-stable/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | PatternMatch.h | 456 bool isValue(const APInt &C) { return C.isPowerOf2(); } 468 bool isValue(const APInt &C) { return (-C).isPowerOf2(); } 480 bool isValue(const APInt &C) { return !C || C.isPowerOf2(); }
|
/freebsd-13-stable/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaAttr.cpp | 310 !(Val == 0 || Val.isPowerOf2()) ||
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | ScalarEvolutionExpander.cpp | 872 if (RHS.isPowerOf2()) 2192 if (SC->getAPInt().isPowerOf2()) {
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/ |
H A D | Verifier.cpp | 4531 Assert(ElementSizeVal.isPowerOf2(), 4862 Assert(Alignment->getValue().isPowerOf2(), 4883 Assert(Alignment->getValue().isPowerOf2(), 4899 Assert(Alignment.isNullValue() || Alignment.isPowerOf2(), 4906 Assert(Alignment.isNullValue() || Alignment.isPowerOf2(),
|
/freebsd-13-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 3192 return I1.ugt(I01) && I1.isPowerOf2() && I01.isPowerOf2(); 3463 if ((C->getAPIntValue()+1).isPowerOf2()) { 3928 if (AndRHS->getAPIntValue().isPowerOf2() && 3938 if (C1.isPowerOf2() && 3956 if ((-AndRHSC).isPowerOf2() && (AndRHSC & C1) == C1) { 7698 if (C.isPowerOf2()) {
|
H A D | DAGCombiner.cpp | 3597 if (N1IsConst && !N1IsOpaqueConst && (-ConstValue1).isPowerOf2()) { 3622 if ((MulC - 1).isPowerOf2()) 3624 else if ((MulC + 1).isPowerOf2()) 3910 if (C->getAPIntValue().isPowerOf2()) 3912 if ((-C->getAPIntValue()).isPowerOf2()) 4730 if ((C0Val - C1Val).isPowerOf2()) { 8410 if (UnknownBits.isPowerOf2()) { 8876 if (C1Val.isPowerOf2() && C2Val.isNullValue()) { 9263 if (ISD::isConstantSplatVector(N1.getNode(), Pow2C) && Pow2C.isPowerOf2() && 14092 if (AndConst.isPowerOf2() [all...] |
/freebsd-13-stable/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
H A D | HexagonISelDAGToDAG.cpp | 2193 if (V1C && NOpcode == ISD::MUL && V1C->getAPIntValue().isPowerOf2()) 2221 if (V1C && V1C->getAPIntValue().isPowerOf2()) {
|