• 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 __anonc21a86420111::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()
247 return CGM.CreateRuntimeFunction(FTy, "objc_getProperty"); in getGetPropertyFn()
251 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getSetPropertyFn()
252 ASTContext &Ctx = CGM.getContext(); in getSetPropertyFn()
266 return CGM.CreateRuntimeFunction(FTy, "objc_setProperty"); in getSetPropertyFn()
270 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getOptimizedSetPropertyFn()
271 ASTContext &Ctx = CGM.getContext(); in getOptimizedSetPropertyFn()
301 return CGM.CreateRuntimeFunction(FTy, name); in getOptimizedSetPropertyFn()
305 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getCopyStructFn()
306 ASTContext &Ctx = CGM.getContext(); in getCopyStructFn()
317 return CGM.CreateRuntimeFunction(FTy, "objc_copyStruct"); in getCopyStructFn()
325 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getCppAtomicObjectFunction()
326 ASTContext &Ctx = CGM.getContext(); in getCppAtomicObjectFunction()
335 return CGM.CreateRuntimeFunction(FTy, "objc_copyCppObjectAtomic"); in getCppAtomicObjectFunction()
339 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getEnumerationMutationFn()
340 ASTContext &Ctx = CGM.getContext(); in getEnumerationMutationFn()
347 return CGM.CreateRuntimeFunction(FTy, "objc_enumerationMutation"); in getEnumerationMutationFn()
351 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in getLookUpClassFn()
352 ASTContext &Ctx = CGM.getContext(); in getLookUpClassFn()
361 return CGM.CreateRuntimeFunction(FTy, "objc_lookUpClass"); in getLookUpClassFn()
370 return CGM.CreateRuntimeFunction(FTy, "objc_read_weak"); in getGcReadWeakFn()
379 return CGM.CreateRuntimeFunction(FTy, "objc_assign_weak"); in getGcAssignWeakFn()
388 return CGM.CreateRuntimeFunction(FTy, "objc_assign_global"); in getGcAssignGlobalFn()
397 return CGM.CreateRuntimeFunction(FTy, "objc_assign_threadlocal"); in getGcAssignThreadLocalFn()
404 CGM.PtrDiffTy }; in getGcAssignIvarFn()
407 return CGM.CreateRuntimeFunction(FTy, "objc_assign_ivar"); in getGcAssignIvarFn()
415 return CGM.CreateRuntimeFunction(FTy, "objc_memmove_collectable"); in GcMemmoveCollectableFn()
424 return CGM.CreateRuntimeFunction(FTy, "objc_assign_strongCast"); in getGcAssignStrongCastFn()
432 llvm::FunctionType::get(CGM.VoidTy, args, false); in getExceptionThrowFn()
433 return CGM.CreateRuntimeFunction(FTy, "objc_exception_throw"); in getExceptionThrowFn()
439 llvm::FunctionType *FTy = llvm::FunctionType::get(CGM.VoidTy, false); in getExceptionRethrowFn()
440 return CGM.CreateRuntimeFunction(FTy, "objc_exception_rethrow"); in getExceptionRethrowFn()
448 llvm::FunctionType::get(CGM.IntTy, args, false); in getSyncEnterFn()
449 return CGM.CreateRuntimeFunction(FTy, "objc_sync_enter"); in getSyncEnterFn()
457 llvm::FunctionType::get(CGM.IntTy, args, false); in getSyncExitFn()
458 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()
589 llvm::Type *params[] = { CGM.Int32Ty->getPointerTo() }; in getSetJmpFn()
591 CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.Int32Ty, in getSetJmpFn()
594 llvm::AttributeSet::get(CGM.getLLVMContext(), in getSetJmpFn()
678 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendFixupFn()
686 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendFpretFixupFn()
694 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendStretFixupFn()
703 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendSuper2FixupFn()
712 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, in getMessageSendSuper2StretFixupFn()
718 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.VoidTy, false), in getObjCEndCatchFn()
725 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(Int8PtrTy, in getObjCBeginCatchFn()
1063 llvm::Constant *BuildGCBlockLayout(CodeGen::CodeGenModule &CGM,
1065 llvm::Constant *BuildRCBlockLayout(CodeGen::CodeGenModule &CGM,
1068 llvm::Constant *BuildByrefLayout(CodeGen::CodeGenModule &CGM,
1419 IdentifierInfo* II = &CGM.getContext().Idents.get(name); in GetNullarySelector()
1420 return CGM.getContext().Selectors.getSelector(0, &II); in GetNullarySelector()
1424 IdentifierInfo* II = &CGM.getContext().Idents.get(name); in GetUnarySelector()
1425 return CGM.getContext().Selectors.getSelector(1, &II); in GetUnarySelector()
1632 llvm::Constant *null = CGF.CGM.EmitNullConstant(resultType); in complete()
1731 return CGM.GetAddrOfRTTIDescriptor( in GetEHType()
1732 CGM.getContext().getObjCIdRedefinitionType(), /*ForEH=*/true); in GetEHType()
1736 return CGM.GetAddrOfRTTIDescriptor( in GetEHType()
1737 CGM.getContext().getObjCClassRedefinitionType(), /*ForEH=*/true); in GetEHType()
1740 return CGM.GetAddrOfRTTIDescriptor(T, /*ForEH=*/true); in GetEHType()
1766 return (CGM.getLangOpts().NoConstantCFStrings == 0 ? in GenerateConstantString()
1767 CGM.GetAddrOfConstantCFString(SL) : in GenerateConstantString()
1768 CGM.GetAddrOfConstantString(SL)); in GenerateConstantString()
1831 CGM.getTypes().ConvertType(CGF.getContext().getObjCClassType()); in GenerateMessageSendSuper()
1888 assert(CGM.getContext().getCanonicalType(Method->getReturnType()) == in EmitMessageSend()
1889 CGM.getContext().getCanonicalType(ResultType) && in EmitMessageSend()
1922 if (CGM.ReturnSlotInterferesWithArgs(MSI.CallInfo)) { in EmitMessageSend()
1926 } else if (CGM.ReturnTypeUsesFPRet(ResultType)) { in EmitMessageSend()
1929 } else if (CGM.ReturnTypeUsesFP2Ret(ResultType)) { in EmitMessageSend()
1935 if (ReceiverCanBeNull && CGM.ReturnTypeUsesSRet(MSI.CallInfo)) in EmitMessageSend()
1943 if (ReceiverCanBeNull && CGM.getLangOpts().ObjCAutoRefCount && Method) { in EmitMessageSend()
2021 CodeGenModule &CGM; member in __anonc21a86420311::IvarLayoutBuilder
2039 IvarLayoutBuilder(CodeGenModule &CGM, CharUnits instanceBegin, in IvarLayoutBuilder() argument
2041 : CGM(CGM), InstanceBegin(instanceBegin), InstanceEnd(instanceEnd), in IvarLayoutBuilder()
2075 llvm::Constant *CGObjCCommonMac::BuildGCBlockLayout(CodeGenModule &CGM, in BuildGCBlockLayout() argument
2078 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildGCBlockLayout()
2079 if (CGM.getLangOpts().getGC() == LangOptions::NonGC) in BuildGCBlockLayout()
2082 IvarLayoutBuilder builder(CGM, CharUnits::Zero(), blockInfo.BlockSize, in BuildGCBlockLayout()
2092 if (CGM.getLangOpts().ObjCGCBitmapPrint && !buffer.empty()) { in BuildGCBlockLayout()
2142 Qualifiers::GC GCAttr = GetGCAttrTypeForType(CGM.getContext(), type); in visitBlock()
2145 assert(CGM.getContext().getTypeSize(type) in visitBlock()
2146 == CGM.getTarget().getPointerWidth(0)); in visitBlock()
2162 if (CGM.getLangOpts().ObjCAutoRefCount) in getBlockCaptureLifetime()
2209 unsigned ByteSizeInBits = CGM.getTarget().getCharWidth(); in BuildRCRecordLayout()
2215 const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD); in BuildRCRecordLayout()
2217 CGM.getContext().toCharUnitsFromBits(RL.getFieldOffset(i)); in BuildRCRecordLayout()
2237 if (const ArrayType *Array = CGM.getContext().getAsArrayType(FQT)) { in BuildRCRecordLayout()
2243 while (const ArrayType *Array = CGM.getContext().getAsArrayType(FQT)) { in BuildRCRecordLayout()
2259 CharUnits Size = CGM.getContext().getTypeSizeInChars(RT); in BuildRCRecordLayout()
2269 CharUnits FieldSize = CGM.getContext().getTypeSizeInChars(Field->getType()); in BuildRCRecordLayout()
2289 = LastFieldBitfieldOrUnnamed->getBitWidthValue(CGM.getContext()); in BuildRCRecordLayout()
2303 = CGM.getContext().getTypeSizeInChars(LastFieldBitfieldOrUnnamed->getType()); in BuildRCRecordLayout()
2325 llvm::Type *Ty = CGM.getTypes().ConvertType(QualType(RT, 0)); in BuildRCBlockVarRecordLayout()
2327 CGM.getDataLayout().getStructLayout(cast<llvm::StructType>(Ty)); in BuildRCBlockVarRecordLayout()
2439 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in getBitmapBlockLayout()
2442 unsigned WordSizeInBits = CGM.getTarget().getPointerWidth(0); in getBitmapBlockLayout()
2443 unsigned ByteSizeInBits = CGM.getTarget().getCharWidth(); in getBitmapBlockLayout()
2513 if (CGM.getLangOpts().ObjCGCBitmapPrint) { in getBitmapBlockLayout()
2527 return llvm::ConstantInt::get(CGM.IntPtrTy, Result); in getBitmapBlockLayout()
2536 if (CGM.getLangOpts().ObjCGCBitmapPrint) { in getBitmapBlockLayout()
2586 llvm::Constant *CGObjCCommonMac::BuildRCBlockLayout(CodeGenModule &CGM, in BuildRCBlockLayout() argument
2588 assert(CGM.getLangOpts().getGC() == LangOptions::NonGC); in BuildRCBlockLayout()
2593 unsigned WordSizeInBits = CGM.getTarget().getPointerWidth(0); in BuildRCBlockLayout()
2594 unsigned ByteSizeInBits = CGM.getTarget().getCharWidth(); in BuildRCBlockLayout()
2601 CGM.getDataLayout().getStructLayout(blockInfo.StructureType); in BuildRCBlockLayout()
2632 fieldSize = CGM.getContext().getTypeSizeInChars(type); in BuildRCBlockLayout()
2639 llvm::Constant *CGObjCCommonMac::BuildByrefLayout(CodeGen::CodeGenModule &CGM, in BuildByrefLayout() argument
2641 assert(CGM.getLangOpts().getGC() == LangOptions::NonGC); in BuildByrefLayout()
2650 Result = llvm::ConstantExpr::getIntToPtr(Result, CGM.Int8PtrTy); in BuildByrefLayout()
2653 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy); in BuildByrefLayout()
2661 LazySymbols.insert(&CGM.getContext().Idents.get("Protocol")); in GenerateProtocolRef()
2693 CGF.CGM.GetAddrOfConstantCString(ID->getObjCRuntimeNameAsString()) in EmitClassRefViaRuntime()
2695 ASTContext &ctx = CGF.CGM.getContext(); in EmitClassRefViaRuntime()
2730 LazySymbols.insert(&CGM.getContext().Idents.get("Protocol")); in GetOrEmitProtocol()
2787 Entry = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolTy, in GetOrEmitProtocol()
2796 CGM.addCompilerUsedGlobal(Entry); in GetOrEmitProtocol()
2808 Entry = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolTy, in GetOrEmitProtocolRef()
2835 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ProtocolExtensionTy); in EmitProtocolExtension()
2862 StringRef(), CGM.getPointerAlign(), true); in EmitProtocolExtension()
2901 CGM.getPointerAlign(), false); in EmitProtocolList()
2949 const llvm::Triple &Triple = CGM.getTarget().getTriple(); in EmitPropertyList()
2998 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.PropertyTy); in EmitPropertyList()
3011 CGM.getPointerAlign(), in EmitPropertyList()
3030 CGM.getPointerAlign(), true); in EmitProtocolMethodTypes()
3069 CreateMetadataVar(Name, Init, Section, CGM.getPointerAlign(), true); in EmitMethodDescList()
3087 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.CategoryTy); in GenerateCategory()
3146 CGM.getPointerAlign(), true); in GenerateCategory()
3222 static bool hasMRCWeakIvars(CodeGenModule &CGM, in hasMRCWeakIvars() argument
3224 if (!CGM.getLangOpts().ObjCWeak) return false; in hasMRCWeakIvars()
3225 assert(CGM.getLangOpts().getGC() == LangOptions::NonGC); in hasMRCWeakIvars()
3273 if (CGM.getLangOpts().ObjCAutoRefCount) in GenerateClass()
3275 else if ((hasMRCWeak = hasMRCWeakIvars(CGM, ID))) in GenerateClass()
3279 CGM.getContext().getASTObjCImplementationLayout(ID).getSize(); in GenerateClass()
3340 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); in GenerateClass()
3346 GV->setAlignment(CGM.getPointerAlign().getQuantity()); in GenerateClass()
3347 CGM.addCompilerUsedGlobal(GV); in GenerateClass()
3349 GV = CreateMetadataVar(Name, Init, Section, CGM.getPointerAlign(), true); in GenerateClass()
3360 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ClassTy); in EmitMetaClass()
3407 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); in EmitMetaClass()
3413 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false, in EmitMetaClass()
3419 CGM.addCompilerUsedGlobal(GV); in EmitMetaClass()
3435 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); in EmitMetaClassRef()
3437 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false, in EmitMetaClassRef()
3448 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name, true); in EmitSuperClassRef()
3451 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false, in EmitSuperClassRef()
3476 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ClassExtensionTy); in EmitClassExtension()
3481 llvm::Type *PtrTy = CGM.Int8PtrTy; in EmitClassExtension()
3501 CGM.getPointerAlign(), true); in EmitClassExtension()
3539 ComputeIvarBaseOffset(CGM, OID, IVD)) in EmitIvarList()
3560 CGM.getPointerAlign(), true); in EmitIvarList()
3564 CGM.getPointerAlign(), true); in EmitIvarList()
3614 CreateMetadataVar(Name, Init, Section, CGM.getPointerAlign(), true); in EmitMethodList()
3623 CodeGenTypes &Types = CGM.getTypes(); in GenerateMethod()
3630 &CGM.getModule()); in GenerateMethod()
3643 new llvm::GlobalVariable(CGM.getModule(), Ty, false, in CreateMetadataVar()
3649 CGM.addCompilerUsedGlobal(GV); in CreateMetadataVar()
4391 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCWeakAssign()
4412 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCGlobalAssign()
4438 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCIvarAssign()
4457 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCStrongCastAssign()
4496 uint64_t Offset = ComputeIvarBaseOffset(CGM, Interface, Ivar); in EmitIvarOffset()
4498 CGM.getTypes().ConvertType(CGM.getContext().LongTy), in EmitIvarOffset()
4533 llvm::Module &Mod = CGM.getModule(); in EmitImageInfo()
4542 if (CGM.getLangOpts().getGC() == LangOptions::NonGC) { in EmitImageInfo()
4552 if (CGM.getLangOpts().getGC() == LangOptions::GCOnly) { in EmitImageInfo()
4568 const llvm::Triple &Triple = CGM.getTarget().getTriple(); in EmitImageInfo()
4591 uint64_t Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ModuleTy); in EmitModuleInfo()
4603 CGM.getPointerAlign(), true); in EmitModuleInfo()
4648 CGM.getPointerAlign(), true); in EmitModuleSymbols()
4665 CGM.getPointerAlign(), true); in EmitClassRefFromId()
4682 IdentifierInfo *II = &CGM.getContext().Idents.get("NSAutoreleasePool"); in EmitNSAutoreleasePoolClassRef()
4748 recLayout = &CGM.getContext().getASTRecordLayout(RD); in visitRecord()
4750 return CGM.getContext().toCharUnitsFromBits(offsetInBits); in visitRecord()
4780 while (auto arrayType = CGM.getContext().getAsConstantArrayType(fieldType)) { in visitField()
4800 CharUnits eltSize = CGM.getContext().getTypeSizeInChars(recType); in visitField()
4816 Qualifiers::GC GCAttr = GetGCAttrTypeForType(CGM.getContext(), fieldType); in visitField()
4821 assert(CGM.getContext().getTypeSizeInChars(fieldType) in visitField()
4822 == CGM.getPointerSize()); in visitField()
4904 const CharUnits WordSize = CGM.getPointerSize(); in buildBitmap()
4947 return llvm::ConstantPointerNull::get(CGM.Int8PtrTy); in buildBitmap()
4952 if (CGM.getLangOpts().getGC() != LangOptions::NonGC) { in buildBitmap()
4967 llvm::ConstantDataArray::get(CGM.getLLVMContext(), buffer), in buildBitmap()
4971 return getConstantGEP(CGM.getLLVMContext(), Entry, 0, 0); in buildBitmap()
4996 llvm::Type *PtrTy = CGM.Int8PtrTy; in BuildIvarLayout()
4997 if (CGM.getLangOpts().getGC() == LangOptions::NonGC && in BuildIvarLayout()
4998 !CGM.getLangOpts().ObjCAutoRefCount && in BuildIvarLayout()
5016 if (CGM.getLangOpts().getGC() == LangOptions::NonGC) { in BuildIvarLayout()
5025 CharUnits::fromQuantity(ComputeIvarBaseOffset(CGM, OMD, ivars[0])); in BuildIvarLayout()
5030 baseOffset = baseOffset.alignTo(CGM.getPointerAlign()); in BuildIvarLayout()
5033 CGM.getContext().DeepCollectObjCIvars(OI, true, ivars); in BuildIvarLayout()
5041 IvarLayoutBuilder builder(CGM, baseOffset, endOffset, ForStrongLayout); in BuildIvarLayout()
5045 return CharUnits::fromQuantity(ComputeIvarBaseOffset(CGM, OMD, ivar)); in BuildIvarLayout()
5054 if (CGM.getLangOpts().ObjCGCBitmapPrint && !buffer.empty()) { in BuildIvarLayout()
5080 return GetMethodVarName(CGM.getContext().Selectors.getNullarySelector(ID)); in GetMethodVarName()
5085 CGM.getContext().getObjCEncodingForType(Field->getType(), TypeStr, Field); in GetMethodVarType()
5103 if (CGM.getContext().getObjCEncodingForMethodDecl(D, TypeStr, Extended)) in GetMethodVarType()
5138 CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container, TypeStr); in GetPropertyTypeString()
5139 return GetPropertyName(&CGM.getContext().Idents.get(TypeStr)); in GetPropertyTypeString()
5173 CGM.addCompilerUsedGlobal(I->second); in FinishModule()
5183 Asm += CGM.getModule().getModuleInlineAsm(); in FinishModule()
5202 CGM.getModule().setModuleInlineAsm(OS.str()); in FinishModule()
5215 : VMContext(cgm.getLLVMContext()), CGM(cgm), ExternalProtocolPtrTy(nullptr) in ObjCCommonTypesHelper()
5217 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in ObjCCommonTypesHelper()
5218 ASTContext &Ctx = CGM.getContext(); in ObjCCommonTypesHelper()
5224 Int8PtrTy = CGM.Int8PtrTy; in ObjCCommonTypesHelper()
5225 Int8PtrPtrTy = CGM.Int8PtrPtrTy; in ObjCCommonTypesHelper()
5229 if (CGM.getTarget().getTriple().getArch() == llvm::Triple::aarch64) in ObjCCommonTypesHelper()
5477 llvm::Type *StackPtrTy = llvm::ArrayType::get(CGM.Int8PtrTy, 4); in ObjCTypesHelper()
5481 llvm::ArrayType::get(CGM.Int32Ty,SetJmpBufferSize), in ObjCTypesHelper()
5631 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in ObjCNonFragileABITypesHelper()
5632 ASTContext &Ctx = CGM.getContext(); in ObjCNonFragileABITypesHelper()
5709 new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false, in AddModuleClassList()
5713 GV->setAlignment(CGM.getDataLayout().getABITypeAlignment(Init->getType())); in AddModuleClassList()
5715 CGM.addCompilerUsedGlobal(GV); in AddModuleClassList()
5758 switch (CGM.getCodeGenOpts().getObjCDispatchMethod()) { in isVTableDispatchedSelector()
5779 if (CGM.getLangOpts().getGC() != LangOptions::GCOnly) { in isVTableDispatchedSelector()
5795 if (CGM.getLangOpts().getGC() != LangOptions::NonGC) { in isVTableDispatchedSelector()
5801 &CGM.getContext().Idents.get("countByEnumeratingWithState"), in isVTableDispatchedSelector()
5802 &CGM.getContext().Idents.get("objects"), in isVTableDispatchedSelector()
5803 &CGM.getContext().Idents.get("count") in isVTableDispatchedSelector()
5806 CGM.getContext().Selectors.getSelector(3, KeyIdents)); in isVTableDispatchedSelector()
5840 if (CGM.getLangOpts().ObjCAutoRefCount) in BuildClassRoTInitializer()
5842 else if ((hasMRCWeak = hasMRCWeakIvars(CGM, ID))) in BuildClassRoTInitializer()
5909 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassRonfABITy, false, in BuildClassRoTInitializer()
5916 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ClassRonfABITy)); in BuildClassRoTInitializer()
5953 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ClassnfABITy)); in BuildClassMetaData()
5968 CGM.getContext().getASTObjCImplementationLayout(OID); in GetClassSizeInfo()
5977 InstanceStart = RL.getFieldOffset(0) / CGM.getContext().getCharWidth(); in GetClassSizeInfo()
5984 CGM.getModule(), ObjCTypes.CacheTy, false, in GenerateClass()
5988 const llvm::Triple &Triple = CGM.getTarget().getTriple(); in GenerateClass()
5991 CGM.getModule(), ObjCTypes.ImpnfABITy, false, in GenerateClass()
5998 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ClassnfABITy); in GenerateClass()
6077 if (hasObjCExceptionAttribute(CGM.getContext(), ID->getClassInterface())) in GenerateClass()
6140 llvm::GlobalVariable *PTGV = CGM.getModule().getGlobalVariable(ProtocolName); in GenerateProtocolRef()
6144 CGM.getModule(), in GenerateProtocolRef()
6152 CGM.addCompilerUsedGlobal(PTGV); in GenerateProtocolRef()
6238 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.CategorynfABITy); in GenerateCategory()
6245 = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.CategorynfABITy, in GenerateCategory()
6251 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.CategorynfABITy)); in GenerateCategory()
6253 CGM.addCompilerUsedGlobal(GCATV); in GenerateCategory()
6297 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.MethodTy); in EmitMethodList()
6307 new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false, in EmitMethodList()
6309 GV->setAlignment(CGM.getDataLayout().getABITypeAlignment(Init->getType())); in EmitMethodList()
6311 CGM.addCompilerUsedGlobal(GV); in EmitMethodList()
6327 CGM.getModule().getGlobalVariable(Name); in ObjCIvarOffsetVariable()
6330 CGM.getModule(), ObjCTypes.IvarOffsetVarTy, false, in ObjCIvarOffsetVariable()
6343 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.IvarOffsetVarTy)); in EmitIvarOffsetVar()
6391 ComputeIvarBaseOffset(CGM, ID, IVD)); in EmitIvarList()
6395 CGM.getTypes().ConvertTypeForMem(IVD->getType()); in EmitIvarList()
6396 unsigned Size = CGM.getDataLayout().getTypeAllocSize(FieldTy); in EmitIvarList()
6397 unsigned Align = CGM.getContext().getPreferredTypeAlign( in EmitIvarList()
6414 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.IvarnfABITy); in EmitIvarList()
6423 new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false, in EmitIvarList()
6428 CGM.getDataLayout().getABITypeAlignment(Init->getType())); in EmitIvarList()
6431 CGM.addCompilerUsedGlobal(GV); in EmitIvarList()
6444 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolnfABITy, in GetOrEmitProtocolRef()
6547 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ProtocolnfABITy); in GetOrEmitProtocol()
6569 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolnfABITy, in GetOrEmitProtocol()
6573 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ProtocolnfABITy)); in GetOrEmitProtocol()
6578 CGM.addCompilerUsedGlobal(Entry); in GetOrEmitProtocol()
6583 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolnfABIPtrTy, in GetOrEmitProtocol()
6587 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ProtocolnfABIPtrTy)); in GetOrEmitProtocol()
6590 CGM.addCompilerUsedGlobal(PTGV); in GetOrEmitProtocol()
6616 CGM.getModule().getGlobalVariable(TmpName.str(), true); in EmitProtocolList()
6636 GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false, in EmitProtocolList()
6641 CGM.getDataLayout().getABITypeAlignment(Init->getType())); in EmitProtocolList()
6642 CGM.addCompilerUsedGlobal(GV); in EmitProtocolList()
6696 ->setMetadata(CGM.getModule().getMDKindID("invariant.load"), in EmitIvarOffset()
6768 if (CGM.ReturnSlotInterferesWithArgs(MSI.CallInfo)) { in EmitVTableMessageSend()
6777 } else if (!isSuper && CGM.ReturnTypeUsesFPRet(resultType)) { in EmitVTableMessageSend()
6797 = CGM.getModule().getGlobalVariable(messageRefName); in EmitVTableMessageSend()
6802 messageRef = new llvm::GlobalVariable(CGM.getModule(), in EmitVTableMessageSend()
6814 if (CGM.getLangOpts().ObjCAutoRefCount && method) in EmitVTableMessageSend()
6869 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name); in GetClassGlobal()
6872 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABITy, in GetClassGlobal()
6890 Entry = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABIPtrTy, in EmitClassRefFromId()
6895 CGM.addCompilerUsedGlobal(Entry); in EmitClassRefFromId()
6912 IdentifierInfo *II = &CGM.getContext().Idents.get("NSAutoreleasePool"); in EmitNSAutoreleasePoolClassRef()
6927 Entry = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABIPtrTy, in EmitSuperClassRef()
6932 CGM.addCompilerUsedGlobal(Entry); in EmitSuperClassRef()
6951 Entry = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABIPtrTy, in EmitMetaClassRef()
6957 CGM.addCompilerUsedGlobal(Entry); in EmitMetaClassRef()
7015 CGM.getTypes().ConvertType(CGF.getContext().getObjCClassType()); in GenerateMessageSendSuper()
7035 LI->setMetadata(CGM.getModule().getMDKindID("invariant.load"), in EmitSelector()
7049 Entry = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.SelectorPtrTy, in EmitSelectorAddr()
7055 CGM.addCompilerUsedGlobal(Entry); in EmitSelectorAddr()
7070 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCIvarAssign()
7090 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCStrongCastAssign()
7136 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCWeakAssign()
7157 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy); in EmitObjCGlobalAssign()
7188 CGM.getModule().getGlobalVariable("OBJC_EHTYPE_id"); in GetEHType()
7191 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.EHTypeTy, in GetEHType()
7247 if (hasObjCExceptionAttribute(CGM.getContext(), ID)) in GetInterfaceEHType()
7249 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.EHTypeTy, false, in GetInterfaceEHType()
7263 CGM.getModule().getGlobalVariable(VTableName); in GetInterfaceEHType()
7265 VTableGV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.Int8PtrTy, in GetInterfaceEHType()
7270 llvm::Value *VTableIdx = llvm::ConstantInt::get(CGM.Int32Ty, 2); in GetInterfaceEHType()
7288 Entry = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.EHTypeTy, false, in GetInterfaceEHType()
7297 Entry->setAlignment(CGM.getDataLayout().getABITypeAlignment( in GetInterfaceEHType()
7309 CodeGen::CreateMacObjCRuntime(CodeGen::CodeGenModule &CGM) { in CreateMacObjCRuntime() argument
7310 switch (CGM.getLangOpts().ObjCRuntime.getKind()) { in CreateMacObjCRuntime()
7312 return new CGObjCMac(CGM); in CreateMacObjCRuntime()
7317 return new CGObjCNonFragileABIMac(CGM); in CreateMacObjCRuntime()