Home
last modified time | relevance | path

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

1234

/external/llvm/lib/IR/
DConstantFold.cpp49 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector()
258 if (RHS->isNullValue()) in ExtractConstantBytes()
536 if (V->isNullValue() && !DestTy->isX86_MMXTy()) in ConstantFoldCastInstruction()
554 if (!CE->getOperand(i)->isNullValue()) { in ConstantFoldCastInstruction()
622 if (V->isNullValue()) // Is it an integral null value? in ConstantFoldCastInstruction()
627 if (V->isNullValue()) in ConstantFoldCastInstruction()
634 CE->getOperand(0)->isNullValue()) { in ConstantFoldCastInstruction()
648 CE->getOperand(1)->isNullValue()) { in ConstantFoldCastInstruction()
729 if (Cond->isNullValue()) return V2; in ConstantFoldSelectInstruction()
749 V = Cond->isNullValue() ? V2Element : V1Element; in ConstantFoldSelectInstruction()
[all …]
DConstants.cpp61 return isNullValue(); in isNegativeZeroValue()
72 return isNullValue(); in isZeroValue()
75 bool Constant::isNullValue() const { in isNullValue() function in Constant
335 if (!isa<ConstantInt>(CE->getOperand(1)) ||CE->getOperand(1)->isNullValue()) in canTrapImpl()
863 if (C->isNullValue() && rangeOnlyContains(V.begin(), V.end(), C)) in getImpl()
986 isZero = V[0]->isNullValue(); in get()
989 if (!V[i]->isNullValue()) in get()
1038 bool isZero = C->isNullValue(); in getImpl()
2847 if (AllSame && ToC->isNullValue()) { in replaceUsesOfWithOnConstant()
2883 if (ToC->isNullValue()) { in replaceUsesOfWithOnConstant()
[all …]
/external/llvm/include/llvm/IR/
DConstant.h56 bool isNullValue() const;
/external/llvm/lib/Target/AArch64/
DAArch64SelectionDAGInfo.cpp34 (V && V->isNullValue()) ? STI.getBZeroEntry() : nullptr; in EmitTargetCodeForMemset()
/external/llvm/lib/Transforms/IPO/
DMergeFunctions.cpp524 if (L->isNullValue() && R->isNullValue()) in cmpConstants()
526 if (L->isNullValue() && !R->isNullValue()) in cmpConstants()
528 if (!L->isNullValue() && R->isNullValue()) in cmpConstants()
DGlobalOpt.cpp378 !cast<Constant>(GEPI->getOperand(1))->isNullValue()) in isSafeSROAElementUse()
403 !cast<Constant>(U->getOperand(1))->isNullValue() || in IsUserOfGlobalSafeForSRA()
1572 GV->getInitializer()->isNullValue()) { in OptimizeOnceStoredGlobal()
1635 IsOneZero = InitVal->isNullValue() && CI->isOne(); in TryToShrinkGlobalToBoolean()
2470 if (Val->isNullValue() && DestVal && DestVal->isNullValue()) { in EvaluateBlock()
/external/llvm/lib/Transforms/Utils/
DCtorUtils.cpp69 if (GV->getInitializer()->isNullValue()) in parseGlobalCtors()
/external/llvm/lib/Analysis/
DConstantFolding.cpp55 if (C->isNullValue() && !DestTy->isX86_MMXTy()) in FoldBitCast()
595 if (GV->getInitializer()->isNullValue()) in ConstantFoldLoadFromConstPtr()
750 CE->getOperand(0)->isNullValue()) { in SymbolicallyEvaluateGEP()
799 if (Ptr->isNullValue() || BasePtr != 0) { in SymbolicallyEvaluateGEP()
1117 if (Ops1->isNullValue()) { in ConstantFoldCompareInstOperands()
1170 CE0->getOpcode() == Instruction::Or && Ops1->isNullValue()) { in ConstantFoldCompareInstOperands()
1191 if (!CE->getOperand(1)->isNullValue()) in ConstantFoldLoadThroughGEPConstantExpr()
DSparsePropagation.cpp158 Succs[C->isNullValue()] = true; in getFeasibleSuccessors()
DValueTracking.cpp1537 if (C->isNullValue()) in isKnownToBeAPowerOfTwo()
1713 if (C->isNullValue()) in isKnownNonZero()
2025 if (CLHS->isNullValue()) { in ComputeNumSignBits()
2244 if (CFP->isNullValue()) in CannotBeNegativeZero()
2341 if (C->isNullValue()) in isBytewiseValue()
2640 if (GV->getInitializer()->isNullValue()) { in getConstantStringInfo()
DLazyValueInfo.cpp1231 if (Res->isNullValue()) in getPredicateResult()
1238 if (Res->isNullValue()) in getPredicateResult()
DLoopInfo.cpp163 if (CI->isNullValue()) in getCanonicalInductionVariable()
/external/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp1607 if (N1C && N1C->isNullValue()) in visitADD()
1628 cast<ConstantSDNode>(N0.getOperand(0))->isNullValue()) in visitADD()
1632 cast<ConstantSDNode>(N1.getOperand(0))->isNullValue()) in visitADD()
1766 if (N1C && N1C->isNullValue()) in visitADDC()
1944 if (N1C && N1C->isNullValue()) in visitSUBC()
2102 if (N0C && N1C && !N1C->isNullValue()) in visitSDIV()
2120 if (N1C && !N1C->isNullValue() && (N1C->getAPIntValue().isPowerOf2() || in visitSDIV()
2191 if (N0C && N1C && !N1C->isNullValue()) in visitUDIV()
2237 if (N0C && N1C && !N1C->isNullValue()) in visitSREM()
2248 if (N1C && !N1C->isNullValue()) { in visitSREM()
[all …]
/external/llvm/lib/CodeGen/
DShadowStackGCLowering.cpp200 if (!C->isNullValue()) in GetFrameMap()
313 return C->isNullValue(); in IsNullValue()
/external/mesa3d/src/gallium/drivers/radeon/
DSIISelLowering.cpp407 && False->isNullValue() in PerformDAGCombine()
427 && C->isNullValue() in PerformDAGCombine()
DAMDGPUISelLowering.cpp308 return C->isNullValue(); in isHWFalseValue()
/external/clang/lib/CodeGen/
DCGExprConstant.cpp769 if (fillC->isNullValue() && !NumInitableElts) in EmitArrayInitialization()
1106 assert(Offset->isNullValue() && "offset on array initializer"); in EmitConstantValue()
1114 if (!Offset->isNullValue()) { in EmitConstantValue()
1231 if (Filler && Filler->isNullValue() && !NumInitElts) { in EmitConstantValue()
1412 if (Element->isNullValue()) in EmitNullConstant()
DCGDecl.cpp753 return Init->isNullValue() || NumStores--; in canEmitInitWithFewStoresAfterMemset()
784 assert(!Init->isNullValue() && !isa<llvm::UndefValue>(Init) && in emitStoresForInitAfterMemset()
800 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt)) in emitStoresForInitAfterMemset()
815 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt)) in emitStoresForInitAfterMemset()
1165 if (!constant->isNullValue() && !isa<llvm::UndefValue>(constant)) { in EmitAutoVarInit()
/external/llvm/lib/Target/
DTargetLoweringObjectFile.cpp58 if (!C->isNullValue()) in isSuitableForBSS()
/external/llvm/lib/Target/XCore/
DXCoreISelLowering.cpp1673 if (N0C && N0C->isNullValue() && N1C && N1C->isNullValue()) { in PerformDAGCombine()
1683 if (N1C && N1C->isNullValue() && N->hasNUsesOfValue(0, 1)) { in PerformDAGCombine()
1706 if (N0C && N0C->isNullValue() && N1C && N1C->isNullValue()) { in PerformDAGCombine()
1722 if (N1C && N1C->isNullValue() && N->hasNUsesOfValue(0, 1)) { in PerformDAGCombine()
1752 if (N1C && N1C->isNullValue()) { in PerformDAGCombine()
/external/llvm/lib/Target/NVPTX/
DNVPTXAsmPrinter.cpp1183 if (!Initializer->isNullValue() && !isa<UndefValue>(Initializer)) { in printModuleLevelGV()
1190 if (!GVar->getInitializer()->isNullValue()) { in printModuleLevelGV()
1217 if (!isa<UndefValue>(Initializer) && !Initializer->isNullValue()) { in printModuleLevelGV()
1754 if (isa<UndefValue>(CPV) || CPV->isNullValue()) { in bufferLEByte()
/external/llvm/lib/Target/X86/
DX86SelectionDAGInfo.cpp83 V->isNullValue() ? Subtarget.getBZeroEntry() : nullptr) { in EmitTargetCodeForMemset()
/external/llvm/tools/bugpoint/
DExtractFunction.cpp231 if (CS->getOperand(1)->isNullValue()) in SplitStaticCtorDtor()
/external/llvm/lib/Transforms/InstCombine/
DInstructionCombining.cpp814 InV = InC->isNullValue() ? FalseVInPred : TrueVInPred; in FoldOpIntoPhi()
1312 if (!isa<Constant>(*I) || !cast<Constant>(*I)->isNullValue()) { in visitGetElementPtrInst()
1483 cast<Constant>(*GEP.idx_begin())->isNullValue() && in visitGetElementPtrInst()
2306 return TypeInfo->isNullValue(); in isCatchAll()
2548 if (LArray->getOperand(l)->isNullValue()) { in visitLandingPadInst()
DInstCombineCalls.cpp124 mdconst::extract<ConstantInt>(M->getOperand(0))->isNullValue() && in SimplifyMemTransfer()
330 if (NumBytes->isNullValue()) in visitCallInst()
1157 cast<Constant>(RHS)->isNullValue()) { in visitCallInst()

1234