| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 260 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 D | AbstractCallSite.cpp | 147 if (VarArgFlagAsCM->getValue()->isNullValue()) in AbstractCallSite()
|
| H A D | Constants.cpp | 57 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 D | LowerGlobalDtors.cpp | 111 if (DtorFunc->isNullValue()) in runImpl() 171 (!Associated->isNullValue() ? (Twine(".") + Associated->getName()) in runImpl() 189 (!Associated->isNullValue() ? (Twine(".") + Associated->getName()) in runImpl()
|
| H A D | FunctionComparator.cpp | 274 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 D | AMDGPUMCInstLower.h | 60 if (Op->isNullValue() && AT.getNullPointerValue(SrcAddr) == 0) { in lowerAddrSpaceCast()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Scalar/ |
| H A D | ScalarizeMaskedMemIntrin.cpp | 183 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 D | CallSiteSplitting.cpp | 173 else if (ConstVal->getType()->isPointerTy() && ConstVal->isNullValue()) { in addConditions()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Constant.h | 53 bool isNullValue() const;
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | ShadowStackGCLowering.cpp | 115 if (!C->isNullValue()) in GetFrameMap() 228 return C->isNullValue(); in IsNullValue()
|
| H A D | WasmEHPrepare.cpp | 257 cast<Constant>(CPI->getArgOperand(0))->isNullValue()) in prepareEHPads()
|
| H A D | WinEHPrepare.cpp | 152 if (TypeInfo->isNullValue()) in addTryBlockMapEntry() 381 assert((Filter || FilterOrNull->isNullValue()) && in calculateSEHStateNumbers()
|
| /llvm-project-15.0.7/llvm/tools/llvm-reduce/deltas/ |
| H A D | ReduceOperandsSkip.cpp | 65 if (C->isNullValue()) in classifyReductivePower()
|
| H A D | ReduceOperands.cpp | 42 return C && C->isNullValue(); in isZero()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 567 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 D | VectorUtils.cpp | 336 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 D | NVPTXAsmPrinter.cpp | 1136 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 D | CGExprConstant.cpp | 245 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 D | CGDecl.cpp | 903 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 D | CGObjCMac.cpp | 3120 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 D | TargetLoweringObjectFile.cpp | 70 if (C->isNullValue() || isa<UndefValue>(C)) in isNullOrUndef()
|
| /llvm-project-15.0.7/llvm/tools/bugpoint/ |
| H A D | ExtractFunction.cpp | 264 if (CS->getOperand(1)->isNullValue()) in SplitStaticCtorDtor()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | SparsePropagation.h | 330 Succs[C->isNullValue()] = true; in getFeasibleSuccessors()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86PartialReduction.cpp | 359 if (!Index || !Index->isNullValue()) in matchAddReduction()
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | ConstantsTest.cpp | 520 ->isNullValue(); in foldFuncPtrAndConstToNull() 607 ->isNullValue()); in TEST()
|