• Home
  • Raw
  • Download

Lines Matching refs:CGM

66       CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,  in getMessageSendFn()
69 llvm::AttributeSet::get(CGM.getLLVMContext(), in getMessageSendFn()
81 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.VoidTy, in getMessageSendStretFn()
94 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.DoubleTy, in getMessageSendFpretFn()
111 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(resultType, in getMessageSendFp2retFn()
123 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendSuperFn()
134 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendSuperFn2()
145 return CGM.CreateRuntimeFunction( in getMessageSendSuperStretFn()
146 llvm::FunctionType::get(CGM.VoidTy, params, true), in getMessageSendSuperStretFn()
156 return CGM.CreateRuntimeFunction( in getMessageSendSuperStretFn2()
157 llvm::FunctionType::get(CGM.VoidTy, params, true), in getMessageSendSuperStretFn2()
172 CodeGen::CodeGenModule &CGM; member in __anon0203e4d00111::ObjCCommonTypesHelper
198 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getExternalProtocolPtrTy()
199 ASTContext &Ctx = CGM.getContext(); in getExternalProtocolPtrTy()
236 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getGetPropertyFn()
237 ASTContext &Ctx = CGM.getContext(); in getGetPropertyFn()
250 return CGM.CreateRuntimeFunction(FTy, "objc_getProperty"); in getGetPropertyFn()
254 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getSetPropertyFn()
255 ASTContext &Ctx = CGM.getContext(); in getSetPropertyFn()
271 return CGM.CreateRuntimeFunction(FTy, "objc_setProperty"); in getSetPropertyFn()
275 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getOptimizedSetPropertyFn()
276 ASTContext &Ctx = CGM.getContext(); in getOptimizedSetPropertyFn()
308 return CGM.CreateRuntimeFunction(FTy, name); in getOptimizedSetPropertyFn()
312 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getCopyStructFn()
313 ASTContext &Ctx = CGM.getContext(); in getCopyStructFn()
326 return CGM.CreateRuntimeFunction(FTy, "objc_copyStruct"); in getCopyStructFn()
334 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getCppAtomicObjectFunction()
335 ASTContext &Ctx = CGM.getContext(); in getCppAtomicObjectFunction()
346 return CGM.CreateRuntimeFunction(FTy, "objc_copyCppObjectAtomic"); in getCppAtomicObjectFunction()
350 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getEnumerationMutationFn()
351 ASTContext &Ctx = CGM.getContext(); in getEnumerationMutationFn()
360 return CGM.CreateRuntimeFunction(FTy, "objc_enumerationMutation"); in getEnumerationMutationFn()
369 return CGM.CreateRuntimeFunction(FTy, "objc_read_weak"); in getGcReadWeakFn()
378 return CGM.CreateRuntimeFunction(FTy, "objc_assign_weak"); in getGcAssignWeakFn()
387 return CGM.CreateRuntimeFunction(FTy, "objc_assign_global"); in getGcAssignGlobalFn()
396 return CGM.CreateRuntimeFunction(FTy, "objc_assign_threadlocal"); in getGcAssignThreadLocalFn()
403 CGM.PtrDiffTy }; in getGcAssignIvarFn()
406 return CGM.CreateRuntimeFunction(FTy, "objc_assign_ivar"); in getGcAssignIvarFn()
414 return CGM.CreateRuntimeFunction(FTy, "objc_memmove_collectable"); in GcMemmoveCollectableFn()
423 return CGM.CreateRuntimeFunction(FTy, "objc_assign_strongCast"); in getGcAssignStrongCastFn()
431 llvm::FunctionType::get(CGM.VoidTy, args, false); in getExceptionThrowFn()
432 return CGM.CreateRuntimeFunction(FTy, "objc_exception_throw"); in getExceptionThrowFn()
438 llvm::FunctionType *FTy = llvm::FunctionType::get(CGM.VoidTy, false); in getExceptionRethrowFn()
439 return CGM.CreateRuntimeFunction(FTy, "objc_exception_rethrow"); in getExceptionRethrowFn()
447 llvm::FunctionType::get(CGM.IntTy, args, false); in getSyncEnterFn()
448 return CGM.CreateRuntimeFunction(FTy, "objc_sync_enter"); in getSyncEnterFn()
456 llvm::FunctionType::get(CGM.IntTy, args, false); in getSyncExitFn()
457 return CGM.CreateRuntimeFunction(FTy, "objc_sync_exit"); in getSyncExitFn()
557 return CGM.CreateRuntimeFunction( in getExceptionTryEnterFn()
558 llvm::FunctionType::get(CGM.VoidTy, params, false), in getExceptionTryEnterFn()
565 return CGM.CreateRuntimeFunction( in getExceptionTryExitFn()
566 llvm::FunctionType::get(CGM.VoidTy, params, false), in getExceptionTryExitFn()
573 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getExceptionExtractFn()
581 return CGM.CreateRuntimeFunction( in getExceptionMatchFn()
582 llvm::FunctionType::get(CGM.Int32Ty, params, false), in getExceptionMatchFn()
590 llvm::Type *params[] = { CGM.Int32Ty->getPointerTo() }; in getSetJmpFn()
592 CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.Int32Ty, in getSetJmpFn()
595 llvm::AttributeSet::get(CGM.getLLVMContext(), in getSetJmpFn()
684 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendFixupFn()
692 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendFpretFixupFn()
700 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendStretFixupFn()
709 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendSuper2FixupFn()
718 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendSuper2StretFixupFn()
724 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.VoidTy, false), in getObjCEndCatchFn()
731 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(Int8PtrTy, in getObjCBeginCatchFn()
1065 llvm::Constant *BuildGCBlockLayout(CodeGen::CodeGenModule &CGM,
1067 llvm::Constant *BuildRCBlockLayout(CodeGen::CodeGenModule &CGM,
1070 llvm::Constant *BuildByrefLayout(CodeGen::CodeGenModule &CGM,
1425 IdentifierInfo* II = &CGM.getContext().Idents.get(name); in GetNullarySelector()
1426 return CGM.getContext().Selectors.getSelector(0, &II); in GetNullarySelector()
1430 IdentifierInfo* II = &CGM.getContext().Idents.get(name); in GetUnarySelector()
1431 return CGM.getContext().Selectors.getSelector(1, &II); in GetUnarySelector()
1634 llvm::Constant *null = CGF.CGM.EmitNullConstant(resultType); in complete()
1732 return CGM.GetAddrOfRTTIDescriptor( in GetEHType()
1733 CGM.getContext().getObjCIdRedefinitionType(), /*ForEH=*/true); in GetEHType()
1737 return CGM.GetAddrOfRTTIDescriptor( in GetEHType()
1738 CGM.getContext().getObjCClassRedefinitionType(), /*ForEH=*/true); in GetEHType()
1741 return CGM.GetAddrOfRTTIDescriptor(T, /*ForEH=*/true); in GetEHType()
1767 return (CGM.getLangOpts().NoConstantCFStrings == 0 ? in GenerateConstantString()
1768 CGM.GetAddrOfConstantCFString(SL) : in GenerateConstantString()
1769 CGM.GetAddrOfConstantString(SL)); in GenerateConstantString()
1829 CGM.getTypes().ConvertType(CGF.getContext().getObjCClassType()); in GenerateMessageSendSuper()
1876 assert(CGM.getContext().getCanonicalType(Method->getReturnType()) == in EmitMessageSend()
1877 CGM.getContext().getCanonicalType(ResultType) && in EmitMessageSend()
1883 if (CGM.ReturnSlotInterferesWithArgs(MSI.CallInfo)) { in EmitMessageSend()
1887 } else if (CGM.ReturnTypeUsesFPRet(ResultType)) { in EmitMessageSend()
1890 } else if (CGM.ReturnTypeUsesFP2Ret(ResultType)) { in EmitMessageSend()
1896 if (!IsSuper && CGM.ReturnTypeUsesSRet(MSI.CallInfo)) in EmitMessageSend()
1903 if (CGM.getLangOpts().ObjCAutoRefCount && Method) in EmitMessageSend()
1939 llvm::Constant *CGObjCCommonMac::BuildGCBlockLayout(CodeGenModule &CGM, in BuildGCBlockLayout() argument
1942 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildGCBlockLayout()
1943 if (CGM.getLangOpts().getGC() == LangOptions::NonGC && in BuildGCBlockLayout()
1944 !CGM.getLangOpts().ObjCAutoRefCount) in BuildGCBlockLayout()
1950 unsigned WordSizeInBits = CGM.getTarget().getPointerWidth(0); in BuildGCBlockLayout()
1951 unsigned ByteSizeInBits = CGM.getTarget().getCharWidth(); in BuildGCBlockLayout()
1961 CGM.getDataLayout().getStructLayout(blockInfo.StructureType); in BuildGCBlockLayout()
1990 Qualifiers::GC GCAttr = GetGCAttrTypeForType(CGM.getContext(), type); in BuildGCBlockLayout()
1991 unsigned fieldSize = CGM.getContext().getTypeSize(type); in BuildGCBlockLayout()
2011 if (CGM.getLangOpts().ObjCGCBitmapPrint) { in BuildGCBlockLayout()
2030 if (CGM.getLangOpts().ObjCAutoRefCount) in getBlockCaptureLifetime()
2077 unsigned ByteSizeInBits = CGM.getTarget().getCharWidth(); in BuildRCRecordLayout()
2083 const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD); in BuildRCRecordLayout()
2085 CGM.getContext().toCharUnitsFromBits(RL.getFieldOffset(i)); in BuildRCRecordLayout()
2105 if (const ArrayType *Array = CGM.getContext().getAsArrayType(FQT)) { in BuildRCRecordLayout()
2111 while (const ArrayType *Array = CGM.getContext().getAsArrayType(FQT)) { in BuildRCRecordLayout()
2127 CharUnits Size = CGM.getContext().getTypeSizeInChars(RT); in BuildRCRecordLayout()
2137 CharUnits FieldSize = CGM.getContext().getTypeSizeInChars(Field->getType()); in BuildRCRecordLayout()
2157 = LastFieldBitfieldOrUnnamed->getBitWidthValue(CGM.getContext()); in BuildRCRecordLayout()
2171 = CGM.getContext().getTypeSizeInChars(LastFieldBitfieldOrUnnamed->getType()); in BuildRCRecordLayout()
2193 llvm::Type *Ty = CGM.getTypes().ConvertType(QualType(RT, 0)); in BuildRCBlockVarRecordLayout()
2195 CGM.getDataLayout().getStructLayout(cast<llvm::StructType>(Ty)); in BuildRCBlockVarRecordLayout()
2307 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in getBitmapBlockLayout()
2310 unsigned WordSizeInBits = CGM.getTarget().getPointerWidth(0); in getBitmapBlockLayout()
2311 unsigned ByteSizeInBits = CGM.getTarget().getCharWidth(); in getBitmapBlockLayout()
2382 if (CGM.getLangOpts().ObjCGCBitmapPrint) { in getBitmapBlockLayout()
2391 return llvm::Constant::getIntegerValue(CGM.Int64Ty, Instruction); in getBitmapBlockLayout()
2395 return llvm::Constant::getIntegerValue(CGM.Int32Ty, Instruction); in getBitmapBlockLayout()
2405 if (CGM.getLangOpts().ObjCGCBitmapPrint) { in getBitmapBlockLayout()
2455 llvm::Constant *CGObjCCommonMac::BuildRCBlockLayout(CodeGenModule &CGM, in BuildRCBlockLayout() argument
2457 assert(CGM.getLangOpts().getGC() == LangOptions::NonGC); in BuildRCBlockLayout()
2462 unsigned WordSizeInBits = CGM.getTarget().getPointerWidth(0); in BuildRCBlockLayout()
2463 unsigned ByteSizeInBits = CGM.getTarget().getCharWidth(); in BuildRCBlockLayout()
2470 CGM.getDataLayout().getStructLayout(blockInfo.StructureType); in BuildRCBlockLayout()
2501 fieldSize = CGM.getContext().getTypeSizeInChars(type); in BuildRCBlockLayout()
2509 llvm::Constant *CGObjCCommonMac::BuildByrefLayout(CodeGen::CodeGenModule &CGM, in BuildByrefLayout() argument
2511 assert(CGM.getLangOpts().getGC() == LangOptions::NonGC); in BuildByrefLayout()
2521 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildByrefLayout()
2529 LazySymbols.insert(&CGM.getContext().Idents.get("Protocol")); in GenerateProtocolRef()
2587 LazySymbols.insert(&CGM.getContext().Idents.get("Protocol")); in GetOrEmitProtocol()
2647 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolTy, false, in GetOrEmitProtocol()
2658 CGM.addCompilerUsedGlobal(Entry); in GetOrEmitProtocol()
2671 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolTy, false, in GetOrEmitProtocolRef()
2699 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ProtocolExtensionTy); in EmitProtocolExtension()
2828 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.PropertyTy); in EmitPropertyList()
2915 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.CategoryTy); in GenerateCategory()
3048 CGM.getContext().getASTObjCImplementationLayout(ID).getSize().getQuantity(); in GenerateClass()
3109 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); in GenerateClass()
3116 CGM.addCompilerUsedGlobal(GV); in GenerateClass()
3130 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ClassTy); in EmitMetaClass()
3177 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); in EmitMetaClass()
3183 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false, in EmitMetaClass()
3190 CGM.addCompilerUsedGlobal(GV); in EmitMetaClass()
3206 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); in EmitMetaClassRef()
3208 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false, in EmitMetaClassRef()
3220 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); in EmitSuperClassRef()
3223 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false, in EmitSuperClassRef()
3243 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ClassExtensionTy); in EmitClassExtension()
3297 ComputeIvarBaseOffset(CGM, OID, IVD)) in EmitIvarList()
3380 CodeGenTypes &Types = CGM.getTypes(); in GenerateMethod()
3387 &CGM.getModule()); in GenerateMethod()
3400 new llvm::GlobalVariable(CGM.getModule(), Ty, false, in CreateMetadataVar()
3408 CGM.addCompilerUsedGlobal(GV); in CreateMetadataVar()
4139 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCWeakAssign()
4161 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCGlobalAssign()
4188 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCIvarAssign()
4208 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCStrongCastAssign()
4248 uint64_t Offset = ComputeIvarBaseOffset(CGM, Interface, Ivar); in EmitIvarOffset()
4250 CGM.getTypes().ConvertType(CGM.getContext().LongTy), in EmitIvarOffset()
4284 llvm::Module &Mod = CGM.getModule(); in EmitImageInfo()
4293 if (CGM.getLangOpts().getGC() == LangOptions::NonGC) { in EmitImageInfo()
4303 if (CGM.getLangOpts().getGC() == LangOptions::GCOnly) { in EmitImageInfo()
4320 const llvm::Triple &Triple = CGM.getTarget().getTriple(); in EmitImageInfo()
4339 uint64_t Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ModuleTy); in EmitModuleInfo()
4345 GetClassName(&CGM.getContext().Idents.get("")), in EmitModuleInfo()
4426 IdentifierInfo *II = &CGM.getContext().Idents.get("NSAutoreleasePool"); in EmitNSAutoreleasePoolClassRef()
4487 llvm::Type *Ty = CGM.getTypes().ConvertType(QualType(RT, 0)); in BuildAggrIvarRecordLayout()
4489 CGM.getDataLayout().getStructLayout(cast<llvm::StructType>(Ty)); in BuildAggrIvarRecordLayout()
4514 unsigned WordSizeInBits = CGM.getTarget().getPointerWidth(0); in BuildAggrIvarLayout()
4515 unsigned ByteSizeInBits = CGM.getTarget().getCharWidth(); in BuildAggrIvarLayout()
4516 if (!RD && CGM.getLangOpts().ObjCAutoRefCount) { in BuildAggrIvarLayout()
4519 ComputeIvarBaseOffset(CGM, OI, cast<ObjCIvarDecl>(FirstField)); in BuildAggrIvarLayout()
4528 const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD); in BuildAggrIvarLayout()
4532 ComputeIvarBaseOffset(CGM, OI, cast<ObjCIvarDecl>(Field)) - FirstFieldDelta; in BuildAggrIvarLayout()
4553 if (const ArrayType *Array = CGM.getContext().getAsArrayType(FQT)) { in BuildAggrIvarLayout()
4559 while (const ArrayType *Array = CGM.getContext().getAsArrayType(FQT)) { in BuildAggrIvarLayout()
4578 uint64_t Size = CGM.getContext().getTypeSize(RT)/ByteSizeInBits; in BuildAggrIvarLayout()
4591 Qualifiers::GC GCAttr = GetGCAttrTypeForType(CGM.getContext(), FQT); in BuildAggrIvarLayout()
4593 unsigned FieldSize = CGM.getContext().getTypeSize(Field->getType()); in BuildAggrIvarLayout()
4631 = LastFieldBitfieldOrUnnamed->getBitWidthValue(CGM.getContext()); in BuildAggrIvarLayout()
4641 = CGM.getContext().getTypeSize(LastFieldBitfieldOrUnnamed->getType()); in BuildAggrIvarLayout()
4662 llvm::Type *PtrTy = CGM.Int8PtrTy; in BuildIvarLayoutBitmap()
4667 CGM.getTypes().getDataLayout().getTypeAllocSize(PtrTy); in BuildIvarLayoutBitmap()
4806 llvm::Type *PtrTy = CGM.Int8PtrTy; in BuildIvarLayout()
4807 if (CGM.getLangOpts().getGC() == LangOptions::NonGC && in BuildIvarLayout()
4808 !CGM.getLangOpts().ObjCAutoRefCount) in BuildIvarLayout()
4813 if (CGM.getLangOpts().ObjCAutoRefCount) { in BuildIvarLayout()
4820 CGM.getContext().DeepCollectObjCIvars(OI, true, Ivars); in BuildIvarLayout()
4846 if (CGM.getLangOpts().ObjCGCBitmapPrint) { in BuildIvarLayout()
4878 return GetMethodVarName(CGM.getContext().Selectors.getNullarySelector(ID)); in GetMethodVarName()
4883 CGM.getContext().getObjCEncodingForType(Field->getType(), TypeStr, Field); in GetMethodVarType()
4901 if (CGM.getContext().getObjCEncodingForMethodDecl(D, TypeStr, Extended)) in GetMethodVarType()
4936 CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container, TypeStr); in GetPropertyTypeString()
4937 return GetPropertyName(&CGM.getContext().Idents.get(TypeStr)); in GetPropertyTypeString()
4972 CGM.addCompilerUsedGlobal(I->second); in FinishModule()
4982 Asm += CGM.getModule().getModuleInlineAsm(); in FinishModule()
5001 CGM.getModule().setModuleInlineAsm(OS.str()); in FinishModule()
5015 : VMContext(cgm.getLLVMContext()), CGM(cgm), ExternalProtocolPtrTy(nullptr) in ObjCCommonTypesHelper()
5017 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in ObjCCommonTypesHelper()
5018 ASTContext &Ctx = CGM.getContext(); in ObjCCommonTypesHelper()
5024 Int8PtrTy = CGM.Int8PtrTy; in ObjCCommonTypesHelper()
5025 Int8PtrPtrTy = CGM.Int8PtrPtrTy; in ObjCCommonTypesHelper()
5029 if (CGM.getTarget().getTriple().getArch() == llvm::Triple::arm64 || in ObjCCommonTypesHelper()
5030 CGM.getTarget().getTriple().getArch() == llvm::Triple::aarch64) in ObjCCommonTypesHelper()
5276 llvm::Type *StackPtrTy = llvm::ArrayType::get(CGM.Int8PtrTy, 4); in ObjCTypesHelper()
5280 llvm::ArrayType::get(CGM.Int32Ty,SetJmpBufferSize), in ObjCTypesHelper()
5423 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in ObjCNonFragileABITypesHelper()
5424 ASTContext &Ctx = CGM.getContext(); in ObjCNonFragileABITypesHelper()
5502 new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false, in AddModuleClassList()
5507 GV->setAlignment(CGM.getDataLayout().getABITypeAlignment(Init->getType())); in AddModuleClassList()
5509 CGM.addCompilerUsedGlobal(GV); in AddModuleClassList()
5554 switch (CGM.getCodeGenOpts().getObjCDispatchMethod()) { in isVTableDispatchedSelector()
5575 if (CGM.getLangOpts().getGC() != LangOptions::GCOnly) { in isVTableDispatchedSelector()
5591 if (CGM.getLangOpts().getGC() != LangOptions::NonGC) { in isVTableDispatchedSelector()
5597 &CGM.getContext().Idents.get("countByEnumeratingWithState"), in isVTableDispatchedSelector()
5598 &CGM.getContext().Idents.get("objects"), in isVTableDispatchedSelector()
5599 &CGM.getContext().Idents.get("count") in isVTableDispatchedSelector()
5602 CGM.getContext().Selectors.getSelector(3, KeyIdents)); in isVTableDispatchedSelector()
5632 if (CGM.getLangOpts().ObjCAutoRefCount) in BuildClassRoTInitializer()
5693 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassRonfABITy, false, in BuildClassRoTInitializer()
5701 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ClassRonfABITy)); in BuildClassRoTInitializer()
5738 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ClassnfABITy)); in BuildClassMetaData()
5753 CGM.getContext().getASTObjCImplementationLayout(OID); in GetClassSizeInfo()
5762 InstanceStart = RL.getFieldOffset(0) / CGM.getContext().getCharWidth(); in GetClassSizeInfo()
5769 CGM.getModule(), in GenerateClass()
5778 const llvm::Triple &Triple = CGM.getTarget().getTriple(); in GenerateClass()
5784 CGM.getModule(), in GenerateClass()
5795 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ClassnfABITy); in GenerateClass()
5871 if (hasObjCExceptionAttribute(CGM.getContext(), ID->getClassInterface())) in GenerateClass()
5931 llvm::GlobalVariable *PTGV = CGM.getModule().getGlobalVariable(ProtocolName); in GenerateProtocolRef()
5935 CGM.getModule(), in GenerateProtocolRef()
5942 CGM.addCompilerUsedGlobal(PTGV); in GenerateProtocolRef()
6017 = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.CategorynfABITy, in GenerateCategory()
6024 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.CategorynfABITy)); in GenerateCategory()
6026 CGM.addCompilerUsedGlobal(GCATV); in GenerateCategory()
6071 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.MethodTy); in EmitMethodList()
6081 new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false, in EmitMethodList()
6084 GV->setAlignment(CGM.getDataLayout().getABITypeAlignment(Init->getType())); in EmitMethodList()
6086 CGM.addCompilerUsedGlobal(GV); in EmitMethodList()
6099 CGM.getModule().getGlobalVariable(Name); in ObjCIvarOffsetVariable()
6102 CGM.getModule(), ObjCTypes.IvarOffsetVarTy, false, in ObjCIvarOffsetVariable()
6115 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.IvarOffsetVarTy)); in EmitIvarOffsetVar()
6163 ComputeIvarBaseOffset(CGM, ID, IVD)); in EmitIvarList()
6167 CGM.getTypes().ConvertTypeForMem(IVD->getType()); in EmitIvarList()
6168 unsigned Size = CGM.getDataLayout().getTypeAllocSize(FieldTy); in EmitIvarList()
6169 unsigned Align = CGM.getContext().getPreferredTypeAlign( in EmitIvarList()
6186 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.IvarnfABITy); in EmitIvarList()
6195 new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false, in EmitIvarList()
6201 CGM.getDataLayout().getABITypeAlignment(Init->getType())); in EmitIvarList()
6204 CGM.addCompilerUsedGlobal(GV); in EmitIvarList()
6217 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolnfABITy, in GetOrEmitProtocolRef()
6319 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ProtocolnfABITy); in GetOrEmitProtocol()
6334 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolnfABITy, in GetOrEmitProtocol()
6338 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ProtocolnfABITy)); in GetOrEmitProtocol()
6344 CGM.addCompilerUsedGlobal(Entry); in GetOrEmitProtocol()
6349 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolnfABIPtrTy, in GetOrEmitProtocol()
6353 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ProtocolnfABIPtrTy)); in GetOrEmitProtocol()
6356 CGM.addCompilerUsedGlobal(PTGV); in GetOrEmitProtocol()
6382 CGM.getModule().getGlobalVariable(TmpName.str(), true); in EmitProtocolList()
6402 GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false, in EmitProtocolList()
6408 CGM.getDataLayout().getABITypeAlignment(Init->getType())); in EmitProtocolList()
6409 CGM.addCompilerUsedGlobal(GV); in EmitProtocolList()
6462 ->setMetadata(CGM.getModule().getMDKindID("invariant.load"), in EmitIvarOffset()
6534 if (CGM.ReturnSlotInterferesWithArgs(MSI.CallInfo)) { in EmitVTableMessageSend()
6543 } else if (!isSuper && CGM.ReturnTypeUsesFPRet(resultType)) { in EmitVTableMessageSend()
6563 = CGM.getModule().getGlobalVariable(messageRefName); in EmitVTableMessageSend()
6568 messageRef = new llvm::GlobalVariable(CGM.getModule(), in EmitVTableMessageSend()
6580 if (CGM.getLangOpts().ObjCAutoRefCount && method) in EmitVTableMessageSend()
6633 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name); in GetClassGlobal()
6636 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABITy, in GetClassGlobal()
6652 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABIPtrTy, in EmitClassRefFromId()
6657 CGM.getDataLayout().getABITypeAlignment( in EmitClassRefFromId()
6660 CGM.addCompilerUsedGlobal(Entry); in EmitClassRefFromId()
6673 IdentifierInfo *II = &CGM.getContext().Idents.get("NSAutoreleasePool"); in EmitNSAutoreleasePoolClassRef()
6687 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABIPtrTy, in EmitSuperClassRef()
6692 CGM.getDataLayout().getABITypeAlignment( in EmitSuperClassRef()
6695 CGM.addCompilerUsedGlobal(Entry); in EmitSuperClassRef()
6714 Entry = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABIPtrTy, in EmitMetaClassRef()
6719 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ClassnfABIPtrTy)); in EmitMetaClassRef()
6722 CGM.addCompilerUsedGlobal(Entry); in EmitMetaClassRef()
6779 CGM.getTypes().ConvertType(CGF.getContext().getObjCClassType()); in GenerateMessageSendSuper()
6803 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.SelectorPtrTy, false, in EmitSelector()
6808 CGM.addCompilerUsedGlobal(Entry); in EmitSelector()
6816 LI->setMetadata(CGM.getModule().getMDKindID("invariant.load"), in EmitSelector()
6830 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCIvarAssign()
6850 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCStrongCastAssign()
6897 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCWeakAssign()
6918 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCGlobalAssign()
6949 CGM.getModule().getGlobalVariable("OBJC_EHTYPE_id"); in GetEHType()
6952 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.EHTypeTy, in GetEHType()
7008 if (hasObjCExceptionAttribute(CGM.getContext(), ID)) in GetInterfaceEHType()
7010 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.EHTypeTy, false, in GetInterfaceEHType()
7023 CGM.getModule().getGlobalVariable(VTableName); in GetInterfaceEHType()
7025 VTableGV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.Int8PtrTy, in GetInterfaceEHType()
7030 llvm::Value *VTableIdx = llvm::ConstantInt::get(CGM.Int32Ty, 2); in GetInterfaceEHType()
7046 Entry = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.EHTypeTy, false, in GetInterfaceEHType()
7056 Entry->setAlignment(CGM.getDataLayout().getABITypeAlignment( in GetInterfaceEHType()
7070 CodeGen::CreateMacObjCRuntime(CodeGen::CodeGenModule &CGM) { in CreateMacObjCRuntime() argument
7071 switch (CGM.getLangOpts().ObjCRuntime.getKind()) { in CreateMacObjCRuntime()
7073 return new CGObjCMac(CGM); in CreateMacObjCRuntime()
7077 return new CGObjCNonFragileABIMac(CGM); in CreateMacObjCRuntime()