Home
last modified time | relevance | path

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

1234

/llvm-project-15.0.7/llvm/lib/IR/
H A DConstantFold.cpp260 if (RHS->isNullValue()) in ExtractConstantBytes()
391 if (!CE->getOperand(i)->isNullValue()) { in ConstantFoldCastInstruction()
465 if (V->isNullValue()) in ConstantFoldCastInstruction()
524 if (Cond->isNullValue()) return V2; in ConstantFoldSelectInstruction()
736 if (Elt->isNullValue()) { in ConstantFoldShuffleVectorInstruction()
1620 if (C1->isNullValue()) { in ConstantFoldCompareInstruction()
1632 } else if (C2->isNullValue()) { in ConstantFoldCompareInstruction()
1903 (C1->isNullValue() && !C2->isNullValue())) { in ConstantFoldCompareInstruction()
1936 if (!cast<Constant>(Idxs[i])->isNullValue()) in isInBoundsIndices()
1967 if (Idx0->isNullValue()) { in foldGEPOfGEP()
[all …]
H A DAbstractCallSite.cpp147 if (VarArgFlagAsCM->getValue()->isNullValue()) in AbstractCallSite()
H A DConstants.cpp57 return isNullValue(); in isNegativeZeroValue()
73 return isNullValue(); in isZeroValue()
76 bool Constant::isNullValue() const { in isNullValue() function in Constant
1268 if (C->isNullValue() && rangeOnlyContains(V.begin(), V.end(), C)) in getImpl()
1318 isZero = V[0]->isNullValue(); in get()
1322 if (!C->isNullValue()) in get()
1362 bool isZero = C->isNullValue(); in getImpl()
1405 if (V->isNullValue()) in getSplat()
1856 if (cast<Constant>(To)->isNullValue()) in handleOperandChangeImpl()
3327 if (AllSame && ToC->isNullValue()) in handleOperandChangeImpl()
[all …]
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DLowerGlobalDtors.cpp111 if (DtorFunc->isNullValue()) in runImpl()
171 (!Associated->isNullValue() ? (Twine(".") + Associated->getName()) in runImpl()
189 (!Associated->isNullValue() ? (Twine(".") + Associated->getName()) in runImpl()
H A DFunctionComparator.cpp274 if (L->isNullValue() && R->isNullValue()) in cmpConstants()
276 if (L->isNullValue() && !R->isNullValue()) in cmpConstants()
278 if (!L->isNullValue() && R->isNullValue()) in cmpConstants()
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPUMCInstLower.h60 if (Op->isNullValue() && AT.getNullPointerValue(SrcAddr) == 0) { in lowerAddrSpaceCast()
/llvm-project-15.0.7/llvm/lib/Transforms/Scalar/
H A DScalarizeMaskedMemIntrin.cpp183 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedLoad()
319 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedStore()
437 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedGather()
567 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedScatter()
663 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) { in scalarizeMaskedExpandLoad()
783 if (cast<Constant>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedCompressStore()
H A DCallSiteSplitting.cpp173 else if (ConstVal->getType()->isPointerTy() && ConstVal->isNullValue()) { in addConditions()
/llvm-project-15.0.7/llvm/include/llvm/IR/
H A DConstant.h53 bool isNullValue() const;
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DShadowStackGCLowering.cpp115 if (!C->isNullValue()) in GetFrameMap()
228 return C->isNullValue(); in IsNullValue()
H A DWasmEHPrepare.cpp257 cast<Constant>(CPI->getArgOperand(0))->isNullValue()) in prepareEHPads()
H A DWinEHPrepare.cpp152 if (TypeInfo->isNullValue()) in addTryBlockMapEntry()
381 assert((Filter || FilterOrNull->isNullValue()) && in calculateSEHStateNumbers()
/llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/
H A DReduceOperandsSkip.cpp65 if (C->isNullValue()) in classifyReductivePower()
H A DReduceOperands.cpp42 return C && C->isNullValue(); in isZero()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp567 if (Res->isNullValue() && !LoadTy->isX86_MMXTy() && in FoldReinterpretLoadFromConst()
575 if (Res->isNullValue() && !LoadTy->isX86_MMXTy() && in FoldReinterpretLoadFromConst()
765 if (C->isNullValue() && !Ty->isX86_MMXTy() && !Ty->isX86_AMXTy()) in ConstantFoldLoadFromUniformValue()
947 if ((Ptr->isNullValue() || BasePtr != 0) && in SymbolicallyEvaluateGEP()
1235 if (Ops1->isNullValue()) { in ConstantFoldCompareInstOperands()
1288 CE0->getOpcode() == Instruction::Or && Ops1->isNullValue()) { in ConstantFoldCompareInstOperands()
1435 if (Base->isNullValue()) { in ConstantFoldCastOperand()
1446 Sub->getOperand(0)->isNullValue()) in ConstantFoldCastOperand()
3090 if (MaskElt->isNullValue()) { in ConstantFoldFixedVectorCall()
3182 if (!Src || !Src->isNullValue()) in ConstantFoldScalableVectorCall()
H A DVectorUtils.cpp336 if (Elt->isNullValue()) in findScalarElement()
1027 if (ConstMask->isNullValue() || isa<UndefValue>(ConstMask)) in maskIsAllZeroOrUndef()
1036 if (MaskElt->isNullValue() || isa<UndefValue>(MaskElt)) in maskIsAllZeroOrUndef()
1083 if (CV->getAggregateElement(i)->isNullValue()) in possiblyDemandedEltsInMask()
/llvm-project-15.0.7/llvm/lib/Target/NVPTX/
H A DNVPTXAsmPrinter.cpp1136 if (!Initializer->isNullValue() && !isa<UndefValue>(Initializer)) { in printModuleLevelGV()
1144 if (!GVar->getInitializer()->isNullValue() && in printModuleLevelGV()
1171 if (!isa<UndefValue>(Initializer) && !Initializer->isNullValue()) { in printModuleLevelGV()
1810 if (isa<UndefValue>(CPV) || CPV->isNullValue()) { in bufferLEByte()
1945 if (CV->isNullValue() || isa<UndefValue>(CV)) in lowerConstantForGV()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGExprConstant.cpp245 Elems[*FirstElemToUpdate]->isNullValue() || in addBits()
421 if (Elems[I]->isNullValue()) in buildFrom()
954 if (Elements.size() < NonzeroLength && Filler->isNullValue()) in EmitArrayConstant()
957 while (NonzeroLength > 0 && Elements[NonzeroLength - 1]->isNullValue()) in EmitArrayConstant()
1245 if (fillC && fillC->isNullValue()) in EmitArrayInitialization()
2173 if (Filler && Filler->isNullValue()) in tryEmitPrivate()
H A DCGDecl.cpp903 return Init->isNullValue() || NumStores--; in canEmitInitWithFewStoresAfterBZero()
935 assert(!Init->isNullValue() && !isa<llvm::UndefValue>(Init) && in emitStoresForInitAfterBZero()
953 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt)) in emitStoresForInitAfterBZero()
968 if (!Elt->isNullValue() && !isa<llvm::UndefValue>(Elt)) in emitStoresForInitAfterBZero()
1088 bool ZeroInitializer = constant->isNullValue(); in constWithPadding()
1201 constant->isNullValue() || isa<llvm::UndefValue>(constant); in emitStoresForConstant()
H A DCGObjCMac.cpp3120 if (optInstanceMethods->isNullValue() && in EmitProtocolExtension()
3121 optClassMethods->isNullValue() && in EmitProtocolExtension()
3122 extendedMethodTypes->isNullValue() && in EmitProtocolExtension()
3123 instanceProperties->isNullValue() && in EmitProtocolExtension()
3124 classProperties->isNullValue()) { in EmitProtocolExtension()
3735 if (layout->isNullValue() && propertyList->isNullValue()) { in EmitClassExtension()
6699 instanceMethodList->isNullValue() && classMethodList->isNullValue(); in GenerateCategory()
6720 isEmptyCategory &= protocolList->isNullValue() && in GenerateCategory()
6721 propertyList->isNullValue() && in GenerateCategory()
6722 classPropertyList->isNullValue(); in GenerateCategory()
/llvm-project-15.0.7/llvm/lib/Target/
H A DTargetLoweringObjectFile.cpp70 if (C->isNullValue() || isa<UndefValue>(C)) in isNullOrUndef()
/llvm-project-15.0.7/llvm/tools/bugpoint/
H A DExtractFunction.cpp264 if (CS->getOperand(1)->isNullValue()) in SplitStaticCtorDtor()
/llvm-project-15.0.7/llvm/include/llvm/Analysis/
H A DSparsePropagation.h330 Succs[C->isNullValue()] = true; in getFeasibleSuccessors()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86PartialReduction.cpp359 if (!Index || !Index->isNullValue()) in matchAddReduction()
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantsTest.cpp520 ->isNullValue(); in foldFuncPtrAndConstToNull()
607 ->isNullValue()); in TEST()

1234