Home | History | Annotate | Download | only in CodeGen

Lines Matching refs:CGM

46       llvm::Type *Ty = CGM.getTypes().ConvertType(T);
53 ItaniumCXXABI(CodeGen::CodeGenModule &CGM, bool IsARM = false) :
54 CGCXXABI(CGM), PtrDiffTy(0), IsARM(IsARM) { }
151 ARMCXXABI(CodeGen::CodeGenModule &CGM) : ItaniumCXXABI(CGM, /*ARM*/ true) {}
191 CodeGen::CGCXXABI *CodeGen::CreateItaniumCXXABI(CodeGenModule &CGM) {
192 switch (CGM.getContext().getTargetInfo().getCXXABI().getKind()) {
197 return new ARMCXXABI(CGM);
203 return new ItaniumCXXABI(CGM, /*IsARM = */ true);
206 return new ItaniumCXXABI(CGM);
254 CGM.getTypes().GetFunctionType(
255 CGM.getTypes().arrangeCXXMethodType(RD, FPT));
509 CodeGenTypes &Types = CGM.getTypes();
515 uint64_t Index = CGM.getVTableContext().getMethodVTableIndex(MD);
553 llvm::Constant *addr = CGM.GetAddrOfFunction(MD, Ty);
847 llvm::Value *Callee = CGM.GetAddrOfCXXConstructor(D, Type);
863 = &CGM.getTypes().arrangeCXXDestructor(Dtor, DtorType);
864 llvm::Type *Ty = CGF.CGM.getTypes().GetFunctionType(*FInfo);
888 return std::max(CharUnits::fromQuantity(CGM.SizeSizeInBytes),
889 CGM.getContext().getTypeAlignInChars(elementType));
956 return std::max(CharUnits::fromQuantity(2 * CGM.SizeSizeInBytes),
957 CGM.getContext().getTypeAlignInChars(elementType));
1006 static llvm::Constant *getGuardAcquireFn(CodeGenModule &CGM,
1010 llvm::FunctionType::get(CGM.getTypes().ConvertType(CGM.getContext().IntTy),
1012 return CGM.CreateRuntimeFunction(FTy, "__cxa_guard_acquire",
1013 llvm::AttributeSet::get(CGM.getLLVMContext(),
1018 static llvm::Constant *getGuardReleaseFn(CodeGenModule &CGM,
1022 llvm::FunctionType::get(CGM.VoidTy, GuardPtrTy, /*isVarArg=*/false);
1023 return CGM.CreateRuntimeFunction(FTy, "__cxa_guard_release",
1024 llvm::AttributeSet::get(CGM.getLLVMContext(),
1029 static llvm::Constant *getGuardAbortFn(CodeGenModule &CGM,
1033 llvm::FunctionType::get(CGM.VoidTy, GuardPtrTy, /*isVarArg=*/false);
1034 return CGM.CreateRuntimeFunction(FTy, "__cxa_guard_abort",
1035 llvm::AttributeSet::get(CGM.getLLVMContext(),
1046 CGF.EmitNounwindRuntimeCall(getGuardAbortFn(CGF.CGM, Guard->getType()),
1081 llvm::GlobalVariable *guard = CGM.getStaticLocalDeclGuardAddress(&D);
1093 guard = new llvm::GlobalVariable(CGM.getModule(), guardTy,
1099 CGM.setStaticLocalDeclGuardAddress(&D, guard);
1139 Builder.CreateLoad(Builder.CreateBitCast(guard, CGM.Int8PtrTy));
1166 = CGF.EmitNounwindRuntimeCall(getGuardAcquireFn(CGM, guardPtrTy), guard);
1187 CGF.EmitNounwindRuntimeCall(getGuardReleaseFn(CGM, guardPtrTy), guard);
1212 CGF.CGM.CreateRuntimeFunction(atexitTy, "__cxa_atexit");
1218 CGF.CGM.CreateRuntimeVariable(CGF.Int8Ty, "__dso_handle");
1233 if (CGM.getCodeGenOpts().CXAAtExit) {
1239 if (CGM.getLangOpts().AppleKext) {
1241 return CGM.AddCXXDtorEntry(dtor, addr);