/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.cpp | 48 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/ |
D | DIBuilder.cpp | 102 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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | ConstantsTest.cpp | 125 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 …]
|
D | InstructionsTest.cpp | 217 const Constant* c8 = Constant::getNullValue(V8x8Ty); in TEST() 218 const Constant* c64 = Constant::getNullValue(V8x64Ty); in TEST() 220 const Constant *v2ptr32 = Constant::getNullValue(V2Int32PtrTy); in TEST() 277 Constant::getNullValue(V4Int32PtrTy), in TEST() 280 Constant::getNullValue(V2Int32PtrTy), in TEST() 284 Constant::getNullValue(V4Int32PtrAS1Ty), in TEST() 287 Constant::getNullValue(V2Int32PtrTy), in TEST() 295 Constant *NullV2I32Ptr = Constant::getNullValue(V2Int32PtrTy); in TEST() 509 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST() 542 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST() [all …]
|
/external/llvm/unittests/IR/ |
D | ConstantsTest.cpp | 125 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 …]
|
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() 497 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST() 529 Value *Callee = Constant::getNullValue(FnTy->getPointerTo()); in TEST() [all …]
|
D | ValueHandleTest.cpp | 310 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/ |
D | ProfilingUtils.cpp | 42 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/ |
D | InstCombineLoadStoreAlloca.cpp | 56 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()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | LowerInvoke.cpp | 141 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()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | ConstantFold.cpp | 48 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector() 114 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() 363 return ConstantExpr::getNullValue(DestTy); in getFoldedSizeOf() 527 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction() 533 return Constant::getNullValue(DestTy); in ConstantFoldCastInstruction() 684 APInt::getNullValue(DestTy->getPrimitiveSizeInBits())); in ConstantFoldCastInstruction() [all …]
|
/external/llvm/lib/IR/ |
D | ConstantFold.cpp | 47 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/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 214 return ConstantInt::getNullValue(Tp); in getRandomConstant() 218 return ConstantFP::getNullValue(Tp); in getRandomConstant() 236 return ConstantInt::getNullValue(Tp); in getRandomValue() 240 return ConstantFP::getNullValue(Tp); in getRandomValue() 429 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act() 444 return PT->push_back(ConstantFP::getNullValue(Ty)); in Act() 455 Ty, APInt::getNullValue(Ty->getPrimitiveSizeInBits()))); in Act()
|
/external/llvm/tools/llvm-stress/ |
D | llvm-stress.cpp | 174 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-7.0/llvm/lib/Transforms/Utils/ |
D | SanitizerStats.cpp | 52 {Constant::getNullValue(Int8PtrTy), in create() 87 {Constant::getNullValue(Int8PtrTy), in finish()
|
/external/llvm/lib/Transforms/Utils/ |
D | SanitizerStats.cpp | 52 {Constant::getNullValue(Int8PtrTy), in create() 87 {Constant::getNullValue(Int8PtrTy), in finish()
|
D | ModuleUtils.cpp | 50 Constant::getNullValue(IRB.getInt8PtrTy()), nullptr); in appendToGlobalArray() 68 : Constant::getNullValue(IRB.getInt8PtrTy()); in appendToGlobalArray()
|
D | CodeExtractor.cpp | 354 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/lib/Transforms/Instrumentation/ |
D | SanitizerCoverage.cpp | 272 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/ |
D | CGOpenMPRuntimeNVPTX.cpp | 121 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()
|
D | CGObjCMac.cpp | 1662 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 …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineCompares.cpp | 688 NewInsts[Base] = ConstantInt::getNullValue(IndexType); in rewriteGEPAsOffset() 795 Constant *Index = ConstantInt::getNullValue(IndexType); in getAsConstantIndexedAddress() 896 Constant::getNullValue(Offset->getType())); in foldGEPICmp() 1163 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in foldICmpShrConstConst() 1214 return getICmp(I.ICMP_EQ, A, ConstantInt::getNullValue(A->getType())); in foldICmpShlConstConst() 1481 ConstantInt::getNullValue(X->getType())); in foldICmpXorConstant() 1723 return new ICmpInst(NewPred, Trunc, Constant::getNullValue(NTy)); in foldICmpAndConstant() 1759 Builder.CreateICmp(Pred, P, ConstantInt::getNullValue(P->getType())); in foldICmpOrConstant() 1761 Builder.CreateICmp(Pred, Q, ConstantInt::getNullValue(Q->getType())); in foldICmpOrConstant() 1797 Constant::getNullValue(Mul->getType())); in foldICmpMulConstant() [all …]
|
/external/swiftshader/third_party/LLVM/unittests/VMCore/ |
D | InstructionsTest.cpp | 120 const Constant* c8 = Constant::getNullValue(V8x8Ty); in TEST() 121 const Constant* c64 = Constant::getNullValue(V8x64Ty); in TEST()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | InstructionSimplify.cpp | 587 return Constant::getNullValue(Op0->getType()); in SimplifyAddInst() 656 APInt Offset = APInt::getNullValue(IntPtrTy->getIntegerBitWidth()); in stripAndComputeConstantOffsets() 729 return Constant::getNullValue(Op0->getType()); in SimplifySubInst() 735 return Constant::getNullValue(Op0->getType()); in SimplifySubInst() 742 return Constant::getNullValue(Op0->getType()); in SimplifySubInst() 856 return Constant::getNullValue(Op0->getType()); in SimplifyMulInst() 935 return Constant::getNullValue(Ty); in simplifyDivRem() 940 return Constant::getNullValue(Op0->getType()); in simplifyDivRem() 945 return IsDiv ? ConstantInt::get(Ty, 1) : Constant::getNullValue(Ty); in simplifyDivRem() 955 return IsDiv ? Op0 : Constant::getNullValue(Ty); in simplifyDivRem() [all …]
|
/external/swiftshader/third_party/LLVM/unittests/Support/ |
D | ValueHandleTest.cpp | 306 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()
|