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

References

include/llvm/CodeGen/SelectionDAGNodes.h
 1594   bool isOne() const { return Value->isOne(); }
lib/Analysis/BranchProbabilityInfo.cpp
  740   } else if (CV->isOne() && CI->getPredicate() == CmpInst::ICMP_SLT) {
lib/Analysis/IVDescriptors.cpp
  816   if (ConstStep && (ConstStep->isOne() || ConstStep->isMinusOne()))
lib/Analysis/InstructionSimplify.cpp
 5082       if (Power->isOne())
lib/Analysis/Lint.cpp
  431              !cast<ConstantInt>(UnderlyingObject)->isOne(),
lib/Analysis/LoopInfo.cpp
  163               if (CI->isOne())
  414   if (!Step || !Step->isOne())
lib/Analysis/MemoryBuiltins.cpp
  520       cast<ConstantInt>(ObjectSize->getArgOperand(2))->isOne();
lib/Analysis/ScalarEvolution.cpp
  391     return SC->getValue()->isOne();
  495             if (CI->isOne()) {
  517                 if (CI->isOne() &&
 2962     if (cast<SCEVConstant>(Ops[0])->getValue()->isOne()) {
 3167     if (RHSC->getValue()->isOne())
 3194     if (RHSC->getValue()->isOne())
 4355           bool IsOne = cast<SCEVConstant>(Res.getValue())->getValue()->isOne();
 5333     return getSCEV(CI->isOne() ? TrueVal : FalseVal);
 8783   if (StepC->getValue()->isOne() || StepC->getValue()->isMinusOne()) {
lib/IR/ConstantFold.cpp
  652           bool isOne = isa<ConstantInt>(Idx) && cast<ConstantInt>(Idx)->isOne();
  665               if (CI->isOne() &&
 1110       if (CI2->isOne())
 1115       if (CI2->isOne())
 1122       if (CI2->isOne())
 1198           assert(CI2->isOne());
 2132     if (!CI->isOne())
 2137     if (!CI || !CI->isOne())
lib/IR/Constants.cpp
  129     return CI->isOne();
lib/IR/Instructions.cpp
  519   return CVal && CVal->isOne();
 1263     return !CI->isOne();
lib/IR/Verifier.cpp
 5470         IsImmutableCI->isZero() || IsImmutableCI->isOne(),
lib/Target/AArch64/AArch64FastISel.cpp
 2662     if (CI->isOne()) {
 2673     if (CI->isOne()) {
lib/Target/X86/X86FastISel.cpp
 2918       if (CI->isOne() && (BaseOpc == ISD::ADD || BaseOpc == ISD::SUB) &&
lib/Transforms/IPO/GlobalOpt.cpp
 1651     IsOneZero = InitVal->isNullValue() && CI->isOne();
lib/Transforms/InstCombine/InstCombineCalls.cpp
 3288         if (Splat->isOne())
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1148     E.IsDynInit |= IsDynInit->isOne();
 1151     E.IsBlacklisted |= IsBlacklisted->isOne();
lib/Transforms/Instrumentation/PGOInstrumentation.cpp
  280     else if (CV->isOne())
lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
  137   if (!CI->isOne()) std::swap(ReplaceWith, Other);
lib/Transforms/Scalar/EarlyCSE.cpp
  973                 cast<ConstantInt>(KnownCond)->isOne()) {
lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp
  871     if (StepCI->isOne()) {
lib/Transforms/Scalar/JumpThreading.cpp
  254     BP = (CI->isOne() ? BranchProbability::getBranchProbability(
  732         cast<ConstantInt>(I->getOperand(1))->isOne()) {
  927           KnownCond = CI->isOne();
lib/Transforms/Scalar/LoopIdiomRecognize.cpp
 1326         !((SubOneOp->getOpcode() == Instruction::Sub && Dec->isOne()) ||
 1349       if (!Inc || !Inc->isOne())
 1444   if (!Shft || !Shft->isOne())
 1474     if (!Inc || !Inc->isOne())
lib/Transforms/Scalar/LoopStrengthReduce.cpp
 2317          if (BO1->isOne() && SE.getSCEV(BO->getOperand(0)) == MaxRHS)
 2321         if (BO1->isOne() && SE.getSCEV(BO->getOperand(0)) == MaxRHS)
 2443             if (C->isOne() || C->isMinusOne())
lib/Transforms/Scalar/NewGVN.cpp
 2488       if (CI->isOne()) {
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp
  314     return C.Index->isOne() || C.Index->isMinusOne();
  322     return ((C.Index->isOne() || C.Index->isMinusOne()) &&
lib/Transforms/Utils/SimplifyCFG.cpp
 2828           if (PBI_C->isOne())
 2837           if (PBI_C->isOne()) {
 5100     if (!LinearMultiplier->isOne())
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  517       ID.getConstIntStepValue() && ID.getConstIntStepValue()->isOne() &&
lib/Transforms/Vectorize/LoopVectorize.cpp
 2825       if (CX->isOne())
 2828       if (CY->isOne())
tools/clang/lib/CodeGen/CGStmt.cpp
  749     if (C->isOne())
tools/polly/lib/Analysis/ScopDetection.cpp
  576     if (Unique && (Unique->isZero() || Unique->isOne()))
unittests/Analysis/LoopInfoTest.cpp
  280         EXPECT_TRUE(StepValue && StepValue->isOne());
  338         EXPECT_TRUE(StepValue && StepValue->isOne());
  396         EXPECT_TRUE(StepValue && StepValue->isOne());
  454         EXPECT_TRUE(StepValue && StepValue->isOne());
  512         EXPECT_TRUE(StepValue && StepValue->isOne());
  571         EXPECT_TRUE(StepValue && StepValue->isOne());
  684         EXPECT_TRUE(StepValue && StepValue->isOne());
  860         EXPECT_TRUE(StepValue && StepValue->isOne());
  920         EXPECT_TRUE(StepValue && StepValue->isOne());
  980         EXPECT_TRUE(StepValue && StepValue->isOne());
 1032         EXPECT_TRUE(StepValue && StepValue->isOne());
 1089         EXPECT_TRUE(StepValue && StepValue->isOne());
 1159         EXPECT_TRUE(StepValue && StepValue->isOne());
 1183         EXPECT_TRUE(StepValue && StepValue->isOne());
 1250         EXPECT_TRUE(StepValue && StepValue->isOne());
unittests/Analysis/ScalarEvolutionTest.cpp
 1564       EXPECT_TRUE(dyn_cast<ConstantInt>(Step)->isOne());