Home
last modified time | relevance | path

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

123456789

/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp48 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector()
110 Constant::getNullValue(Type::getInt32Ty(DPTy->getContext())); in FoldBitCast()
142 return Constant::getNullValue(DestTy); in FoldBitCast()
261 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
283 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
299 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
347 return ConstantExpr::getNullValue(DestTy); in getFoldedSizeOf()
515 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction()
524 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction()
648 APFloat apf(APInt::getNullValue(DestTy->getPrimitiveSizeInBits()), true); in ConstantFoldCastInstruction()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DDIBuilder.cpp102 llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), in createCompileUnit()
443 llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), in createStructType()
446 llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), in createStructType()
468 llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), in createUnionType()
471 llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), in createUnionType()
481 llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), in createSubroutineType()
483 llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), in createSubroutineType()
489 llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), in createSubroutineType()
492 llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), in createSubroutineType()
515 llvm::Constant::getNullValue(Type::getInt32Ty(VMContext)), in createEnumerationType()
[all …]
DConstantFolding.cpp50 return Constant::getNullValue(DestTy); in FoldBitCast()
125 Constant *Zero = Constant::getNullValue(DstEltTy); in FoldBitCast()
488 return Constant::getNullValue(ResTy); in ConstantFoldLoadFromConstPtr()
922 Constant *Null = Constant::getNullValue(C->getType()); in ConstantFoldCompareInstOperands()
931 Constant *Null = Constant::getNullValue(C->getType()); in ConstantFoldCompareInstOperands()
984 if (CE->getOperand(1) != Constant::getNullValue(CE->getOperand(1)->getType())) in ConstantFoldLoadThroughGEPConstantExpr()
999 C = Constant::getNullValue(STy->getElementType(El)); in ConstantFoldLoadThroughGEPConstantExpr()
1012 C = Constant::getNullValue(ATy->getElementType()); in ConstantFoldLoadThroughGEPConstantExpr()
1023 C = Constant::getNullValue(VTy->getElementType()); in ConstantFoldLoadThroughGEPConstantExpr()
1247 return Constant::getNullValue(Ty); in ConstantFoldCall()
DInstructionSimplify.cpp58 return Constant::getNullValue(Ty); in getFalse()
632 return Constant::getNullValue(Op0->getType()); in SimplifySubInst()
747 return Constant::getNullValue(Op0->getType()); in SimplifyMulInst()
823 return Constant::getNullValue(Op0->getType()); in SimplifyDiv()
859 return Constant::getNullValue(Op0->getType()); in SimplifyDiv()
942 return Constant::getNullValue(Op0->getType()); in SimplifyRem()
954 return Constant::getNullValue(Op0->getType()); in SimplifyRem()
958 return Constant::getNullValue(Op0->getType()); in SimplifyRem()
962 return Constant::getNullValue(Op0->getType()); in SimplifyRem()
1082 return Constant::getNullValue(Op0->getType()); in SimplifyShlInst()
[all …]
/external/llvm/unittests/IR/
DConstantsTest.cpp125 Constant *Zero128 = Constant::getNullValue(Int128Ty); in TEST()
140 EXPECT_EQ(Constant::getNullValue(Int64Ty), in TEST()
142 Constant::getNullValue(Int8PtrTy), Int64Ty)); in TEST()
145 EXPECT_EQ(Constant::getNullValue(Int32PtrTy), in TEST()
147 Constant::getNullValue(Int8PtrTy), Int32PtrTy)); in TEST()
150 EXPECT_EQ(Constant::getNullValue(Int64VecTy), in TEST()
152 Constant::getNullValue(Int8PtrVecTy), Int64VecTy)); in TEST()
155 EXPECT_EQ(Constant::getNullValue(Int32PtrVecTy), in TEST()
157 Constant::getNullValue(Int8PtrVecTy), Int32PtrVecTy)); in TEST()
170 Constant *NullInt32Ptr0 = Constant::getNullValue(Int32PtrTy); in TEST()
[all …]
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()
497 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST()
529 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST()
[all …]
DValueHandleTest.cpp310 Constant::getNullValue(Type::getInt32Ty(*Context))); in TEST_F()
326 RVH, Constant::getNullValue(Type::getInt32Ty(Context)))); in TEST_F()
329 EXPECT_EQ(Constant::getNullValue(Type::getInt32Ty(Context)), in TEST_F()
331 EXPECT_EQ(Constant::getNullValue(Type::getInt32Ty(Context)), in TEST_F()
/external/swiftshader/third_party/LLVM/lib/Transforms/Instrumentation/
DProfilingUtils.cpp42 Args[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in InsertProfilingInitCall()
43 Args[1] = Constant::getNullValue(ArgVTy); in InsertProfilingInitCall()
51 Constant::getNullValue(Type::getInt32Ty(Context))); in InsertProfilingInitCall()
119 Indices[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in IncrementCounterInBlock()
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineLoadStoreAlloca.cpp56 Value *NullIdx =Constant::getNullValue(Type::getInt32Ty(AI.getContext())); in visitAllocaInst()
68 return ReplaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); in visitAllocaInst()
77 return ReplaceInstUsesWith(AI, Constant::getNullValue(AI.getType())); in visitAllocaInst()
113 Idxs[0] = Constant::getNullValue(Type::getInt32Ty(LI.getContext())); in InstCombineLoadCast()
187 Constant::getNullValue(Op->getType()), &LI); in visitLoadInst()
200 Constant::getNullValue(Op->getType()), &LI); in visitLoadInst()
280 Constant *Zero = Constant::getNullValue(Type::getInt32Ty(SI.getContext())); in InstCombineStoreToCast()
DInstCombineCompares.cpp585 Constant::getNullValue(Offset->getType())); in FoldGEPICmp()
1226 Constant::getNullValue(P->getType())); in visitICmpInstWithInstAndIntCst()
1228 Constant::getNullValue(Q->getType())); in visitICmpInstWithInstAndIntCst()
1295 And, Constant::getNullValue(And->getType())); in visitICmpInstWithInstAndIntCst()
1379 Constant::getNullValue(BO->getType())); in visitICmpInstWithInstAndIntCst()
1454 Constant::getNullValue(RHS->getType())); in visitICmpInstWithInstAndIntCst()
1463 Constant *Zero = Constant::getNullValue(X->getType()); in visitICmpInstWithInstAndIntCst()
2057 Constant::getNullValue(Op0->getType())); in visitICmpInst()
2158 Constant::getNullValue(LHSI->getOperand(0)->getType())); in visitICmpInst()
2201 Constant::getNullValue(LHSI->getOperand(0)->getType())); in visitICmpInst()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DLowerInvoke.cpp141 Constant::getNullValue(PtrJBList), in doInitialization()
204 0 : Constant::getNullValue(F.getReturnType()), UI); in insertCheapEHSupport()
245 new StoreInst(Constant::getNullValue(Type::getInt32Ty(II->getContext())), in rewriteExpensiveInvoke()
457 Value *Idx[] = { Constant::getNullValue(Type::getInt32Ty(F.getContext())), in insertExpensiveEHSupport()
517 Constant::getNullValue(SJRet->getType()), in insertExpensiveEHSupport()
552 Constant::getNullValue(BufPtr->getType()), in insertExpensiveEHSupport()
558 Value *Idx[] = { Constant::getNullValue(Type::getInt32Ty(F.getContext())), in insertExpensiveEHSupport()
DCodeExtractor.cpp316 Idx[0] = Constant::getNullValue(Type::getInt32Ty(header->getContext())); in constructFunction()
419 Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in emitCallAndSwitchStatement()
445 Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in emitCallAndSwitchStatement()
468 SwitchInst::Create(Constant::getNullValue(Type::getInt16Ty(Context)), in emitCallAndSwitchStatement()
559 Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in emitCallAndSwitchStatement()
599 Constant::getNullValue(OldFnRetTy), TheSwitch); in emitCallAndSwitchStatement()
/external/llvm/lib/IR/
DConstantFold.cpp47 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector()
113 Constant::getNullValue(Type::getInt32Ty(DPTy->getContext())); in FoldBitCast()
146 return Constant::getNullValue(DestTy); in FoldBitCast()
279 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
301 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
317 return Constant::getNullValue(IntegerType::get(CE->getContext(), in ExtractConstantBytes()
364 return ConstantExpr::getNullValue(DestTy); in getFoldedSizeOf()
530 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction()
536 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction()
673 APInt::getNullValue(DestTy->getPrimitiveSizeInBits())); in ConstantFoldCastInstruction()
[all …]
/external/llvm/lib/Transforms/Utils/
DSanitizerStats.cpp52 {Constant::getNullValue(Int8PtrTy), in create()
87 {Constant::getNullValue(Int8PtrTy), in finish()
DModuleUtils.cpp50 Constant::getNullValue(IRB.getInt8PtrTy()), nullptr); in appendToGlobalArray()
68 : Constant::getNullValue(IRB.getInt8PtrTy()); in appendToGlobalArray()
DCodeExtractor.cpp354 Idx[0] = Constant::getNullValue(Type::getInt32Ty(header->getContext())); in constructFunction()
455 Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in emitCallAndSwitchStatement()
480 Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in emitCallAndSwitchStatement()
502 SwitchInst::Create(Constant::getNullValue(Type::getInt16Ty(Context)), in emitCallAndSwitchStatement()
595 Idx[0] = Constant::getNullValue(Type::getInt32Ty(Context)); in emitCallAndSwitchStatement()
634 Constant::getNullValue(OldFnRetTy), TheSwitch); in emitCallAndSwitchStatement()
/external/llvm/tools/llvm-stress/
Dllvm-stress.cpp174 return ConstantInt::getNullValue(Tp); in getRandomConstant()
178 return ConstantFP::getNullValue(Tp); in getRandomConstant()
196 return ConstantInt::getNullValue(Tp); in getRandomValue()
200 return ConstantFP::getNullValue(Tp); in getRandomValue()
379 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act()
394 return PT->push_back(ConstantFP::getNullValue(Ty)); in Act()
405 APInt::getNullValue(Ty->getPrimitiveSizeInBits()))); in Act()
/external/swiftshader/third_party/LLVM/unittests/VMCore/
DInstructionsTest.cpp120 const Constant* c8 = Constant::getNullValue(V8x8Ty); in TEST()
121 const Constant* c64 = Constant::getNullValue(V8x64Ty); in TEST()
/external/llvm/lib/Transforms/Instrumentation/
DSanitizerCoverage.cpp272 Constant::getNullValue(Int32ArrayNTy), "__sancov_gen_cov"); in runOnModule()
286 Constant::getNullValue(Int8ArrayNTy), "__sancov_gen_cov_counter"); in runOnModule()
309 : Constant::getNullValue(Int8PtrTy), in runOnModule()
440 Constant::getNullValue(Ty), "__sancov_gen_callee_cache"); in InjectCoverageForIndirectCalls()
559 IRB.CreateICmpSGE(Constant::getNullValue(Load->getType()), Load); in InjectCoverageAtBlock()
/external/clang/lib/CodeGen/
DCGOpenMPRuntimeNVPTX.cpp121 llvm::Constant::getNullValue(CGM.Int32Ty), "__omp_num_threads", 0, in initializeEnvironment()
128 llvm::Constant::getNullValue(CGM.Int64Ty), "__tgt_work_id", 0, in initializeEnvironment()
171 llvm::Constant::getNullValue(WorkID->getType()->getElementType()), in emitWorkerLoop()
254 llvm::Constant::getNullValue(WorkID->getType()->getElementType()), WorkID, in emitEntryFooter()
DCGObjCMac.cpp1662 llvm::Constant *scalarZero = llvm::Constant::getNullValue(scalarTy); in complete()
2078 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildGCBlockLayout()
2439 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in getBitmapBlockLayout()
2653 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildByrefLayout()
2855 return llvm::Constant::getNullValue(ObjCTypes.ProtocolExtensionPtrTy); in EmitProtocolExtension()
2883 return llvm::Constant::getNullValue(ObjCTypes.ProtocolListPtrTy); in EmitProtocolList()
2886 ProtocolRefs.push_back(llvm::Constant::getNullValue(ObjCTypes.ProtocolPtrTy)); in EmitProtocolList()
2890 Values[0] = llvm::Constant::getNullValue(ObjCTypes.ProtocolListPtrTy); in EmitProtocolList()
2952 return llvm::Constant::getNullValue(ObjCTypes.PropertyListPtrTy); in EmitPropertyList()
2995 return llvm::Constant::getNullValue(ObjCTypes.PropertyListPtrTy); in EmitPropertyList()
[all …]
DCGCXXABI.cpp68 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()
/external/swiftshader/third_party/LLVM/unittests/Support/
DValueHandleTest.cpp306 getValPtr()->replaceAllUsesWith(Constant::getNullValue(Type::getInt32Ty(getGlobalContext()))); in TEST_F()
323 Constant::getNullValue(Type::getInt32Ty(getGlobalContext())))); in TEST_F()
326 EXPECT_EQ(Constant::getNullValue(Type::getInt32Ty(getGlobalContext())), RVH.AURWArgument); in TEST_F()
327 EXPECT_EQ(Constant::getNullValue(Type::getInt32Ty(getGlobalContext())), in TEST_F()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineCompares.cpp746 NewInsts[Base] = ConstantInt::getNullValue(IndexType); in rewriteGEPAsOffset()
853 Constant *Index = ConstantInt::getNullValue(IndexType); in getAsConstantIndexedAddress()
950 Constant::getNullValue(Offset->getType())); in FoldGEPICmp()
1469 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in FoldICmpCstShrCst()
1525 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in FoldICmpCstShlCst()
1830 Constant::getNullValue(RHS->getType())); in visitICmpInstWithInstAndIntCst()
1868 Trunc, Constant::getNullValue(NTy)); in visitICmpInstWithInstAndIntCst()
1891 Constant::getNullValue(P->getType())); in visitICmpInstWithInstAndIntCst()
1893 Constant::getNullValue(Q->getType())); in visitICmpInstWithInstAndIntCst()
1916 Constant::getNullValue(RHS->getType())); in visitICmpInstWithInstAndIntCst()
[all …]
/external/swiftshader/third_party/LLVM/tools/bugpoint-passes/
DTestPasses.cpp63 CI->replaceAllUsesWith(Constant::getNullValue(CI->getType())); in runOnBasicBlock()

123456789