Home
last modified time | relevance | path

Searched refs:getNullValue (Results 1 – 25 of 113) sorted by relevance

12345

/minix3/external/bsd/llvm/dist/llvm/unittests/IR/
H A DConstantsTest.cpp119 Constant *Zero128 = Constant::getNullValue(Int128Ty); in TEST()
134 EXPECT_EQ(Constant::getNullValue(Int64Ty), in TEST()
136 Constant::getNullValue(Int8PtrTy), Int64Ty)); in TEST()
139 EXPECT_EQ(Constant::getNullValue(Int32PtrTy), in TEST()
141 Constant::getNullValue(Int8PtrTy), Int32PtrTy)); in TEST()
144 EXPECT_EQ(Constant::getNullValue(Int64VecTy), in TEST()
146 Constant::getNullValue(Int8PtrVecTy), Int64VecTy)); in TEST()
149 EXPECT_EQ(Constant::getNullValue(Int32PtrVecTy), in TEST()
151 Constant::getNullValue(Int8PtrVecTy), Int32PtrVecTy)); in TEST()
H A DInstructionsTest.cpp205 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()
491 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST()
H A DValueHandleTest.cpp302 getValPtr()->replaceAllUsesWith(Constant::getNullValue(Type::getInt32Ty(getGlobalContext()))); in TEST_F()
319 Constant::getNullValue(Type::getInt32Ty(getGlobalContext())))); in TEST_F()
322 EXPECT_EQ(Constant::getNullValue(Type::getInt32Ty(getGlobalContext())), RVH.AURWArgument); in TEST_F()
323 EXPECT_EQ(Constant::getNullValue(Type::getInt32Ty(getGlobalContext())), in TEST_F()
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DConstantFold.cpp49 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector()
115 Constant::getNullValue(Type::getInt32Ty(DPTy->getContext())); in FoldBitCast()
147 return Constant::getNullValue(DestTy); in FoldBitCast()
266 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
288 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
304 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
352 return ConstantExpr::getNullValue(DestTy); in getFoldedSizeOf()
520 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction()
525 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction()
662 APInt::getNullValue(DestTy->getPrimitiveSizeInBits())); in ConstantFoldCastInstruction()
[all …]
H A DConstantRange.cpp94 return ConstantRange(UMin + 1, APInt::getNullValue(W)); in makeICmpRegion()
106 return ConstantRange(UMin, APInt::getNullValue(W)); in makeICmpRegion()
665 return ConstantRange(APInt::getNullValue(getBitWidth()), umin + 1); in binaryAnd()
678 return ConstantRange(umax, APInt::getNullValue(getBitWidth())); in binaryOr()
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DSanitizerCoverage.cpp182 Constant::getNullValue(Int32ArrayNTy), "__sancov_gen_cov"); in runOnModule()
255 Constant::getNullValue(Ty), "__sancov_gen_callee_cache"); in InjectCoverageForIndirectCalls()
291 Value *Cmp = IRB.CreateICmpSGE(Constant::getNullValue(Load->getType()), Load); in InjectCoverageAtBlock()
H A DGCOVProfiling.cpp608 Constant::getNullValue(CounterTy), in emitProfileArcs()
732 Constant *NullValue = Constant::getNullValue(Int64PtrTy); in buildEdgeLookupTable()
876 Constant::getNullValue(Builder.getInt8PtrTy()), in insertCounterWriteout()
932 Constant::getNullValue( in insertIndirectCounterIncrement()
976 Constant *Null = Constant::getNullValue(GV->getType()->getElementType()); in insertFlush()
H A DAddressSanitizer.cpp554 Value *Zero = Constant::getNullValue(IRBRet.getInt32Ty()); in unpoisonDynamicAlloca()
975 Value *CmpVal = Constant::getNullValue(ShadowTy); in instrumentAddress()
1215 Constant::getNullValue(RightRedZoneTy), nullptr); in InstrumentGlobals()
1693 Constant::getNullValue(IRB.getInt32Ty())); in poisonStack()
1709 IRB.CreateICmpEQ(FakeStack, Constant::getNullValue(IntptrTy)); in poisonStack()
1791 IRBRet.CreateICmpNE(FakeStack, Constant::getNullValue(IntptrTy)); in poisonStack()
1806 Constant::getNullValue(IRBPoison.getInt8Ty()), in poisonStack()
1924 IRB.CreateICmpNE(PartialBits, Constant::getNullValue(IRB.getInt32Ty())); in computePartialRzMagic()
1945 Value *Zero = Constant::getNullValue(IntptrTy); in handleDynamicAllocaCall()
H A DMemorySanitizer.cpp891 return Constant::getNullValue(ShadowTy); in getCleanShadow()
923 return Constant::getNullValue(MS.OriginTy); in getCleanOrigin()
980 Constant::getNullValue(EntryIRB.getInt8Ty()), Size, ArgAlign); in getShadow()
1542 Value *Zero = Constant::getNullValue(Sc->getType()); in handleEqualityComparison()
1975 ResultShadow, ConstantInt::getNullValue(EltTy), in handleVectorConvertIntrinsic()
2090 IRB.CreateICmpNE(S1, llvm::Constant::getNullValue(T)), T); in handleVectorPackIntrinsic()
2092 IRB.CreateICmpNE(S2, llvm::Constant::getNullValue(T)), T); in handleVectorPackIntrinsic()
2119 S = IRB.CreateSExt(IRB.CreateICmpNE(S, Constant::getNullValue(ResTy)), in handleVectorSadIntrinsic()
2135 S = IRB.CreateSExt(IRB.CreateICmpNE(S, Constant::getNullValue(ResTy)), in handleVectorPmaddIntrinsic()
2534 ConstantInt::getNullValue(FlatTy)); in visitSelectInst()
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCGCXXABI.cpp67 return llvm::Constant::getNullValue(CGM.getTypes().ConvertType(T)); in GetBogusMemberPointer()
86 return llvm::Constant::getNullValue(FTy->getPointerTo()); in EmitLoadOfMemberFunctionPointer()
95 return llvm::Constant::getNullValue(Ty); in EmitMemberDataPointerAddress()
H A DCGObjCMac.cpp1662 llvm::Constant *scalarZero = llvm::Constant::getNullValue(scalarTy); in complete()
1940 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildGCBlockLayout()
2305 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in getBitmapBlockLayout()
2519 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildByrefLayout()
2698 return llvm::Constant::getNullValue(ObjCTypes.ProtocolExtensionPtrTy); in EmitProtocolExtension()
2726 return llvm::Constant::getNullValue(ObjCTypes.ProtocolListPtrTy); in EmitProtocolList()
2729 ProtocolRefs.push_back(llvm::Constant::getNullValue(ObjCTypes.ProtocolPtrTy)); in EmitProtocolList()
2733 Values[0] = llvm::Constant::getNullValue(ObjCTypes.ProtocolListPtrTy); in EmitProtocolList()
2805 return llvm::Constant::getNullValue(ObjCTypes.PropertyListPtrTy); in EmitPropertyList()
2832 return llvm::Constant::getNullValue(ObjCTypes.Int8PtrPtrTy); in EmitProtocolMethodTypes()
[all …]
H A DCGExprComplex.cpp206 llvm::Constant *Null = llvm::Constant::getNullValue(CGF.ConvertType(Elem)); in VisitCXXScalarValueInitExpr()
213 llvm::Constant::getNullValue(CGF.ConvertType(Elem)); in VisitImplicitValueInitExpr()
373 return ComplexPairTy(llvm::Constant::getNullValue(Imag->getType()), Imag); in VisitImaginaryLiteral()
416 return ComplexPairTy(Val, llvm::Constant::getNullValue(Val->getType())); in EmitScalarToComplexCast()
743 LibCallOp.LHS.second = llvm::Constant::getNullValue(LHSr->getType()); in EmitBinDiv()
1004 llvm::Value* zeroConstant = llvm::Constant::getNullValue(LTy); in VisitInitListExpr()
/minix3/external/bsd/llvm/dist/llvm/tools/bugpoint-passes/
H A DTestPasses.cpp63 CI->replaceAllUsesWith(Constant::getNullValue(CI->getType())); in runOnBasicBlock()
/minix3/external/bsd/llvm/dist/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp154 return ConstantInt::getNullValue(Tp); in getRandomConstant()
158 return ConstantFP::getNullValue(Tp); in getRandomConstant()
176 return ConstantInt::getNullValue(Tp); in getRandomValue()
180 return ConstantFP::getNullValue(Tp); in getRandomValue()
372 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act()
387 return PT->push_back(ConstantFP::getNullValue(Ty)); in Act()
398 APInt::getNullValue(Ty->getPrimitiveSizeInBits()))); in Act()
/minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/
H A DConstant.h164 static Constant *getNullValue(Type* Ty);
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Utils/
H A DCodeExtractor.cpp364 Idx[0] = Constant::getNullValue(Type::getInt32Ty(header->getContext())); in constructFunction()
466 Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in emitCallAndSwitchStatement()
492 Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in emitCallAndSwitchStatement()
515 SwitchInst::Create(Constant::getNullValue(Type::getInt16Ty(Context)), in emitCallAndSwitchStatement()
606 Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in emitCallAndSwitchStatement()
646 Constant::getNullValue(OldFnRetTy), TheSwitch); in emitCallAndSwitchStatement()
H A DModuleUtils.cpp56 CSVals[2] = llvm::Constant::getNullValue(IRB.getInt8PtrTy()); in appendToGlobalArray()
H A DSimplifyLibCalls.cpp328 return Constant::getNullValue(CI->getType()); in optimizeStrChr()
363 return Constant::getNullValue(CI->getType()); in optimizeStrRChr()
620 return Constant::getNullValue(CI->getType()); in optimizeStrPBrk()
626 return Constant::getNullValue(CI->getType()); in optimizeStrPBrk()
671 return Constant::getNullValue(CI->getType()); in optimizeStrSpn()
698 return Constant::getNullValue(CI->getType()); in optimizeStrCSpn()
740 ConstantInt::getNullValue(StrNCmp->getType()), "cmp"); in optimizeStrStr()
760 return Constant::getNullValue(CI->getType()); in optimizeStrStr()
787 return Constant::getNullValue(CI->getType()); in optimizeMemCmp()
796 return Constant::getNullValue(CI->getType()); in optimizeMemCmp()
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/InstCombine/
H A DInstCombineCompares.cpp642 Constant::getNullValue(Offset->getType())); in FoldGEPICmp()
1084 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in FoldICmpCstShrCst()
1136 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in FoldICmpCstShlCst()
1434 Constant::getNullValue(RHS->getType())); in visitICmpInstWithInstAndIntCst()
1469 Constant::getNullValue(P->getType())); in visitICmpInstWithInstAndIntCst()
1471 Constant::getNullValue(Q->getType())); in visitICmpInstWithInstAndIntCst()
1494 Constant::getNullValue(RHS->getType())); in visitICmpInstWithInstAndIntCst()
1615 Constant::getNullValue(RHS->getType())); in visitICmpInstWithInstAndIntCst()
1628 And, Constant::getNullValue(And->getType())); in visitICmpInstWithInstAndIntCst()
1774 Constant::getNullValue(BO->getType())); in visitICmpInstWithInstAndIntCst()
[all …]
H A DInstCombineLoadStoreAlloca.cpp199 Value *NullIdx = Constant::getNullValue(IdxTy); in visitAllocaInst()
209 return ReplaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); in visitAllocaInst()
438 Constant::getNullValue(Op->getType()), &LI); in visitLoadInst()
451 Constant::getNullValue(Op->getType()), &LI); in visitLoadInst()
H A DInstCombineCasts.cpp472 Value *Zero = Constant::getNullValue(Src->getType()); in visitTrunc()
489 return ReplaceInstUsesWith(CI, Constant::getNullValue(CI.getType())); in visitTrunc()
943 ConstantInt::getNullValue(CI.getType()); in transformSExtICmp()
1531 V2 = Constant::getNullValue(SrcTy); in OptimizeVectorResize()
1688 Value *Result = Constant::getNullValue(CI.getType()); in OptimizeIntegerToVectorInsertions()
1789 Constant::getNullValue(Type::getInt32Ty(CI.getContext())); in visitBitCast()
1814 Constant::getNullValue(Type::getInt32Ty(CI.getContext()))); in visitBitCast()
1846 Constant::getNullValue(Type::getInt32Ty(CI.getContext()))); in visitBitCast()
/minix3/external/bsd/llvm/dist/llvm/lib/Analysis/
H A DInstructionSimplify.cpp75 return Constant::getNullValue(Ty); in getFalse()
613 APInt Offset = APInt::getNullValue(IntPtrTy->getIntegerBitWidth()); in stripAndComputeConstantOffsets()
686 return Constant::getNullValue(Op0->getType()); in SimplifySubInst()
827 return Constant::getNullValue(Op0->getType()); in SimplifyFAddInst()
865 return Constant::getNullValue(Op0->getType()); in SimplifyFSubInst()
914 return Constant::getNullValue(Op0->getType()); in SimplifyMulInst()
1020 return Constant::getNullValue(Op0->getType()); in SimplifyDiv()
1056 return Constant::getNullValue(Op0->getType()); in SimplifyDiv()
1065 return Constant::getNullValue(Op0->getType()); in SimplifyDiv()
1157 return Constant::getNullValue(Op0->getType()); in SimplifyRem()
[all …]
/minix3/external/bsd/llvm/dist/llvm/lib/Transforms/Scalar/
H A DReg2Mem.cpp86 new BitCastInst(Constant::getNullValue(Type::getInt32Ty(F.getContext())), in INITIALIZE_PASS_DEPENDENCY()
H A DSCCP.cpp879 markConstant(IV, &I, Constant::getNullValue(I.getType())); in visitBinaryOperator()
1057 return markConstant(IV, &I, Constant::getNullValue(I.getType())); in visitLoadInst()
1320 markForcedConstant(I, Constant::getNullValue(ITy)); in ResolvedUndefsIn()
1334 markForcedConstant(I, Constant::getNullValue(ITy)); in ResolvedUndefsIn()
1343 markForcedConstant(I, Constant::getNullValue(ITy)); in ResolvedUndefsIn()
1359 markForcedConstant(I, Constant::getNullValue(ITy)); in ResolvedUndefsIn()
1375 markForcedConstant(I, Constant::getNullValue(ITy)); in ResolvedUndefsIn()
1393 markForcedConstant(I, Constant::getNullValue(ITy)); in ResolvedUndefsIn()
/minix3/external/bsd/llvm/dist/llvm/lib/Target/R600/
H A DAMDGPUPromoteAlloca.cpp112 return Constant::getNullValue(Type::getInt32Ty(Ptr->getContext())); in calculateVectorIndex()
332 Indices.push_back(Constant::getNullValue(Type::getInt32Ty(Mod->getContext()))); in visitAlloca()

12345