Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:GV

2767   llvm::GlobalVariable *GV =
2770 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.ProtocolListPtrTy);
2852 llvm::GlobalVariable *GV =
2858 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.PropertyListPtrTy);
2873 llvm::GlobalVariable *GV =
2878 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.Int8PtrPtrTy);
2915 llvm::GlobalVariable *GV = CreateMetadataVar(Name, Init, Section, 4, true);
2916 return llvm::ConstantExpr::getBitCast(GV,
2991 llvm::GlobalVariable *GV =
2995 DefinedCategories.push_back(GV);
3135 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name);
3136 if (GV) {
3137 assert(GV->getType()->getElementType() == ObjCTypes.ClassTy &&
3139 GV->setLinkage(llvm::GlobalValue::InternalLinkage);
3140 GV->setInitializer(Init);
3141 GV->setSection(Section);
3142 GV->setAlignment(4);
3143 CGM.AddUsedGlobal(GV);
3146 GV = CreateMetadataVar(Name, Init, Section, 4, true);
3147 DefinedClasses.push_back(GV);
3203 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name);
3204 if (GV) {
3205 assert(GV->getType()->getElementType() == ObjCTypes.ClassTy &&
3207 GV->setLinkage(llvm::GlobalValue::InternalLinkage);
3208 GV->setInitializer(Init);
3210 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassTy, false,
3214 GV->setSection("__OBJC,__meta_class,regular,no_dead_strip");
3215 GV->setAlignment(4);
3216 CGM.AddUsedGlobal(GV);
3218 return GV;
3232 if (llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name,
3234 assert(GV->getType()->getElementType() == ObjCTypes.ClassTy &&
3236 return GV;
3250 if (llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name,
3252 assert(GV->getType()->getElementType() == ObjCTypes.ClassTy &&
3254 return GV;
3343 llvm::GlobalVariable *GV;
3345 GV = CreateMetadataVar("\01L_OBJC_CLASS_VARIABLES_" + ID->getName(),
3349 GV = CreateMetadataVar("\01L_OBJC_INSTANCE_VARIABLES_" + ID->getName(),
3352 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.IvarListPtrTy);
3401 llvm::GlobalVariable *GV = CreateMetadataVar(Name, Init, Section, 4, true);
3402 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.MethodListPtrTy);
3430 llvm::GlobalVariable *GV =
3434 GV->setSection(Section);
3436 GV->setAlignment(Align);
3438 CGM.AddUsedGlobal(GV);
3439 return GV;
4413 llvm::GlobalVariable *GV =
4417 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.SymtabPtrTy);
5518 llvm::GlobalVariable *GV =
5523 GV->setAlignment(CGM.getDataLayout().getABITypeAlignment(Init->getType()));
5524 GV->setSection(SectionName);
5525 CGM.AddUsedGlobal(GV);
5759 llvm::GlobalVariable *GV = GetClassGlobal(ClassName);
5760 GV->setInitializer(Init);
5761 GV->setSection("__DATA, __objc_data");
5762 GV->setAlignment(
5765 GV->setVisibility(llvm::GlobalValue::HiddenVisibility);
5766 return GV;
6094 llvm::GlobalVariable *GV =
6097 GV->setAlignment(CGM.getDataLayout().getABITypeAlignment(Init->getType()));
6098 GV->setSection(Section);
6099 CGM.AddUsedGlobal(GV);
6100 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.MethodListnfABIPtrTy);
6210 llvm::GlobalVariable *GV =
6215 GV->setAlignment(
6217 GV->setSection("__DATA, __objc_const");
6219 CGM.AddUsedGlobal(GV);
6220 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.IvarListnfABIPtrTy);
6400 llvm::GlobalVariable *GV =
6402 if (GV)
6403 return llvm::ConstantExpr::getBitCast(GV, ObjCTypes.ProtocolListnfABIPtrTy);
6421 GV = new llvm::GlobalVariable(CGM.getModule(), Init->getType(), false,
6424 GV->setSection("__DATA, __objc_const");
6425 GV->setAlignment(
6427 CGM.AddUsedGlobal(GV);
6428 return llvm::ConstantExpr::getBitCast(GV,
6642 llvm::GlobalVariable *GV = CGM.getModule().getGlobalVariable(Name);
6644 if (!GV) {
6645 GV = new llvm::GlobalVariable(CGM.getModule(), ObjCTypes.ClassnfABITy,
6650 return GV;