Home
last modified time | relevance | path

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

123

/external/llvm/lib/VMCore/
DConstantFold.cpp47 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector()
239 if (RHS->isNullValue()) in ExtractConstantBytes()
521 if (V->isNullValue() && !DestTy->isX86_MMXTy()) in ConstantFoldCastInstruction()
536 if (!CE->getOperand(i)->isNullValue()) { in ConstantFoldCastInstruction()
598 if (V->isNullValue()) // Is it an integral null value? in ConstantFoldCastInstruction()
603 if (V->isNullValue()) in ConstantFoldCastInstruction()
610 CE->getOperand(0)->isNullValue()) { in ConstantFoldCastInstruction()
624 CE->getOperand(1)->isNullValue()) { in ConstantFoldCastInstruction()
695 if (Cond->isNullValue()) return V2; in ConstantFoldSelectInstruction()
706 Constant *V = Cond->isNullValue() ? V2 : V1; in ConstantFoldSelectInstruction()
[all …]
DConstants.cpp51 return isNullValue(); in isNegativeZeroValue()
54 bool Constant::isNullValue() const { in isNullValue() function in Constant
242 if (!isa<ConstantInt>(CE->getOperand(1)) ||CE->getOperand(1)->isNullValue()) in canTrap()
706 if (C->isNullValue() && rangeOnlyContains(V.begin(), V.end(), C)) in get()
827 isZero = V[0]->isNullValue(); in get()
830 if (!V[i]->isNullValue()) in get()
874 bool isZero = C->isNullValue(); in get()
2482 if (AllSame && ToC->isNullValue()) { in replaceUsesOfWithOnConstant()
2545 if (ToC->isNullValue()) { in replaceUsesOfWithOnConstant()
2550 if (isAllZeros) isAllZeros = Val->isNullValue(); in replaceUsesOfWithOnConstant()
/external/llvm/include/llvm/
DConstant.h54 bool isNullValue() const;
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp548 cast<ConstantSDNode>(N.getOperand(3))->isNullValue()) { in isSetCCEquivalent()
1390 if (N1C && N1C->isNullValue()) in visitADD()
1412 cast<ConstantSDNode>(N0.getOperand(0))->isNullValue()) in visitADD()
1416 cast<ConstantSDNode>(N1.getOperand(0))->isNullValue()) in visitADD()
1547 if (N1C && N1C->isNullValue()) in visitADDC()
1714 if (N1C && N1C->isNullValue()) in visitSUBC()
1762 if (N1C && N1C->isNullValue()) in visitMUL()
1847 if (N0C && N1C && !N1C->isNullValue()) in visitSDIV()
1864 if (N1C && !N1C->isNullValue() && in visitSDIV()
1902 if (N1C && !N1C->isNullValue() && !TLI.isIntDivCheap()) { in visitSDIV()
[all …]
DSelectionDAG.cpp183 if (!cast<ConstantSDNode>(Zero)->isNullValue()) in isBuildVectorAllZeros()
2276 if (CLHS->isNullValue()) { in ComputeNumSignBits()
2393 return !C->isNullValue(); in isKnownNeverZero()
2771 if (N2C && N2C->isNullValue()) in getNode()
2785 if (N2C && N2C->isNullValue()) in getNode()
2871 if (N2C && N2C->isNullValue()) in getNode()
3695 isa<ConstantSDNode>(Src) && cast<ConstantSDNode>(Src)->isNullValue(); in getMemsetStores()
3760 if (ConstantSize->isNullValue()) in getMemcpy()
3827 if (ConstantSize->isNullValue()) in getMemmove()
3881 if (ConstantSize->isNullValue()) in getMemset()
/external/llvm/lib/Analysis/
DConstantFolding.cpp50 if (C->isNullValue() && !DestTy->isX86_MMXTy()) in FoldBitCast()
517 if (GV->getInitializer()->isNullValue()) in ConstantFoldLoadFromConstPtr()
647 CE->getOperand(0)->isNullValue()) { in SymbolicallyEvaluateGEP()
694 if (Ptr->isNullValue() || BasePtr != 0) { in SymbolicallyEvaluateGEP()
989 if (TD && Ops1->isNullValue()) { in ConstantFoldCompareInstOperands()
1037 CE0->getOpcode() == Instruction::Or && Ops1->isNullValue()) { in ConstantFoldCompareInstOperands()
1060 if (!CE->getOperand(1)->isNullValue()) in ConstantFoldLoadThroughGEPConstantExpr()
DValueTracking.cpp802 if (C->isNullValue()) in isPowerOfTwo()
864 if (C->isNullValue()) in isKnownNonZero()
1105 if (CLHS->isNullValue()) { in ComputeNumSignBits()
1312 cast<ConstantFP>(I->getOperand(1))->isNullValue()) in CannotBeNegativeZero()
1353 if (C->isNullValue()) in isBytewiseValue()
1671 if (GV->getInitializer()->isNullValue()) { in getConstantStringInfo()
DSparsePropagation.cpp157 Succs[C->isNullValue()] = true; in getFeasibleSuccessors()
DLazyValueInfo.cpp1116 if (Res->isNullValue()) in getPredicateOnEdge()
1123 if (Res->isNullValue()) in getPredicateOnEdge()
DLoopInfo.cpp162 if (CI->isNullValue()) in getCanonicalInductionVariable()
/external/llvm/lib/CodeGen/
DShadowStackGC.cpp211 if (!C->isNullValue()) in GetFrameMap()
317 return C->isNullValue(); in IsNullValue()
/external/llvm/lib/Target/
DTargetLoweringObjectFile.cpp54 if (!C->isNullValue()) in isSuitableForBSS()
/external/clang/lib/CodeGen/
DCGDecl.cpp678 return Init->isNullValue() || NumStores--; in canEmitInitWithFewStoresAfterMemset()
709 assert(!Init->isNullValue() && !isa<llvm::UndefValue>(Init) && in emitStoresForInitAfterMemset()
725 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt)) in emitStoresForInitAfterMemset()
739 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt)) in emitStoresForInitAfterMemset()
1067 if (!constant->isNullValue() && !isa<llvm::UndefValue>(constant)) { in EmitAutoVarInit()
DCGExprConstant.cpp1078 assert(Offset->isNullValue() && "offset on array initializer"); in EmitConstantValue()
1086 if (!Offset->isNullValue()) { in EmitConstantValue()
1477 if (Element->isNullValue()) in EmitNullConstant()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp1356 if (N0C && N0C->isNullValue() && N1C && N1C->isNullValue()) { in PerformDAGCombine()
1366 if (N1C && N1C->isNullValue() && N->hasNUsesOfValue(0, 0)) { in PerformDAGCombine()
1389 if (N0C && N0C->isNullValue() && N1C && N1C->isNullValue()) { in PerformDAGCombine()
1405 if (N1C && N1C->isNullValue() && N->hasNUsesOfValue(0, 0)) { in PerformDAGCombine()
1435 if (N1C && N1C->isNullValue()) { in PerformDAGCombine()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp441 if (C->isNullValue()) { in visitLoadInst()
448 if (C->isNullValue()) { in visitLoadInst()
DInstructionCombining.cpp682 InV = InC->isNullValue() ? FalseVInPred : TrueVInPred; in FoldOpIntoPhi()
833 if (!isa<Constant>(*I) || !cast<Constant>(*I)->isNullValue()) { in visitGetElementPtrInst()
906 cast<Constant>(*GEP.idx_begin())->isNullValue() && in visitGetElementPtrInst()
1502 return TypeInfo->isNullValue(); in isCatchAll()
1744 if (LArray->getOperand(l)->isNullValue()) { in visitLandingPadInst()
DInstCombineMulDivRem.cpp298 if (ST->isNullValue()) in SimplifyDivRemOfSelect()
302 if (ST->isNullValue()) in SimplifyDivRemOfSelect()
DInstCombineCompares.cpp642 !cast<Constant>(GEPLHS->getOperand(i))->isNullValue()) { in FoldGEPICmp()
654 !cast<Constant>(GEPRHS->getOperand(i))->isNullValue()) { in FoldGEPICmp()
1246 if (!ICI.isEquality() || !RHS->isNullValue() || !LHSI->hasOneUse()) in visitICmpInstWithInstAndIntCst()
1461 if (!ConstantExpr::getAnd(BOC, NotCI)->isNullValue()) in visitICmpInstWithInstAndIntCst()
2208 if (RHSC->isNullValue() && in visitICmpInst()
2250 if (RHSC->isNullValue() && TD && in visitICmpInst()
2993 if (RHSC->isNullValue() && CI->getCalledFunction() && in visitFCmpInst()
/external/llvm/lib/Transforms/IPO/
DGlobalOpt.cpp564 !cast<Constant>(GEPI->getOperand(1))->isNullValue()) in isSafeSROAElementUse()
590 !cast<Constant>(U->getOperand(1))->isNullValue() || in IsUserOfGlobalSafeForSRA()
1769 GV->getInitializer()->isNullValue()) { in OptimizeOnceStoredGlobal()
1833 IsOneZero = InitVal->isNullValue() && CI->isOne(); in TryToShrinkGlobalToBoolean()
2180 if (GV->getInitializer()->isNullValue()) in ParseGlobalCtors()
2694 if (Val->isNullValue() && DestVal && DestVal->isNullValue()) { in EvaluateBlock()
DMergeFunctions.cpp391 if (C1->isNullValue() && C2->isNullValue() && in enumerate()
DFunctionAttrs.cpp488 if (!C->isNullValue() && !isa<UndefValue>(C)) in IsFunctionMallocLike()
/external/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp55 V->isNullValue() ? Subtarget->getBZeroEntry() : 0) { in EmitTargetCodeForMemset()
/external/llvm/tools/bugpoint/
DExtractFunction.cpp242 if (CS->getOperand(1)->isNullValue()) in SplitStaticCtorDtor()
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp81 if (CV->isNullValue() || isa<UndefValue>(CV)) in LowerConstant()
1147 if (!Initializer->isNullValue()) { in printModuleLevelGV()
1172 !Initializer->isNullValue()) { in printModuleLevelGV()
1719 if (isa<UndefValue>(CPV) || CPV->isNullValue()) { in bufferLEByte()

123