| /freebsd/contrib/llvm-project/llvm/lib/IR/ |
| H A D | ConstantFold.cpp | 142 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction() 148 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction() 638 return Constant::getNullValue(C1->getType()); in ConstantFoldBinaryInstruction() 646 return Constant::getNullValue(C1->getType()); // undef & X -> 0 in ConstantFoldBinaryInstruction() 658 return Constant::getNullValue(C1->getType()); in ConstantFoldBinaryInstruction() 667 return Constant::getNullValue(C1->getType()); in ConstantFoldBinaryInstruction() 675 return Constant::getNullValue(C1->getType()); in ConstantFoldBinaryInstruction() 685 return Constant::getNullValue(C1->getType()); in ConstantFoldBinaryInstruction() 692 return Constant::getNullValue(C1->getType()); in ConstantFoldBinaryInstruction() 698 return Constant::getNullValue(C1->getType()); in ConstantFoldBinaryInstruction() [all …]
|
| H A D | Constants.cpp | 373 Constant *Constant::getNullValue(Type *Ty) { in getNullValue() function in Constant 1136 return Constant::getNullValue(AT->getElementType()); in getSequentialElement() 1137 return Constant::getNullValue(cast<VectorType>(getType())->getElementType()); in getSequentialElement() 1141 return Constant::getNullValue(getType()->getStructElementType(Elt)); in getStructElement() 1717 return getNullValue(cast<VectorType>(getType())->getElementType()); in getSplatValue() 2475 Ty, Constant::getNullValue(PointerType::getUnqual(Ty->getContext())), in getSizeOf() 2486 Constant::getNullValue(PointerType::getUnqual(AligningTy->getContext())); in getAlignOf() 2664 Elts.push_back(Constant::getNullValue(Ty->getScalarType())); in getExactLogBase2() 2685 return Constant::getNullValue(Ty); in getBinOpIdentity() 2709 return Constant::getNullValue(Ty); in getBinOpIdentity() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/InstCombine/ |
| H A D | InstCombineCompares.cpp | 553 NewInsts[Base] = ConstantInt::getNullValue(IndexType); in rewriteGEPAsOffset() 718 Constant::getNullValue(Offset->getType())); in foldGEPICmp() 1021 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in foldICmpShrConstConst() 1072 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in foldICmpShlConstConst() 1226 X, ConstantInt::getNullValue(XTy)); in foldSignBitTest() 1310 Constant::getNullValue(Stripped->getType())); in foldICmpWithZero() 1522 ConstantInt::getNullValue(SrcTy)) in foldICmpTruncConstant() 1621 ConstantInt::getNullValue(X->getType())); in foldICmpXorConstant() 1816 Constant *Zero = Constant::getNullValue(X->getType()); in foldICmpAndConstConst() 1942 return new ICmpInst(NewPred, X, ConstantInt::getNullValue(X->getType())); in foldICmpAndConstant() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
| H A D | SanitizerStats.cpp | 51 {Constant::getNullValue(PtrTy), in create() 85 {Constant::getNullValue(Int8PtrTy), in finish()
|
| H A D | SimplifyLibCalls.cpp | 471 Value *NullPtr = Constant::getNullValue(CI->getType()); in memChrToCharCompare() 508 Value *NullPtr = Constant::getNullValue(CI->getType()); in optimizeStrChr() 531 return Constant::getNullValue(CI->getType()); in optimizeStrChr() 1075 return Constant::getNullValue(CI->getType()); in optimizeStrPBrk() 1081 return Constant::getNullValue(CI->getType()); in optimizeStrPBrk() 1114 return Constant::getNullValue(CI->getType()); in optimizeStrSpn() 1134 return Constant::getNullValue(CI->getType()); in optimizeStrCSpn() 1169 ConstantInt::getNullValue(StrNCmp->getType()), "cmp"); in optimizeStrStr() 1189 return Constant::getNullValue(CI->getType()); in optimizeStrStr() 1211 Value *NullPtr = Constant::getNullValue(CI->getType()); in optimizeMemRChr() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Analysis/ |
| H A D | InstructionSimplify.cpp | 611 return Constant::getNullValue(Op0->getType()); in simplifyAddInst() 725 return Constant::getNullValue(Ty); in simplifyByDomEq() 765 return Constant::getNullValue(Op0->getType()); in simplifySubInst() 771 return Constant::getNullValue(Op0->getType()); in simplifySubInst() 778 return Constant::getNullValue(Op0->getType()); in simplifySubInst() 907 return Constant::getNullValue(Op0->getType()); in simplifyMulInst() 925 return ConstantInt::getNullValue(Op0->getType()); in simplifyMulInst() 1069 return Constant::getNullValue(Ty); in simplifyDivRem() 1074 return Constant::getNullValue(Op0->getType()); in simplifyDivRem() 1079 return IsDiv ? ConstantInt::get(Ty, 1) : Constant::getNullValue(Ty); in simplifyDivRem() [all …]
|
| H A D | Local.cpp | 78 return Result ? Result : Constant::getNullValue(IntIdxTy); in emitGEPOffset()
|
| H A D | ConstantFolding.cpp | 224 Constant *Zero = Constant::getNullValue(DstEltTy); in FoldBitCast() 235 Src = Constant::getNullValue( in FoldBitCast() 586 return Constant::getNullValue(LoadTy); in FoldReinterpretLoadFromConst() 592 return Constant::getNullValue(LoadTy); in FoldReinterpretLoadFromConst() 783 return Constant::getNullValue(Ty); in ConstantFoldLoadFromUniformValue() 1221 Constant *Null = Constant::getNullValue(C->getType()); in ConstantFoldCompareInstOperands() 1232 Constant *Null = Constant::getNullValue(C->getType()); in ConstantFoldCompareInstOperands() 2243 return Constant::getNullValue(Ty); in ConstantFoldScalarCall1() 3264 return Constant::getNullValue(Ty); in ConstantFoldIntrinsicCall2() 3274 Constant::getNullValue(Ty->getStructElementType(1))}); in ConstantFoldIntrinsicCall2() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/ |
| H A D | PGOCtxProfLowering.cpp | 141 #define _PTRDECL(_, __) Constant::getNullValue(PointerTy), in CtxInstrumentationLowerer() 143 #define _MUTEXDECL(_) Constant::getNullValue(SanitizerMutexType), in CtxInstrumentationLowerer() 306 : Constant::getNullValue(FunctionDataTy)); in lowerFunction()
|
| H A D | SanitizerCoverage.cpp | 511 SanCovCallbackGate->setInitializer(Constant::getNullValue(Int64Ty)); in instrumentModule() 750 Constant::getNullValue(ArrayTy), "__sancov_gen_"); in CreateFunctionLocalArrayInSection() 791 PCs.push_back(Constant::getNullValue(PtrTy)); in CreatePCArray() 1145 {Constant::getNullValue(Int32Ty)}); in InjectCoverageAtBlock() 1210 CFs.push_back((Constant *)Constant::getNullValue(PtrTy)); in createFunctionControlFlow() 1226 CFs.push_back((Constant *)Constant::getNullValue(PtrTy)); in createFunctionControlFlow()
|
| H A D | MemorySanitizer.cpp | 1894 Value *ShadowPtrs = ConstantInt::getNullValue( in getShadowOriginPtrKernel() 1898 OriginPtrs = ConstantInt::getNullValue( in getShadowOriginPtrKernel() 1974 return Constant::getNullValue(ShadowTy); in getCleanShadow() 2011 Value *getCleanOrigin() { return Constant::getNullValue(MS.OriginTy); } in getCleanOrigin() 2078 CpShadowPtr, Constant::getNullValue(EntryIRB.getInt8Ty()), in getShadow() 2930 Value *Zero = Constant::getNullValue(Sc->getType()); in handleEqualityComparison() 3567 ResultShadow, ConstantInt::getNullValue(EltTy), in handleSSEVectorConvertIntrinsic() 3693 IRB.CreateSExt(IRB.CreateICmpNE(S1, Constant::getNullValue(T)), T); in handleVectorPackIntrinsic() 3695 IRB.CreateSExt(IRB.CreateICmpNE(S2, Constant::getNullValue(T)), T); in handleVectorPackIntrinsic() 3728 Constant::getNullValue(S->getType())); in findDppPoisonedOutput() [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | CGCXXABI.cpp | 39 return llvm::Constant::getNullValue(CGM.getTypes().ConvertType(T)); in GetBogusMemberPointer() 58 llvm::Constant *FnPtr = llvm::Constant::getNullValue( in EmitLoadOfMemberFunctionPointer() 69 return llvm::Constant::getNullValue(Ty); in EmitMemberDataPointerAddress()
|
| H A D | CGExprComplex.cpp | 248 llvm::Constant *Null = llvm::Constant::getNullValue(CGF.ConvertType(Elem)); in VisitCXXScalarValueInitExpr() 255 llvm::Constant::getNullValue(CGF.ConvertType(Elem)); in VisitImplicitValueInitExpr() 493 return ComplexPairTy(llvm::Constant::getNullValue(Imag->getType()), Imag); in VisitImaginaryLiteral() 540 return ComplexPairTy(Val, llvm::Constant::getNullValue(Val->getType())); in EmitScalarToComplexCast() 1047 LHSi = llvm::Constant::getNullValue(RHSi->getType()); in EmitBinDiv() 1066 LibCallOp.LHS.second = llvm::Constant::getNullValue(LHSr->getType()); in EmitBinDiv() 1463 llvm::Value* zeroConstant = llvm::Constant::getNullValue(LTy); in VisitInitListExpr()
|
| /freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/DirectToLLVM/ |
| H A D | LowerToLLVMIR.cpp | 45 llvm::Constant::getNullValue( in convertOperation()
|
| /freebsd/contrib/llvm-project/clang/lib/CodeGen/TargetBuiltins/ |
| H A D | X86.cpp | 198 return llvm::Constant::getNullValue(Ty); // FALSE in EmitX86vpcom() 253 Cmp, llvm::Constant::getNullValue(Cmp->getType()), Indices); in EmitX86MaskedCompareResult() 270 Cmp = Constant::getNullValue( in EmitX86MaskedCompare() 297 Value *Zero = Constant::getNullValue(In->getType()); in EmitX86ConvertToMask() 423 MaskFalseVal = Constant::getNullValue(Ops[0]->getType()); in EmitX86FMAExpr() 491 Value *PassThru = ZeroMask ? Constant::getNullValue(Res->getType()) in EmitScalarFMAExpr() 863 return llvm::Constant::getNullValue(ConvertType(E->getType())); in EmitX86BuiltinExpr() 1040 Constant::getNullValue(Ops[0]->getType())); in EmitX86BuiltinExpr() 1710 return llvm::Constant::getNullValue(ConvertType(E->getType())); in EmitX86BuiltinExpr() 1717 Ops[0] = llvm::Constant::getNullValue(Ops[0]->getType()); in EmitX86BuiltinExpr() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/NVPTX/ |
| H A D | NVPTXCtorDtorLowering.cpp | 111 Constant::getNullValue(PointerType::get(C, 0)), in createInitOrFiniCalls() 124 Constant::getNullValue(PointerType::get(C, 0)), in createInitOrFiniCalls()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
| H A D | X86PartialReduction.cpp | 204 Value *Zero = Constant::getNullValue(MAdd->getType()); in tryMAddReplacement() 288 Value *Zero = Constant::getNullValue(Op0->getType()); in trySADReplacement() 339 Value *Zero = Constant::getNullValue(Ops[0]->getType()); in trySADReplacement()
|
| H A D | X86LowerAMXIntrinsics.cpp | 192 Value *VecZero = Constant::getNullValue(V256I32Ty); in createTileLoadStoreLoops() 321 Value *VecZero = Constant::getNullValue(V256I32Ty); in createTileDPLoops() 437 Value *ZeroV2I16 = Constant::getNullValue(V2I16Ty); in createTileDPLoops() 558 Value *VecZero = Constant::getNullValue(V256I32Ty); in lowerTileZero()
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/ |
| H A D | AArch64StackTagging.cpp | 235 Value *Store1 = I1 == Out.end() ? Constant::getNullValue(IRB.getInt64Ty()) in generate() 237 Value *Store2 = I2 == Out.end() ? Constant::getNullValue(IRB.getInt64Ty()) in generate() 470 {Constant::getNullValue(IRB.getInt64Ty())}); in insertBaseTaggedPointer() 568 {Constant::getNullValue(Info.AI->getType()), Base, in runOnFunction()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
| H A D | FixedPointBuilder.h | 55 Value *Zero = Constant::getNullValue(Result->getType()); in Convert() 215 Constant *Zero = Constant::getNullValue(Result->getType()); in CreateFloatingToFixed() 273 Constant *Zero = Constant::getNullValue(Result->getType()); in CreateSub()
|
| H A D | Constant.h | 190 LLVM_ABI static Constant *getNullValue(Type *Ty);
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPUPromoteAlloca.cpp | 390 return ConstantInt::getNullValue(Type::getInt32Ty(Ptr->getContext())); in calculateVectorIndex() 1566 Value *Indices[] = {Constant::getNullValue(Type::getInt32Ty(Context)), TID}; in tryPromoteAllocaToLDS() 1586 CI->setOperand(0, Constant::getNullValue(NewTy)); in tryPromoteAllocaToLDS() 1589 CI->setOperand(1, Constant::getNullValue(NewTy)); in tryPromoteAllocaToLDS() 1607 SI->setOperand(1, Constant::getNullValue(NewTy)); in tryPromoteAllocaToLDS() 1610 SI->setOperand(2, Constant::getNullValue(NewTy)); in tryPromoteAllocaToLDS() 1615 Phi->setIncomingValue(I, Constant::getNullValue(NewTy)); in tryPromoteAllocaToLDS()
|
| /freebsd/contrib/llvm-project/llvm/lib/Transforms/Scalar/ |
| H A D | Reg2Mem.cpp | 67 Constant::getNullValue(Type::getInt32Ty(F.getContext())), in runPass()
|
| /freebsd/contrib/llvm-project/llvm/include/llvm/Transforms/Utils/ |
| H A D | Evaluator.h | 93 Tmp->replaceAllUsesWith(Constant::getNullValue(Tmp->getType())); in ~Evaluator()
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | ShadowStackGCLowering.cpp | 258 Constant::getNullValue(StackEntryPtrTy), "llvm_gc_root_chain"); in doInitialization() 260 Head->setInitializer(Constant::getNullValue(StackEntryPtrTy)); in doInitialization()
|