Home | History | Annotate | Download | only in CodeGen

Lines Matching defs:CGM

65       CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,
68 llvm::AttributeSet::get(CGM.getLLVMContext(),
80 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.VoidTy,
93 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.DoubleTy,
110 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(resultType,
122 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,
133 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,
144 return CGM.CreateRuntimeFunction(
145 llvm::FunctionType::get(CGM.VoidTy, params, true),
155 return CGM.CreateRuntimeFunction(
156 llvm::FunctionType::get(CGM.VoidTy, params, true),
171 CodeGen::CodeGenModule &CGM;
196 CodeGen::CodeGenTypes &Types = CGM.getTypes();
197 ASTContext &Ctx = CGM.getContext();
234 CodeGen::CodeGenTypes &Types = CGM.getTypes();
235 ASTContext &Ctx = CGM.getContext();
248 return CGM.CreateRuntimeFunction(FTy, "objc_getProperty");
252 CodeGen::CodeGenTypes &Types = CGM.getTypes();
253 ASTContext &Ctx = CGM.getContext();
268 return CGM.CreateRuntimeFunction(FTy, "objc_setProperty");
272 CodeGen::CodeGenTypes &Types = CGM.getTypes();
273 ASTContext &Ctx = CGM.getContext();
304 return CGM.CreateRuntimeFunction(FTy, name);
308 CodeGen::CodeGenTypes &Types = CGM.getTypes();
309 ASTContext &Ctx = CGM.getContext();
321 return CGM.CreateRuntimeFunction(FTy, "objc_copyStruct");
329 CodeGen::CodeGenTypes &Types = CGM.getTypes();
330 ASTContext &Ctx = CGM.getContext();
340 return CGM.CreateRuntimeFunction(FTy, "objc_copyCppObjectAtomic");
344 CodeGen::CodeGenTypes &Types = CGM.getTypes();
345 ASTContext &Ctx = CGM.getContext();
353 return CGM.CreateRuntimeFunction(FTy, "objc_enumerationMutation");
362 return CGM.CreateRuntimeFunction(FTy, "objc_read_weak");
371 return CGM.CreateRuntimeFunction(FTy, "objc_assign_weak");
380 return CGM.CreateRuntimeFunction(FTy, "objc_assign_global");
389 return CGM.CreateRuntimeFunction(FTy, "objc_assign_threadlocal");
396 CGM.PtrDiffTy };
399 return CGM.CreateRuntimeFunction(FTy, "objc_assign_ivar");
407 return CGM.CreateRuntimeFunction(FTy, "objc_memmove_collectable");
416 return CGM.CreateRuntimeFunction(FTy, "objc_assign_strongCast");
424 llvm::FunctionType::get(CGM.VoidTy, args, false);
425 return CGM.CreateRuntimeFunction(FTy, "objc_exception_throw");
431 llvm::FunctionType *FTy = llvm::FunctionType::get(CGM.VoidTy, false);
432 return CGM.CreateRuntimeFunction(FTy, "objc_exception_rethrow");
440 llvm::FunctionType::get(CGM.IntTy, args, false);
441 return CGM.CreateRuntimeFunction(FTy, "objc_sync_enter");
449 llvm::FunctionType::get(CGM.IntTy, args, false);
450 return CGM.CreateRuntimeFunction(FTy, "objc_sync_exit");
485 ObjCCommonTypesHelper(CodeGen::CodeGenModule &cgm);
550 return CGM.CreateRuntimeFunction(
551 llvm::FunctionType::get(CGM.VoidTy, params, false),
558 return CGM.CreateRuntimeFunction(
559 llvm::FunctionType::get(CGM.VoidTy, params, false),
566 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,
574 return CGM.CreateRuntimeFunction(
575 llvm::FunctionType::get(CGM.Int32Ty, params, false),
583 llvm::Type *params[] = { CGM.Int32Ty->getPointerTo() };
585 CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.Int32Ty,
588 llvm::AttributeSet::get(CGM.getLLVMContext(),
594 ObjCTypesHelper(CodeGen::CodeGenModule &cgm);
677 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,
685 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,
693 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,
702 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,
711 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy,
717 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.VoidTy, false),
724 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(Int8PtrTy,
732 ObjCNonFragileABITypesHelper(CodeGen::CodeGenModule &cgm);
1037 CGObjCCommonMac(CodeGen::CodeGenModule &cgm) :
1038 CGObjCRuntime(cgm), VMContext(cgm.getLLVMContext()) { }
1057 virtual llvm::Constant *BuildGCBlockLayout(CodeGen::CodeGenModule &CGM,
1059 virtual llvm::Constant *BuildRCBlockLayout(CodeGen::CodeGenModule &CGM,
1062 virtual llvm::Constant *BuildByrefLayout(CodeGen::CodeGenModule &CGM,
1177 CGObjCMac(CodeGen::CodeGenModule &cgm);
1422 IdentifierInfo* II = &CGM.getContext().Idents.get(name);
1423 return CGM.getContext().Selectors.getSelector(0, &II);
1427 IdentifierInfo* II = &CGM.getContext().Idents.get(name);
1428 return CGM.getContext().Selectors.getSelector(1, &II);
1455 CGObjCNonFragileABIMac(CodeGen::CodeGenModule &cgm);
1638 llvm::Constant *null = CGF.CGM.EmitNullConstant(resultType);
1710 CGObjCMac::CGObjCMac(CodeGen::CodeGenModule &cgm) : CGObjCCommonMac(cgm),
1711 ObjCTypes(cgm) {
1736 return CGM.GetAddrOfRTTIDescriptor(
1737 CGM.getContext().getObjCIdRedefinitionType(), /*ForEH=*/true);
1741 return CGM.GetAddrOfRTTIDescriptor(
1742 CGM.getContext().getObjCClassRedefinitionType(), /*ForEH=*/true);
1745 return CGM.GetAddrOfRTTIDescriptor(T, /*ForEH=*/true);
1771 return (CGM.getLangOpts().NoConstantCFStrings == 0 ?
1772 CGM.GetAddrOfConstantCFString(SL) :
1773 CGM.GetAddrOfConstantString(SL));
1833 CGM.getTypes().ConvertType(CGF.getContext().getObjCClassType());
1880 assert(CGM.getContext().getCanonicalType(Method->getResultType()) ==
1881 CGM.getContext().getCanonicalType(ResultType) &&
1887 if (CGM.ReturnTypeUsesSRet(MSI.CallInfo)) {
1891 } else if (CGM.ReturnTypeUsesFPRet(ResultType)) {
1894 } else if (CGM.ReturnTypeUsesFP2Ret(ResultType)) {
1903 if (CGM.getLangOpts().ObjCAutoRefCount && Method)
1941 llvm::Constant *CGObjCCommonMac::BuildGCBlockLayout(CodeGenModule &CGM,
1944 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy);
1945 if (CGM.getLangOpts().getGC() == LangOptions::NonGC &&
1946 !CGM.getLangOpts().ObjCAutoRefCount)
1952 unsigned WordSizeInBits = CGM.getContext().getTargetInfo().getPointerWidth(0);
1953 unsigned ByteSizeInBits = CGM.getContext().getTargetInfo().getCharWidth();
1963 CGM.getDataLayout().getStructLayout(blockInfo.StructureType);
1993 Qualifiers::GC GCAttr = GetGCAttrTypeForType(CGM.getContext(), type);
1994 unsigned fieldSize = CGM.getContext().getTypeSize(type);
2014 if (CGM.getLangOpts().ObjCGCBitmapPrint) {
2033 if (CGM.getLangOpts().ObjCAutoRefCount)
2080 unsigned ByteSizeInBits = CGM.getContext().getTargetInfo().getCharWidth();
2086 const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD);
2088 CGM.getContext().toCharUnitsFromBits(RL.getFieldOffset(i));
2108 if (const ArrayType *Array = CGM.getContext().getAsArrayType(FQT)) {
2114 while (const ArrayType *Array = CGM.getContext().getAsArrayType(FQT)) {
2133 CharUnits Size = CGM.getContext().getTypeSizeInChars(RT);
2143 CharUnits FieldSize = CGM.getContext().getTypeSizeInChars(Field->getType());
2163 = LastFieldBitfieldOrUnnamed->getBitWidthValue(CGM.getContext());
2177 = CGM.getContext().getTypeSizeInChars(LastFieldBitfieldOrUnnamed->getType());
2202 llvm::Type *Ty = CGM.getTypes().ConvertType(QualType(RT, 0));
2204 CGM.getDataLayout().getStructLayout(cast<llvm::StructType>(Ty));
2316 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy);
2319 unsigned WordSizeInBits = CGM.getContext().getTargetInfo().getPointerWidth(0);
2320 unsigned ByteSizeInBits = CGM.getContext().getTargetInfo().getCharWidth();
2391 if (CGM.getLangOpts().ObjCGCBitmapPrint) {
2400 return llvm::Constant::getIntegerValue(CGM.Int64Ty, Instruction);
2404 return llvm::Constant::getIntegerValue(CGM.Int32Ty, Instruction);
2414 if (CGM.getLangOpts().ObjCGCBitmapPrint) {
2464 llvm::Constant *CGObjCCommonMac::BuildRCBlockLayout(CodeGenModule &CGM,
2466 assert(CGM.getLangOpts().getGC() == LangOptions::NonGC);
2471 unsigned WordSizeInBits = CGM.getContext().getTargetInfo().getPointerWidth(0);
2472 unsigned ByteSizeInBits = CGM.getContext().getTargetInfo().getCharWidth();
2479 CGM.getDataLayout().getStructLayout(blockInfo.StructureType);
2511 fieldSize = CGM.getContext().getTypeSizeInChars(type);
2519 llvm::Constant *CGObjCCommonMac::BuildByrefLayout(CodeGen::CodeGenModule &CGM,
2521 assert(CGM.getLangOpts().getGC() == LangOptions::NonGC);
2531 llvm::Constant *nullPtr = llvm::Constant::getNullValue(CGM.Int8PtrTy);
2539 LazySymbols.insert(&CGM.getContext().Idents.get("Protocol"));
2589 LazySymbols.insert(&CGM.getContext().Idents.get("Protocol"));
2653 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolTy, false,
2663 CGM.AddUsedGlobal(Entry);
2676 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolTy, false,
2703 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ProtocolExtensionTy);
2843 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.PropertyTy);
2932 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.CategoryTy);
3068 CGM.getContext().getASTObjCImplementationLayout(ID).getSize().getQuantity();
3135 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name);
3143 CGM.AddUsedGlobal(GV);
3156 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ClassTy);
3203 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name);
3210 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false,
3216 CGM.AddUsedGlobal(GV);
3232 if (llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name,
3240 return new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false,
3250 if (llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name,
3256 return new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false,
3273 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ClassExtensionTy);
3327 ComputeIvarBaseOffset(CGM, OID, IVD))
3410 CodeGenTypes &Types = CGM.getTypes();
3417 &CGM.getModule());
3431 new llvm::GlobalVariable(CGM.getModule(), Ty, false,
3438 CGM.AddUsedGlobal(GV);
4166 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy);
4188 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy);
4215 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy);
4235 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy);
4275 uint64_t Offset = ComputeIvarBaseOffset(CGM, Interface, Ivar);
4277 CGM.getTypes().ConvertType(CGM.getContext().LongTy),
4311 llvm::Module &Mod = CGM.getModule();
4320 if (CGM.getLangOpts().getGC() == LangOptions::NonGC) {
4330 if (CGM.getLangOpts().getGC() == LangOptions::GCOnly) {
4347 const llvm::Triple &Triple = CGM.getTarget().getTriple();
4366 uint64_t Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ModuleTy);
4372 GetClassName(&CGM.getContext().Idents.get("")),
4445 IdentifierInfo *II = &CGM.getContext().Idents.get("NSAutoreleasePool");
4510 llvm::Type *Ty = CGM.getTypes().ConvertType(QualType(RT, 0));
4512 CGM.getDataLayout().getStructLayout(cast<llvm::StructType>(Ty));
4537 unsigned WordSizeInBits = CGM.getContext().getTargetInfo().getPointerWidth(0);
4538 unsigned ByteSizeInBits = CGM.getContext().getTargetInfo().getCharWidth();
4539 if (!RD && CGM.getLangOpts().ObjCAutoRefCount) {
4542 ComputeIvarBaseOffset(CGM, OI, cast<ObjCIvarDecl>(FirstField));
4551 const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD);
4555 ComputeIvarBaseOffset(CGM, OI, cast<ObjCIvarDecl>(Field)) - FirstFieldDelta;
4576 if (const ArrayType *Array = CGM.getContext().getAsArrayType(FQT)) {
4582 while (const ArrayType *Array = CGM.getContext().getAsArrayType(FQT)) {
4604 uint64_t Size = CGM.getContext().getTypeSize(RT)/ByteSizeInBits;
4617 Qualifiers::GC GCAttr = GetGCAttrTypeForType(CGM.getContext(), FQT);
4619 unsigned FieldSize = CGM.getContext().getTypeSize(Field->getType());
4657 = LastFieldBitfieldOrUnnamed->getBitWidthValue(CGM.getContext());
4667 = CGM.getContext().getTypeSize(LastFieldBitfieldOrUnnamed->getType());
4688 llvm::Type *PtrTy = CGM.Int8PtrTy;
4693 CGM.getTypes().getDataLayout().getTypeAllocSize(PtrTy);
4832 llvm::Type *PtrTy = CGM.Int8PtrTy;
4833 if (CGM.getLangOpts().getGC() == LangOptions::NonGC &&
4834 !CGM.getLangOpts().ObjCAutoRefCount)
4839 if (CGM.getLangOpts().ObjCAutoRefCount) {
4846 CGM.getContext().DeepCollectObjCIvars(OI, true, Ivars);
4871 if (CGM.getLangOpts().ObjCGCBitmapPrint) {
4903 return GetMethodVarName(CGM.getContext().Selectors.getNullarySelector(ID));
4908 CGM.getContext().getObjCEncodingForType(Field->getType(), TypeStr, Field);
4926 if (CGM.getContext().getObjCEncodingForMethodDecl(D, TypeStr, Extended))
4962 CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container, TypeStr);
4963 return GetPropertyName(&CGM.getContext().Idents.get(TypeStr));
4998 CGM.AddUsedGlobal(I->second);
5008 Asm += CGM.getModule().getModuleInlineAsm();
5027 CGM.getModule().setModuleInlineAsm(OS.str());
5031 CGObjCNonFragileABIMac::CGObjCNonFragileABIMac(CodeGen::CodeGenModule &cgm)
5032 : CGObjCCommonMac(cgm),
5033 ObjCTypes(cgm) {
5040 ObjCCommonTypesHelper::ObjCCommonTypesHelper(CodeGen::CodeGenModule &cgm)
5041 : VMContext(cgm.getLLVMContext()), CGM(cgm), ExternalProtocolPtrTy(0)
5043 CodeGen::CodeGenTypes &Types = CGM.getTypes();
5044 ASTContext &Ctx = CGM.getContext();
5050 Int8PtrTy = CGM.Int8PtrTy;
5051 Int8PtrPtrTy = CGM.Int8PtrPtrTy;
5119 ObjCTypesHelper::ObjCTypesHelper(CodeGen::CodeGenModule &cgm)
5120 : ObjCCommonTypesHelper(cgm) {
5293 llvm::Type *StackPtrTy = llvm::ArrayType::get(CGM.Int8PtrTy, 4);
5297 llvm::ArrayType::get(CGM.Int32Ty,SetJmpBufferSize),
5302 ObjCNonFragileABITypesHelper::ObjCNonFragileABITypesHelper(CodeGen::CodeGenModule &cgm)
5303 : ObjCCommonTypesHelper(cgm) {
5441 CodeGen::CodeGenTypes &Types = CGM.getTypes();
5442 ASTContext &Ctx = CGM.getContext();
5519 new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false,
5523 GV->setAlignment(CGM.getDataLayout().getABITypeAlignment(Init->getType()));
5525 CGM.AddUsedGlobal(GV);
5574 switch (CGM.getCodeGenOpts().getObjCDispatchMethod()) {
5595 if (CGM.getLangOpts().getGC() != LangOptions::GCOnly) {
5611 if (CGM.getLangOpts().getGC() != LangOptions::NonGC) {
5617 &CGM.getContext().Idents.get("countByEnumeratingWithState"),
5618 &CGM.getContext().Idents.get("objects"),
5619 &CGM.getContext().Idents.get("count")
5622 CGM.getContext().Selectors.getSelector(3, KeyIdents));
5652 if (CGM.getLangOpts().ObjCAutoRefCount)
5719 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassRonfABITy, false,
5726 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ClassRonfABITy));
5763 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ClassnfABITy));
5778 CGM.getContext().getASTObjCImplementationLayout(OID);
5787 InstanceStart = RL.getFieldOffset(0) / CGM.getContext().getCharWidth();
5794 CGM.getModule(),
5802 CGM.getModule(),
5813 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ClassnfABITy);
5883 if (hasObjCExceptionAttribute(CGM.getContext(), ID->getClassInterface()))
5941 llvm::GlobalVariable *PTGV = CGM.getModule().getGlobalVariable(ProtocolName);
5945 CGM.getModule(),
5952 CGM.AddUsedGlobal(PTGV);
6032 = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.CategorynfABITy,
6038 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.CategorynfABITy));
6040 CGM.AddUsedGlobal(GCATV);
6085 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.MethodTy);
6095 new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false,
6097 GV->setAlignment(CGM.getDataLayout().getABITypeAlignment(Init->getType()));
6099 CGM.AddUsedGlobal(GV);
6112 CGM.getModule().getGlobalVariable(Name);
6115 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.LongTy,
6131 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.LongTy));
6179 CGM, ID, IVD));
6183 CGM.getTypes().ConvertTypeForMem(IVD->getType());
6184 unsigned Size = CGM.getDataLayout().getTypeAllocSize(FieldTy);
6185 unsigned Align = CGM.getContext().getPreferredTypeAlign(
6202 unsigned Size = CGM.getDataLayout().getTypeAllocSize(ObjCTypes.IvarnfABITy);
6211 new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false,
6216 CGM.getDataLayout().getABITypeAlignment(Init->getType()));
6219 CGM.AddUsedGlobal(GV);
6232 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolnfABITy, false,
6338 CGM.getDataLayout().getTypeAllocSize(ObjCTypes.ProtocolnfABITy);
6353 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolnfABITy,
6357 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ProtocolnfABITy));
6363 CGM.AddUsedGlobal(Entry);
6368 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ProtocolnfABIPtrTy,
6372 CGM.getDataLayout().getABITypeAlignment(ObjCTypes.ProtocolnfABIPtrTy));
6375 CGM.AddUsedGlobal(PTGV);
6401 CGM.getModule().getGlobalVariable(TmpName.str(), true);
6421 GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false,
6426 CGM.getDataLayout().getABITypeAlignment(Init->getType()));
6427 CGM.AddUsedGlobal(GV);
6471 LI->setMetadata(CGM.getModule().getMDKindID("invariant.load"),
6545 if (CGM.ReturnTypeUsesSRet(MSI.CallInfo)) {
6554 } else if (!isSuper && CGM.ReturnTypeUsesFPRet(resultType)) {
6574 = CGM
6579 messageRef = new llvm::GlobalVariable(CGM.getModule(),
6591 if (CGM.getLangOpts().ObjCAutoRefCount && method)
6642 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name);
6645 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABITy,
6661 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABIPtrTy,
6666 CGM.getDataLayout().getABITypeAlignment(
6669 CGM.AddUsedGlobal(Entry);
6682 IdentifierInfo *II = &CGM.getContext().Idents.get("NSAutoreleasePool");
6695 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABIPtrTy,
6700 CGM.getDataLayout().getABITypeAlignment(
6703 CGM.AddUsedGlobal(Entry);
6721 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABIPtrTy, false,
6726 CGM.getDataLayout().getABITypeAlignment(
6730 CGM.AddUsedGlobal(Entry);
6783 CGM.getTypes().ConvertType(CGF.getContext().getObjCClassType());
6807 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.SelectorPtrTy, false,
6812 CGM.AddUsedGlobal(Entry);
6819 LI->setMetadata(CGM.getModule().getMDKindID("invariant.load"),
6833 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy);
6853 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy);
6900 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy);
6921 unsigned Size = CGM.getDataLayout().getTypeAllocSize(SrcTy);
6952 CGM.getModule().getGlobalVariable("OBJC_EHTYPE_id");
6955 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.EHTypeTy,
7011 if (hasObjCExceptionAttribute(CGM.getContext(), ID))
7013 new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.EHTypeTy, false,
7026 CGM.getModule().getGlobalVariable(VTableName);
7028 VTableGV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.Int8PtrTy,
7033 llvm::Value *VTableIdx = llvm::ConstantInt::get(CGM.Int32Ty, 2);
7046 Entry = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.EHTypeTy, false,
7055 Entry->setAlignment(CGM.getDataLayout().getABITypeAlignment(
7071 CodeGen::CreateMacObjCRuntime(CodeGen::CodeGenModule &CGM) {
7072 switch (CGM.getLangOpts().ObjCRuntime.getKind()) {
7074 return new CGObjCMac(CGM);
7078 return new CGObjCNonFragileABIMac(CGM);