/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() 117 llvm::ArrayType::get(CGM.Int8PtrTy, Builder.getVTTComponents().size()); in GetAddrOfVTT()
|
D | CGException.cpp | 30 llvm::FunctionType::get(CGM.Int8PtrTy, CGM.SizeTy, /*IsVarArgs=*/false); in getAllocateExceptionFn() 39 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); in getFreeExceptionFn() 48 llvm::Type *Args[3] = { CGM.Int8PtrTy, CGM.Int8PtrTy, CGM.Int8PtrTy }; in getThrowFn() 68 llvm::FunctionType::get(CGM.Int8PtrTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); in getGetExceptionPtrFn() 77 llvm::FunctionType::get(CGM.Int8PtrTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); in getBeginCatchFn() 95 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); in getUnexpectedFn() 122 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); in getCatchallRethrowFn() 245 return llvm::ConstantExpr::getBitCast(Fn, CGM.Int8PtrTy); in getOpaquePersonalityFn() 339 return llvm::ConstantPointerNull::get(CGF.Int8PtrTy); in getCatchAllValue() 386 ExceptionSlot = CreateTempAlloca(Int8PtrTy, "exn.slot"); in getExceptionSlot() [all …]
|
D | CGVTables.cpp | 440 llvm::Type *Int8PtrTy = CGM.Int8PtrTy; in CreateVTableInitializer() local 458 Init = llvm::ConstantExpr::getIntToPtr(Init, Int8PtrTy); in CreateVTableInitializer() 463 Init = llvm::ConstantExpr::getIntToPtr(Init, Int8PtrTy); in CreateVTableInitializer() 468 Init = llvm::ConstantExpr::getIntToPtr(Init, Int8PtrTy); in CreateVTableInitializer() 471 Init = llvm::ConstantExpr::getBitCast(RTTI, Int8PtrTy); in CreateVTableInitializer() 501 CGM.Int8PtrTy); in CreateVTableInitializer() 512 CGM.Int8PtrTy); in CreateVTableInitializer() 531 Init = llvm::ConstantExpr::getBitCast(Init, Int8PtrTy); in CreateVTableInitializer() 537 Init = llvm::ConstantExpr::getNullValue(Int8PtrTy); in CreateVTableInitializer() 544 llvm::ArrayType *ArrayType = llvm::ArrayType::get(Int8PtrTy, NumComponents); in CreateVTableInitializer() [all …]
|
D | ItaniumCXXABI.cpp | 855 ptr = CGF.Builder.CreateBitCast(ptr, CGF.Int8PtrTy); in adjustToCompleteObject() 865 llvm::Type *Int8PtrTy = CGF.Int8PtrTy; in getItaniumDynamicCastFn() local 869 llvm::Type *Args[4] = { Int8PtrTy, Int8PtrTy, Int8PtrTy, PtrDiffTy }; in getItaniumDynamicCastFn() 871 llvm::FunctionType *FTy = llvm::FunctionType::get(Int8PtrTy, Args, false); in getItaniumDynamicCastFn() 1052 llvm::Value *VTablePtr = CGF.GetVTablePtr(This, CGM.Int8PtrTy); in GetVirtualBaseClassOffset() 1314 CGM.Int8PtrTy, VTContext.getVTableLayout(RD).getNumVTableComponents()); in getAddrOfVTable() 1374 llvm::Type *Int8PtrTy = CGF.Int8PtrTy; in performTypeAdjustment() local 1375 llvm::Value *V = CGF.Builder.CreateBitCast(Ptr, Int8PtrTy); in performTypeAdjustment() 1388 CGF.Builder.CreateBitCast(V, Int8PtrTy->getPointerTo()); in performTypeAdjustment() 1681 Builder.CreateLoad(Builder.CreateBitCast(guard, CGM.Int8PtrTy)); in EmitGuardedInit() [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 __anon0203e4d00111::ObjCCommonTypesHelper 412 llvm::Type *args[] = { Int8PtrTy, Int8PtrTy, LongTy }; in GcMemmoveCollectableFn() 413 llvm::FunctionType *FTy = llvm::FunctionType::get(Int8PtrTy, args, false); in GcMemmoveCollectableFn() 730 llvm::Type *params[] = { Int8PtrTy }; in getObjCBeginCatchFn() 731 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(Int8PtrTy, in getObjCBeginCatchFn() 1942 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildGCBlockLayout() 2307 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in getBitmapBlockLayout() 2521 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildByrefLayout() [all …]
|
D | MicrosoftCXXABI.cpp | 312 CGM.Int8PtrTy, in getTypeDescriptorType() 329 getImageRelativeType(CGM.Int8PtrTy), in getBaseClassDescriptorType() 368 getImageRelativeType(CGM.Int8PtrTy), in getCompleteObjectLocatorType() 634 Value = CGF.Builder.CreateBitCast(Value, CGF.Int8PtrTy); in performBaseAdjustment() 656 llvm::Type *ArgTypes[] = {CGF.Int8PtrTy}; in emitRTtypeidCall() 658 llvm::FunctionType::get(CGF.Int8PtrTy, ArgTypes, false); in emitRTtypeidCall() 707 llvm::Type *ArgTypes[] = {CGF.Int8PtrTy, CGF.Int32Ty, CGF.Int8PtrTy, in EmitDynamicCastCall() 708 CGF.Int8PtrTy, CGF.Int32Ty}; in EmitDynamicCastCall() 710 llvm::FunctionType::get(CGF.Int8PtrTy, ArgTypes, false), in EmitDynamicCastCall() 728 llvm::Type *ArgTypes[] = {CGF.Int8PtrTy}; in EmitDynamicCastToVoid() [all …]
|
D | CGBlocks.cpp | 1601 field = CGF.Builder.CreateBitCast(field, CGF.Int8PtrTy->getPointerTo(0)); in emitDispose() 1795 return llvm::ConstantExpr::getBitCast(Fn, CGF.Int8PtrTy); in generateByrefCopyHelper() 1856 return llvm::ConstantExpr::getBitCast(Fn, CGF.Int8PtrTy); in generateByrefDisposeHelper() 2020 types.push_back(Int8PtrTy); in BuildByRefType() 2034 types.push_back(Int8PtrTy); in BuildByRefType() 2037 types.push_back(Int8PtrTy); in BuildByRefType() 2044 types.push_back(Int8PtrTy); in BuildByRefType() 2062 CurrentOffsetInBytes += noPointers * CGM.getDataLayout().getTypeAllocSize(Int8PtrTy); in BuildByRefType() 2123 V = Builder.CreateIntToPtr(Builder.getInt32(isa), Int8PtrTy, "isa"); in emitByrefStructureInit() 2204 Builder.CreateBitCast(V, Int8PtrTy), in BuildBlockRelease() [all …]
|
D | CGOpenMPRuntime.cpp | 32 CGM.Int8PtrTy /* psource */, NULL); in CGOpenMPRuntime() 51 llvm::ConstantExpr::getBitCast(DefaultOpenMPPSource, CGM.Int8PtrTy); in GetOrCreateDefaultOpenMPLocation()
|
D | CGObjC.cpp | 799 ivarAddr = CGF.Builder.CreateBitCast(ivarAddr, CGF.Int8PtrTy); in emitCPPObjectAtomicGetterCall() 992 ivarAddr = CGF.Builder.CreateBitCast(ivarAddr, CGF.Int8PtrTy); in emitStructSetterCall() 1000 argAddr = CGF.Builder.CreateBitCast(argAddr, CGF.Int8PtrTy); in emitStructSetterCall() 1038 ivarAddr = CGF.Builder.CreateBitCast(ivarAddr, CGF.Int8PtrTy); in emitCPPObjectAtomicSetterCall() 1046 argAddr = CGF.Builder.CreateBitCast(argAddr, CGF.Int8PtrTy); in emitCPPObjectAtomicSetterCall() 1803 llvm::FunctionType::get(CGF.Int8PtrTy, CGF.Int8PtrTy, false); in emitARCValueOperation() 1809 value = CGF.Builder.CreateBitCast(value, CGF.Int8PtrTy); in emitARCValueOperation() 1828 llvm::FunctionType::get(CGF.Int8PtrTy, CGF.Int8PtrPtrTy, false); in emitARCLoadOperation() 1859 llvm::Type *argTypes[] = { CGF.Int8PtrPtrTy, CGF.Int8PtrTy }; in emitARCStoreOperation() 1862 = llvm::FunctionType::get(CGF.Int8PtrTy, argTypes, false); in emitARCStoreOperation() [all …]
|
D | CodeGenFunction.cpp | 308 llvm::PointerType *PointerTy = Int8PtrTy; in EmitFunctionInstrumentation() 1285 llvm::Value *DestVal = TmpBuilder.CreatePHI(Int8PtrTy, 0, in GetIndirectGotoBlock() 1601 Builder.CreateBitCast(CGM.EmitAnnotationString(AnnotationStr), Int8PtrTy), in EmitAnnotationCall() 1602 Builder.CreateBitCast(CGM.EmitAnnotationUnit(Location), Int8PtrTy), in EmitAnnotationCall() 1614 Builder.CreateBitCast(V, CGM.Int8PtrTy, V->getName()), in EmitVarAnnotations() 1623 CGM.Int8PtrTy); in EmitFieldAnnotations() 1629 if (VTy != CGM.Int8PtrTy) in EmitFieldAnnotations() 1630 V = Builder.Insert(new llvm::BitCastInst(V, CGM.Int8PtrTy)); in EmitFieldAnnotations()
|
D | CGDeclCXX.cpp | 108 argument = llvm::Constant::getNullValue(CGF.Int8PtrTy); in EmitDeclDestroy() 130 llvm::ConstantExpr::getBitCast(Addr, CGF.Int8PtrTy)}; in EmitDeclInvariant()
|
D | CodeGenPGO.cpp | 121 auto *Int8PtrTy = llvm::Type::getInt8PtrTy(Ctx); in buildDataVar() local 124 Int32Ty, Int32Ty, Int64Ty, Int8PtrTy, Int64PtrTy in buildDataVar() 131 llvm::ConstantExpr::getBitCast(Name, Int8PtrTy), in buildDataVar()
|
D | CodeGenModule.cpp | 107 Int8PtrTy = Int8Ty->getPointerTo(0); in CodeGenModule() 108 Int8PtrPtrTy = Int8PtrTy->getPointerTo(0); in CodeGenModule() 896 CGM.Int8PtrTy); in emitUsed() 901 llvm::ArrayType *ATy = llvm::ArrayType::get(CGM.Int8PtrTy, UsedArray.size()); in emitUsed() 1134 llvm::ConstantExpr::getBitCast(GV, Int8PtrTy), in EmitAnnotateAttr() 1135 llvm::ConstantExpr::getBitCast(AnnoGV, Int8PtrTy), in EmitAnnotateAttr() 1136 llvm::ConstantExpr::getBitCast(UnitGV, Int8PtrTy), in EmitAnnotateAttr() 2547 Fields[2] = llvm::ConstantExpr::getBitCast(Fields[2], Int8PtrTy); in GetAddrOfConstantCFString() 3395 return llvm::Constant::getNullValue(Int8PtrTy); in GetAddrOfRTTIDescriptor()
|
D | CGDecl.cpp | 481 llvm::Value *castAddr = CGF.Builder.CreateBitCast(Addr, CGF.Int8PtrTy); in Emit() 927 llvm::Value *castAddr = Builder.CreateBitCast(Alloc, Int8PtrTy); in EmitAutoVarAlloca() 939 llvm::Value *Stack = CreateTempAlloca(Int8PtrTy, "saved_stack"); in EmitAutoVarAlloca() 1114 llvm::Type *BP = Int8PtrTy; in EmitAutoVarInit()
|
D | CGObjCRuntime.cpp | 95 llvm::Value *V = CGF.Builder.CreateBitCast(BaseValue, CGF.Int8PtrTy); in EmitValueForIvarAtOffset()
|
D | CGExpr.cpp | 44 llvm::PointerType *destType = Int8PtrTy; in EmitCastToVoidPtr() 268 CleanupArg = llvm::Constant::getNullValue(CGF.Int8PtrTy); in pushTemporaryCleanup() 487 llvm::Type *Tys[2] = { IntPtrTy, Int8PtrTy }; in EmitTypeCheck() 490 llvm::Value *CastAddr = Builder.CreateBitCast(Address, Int8PtrTy); in EmitTypeCheck() 2169 : llvm::Constant::getNullValue(Int8PtrTy), in EmitCheckSourceLocation() 2217 Args.push_back(Builder.CreateBitCast(InfoPtr, Int8PtrTy)); in EmitCheck() 2218 ArgTypes.push_back(Int8PtrTy); in EmitCheck()
|
D | CGBuiltin.cpp | 223 llvm::Type *DestType = Int8PtrTy; in EmitBuiltinExpr() 236 llvm::Type *Type = Int8PtrTy; in EmitBuiltinExpr() 843 Buf = Builder.CreateBitCast(Buf, Int8PtrTy); in EmitBuiltinExpr() 848 Buf = Builder.CreateBitCast(Buf, Int8PtrTy); in EmitBuiltinExpr() 3107 Value *Val = Builder.CreateCall(F, Builder.CreateBitCast(LdPtr, Int8PtrTy), in EmitARMBuiltinExpr() 3163 Value *StPtr = Builder.CreateBitCast(EmitScalarExpr(E->getArg(1)), Int8PtrTy); in EmitARMBuiltinExpr() 3838 Value *Val = Builder.CreateCall(F, Builder.CreateBitCast(LdPtr, Int8PtrTy), in EmitAArch64BuiltinExpr() 3894 Int8PtrTy); in EmitAArch64BuiltinExpr() 5674 Builder.CreateBitCast(Tmp, Int8PtrTy)); in EmitX86BuiltinExpr() 5679 Builder.CreateBitCast(Tmp, Int8PtrTy)); in EmitX86BuiltinExpr() [all …]
|
D | CGClass.cpp | 104 V = Builder.CreateBitCast(V, Int8PtrTy); in GetAddressOfDirectBaseInCompleteClass() 132 ptr = CGF.Builder.CreateBitCast(ptr, CGF.Int8PtrTy); in ApplyNonVirtualAndVirtualOffset() 265 Value = Builder.CreateBitCast(Value, Int8PtrTy); in GetAddressOfDerivedClass()
|
D | CodeGenModule.h | 128 llvm::PointerType *Int8PtrTy; member
|
D | TargetInfo.cpp | 3096 llvm::Type *BP = CGF.Int8PtrTy; in EmitVAArg() 3677 BaseAddr = CGF.Builder.CreateIntToPtr(BaseAddr, CGF.Int8PtrTy); in EmitAArch64VAArg() 3708 OnStackAddr = CGF.Builder.CreateIntToPtr(OnStackAddr, CGF.Int8PtrTy); in EmitAArch64VAArg() 3735 OnStackAddr = CGF.Builder.CreateIntToPtr(OnStackAddr, CGF.Int8PtrTy); in EmitAArch64VAArg() 4538 llvm::Type *BP = CGF.Int8PtrTy; in EmitVAArg() 5371 llvm::Type *BP = CGF.Int8PtrTy; in EmitVAArg()
|
D | CGExprAgg.cpp | 1351 Loc = CGF.Builder.CreateBitCast(Loc, CGF.Int8PtrTy); in CheckAggExprForMemSetUse()
|
/external/llvm/unittests/IR/ |
D | ConstantsTest.cpp | 126 Type *Int8PtrTy = Type::getInt8PtrTy(C); in TEST() local 129 VectorType *Int8PtrVecTy = VectorType::get(Int8PtrTy, 4); in TEST() 136 Constant::getNullValue(Int8PtrTy), Int64Ty)); in TEST() 141 Constant::getNullValue(Int8PtrTy), Int32PtrTy)); in TEST()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopIdiomRecognize.cpp | 1029 Type *Int8PtrTy = DestInt8PtrTy; in processLoopStridedStore() local 1034 Int8PtrTy, in processLoopStridedStore() 1035 Int8PtrTy, in processLoopStridedStore() 1046 Value *PatternPtr = ConstantExpr::getBitCast(GV, Int8PtrTy); in processLoopStridedStore()
|
/external/llvm/lib/Transforms/Utils/ |
D | InlineFunction.cpp | 427 Type *Int8PtrTy = Type::getInt8PtrTy(Ty->getContext(), in hasLifetimeMarkers() local 429 if (Ty == Int8PtrTy) in hasLifetimeMarkers() 434 if (U->getType() != Int8PtrTy) continue; in hasLifetimeMarkers()
|
/external/llvm/lib/Transforms/IPO/ |
D | GlobalOpt.cpp | 2724 PointerType *Int8PtrTy = Type::getInt8PtrTy(V.getContext(), 0); in setUsedInitializer() local 2730 = ConstantExpr::getPointerBitCastOrAddrSpaceCast(*I, Int8PtrTy); in setUsedInitializer() 2735 ArrayType *ATy = ArrayType::get(Int8PtrTy, UsedArray.size()); in setUsedInitializer()
|