/external/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 205 const Constant* c8 = Constant::getNullValue(V8x8Ty); in TEST() 206 const Constant* c64 = Constant::getNullValue(V8x64Ty); in TEST() 208 const Constant *v2ptr32 = Constant::getNullValue(V2Int32PtrTy); in TEST() 265 Constant::getNullValue(V4Int32PtrTy), in TEST() 268 Constant::getNullValue(V2Int32PtrTy), in TEST() 272 Constant::getNullValue(V4Int32PtrAS1Ty), in TEST() 275 Constant::getNullValue(V2Int32PtrTy), in TEST() 283 Constant *NullV2I32Ptr = Constant::getNullValue(V2Int32PtrTy); in TEST() 493 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST()
|
D | ConstantsTest.cpp | 122 Constant *Zero128 = Constant::getNullValue(Int128Ty); in TEST() 137 EXPECT_EQ(Constant::getNullValue(Int64Ty), in TEST() 139 Constant::getNullValue(Int8PtrTy), Int64Ty)); in TEST() 142 EXPECT_EQ(Constant::getNullValue(Int32PtrTy), in TEST() 144 Constant::getNullValue(Int8PtrTy), Int32PtrTy)); in TEST() 147 EXPECT_EQ(Constant::getNullValue(Int64VecTy), in TEST() 149 Constant::getNullValue(Int8PtrVecTy), Int64VecTy)); in TEST() 152 EXPECT_EQ(Constant::getNullValue(Int32PtrVecTy), in TEST() 154 Constant::getNullValue(Int8PtrVecTy), Int32PtrVecTy)); in TEST()
|
D | ValueHandleTest.cpp | 308 getValPtr()->replaceAllUsesWith(Constant::getNullValue(Type::getInt32Ty(getGlobalContext()))); in TEST_F() 325 Constant::getNullValue(Type::getInt32Ty(getGlobalContext())))); in TEST_F() 328 EXPECT_EQ(Constant::getNullValue(Type::getInt32Ty(getGlobalContext())), RVH.AURWArgument); in TEST_F() 329 EXPECT_EQ(Constant::getNullValue(Type::getInt32Ty(getGlobalContext())), in TEST_F()
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 49 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector() 115 Constant::getNullValue(Type::getInt32Ty(DPTy->getContext())); in FoldBitCast() 148 return Constant::getNullValue(DestTy); in FoldBitCast() 278 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes() 300 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes() 316 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes() 364 return ConstantExpr::getNullValue(DestTy); in getFoldedSizeOf() 532 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction() 537 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction() 674 APInt::getNullValue(DestTy->getPrimitiveSizeInBits())); in ConstantFoldCastInstruction() [all …]
|
D | ConstantRange.cpp | 97 return ConstantRange(UMin + 1, APInt::getNullValue(W)); in makeAllowedICmpRegion() 109 return ConstantRange(UMin, APInt::getNullValue(W)); in makeAllowedICmpRegion() 165 ConstantRange(APInt::getNullValue(BitWidth), -C)); in makeNoWrapRegion() 755 return ConstantRange(APInt::getNullValue(getBitWidth()), umin + 1); in binaryAnd() 768 return ConstantRange(umax, APInt::getNullValue(getBitWidth())); in binaryOr()
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 175 return ConstantInt::getNullValue(Tp); in getRandomConstant() 179 return ConstantFP::getNullValue(Tp); in getRandomConstant() 197 return ConstantInt::getNullValue(Tp); in getRandomValue() 201 return ConstantFP::getNullValue(Tp); in getRandomValue() 380 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act() 395 return PT->push_back(ConstantFP::getNullValue(Ty)); in Act() 406 APInt::getNullValue(Ty->getPrimitiveSizeInBits()))); in Act()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | SanitizerCoverage.cpp | 244 Constant::getNullValue(Int32ArrayNTy), "__sancov_gen_cov"); in runOnModule() 260 Constant::getNullValue(Int8ArrayNTy), "__sancov_gen_cov_counter"); in runOnModule() 282 : Constant::getNullValue(Int8PtrTy), in runOnModule() 366 Constant::getNullValue(Ty), "__sancov_gen_callee_cache"); in InjectCoverageForIndirectCalls() 477 Value *Cmp = IRB.CreateICmpSGE(Constant::getNullValue(Load->getType()), Load); in InjectCoverageAtBlock()
|
D | MemorySanitizer.cpp | 1025 return Constant::getNullValue(ShadowTy); in getCleanShadow() 1057 return Constant::getNullValue(MS.OriginTy); in getCleanOrigin() 1116 Constant::getNullValue(EntryIRB.getInt8Ty()), Size, ArgAlign); in getShadow() 1690 Value *Zero = Constant::getNullValue(Sc->getType()); in handleEqualityComparison() 2105 ResultShadow, ConstantInt::getNullValue(EltTy), in handleVectorConvertIntrinsic() 2220 IRB.CreateICmpNE(S1, llvm::Constant::getNullValue(T)), T); in handleVectorPackIntrinsic() 2222 IRB.CreateICmpNE(S2, llvm::Constant::getNullValue(T)), T); in handleVectorPackIntrinsic() 2250 S = IRB.CreateSExt(IRB.CreateICmpNE(S, Constant::getNullValue(ResTy)), in handleVectorSadIntrinsic() 2266 S = IRB.CreateSExt(IRB.CreateICmpNE(S, Constant::getNullValue(ResTy)), in handleVectorPmaddIntrinsic() 2668 ConstantInt::getNullValue(FlatTy)); in visitSelectInst() [all …]
|
D | GCOVProfiling.cpp | 600 Constant::getNullValue(CounterTy), in emitProfileArcs() 725 Constant *NullValue = Constant::getNullValue(Int64PtrTy); in buildEdgeLookupTable() 870 : Constant::getNullValue(Builder.getInt8PtrTy()), in insertCounterWriteout() 925 Constant::getNullValue( in insertIndirectCounterIncrement() 969 Constant *Null = Constant::getNullValue(GV->getType()->getElementType()); in insertFlush()
|
D | AddressSanitizer.cpp | 1089 Value *CmpVal = Constant::getNullValue(ShadowTy); in instrumentAddress() 1358 Constant::getNullValue(RightRedZoneTy), nullptr); in InstrumentGlobals() 1820 IRB.CreateStore(Constant::getNullValue(IntptrTy), DynamicAllocaLayout); in createDynamicAllocasInitStorage() 1911 Constant::getNullValue(IRB.getInt32Ty())); in poisonStack() 1927 IRB.CreateICmpEQ(FakeStack, Constant::getNullValue(IntptrTy)); in poisonStack() 1999 IRBRet.CreateICmpNE(FakeStack, Constant::getNullValue(IntptrTy)); in poisonStack() 2014 Constant::getNullValue(IRBPoison.getInt8Ty()), in poisonStack() 2092 Value *Zero = Constant::getNullValue(IntptrTy); in handleDynamicAllocaCall()
|
/external/clang/lib/CodeGen/ |
D | CGCXXABI.cpp | 68 return llvm::Constant::getNullValue(CGM.getTypes().ConvertType(T)); in GetBogusMemberPointer() 89 return llvm::Constant::getNullValue(FTy->getPointerTo()); in EmitLoadOfMemberFunctionPointer() 99 return llvm::Constant::getNullValue(Ty); in EmitMemberDataPointerAddress()
|
D | CGObjCMac.cpp | 1655 llvm::Constant *scalarZero = llvm::Constant::getNullValue(scalarTy); in complete() 2070 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildGCBlockLayout() 2432 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in getBitmapBlockLayout() 2647 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildByrefLayout() 2826 return llvm::Constant::getNullValue(ObjCTypes.ProtocolExtensionPtrTy); in EmitProtocolExtension() 2854 return llvm::Constant::getNullValue(ObjCTypes.ProtocolListPtrTy); in EmitProtocolList() 2857 ProtocolRefs.push_back(llvm::Constant::getNullValue(ObjCTypes.ProtocolPtrTy)); in EmitProtocolList() 2861 Values[0] = llvm::Constant::getNullValue(ObjCTypes.ProtocolListPtrTy); in EmitProtocolList() 2944 return llvm::Constant::getNullValue(ObjCTypes.PropertyListPtrTy); in EmitPropertyList() 2971 return llvm::Constant::getNullValue(ObjCTypes.Int8PtrPtrTy); in EmitProtocolMethodTypes() [all …]
|
D | CGExprComplex.cpp | 209 llvm::Constant *Null = llvm::Constant::getNullValue(CGF.ConvertType(Elem)); in VisitCXXScalarValueInitExpr() 216 llvm::Constant::getNullValue(CGF.ConvertType(Elem)); in VisitImplicitValueInitExpr() 375 return ComplexPairTy(llvm::Constant::getNullValue(Imag->getType()), Imag); in VisitImaginaryLiteral() 420 return ComplexPairTy(Val, llvm::Constant::getNullValue(Val->getType())); in EmitScalarToComplexCast() 751 LibCallOp.LHS.second = llvm::Constant::getNullValue(LHSr->getType()); in EmitBinDiv() 1017 llvm::Value* zeroConstant = llvm::Constant::getNullValue(LTy); in VisitInitListExpr()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 628 Constant::getNullValue(Offset->getType())); in FoldGEPICmp() 1143 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in FoldICmpCstShrCst() 1199 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in FoldICmpCstShlCst() 1505 Constant::getNullValue(RHS->getType())); in visitICmpInstWithInstAndIntCst() 1543 Trunc, Constant::getNullValue(NTy)); in visitICmpInstWithInstAndIntCst() 1566 Constant::getNullValue(P->getType())); in visitICmpInstWithInstAndIntCst() 1568 Constant::getNullValue(Q->getType())); in visitICmpInstWithInstAndIntCst() 1591 Constant::getNullValue(RHS->getType())); in visitICmpInstWithInstAndIntCst() 1712 Constant::getNullValue(RHS->getType())); in visitICmpInstWithInstAndIntCst() 1725 And, Constant::getNullValue(And->getType())); in visitICmpInstWithInstAndIntCst() [all …]
|
D | InstCombineLoadStoreAlloca.cpp | 198 Value *NullIdx = Constant::getNullValue(IdxTy); in simplifyAllocaArraySize() 210 return IC.ReplaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); in simplifyAllocaArraySize() 822 Constant::getNullValue(Op->getType()), &LI); in visitLoadInst() 835 Constant::getNullValue(Op->getType()), &LI); in visitLoadInst()
|
/external/llvm/lib/Transforms/Utils/ |
D | CodeExtractor.cpp | 365 Idx[0] = Constant::getNullValue(Type::getInt32Ty(header->getContext())); in constructFunction() 467 Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in emitCallAndSwitchStatement() 492 Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in emitCallAndSwitchStatement() 514 SwitchInst::Create(Constant::getNullValue(Type::getInt16Ty(Context)), in emitCallAndSwitchStatement() 609 Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in emitCallAndSwitchStatement() 648 Constant::getNullValue(OldFnRetTy), TheSwitch); in emitCallAndSwitchStatement()
|
D | SimplifyLibCalls.cpp | 323 return Constant::getNullValue(CI->getType()); in optimizeStrChr() 358 return Constant::getNullValue(CI->getType()); in optimizeStrRChr() 594 return Constant::getNullValue(CI->getType()); in optimizeStrPBrk() 600 return Constant::getNullValue(CI->getType()); in optimizeStrPBrk() 645 return Constant::getNullValue(CI->getType()); in optimizeStrSpn() 672 return Constant::getNullValue(CI->getType()); in optimizeStrCSpn() 714 ConstantInt::getNullValue(StrNCmp->getType()), "cmp"); in optimizeStrStr() 734 return Constant::getNullValue(CI->getType()); in optimizeStrStr() 765 return Constant::getNullValue(CI->getType()); in optimizeMemChr() 830 return Constant::getNullValue(CI->getType()); in optimizeMemChr() [all …]
|
/external/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 78 return Constant::getNullValue(Ty); in getFalse() 608 APInt Offset = APInt::getNullValue(IntPtrTy->getIntegerBitWidth()); in stripAndComputeConstantOffsets() 681 return Constant::getNullValue(Op0->getType()); in SimplifySubInst() 822 return Constant::getNullValue(Op0->getType()); in SimplifyFAddInst() 860 return Constant::getNullValue(Op0->getType()); in SimplifyFSubInst() 909 return Constant::getNullValue(Op0->getType()); in SimplifyMulInst() 1015 return Constant::getNullValue(Op0->getType()); in SimplifyDiv() 1051 return Constant::getNullValue(Op0->getType()); in SimplifyDiv() 1060 return Constant::getNullValue(Op0->getType()); in SimplifyDiv() 1174 return Constant::getNullValue(Op0->getType()); in SimplifyRem() [all …]
|
/external/llvm/include/llvm/IR/ |
D | Constant.h | 138 static Constant *getNullValue(Type* Ty);
|
/external/llvm/tools/bugpoint-passes/ |
D | TestPasses.cpp | 63 CI->replaceAllUsesWith(Constant::getNullValue(CI->getType())); in runOnBasicBlock()
|
/external/llvm/lib/Transforms/Scalar/ |
D | Reg2Mem.cpp | 86 Constant::getNullValue(Type::getInt32Ty(F.getContext())), in INITIALIZE_PASS_DEPENDENCY()
|
D | SCCP.cpp | 887 markConstant(IV, &I, Constant::getNullValue(I.getType())); in visitBinaryOperator() 1329 markForcedConstant(&I, Constant::getNullValue(ITy)); in ResolvedUndefsIn() 1343 markForcedConstant(&I, Constant::getNullValue(ITy)); in ResolvedUndefsIn() 1352 markForcedConstant(&I, Constant::getNullValue(ITy)); in ResolvedUndefsIn() 1368 markForcedConstant(&I, Constant::getNullValue(ITy)); in ResolvedUndefsIn() 1384 markForcedConstant(&I, Constant::getNullValue(ITy)); in ResolvedUndefsIn() 1402 markForcedConstant(&I, Constant::getNullValue(ITy)); in ResolvedUndefsIn()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPromoteAlloca.cpp | 113 return Constant::getNullValue(Type::getInt32Ty(Ptr->getContext())); in calculateVectorIndex() 350 Indices.push_back(Constant::getNullValue(Type::getInt32Ty(Mod->getContext()))); in visitAlloca()
|
/external/llvm/lib/Target/X86/ |
D | X86WinEHState.cpp | 378 Constant::getNullValue(LinkTy->getPointerTo()->getPointerTo(257)); in linkExceptionRegistration() 397 Constant::getNullValue(LinkTy->getPointerTo()->getPointerTo(257)); in unlinkExceptionRegistration()
|
/external/llvm/lib/CodeGen/ |
D | ShadowStackGCLowering.cpp | 306 Constant::getNullValue(StackEntryPtrTy), "llvm_gc_root_chain"); in doInitialization() 308 Head->setInitializer(Constant::getNullValue(StackEntryPtrTy)); in doInitialization()
|