reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

include/llvm/IR/Constants.h
  201     return Val.isOneValue();
include/llvm/IR/PatternMatch.h
  378   bool isValue(const APInt &C) { return C.isOneValue(); }
lib/Analysis/ConstantFolding.cpp
 2208       if (C1->isOneValue() && (!C0 || C0->isNullValue()))
lib/Analysis/InstructionSimplify.cpp
 2914             CI2Val->isOneValue() || !CI->isZero()) {
 2921       if (CIVal->isSignMask() && CI2Val->isOneValue()) {
lib/CodeGen/InterleavedLoadCombinePass.cpp
  309     if (C.isOneValue()) {
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
 3370   if (N1IsConst && ConstValue1.isOneValue())
lib/CodeGen/SelectionDAG/TargetLowering.cpp
 1437     if (DemandedBits.isOneValue())
 2727     return CVal.isOneValue();
 3086     if (N0.getOpcode() == ISD::SRL && (C1.isNullValue() || C1.isOneValue()) &&
 4665     if (Divisor.isOneValue() || Divisor.isAllOnesValue()) {
 4783     if (magics.a == 0 || Divisor.isOneValue()) {
 4964     HadOneDivisor |= D.isOneValue();
 4965     AllDivisorsAreOnes &= D.isOneValue();
 4969     assert((!D.isOneValue() || (K == 0)) && "For divisor '1' we won't rotate.");
 4976     AllDivisorsArePowerOfTwo &= D0.isOneValue();
 4985     assert((D0 * P).isOneValue() && "Multiplicative inverse sanity check.");
 4994     if (D.isOneValue()) {
 5147     HadOneDivisor |= D.isOneValue();
 5148     AllDivisorsAreOnes &= D.isOneValue();
 5152     assert((!D.isOneValue() || (K == 0)) && "For divisor '1' we won't rotate.");
 5163     AllDivisorsArePowerOfTwo &= D0.isOneValue();
 5172     assert((D0 * P).isOneValue() && "Multiplicative inverse sanity check.");
 5194     if (D.isOneValue()) {
lib/IR/ConstantRange.cpp
  201   if (V == 0 || V.isOneValue())
lib/IR/Constants.cpp
  133     return CFP->getValueAPF().bitcastToAPInt().isOneValue();
  144         return CV->getElementAsAPFloat(0).bitcastToAPInt().isOneValue();
  145       return CV->getElementAsAPInt(0).isOneValue();
lib/Target/X86/X86ISelDAGToDAG.cpp
 3852   if (!X86::isConstantSplat(OneVec, SplatVal) || !SplatVal.isOneValue())
lib/Target/X86/X86ISelLowering.cpp
36709     if (!AbsDiff.isOneValue())
44760       if (C->getAPIntValue().isOneValue())
lib/Transforms/InstCombine/InstCombineAddSub.cpp
  925   if (C->isOneValue() && Op0->hasOneUse()) {
lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
 1755         C->isOneValue()) {
lib/Transforms/InstCombine/InstCombineCompares.cpp
   83   if (C.isOneValue()) {
 1533   if (C.isOneValue() && C.getBitWidth() > 1) {
 1882   if (C.isOneValue()) {
 2353   if (C2->isNullValue() || C2->isOneValue() ||
 2534     if (Pred == ICmpInst::ICMP_SLT && C.isOneValue())
 3962           !C->isOneValue()) {
 5018       if (Op0KnownZeroInverted.isOneValue() &&
lib/Transforms/InstCombine/InstCombineSelect.cpp
  418   return C1I.isOneValue() || C1I.isAllOnesValue() ||
  419          C2I.isOneValue() || C2I.isAllOnesValue();
 2653     if (Known.One.isOneValue())
 2655     if (Known.Zero.isOneValue())
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  455          DemandedFromOps.isOneValue()) &&
  524     if (DemandedMask.isOneValue()) {
tools/clang/lib/Sema/SemaOpenMP.cpp
14838           if (!ResultR.Val.getInt().isOneValue()) {
unittests/ADT/APIntTest.cpp
 2717         EXPECT_TRUE(One.isOneValue());