/external/clang/lib/CodeGen/ |
D | CGVTT.cpp | 47 llvm::Type *Int8PtrTy = CGM.Int8PtrTy, *Int64Ty = CGM.Int64Ty; in EmitVTTDefinition() local 49 llvm::ArrayType::get(Int8PtrTy, Builder.getVTTComponents().size()); in EmitVTTDefinition() 85 Init = llvm::ConstantExpr::getBitCast(Init, Int8PtrTy); in EmitVTTDefinition() 120 llvm::ArrayType::get(CGM.Int8PtrTy, Builder.getVTTComponents().size()); in GetAddrOfVTT()
|
D | CGVTables.cpp | 510 llvm::Type *Int8PtrTy = CGM.Int8PtrTy; in CreateVTableInitializer() local 528 Init = llvm::ConstantExpr::getIntToPtr(Init, Int8PtrTy); in CreateVTableInitializer() 533 Init = llvm::ConstantExpr::getIntToPtr(Init, Int8PtrTy); in CreateVTableInitializer() 538 Init = llvm::ConstantExpr::getIntToPtr(Init, Int8PtrTy); in CreateVTableInitializer() 541 Init = llvm::ConstantExpr::getBitCast(RTTI, Int8PtrTy); in CreateVTableInitializer() 571 CGM.Int8PtrTy); in CreateVTableInitializer() 582 CGM.Int8PtrTy); in CreateVTableInitializer() 601 Init = llvm::ConstantExpr::getBitCast(Init, Int8PtrTy); in CreateVTableInitializer() 607 Init = llvm::ConstantExpr::getNullValue(Int8PtrTy); in CreateVTableInitializer() 614 llvm::ArrayType *ArrayType = llvm::ArrayType::get(Int8PtrTy, NumComponents); in CreateVTableInitializer() [all …]
|
D | ItaniumCXXABI.cpp | 893 llvm::Value *CompletePtr = CGF.Builder.CreateBitCast(Ptr, CGF.Int8PtrTy); in emitVirtualObjectDelete() 929 llvm::FunctionType::get(CGM.Int8PtrTy, CGM.SizeTy, /*IsVarArgs=*/false); in getAllocateExceptionFn() 938 llvm::Type *Args[3] = { CGM.Int8PtrTy, CGM.Int8PtrTy, CGM.Int8PtrTy }; in getThrowFn() 969 Dtor = llvm::ConstantExpr::getBitCast(Dtor, CGM.Int8PtrTy); in emitThrow() 972 if (!Dtor) Dtor = llvm::Constant::getNullValue(CGM.Int8PtrTy); in emitThrow() 984 llvm::Type *Int8PtrTy = CGF.Int8PtrTy; in getItaniumDynamicCastFn() local 988 llvm::Type *Args[4] = { Int8PtrTy, Int8PtrTy, Int8PtrTy, PtrDiffTy }; in getItaniumDynamicCastFn() 990 llvm::FunctionType *FTy = llvm::FunctionType::get(Int8PtrTy, Args, false); in getItaniumDynamicCastFn() 1171 llvm::Value *VTablePtr = CGF.GetVTablePtr(This, CGM.Int8PtrTy); in GetVirtualBaseClassOffset() 1425 CGM.Int8PtrTy, VTContext.getVTableLayout(RD).getNumVTableComponents()); in getAddrOfVTable() [all …]
|
D | CGObjCMac.cpp | 144 llvm::Type *params[] = { Int8PtrTy, SuperPtrTy, SelectorPtrTy }; in getMessageSendSuperStretFn() 155 llvm::Type *params[] = { Int8PtrTy, SuperPtrTy, SelectorPtrTy }; in getMessageSendSuperStretFn2() 176 llvm::Type *Int8PtrTy, *Int8PtrPtrTy; member in __anonba8b4b990111::ObjCCommonTypesHelper 408 llvm::Type *args[] = { Int8PtrTy, Int8PtrTy, LongTy }; in GcMemmoveCollectableFn() 409 llvm::FunctionType *FTy = llvm::FunctionType::get(Int8PtrTy, args, false); in GcMemmoveCollectableFn() 724 llvm::Type *params[] = { Int8PtrTy }; in getObjCBeginCatchFn() 725 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(Int8PtrTy, in getObjCBeginCatchFn() 1937 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildGCBlockLayout() 2302 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in getBitmapBlockLayout() 2516 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildByrefLayout() [all …]
|
D | MicrosoftCXXABI.cpp | 341 CGM.Int8PtrTy, in getTypeDescriptorType() 358 getImageRelativeType(CGM.Int8PtrTy), in getBaseClassDescriptorType() 397 getImageRelativeType(CGM.Int8PtrTy), in getCompleteObjectLocatorType() 580 CGM.Int8PtrTy, // TypeDescriptor in getCatchHandlerTypeType() 593 getImageRelativeType(CGM.Int8PtrTy), // TypeDescriptor in getCatchableTypeType() 598 getImageRelativeType(CGM.Int8PtrTy) // CopyCtor in getCatchableTypeType() 629 getImageRelativeType(CGM.Int8PtrTy), // CleanupFn in getThrowInfoType() 630 getImageRelativeType(CGM.Int8PtrTy), // ForwardCompat in getThrowInfoType() 631 getImageRelativeType(CGM.Int8PtrTy) // CatchableTypeArray in getThrowInfoType() 641 llvm::Type *Args[] = {CGM.Int8PtrTy, getThrowInfoType()->getPointerTo()}; in getThrowFn() [all …]
|
D | CGException.cpp | 35 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); in getFreeExceptionFn() 44 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); in getUnexpectedFn() 75 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); in getCatchallRethrowFn() 253 return llvm::ConstantExpr::getBitCast(Fn, CGM.Int8PtrTy); in getOpaquePersonalityFn() 348 return llvm::ConstantPointerNull::get(CGF.Int8PtrTy); in getCatchAllValue() 394 ExceptionSlot = CreateTempAlloca(Int8PtrTy, "exn.slot"); in getExceptionSlot() 703 Builder.CreateLandingPad(llvm::StructType::get(Int8PtrTy, Int32Ty, nullptr), in EmitLandingPad() 788 filterTypes[0]->getType() : Int8PtrTy, in EmitLandingPad() 849 typeValue = CGF.Builder.CreateBitCast(typeValue, CGF.Int8PtrTy); in emitCatchDispatchBlock() 1108 SavedExnVar = CGF.CreateTempAlloca(CGF.Int8PtrTy, "finally.exn"); in enter() [all …]
|
D | CGBlocks.cpp | 1628 field = CGF.Builder.CreateBitCast(field, CGF.Int8PtrTy->getPointerTo(0)); in emitDispose() 1824 return llvm::ConstantExpr::getBitCast(Fn, CGF.Int8PtrTy); in generateByrefCopyHelper() 1885 return llvm::ConstantExpr::getBitCast(Fn, CGF.Int8PtrTy); in generateByrefDisposeHelper() 2051 types.push_back(Int8PtrTy); in BuildByRefType() 2065 types.push_back(Int8PtrTy); in BuildByRefType() 2068 types.push_back(Int8PtrTy); in BuildByRefType() 2075 types.push_back(Int8PtrTy); in BuildByRefType() 2093 CurrentOffsetInBytes += noPointers * CGM.getDataLayout().getTypeAllocSize(Int8PtrTy); in BuildByRefType() 2154 V = Builder.CreateIntToPtr(Builder.getInt32(isa), Int8PtrTy, "isa"); in emitByrefStructureInit() 2237 Builder.CreateBitCast(V, Int8PtrTy), in BuildBlockRelease() [all …]
|
D | CGObjC.cpp | 790 ivarAddr = CGF.Builder.CreateBitCast(ivarAddr, CGF.Int8PtrTy); in emitCPPObjectAtomicGetterCall() 983 ivarAddr = CGF.Builder.CreateBitCast(ivarAddr, CGF.Int8PtrTy); in emitStructSetterCall() 991 argAddr = CGF.Builder.CreateBitCast(argAddr, CGF.Int8PtrTy); in emitStructSetterCall() 1029 ivarAddr = CGF.Builder.CreateBitCast(ivarAddr, CGF.Int8PtrTy); in emitCPPObjectAtomicSetterCall() 1037 argAddr = CGF.Builder.CreateBitCast(argAddr, CGF.Int8PtrTy); in emitCPPObjectAtomicSetterCall() 1794 llvm::FunctionType::get(CGF.Int8PtrTy, CGF.Int8PtrTy, false); in emitARCValueOperation() 1800 value = CGF.Builder.CreateBitCast(value, CGF.Int8PtrTy); in emitARCValueOperation() 1819 llvm::FunctionType::get(CGF.Int8PtrTy, CGF.Int8PtrPtrTy, false); in emitARCLoadOperation() 1850 llvm::Type *argTypes[] = { CGF.Int8PtrPtrTy, CGF.Int8PtrTy }; in emitARCStoreOperation() 1853 = llvm::FunctionType::get(CGF.Int8PtrTy, argTypes, false); in emitARCStoreOperation() [all …]
|
D | CodeGenFunction.cpp | 346 llvm::PointerType *PointerTy = Int8PtrTy; in EmitFunctionInstrumentation() 1360 llvm::Value *DestVal = TmpBuilder.CreatePHI(Int8PtrTy, 0, in GetIndirectGotoBlock() 1677 Builder.CreateBitCast(CGM.EmitAnnotationString(AnnotationStr), Int8PtrTy), in EmitAnnotationCall() 1678 Builder.CreateBitCast(CGM.EmitAnnotationUnit(Location), Int8PtrTy), in EmitAnnotationCall() 1690 Builder.CreateBitCast(V, CGM.Int8PtrTy, V->getName()), in EmitVarAnnotations() 1699 CGM.Int8PtrTy); in EmitFieldAnnotations() 1705 if (VTy != CGM.Int8PtrTy) in EmitFieldAnnotations() 1706 V = Builder.Insert(new llvm::BitCastInst(V, CGM.Int8PtrTy)); in EmitFieldAnnotations()
|
D | CGDeclCXX.cpp | 109 argument = llvm::Constant::getNullValue(CGF.Int8PtrTy); in EmitDeclDestroy() 131 llvm::ConstantExpr::getBitCast(Addr, CGF.Int8PtrTy)}; in EmitDeclInvariant()
|
D | CoverageMappingGen.cpp | 902 auto *Int8PtrTy = llvm::Type::getInt8PtrTy(Ctx); in addFunctionMappingRecord() local 904 llvm::Type *FunctionRecordTypes[] = {Int8PtrTy, Int32Ty, Int32Ty, Int64Ty}; in addFunctionMappingRecord() 910 llvm::ConstantExpr::getBitCast(FunctionName, Int8PtrTy), in addFunctionMappingRecord()
|
D | CodeGenModule.cpp | 109 Int8PtrTy = Int8Ty->getPointerTo(0); in CodeGenModule() 110 Int8PtrPtrTy = Int8PtrTy->getPointerTo(0); in CodeGenModule() 944 cast<llvm::Constant>(&*List[i]), CGM.Int8PtrTy); in emitUsed() 949 llvm::ArrayType *ATy = llvm::ArrayType::get(CGM.Int8PtrTy, UsedArray.size()); in emitUsed() 1196 llvm::ConstantExpr::getBitCast(GV, Int8PtrTy), in EmitAnnotateAttr() 1197 llvm::ConstantExpr::getBitCast(AnnoGV, Int8PtrTy), in EmitAnnotateAttr() 1198 llvm::ConstantExpr::getBitCast(UnitGV, Int8PtrTy), in EmitAnnotateAttr() 2695 Fields[2] = llvm::ConstantExpr::getBitCast(Fields[2], Int8PtrTy); in GetAddrOfConstantCFString() 3654 return llvm::Constant::getNullValue(Int8PtrTy); in GetAddrOfRTTIDescriptor()
|
D | CGDecl.cpp | 519 llvm::Value *castAddr = CGF.Builder.CreateBitCast(Addr, CGF.Int8PtrTy); in Emit() 966 llvm::Value *castAddr = Builder.CreateBitCast(Alloc, Int8PtrTy); in EmitAutoVarAlloca() 978 llvm::Value *Stack = CreateTempAlloca(Int8PtrTy, "saved_stack"); in EmitAutoVarAlloca() 1154 llvm::Type *BP = Int8PtrTy; in EmitAutoVarInit()
|
D | CGClass.cpp | 105 V = Builder.CreateBitCast(V, Int8PtrTy); in GetAddressOfDirectBaseInCompleteClass() 133 ptr = CGF.Builder.CreateBitCast(ptr, CGF.Int8PtrTy); in ApplyNonVirtualAndVirtualOffset() 277 Value = Builder.CreateBitCast(Value, Int8PtrTy); in GetAddressOfDerivedClass() 2176 llvm::Value *VTable = GetVTablePtr(Derived, Int8PtrTy); in EmitVTablePtrCheckForCast() 2200 Builder.CreateBitCast(VTable, CGM.Int8PtrTy), BitSetName); in EmitVTablePtrCheck()
|
D | CGBuiltin.cpp | 240 llvm::Type *DestType = Int8PtrTy; in EmitBuiltinExpr() 253 llvm::Type *Type = Int8PtrTy; in EmitBuiltinExpr() 917 Buf = Builder.CreateBitCast(Buf, Int8PtrTy); in EmitBuiltinExpr() 922 Buf = Builder.CreateBitCast(Buf, Int8PtrTy); in EmitBuiltinExpr() 1696 llvm::Type *ArgTypes[] = {Int8PtrTy, Int8PtrTy}; in EmitBuiltinExpr() 1704 EmitScalarExpr(E->getArg(0)), Int8PtrTy); in EmitBuiltinExpr() 1721 EmitScalarExpr(E->getArg(0)), Int8PtrTy); in EmitBuiltinExpr() 1724 llvm::Type *ArgTypes[] = {Int8PtrTy, IntTy}; in EmitBuiltinExpr() 1732 llvm::Type *ArgTypes[] = {Int8PtrTy, Int8PtrTy}; in EmitBuiltinExpr() 1751 return RValue::get(llvm::ConstantExpr::getBitCast(GV, CGM.Int8PtrTy)); in EmitBuiltinExpr() [all …]
|
D | CGObjCRuntime.cpp | 95 llvm::Value *V = CGF.Builder.CreateBitCast(BaseValue, CGF.Int8PtrTy); in EmitValueForIvarAtOffset()
|
D | CGExpr.cpp | 46 llvm::PointerType *destType = Int8PtrTy; in EmitCastToVoidPtr() 269 CleanupArg = llvm::Constant::getNullValue(CGF.Int8PtrTy); in pushTemporaryCleanup() 532 llvm::Type *Tys[2] = { IntPtrTy, Int8PtrTy }; in EmitTypeCheck() 535 llvm::Value *CastAddr = Builder.CreateBitCast(Address, Int8PtrTy); in EmitTypeCheck() 2223 Filename = llvm::Constant::getNullValue(Int8PtrTy); in EmitCheckSourceLocation() 2362 Args.push_back(Builder.CreateBitCast(InfoPtr, Int8PtrTy)); in EmitCheck() 2363 ArgTypes.push_back(Int8PtrTy); in EmitCheck()
|
D | CGOpenMPRuntime.cpp | 264 CGM.Int8PtrTy /* psource */, nullptr); in CGOpenMPRuntime() 314 llvm::ConstantExpr::getBitCast(DefaultOpenMPPSource, CGM.Int8PtrTy); in getOrCreateDefaultLocation() 801 CGF.Builder.CreatePointerCast(VDAddr, CGM.Int8PtrTy), in getAddrOfThreadPrivate()
|
D | TargetInfo.cpp | 3142 llvm::Type *CharPtr = CGF.Int8PtrTy; in EmitVAArg() 3734 llvm::Type *BP = CGF.Int8PtrTy; in EmitVAArg() 4259 BaseAddr = CGF.Builder.CreateIntToPtr(BaseAddr, CGF.Int8PtrTy); in EmitAAPCSVAArg() 4290 OnStackAddr = CGF.Builder.CreateIntToPtr(OnStackAddr, CGF.Int8PtrTy); in EmitAAPCSVAArg() 4317 OnStackAddr = CGF.Builder.CreateIntToPtr(OnStackAddr, CGF.Int8PtrTy); in EmitAAPCSVAArg() 4916 llvm::Type *BP = CGF.Int8PtrTy; in EmitVAArg() 5739 llvm::Type *BP = CGF.Int8PtrTy; in EmitVAArg()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | SanitizerCoverage.cpp | 150 Type *Int8PtrTy = PointerType::getUnqual(IRB.getInt8Ty()); in runOnModule() local 173 Int8PtrTy, Int8PtrTy, nullptr)); in runOnModule() 229 IRB.CreatePointerCast(RealEightBitCounterArray, Int8PtrTy)); in runOnModule() 246 ? IRB.CreatePointerCast(RealEightBitCounterArray, Int8PtrTy) in runOnModule() 247 : Constant::getNullValue(Int8PtrTy), in runOnModule() 248 IRB.CreatePointerCast(ModuleName, Int8PtrTy)); in runOnModule()
|
D | InstrProfiling.cpp | 220 auto *Int8PtrTy = Type::getInt8PtrTy(Ctx); in getOrCreateRegionCounters() local 223 Type *DataTypes[] = {Int32Ty, Int32Ty, Int64Ty, Int8PtrTy, Int64PtrTy}; in getOrCreateRegionCounters() 229 ConstantExpr::getBitCast(Name, Int8PtrTy), in getOrCreateRegionCounters()
|
/external/llvm/unittests/IR/ |
D | ConstantsTest.cpp | 128 Type *Int8PtrTy = Type::getInt8PtrTy(C); in TEST() local 131 VectorType *Int8PtrVecTy = VectorType::get(Int8PtrTy, 4); in TEST() 138 Constant::getNullValue(Int8PtrTy), Int64Ty)); in TEST() 143 Constant::getNullValue(Int8PtrTy), Int32PtrTy)); in TEST()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 985 Type *Int8PtrTy = DestInt8PtrTy; in processLoopStridedStore() local 990 Int8PtrTy, in processLoopStridedStore() 991 Int8PtrTy, in processLoopStridedStore() 1002 Value *PatternPtr = ConstantExpr::getBitCast(GV, Int8PtrTy); in processLoopStridedStore()
|
/external/llvm/lib/Transforms/Utils/ |
D | InlineFunction.cpp | 815 Type *Int8PtrTy = Type::getInt8PtrTy(Ty->getContext(), in hasLifetimeMarkers() local 817 if (Ty == Int8PtrTy) in hasLifetimeMarkers() 822 if (U->getType() != Int8PtrTy) continue; in hasLifetimeMarkers()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 2726 PointerType *Int8PtrTy = Type::getInt8PtrTy(V.getContext(), 0); in setUsedInitializer() local 2731 = ConstantExpr::getPointerBitCastOrAddrSpaceCast(GV, Int8PtrTy); in setUsedInitializer() 2736 ArrayType *ATy = ArrayType::get(Int8PtrTy, UsedArray.size()); in setUsedInitializer()
|