/external/clang/lib/CodeGen/ |
D | CGOpenMPRuntime.cpp | 27 CGOpenMPRuntime::CGOpenMPRuntime(CodeGenModule &CGM) in CGOpenMPRuntime() argument 28 : CGM(CGM), DefaultOpenMPPSource(nullptr) { in CGOpenMPRuntime() 30 "ident_t", CGM.Int32Ty /* reserved_1 */, CGM.Int32Ty /* flags */, in CGOpenMPRuntime() 31 CGM.Int32Ty /* reserved_2 */, CGM.Int32Ty /* reserved_3 */, in CGOpenMPRuntime() 32 CGM.Int8PtrTy /* psource */, NULL); in CGOpenMPRuntime() 34 llvm::Type *MicroParams[] = {llvm::PointerType::getUnqual(CGM.Int32Ty), in CGOpenMPRuntime() 35 llvm::PointerType::getUnqual(CGM.Int32Ty)}; in CGOpenMPRuntime() 36 Kmpc_MicroTy = llvm::FunctionType::get(CGM.VoidTy, MicroParams, true); in CGOpenMPRuntime() 49 CGM.GetAddrOfConstantCString(";unknown;unknown;0;0;;"); in GetOrCreateDefaultOpenMPLocation() 51 llvm::ConstantExpr::getBitCast(DefaultOpenMPPSource, CGM.Int8PtrTy); in GetOrCreateDefaultOpenMPLocation() [all …]
|
D | CGVTables.cpp | 32 CodeGenVTables::CodeGenVTables(CodeGenModule &CGM) in CodeGenVTables() argument 33 : CGM(CGM), VTContext(CGM.getContext().getVTableContext()) {} in CodeGenVTables() 54 static void setThunkVisibility(CodeGenModule &CGM, const CXXMethodDecl *MD, in setThunkVisibility() argument 56 CGM.setGlobalVisibility(Fn, MD); in setThunkVisibility() 91 ReturnValue = CGF.CGM.getCXXABI().performReturnAdjustment(CGF, ReturnValue, in PerformReturnAdjustment() 136 llvm::Type *Ty = CGM.getTypes().GetFunctionType(FnInfo); in GenerateVarArgsThunk() 137 llvm::Value *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true); in GenerateVarArgsThunk() 144 CGM.getModule().getFunctionList().push_back(NewFn); in GenerateVarArgsThunk() 155 if (CGM.ReturnTypeUsesSRet(FnInfo)) in GenerateVarArgsThunk() 174 CGM.getCXXABI().performThisAdjustment(*this, ThisPtr, Thunk.This); in GenerateVarArgsThunk() [all …]
|
D | CGException.cpp | 26 static llvm::Constant *getAllocateExceptionFn(CodeGenModule &CGM) { in getAllocateExceptionFn() argument 30 llvm::FunctionType::get(CGM.Int8PtrTy, CGM.SizeTy, /*IsVarArgs=*/false); in getAllocateExceptionFn() 32 return CGM.CreateRuntimeFunction(FTy, "__cxa_allocate_exception"); in getAllocateExceptionFn() 35 static llvm::Constant *getFreeExceptionFn(CodeGenModule &CGM) { in getFreeExceptionFn() argument 39 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); in getFreeExceptionFn() 41 return CGM.CreateRuntimeFunction(FTy, "__cxa_free_exception"); in getFreeExceptionFn() 44 static llvm::Constant *getThrowFn(CodeGenModule &CGM) { in getThrowFn() argument 48 llvm::Type *Args[3] = { CGM.Int8PtrTy, CGM.Int8PtrTy, CGM.Int8PtrTy }; in getThrowFn() 50 llvm::FunctionType::get(CGM.VoidTy, Args, /*IsVarArgs=*/false); in getThrowFn() 52 return CGM.CreateRuntimeFunction(FTy, "__cxa_throw"); in getThrowFn() [all …]
|
D | CGExprConstant.cpp | 37 CodeGenModule &CGM; member in __anon0d9bc1d70111::ConstStructBuilder 45 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, 47 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, 51 ConstStructBuilder(CodeGenModule &CGM, CodeGenFunction *CGF) in ConstStructBuilder() argument 52 : CGM(CGM), CGF(CGF), Packed(false), in ConstStructBuilder() 78 CGM.getDataLayout().getABITypeAlignment(C->getType())); in getAlignment() 83 CGM.getDataLayout().getTypeAllocSize(C->getType())); in getSizeInChars() 90 const ASTContext &Context = CGM.getContext(); in AppendField() 143 const ASTContext &Context = CGM.getContext(); in AppendBitField() 186 if (CGM.getDataLayout().isBigEndian()) { in AppendBitField() [all …]
|
D | CGDeclCXX.cpp | 40 CodeGenModule &CGM = CGF.CGM; in EmitDeclInit() local 42 CGM.getObjCRuntime().EmitObjCGlobalAssign(CGF, CGF.EmitScalarExpr(Init), in EmitDeclInit() 45 CGM.getObjCRuntime().EmitObjCWeakAssign(CGF, CGF.EmitScalarExpr(Init), in EmitDeclInit() 67 CodeGenModule &CGM = CGF.CGM; in EmitDeclDestroy() local 99 function = CGM.GetAddrOfCXXDestructor(dtor, Dtor_Complete); in EmitDeclDestroy() 105 function = CodeGenFunction(CGM) in EmitDeclDestroy() 111 CGM.getCXXABI().registerGlobalDtor(CGF, D, function, argument); in EmitDeclDestroy() 119 if (!CGF.CGM.getCodeGenOpts().OptimizationLevel) in EmitDeclInvariant() 124 llvm::Constant *InvariantStart = CGF.CGM.getIntrinsic(InvStartID); in EmitDeclInvariant() 144 if (CGM.isTypeConstant(D.getType(), true)) in EmitCXXGlobalVarDeclInit() [all …]
|
D | ItaniumCXXABI.cpp | 50 ItaniumCXXABI(CodeGen::CodeGenModule &CGM, in ItaniumCXXABI() argument 53 CGCXXABI(CGM), UseARMMethodPtrABI(UseARMMethodPtrABI), in ItaniumCXXABI() 280 ARMCXXABI(CodeGen::CodeGenModule &CGM) : in ARMCXXABI() argument 281 ItaniumCXXABI(CGM, /* UseARMMethodPtrABI = */ true, in ARMCXXABI() 305 iOS64CXXABI(CodeGen::CodeGenModule &CGM) : ARMCXXABI(CGM) {} in iOS64CXXABI() argument 312 CodeGen::CGCXXABI *CodeGen::CreateItaniumCXXABI(CodeGenModule &CGM) { in CreateItaniumCXXABI() argument 313 switch (CGM.getTarget().getCXXABI().getKind()) { in CreateItaniumCXXABI() 318 return new ARMCXXABI(CGM); in CreateItaniumCXXABI() 321 return new iOS64CXXABI(CGM); in CreateItaniumCXXABI() 327 return new ItaniumCXXABI(CGM, /* UseARMMethodPtrABI = */ true, in CreateItaniumCXXABI() [all …]
|
D | CodeGenPGO.cpp | 45 PrefixedFuncName.reset(new std::string(CGM.getCodeGenOpts().MainFileName)); in setFuncName() 52 static llvm::Function *getRegisterFunc(CodeGenModule &CGM) { in getRegisterFunc() argument 53 return CGM.getModule().getFunction("__llvm_profile_register_functions"); in getRegisterFunc() 56 static llvm::BasicBlock *getOrInsertRegisterBB(CodeGenModule &CGM) { in getOrInsertRegisterBB() argument 58 if (CGM.getTarget().getTriple().isOSDarwin()) in getOrInsertRegisterBB() 62 if (llvm::Function *RegisterF = getRegisterFunc(CGM)) in getOrInsertRegisterBB() 66 auto *VoidTy = llvm::Type::getVoidTy(CGM.getLLVMContext()); in getOrInsertRegisterBB() 71 &CGM.getModule()); in getOrInsertRegisterBB() 73 if (CGM.getCodeGenOpts().DisableRedZone) in getOrInsertRegisterBB() 77 auto *BB = llvm::BasicBlock::Create(CGM.getLLVMContext(), "", RegisterF); in getOrInsertRegisterBB() [all …]
|
D | MicrosoftCXXABI.cpp | 40 MicrosoftCXXABI(CodeGenModule &CGM) in MicrosoftCXXABI() argument 41 : CGCXXABI(CGM), BaseClassDescriptorType(nullptr), in MicrosoftCXXABI() 157 CGM.getMicrosoftVTableContext().getMethodVFTableLocation(MD); in getThisArgumentTypeForMethod() 222 CGM.getContext().IntTy); in adjustCallArgsForDestructorThunk() 299 return CGM.getTarget().getPointerWidth(/*AddressSpace=*/0) == 64; in isImageRelative() 311 CGM.Int8PtrPtrTy, in getTypeDescriptorType() 312 CGM.Int8PtrTy, in getTypeDescriptorType() 313 llvm::ArrayType::get(CGM.Int8Ty, TypeInfoString.size() + 1)}; in getTypeDescriptorType() 315 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, TDTypeName); in getTypeDescriptorType() 322 return CGM.IntTy; in getImageRelativeType() [all …]
|
D | CGObjCRuntime.cpp | 29 static uint64_t LookupFieldBitOffset(CodeGen::CodeGenModule &CGM, in LookupFieldBitOffset() argument 43 RL = &CGM.getContext().getASTObjCImplementationLayout(ID); in LookupFieldBitOffset() 45 RL = &CGM.getContext().getASTObjCInterfaceLayout(Container); in LookupFieldBitOffset() 65 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, in ComputeIvarBaseOffset() argument 68 return LookupFieldBitOffset(CGM, OID, nullptr, Ivar) / in ComputeIvarBaseOffset() 69 CGM.getContext().getCharWidth(); in ComputeIvarBaseOffset() 72 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, in ComputeIvarBaseOffset() argument 75 return LookupFieldBitOffset(CGM, OID->getClassInterface(), OID, Ivar) / in ComputeIvarBaseOffset() 76 CGM.getContext().getCharWidth(); in ComputeIvarBaseOffset() 80 CodeGen::CodeGenModule &CGM, in ComputeBitfieldBitOffset() argument [all …]
|
D | CGBlocks.cpp | 46 static llvm::Constant *buildGlobalBlock(CodeGenModule &CGM, 51 static llvm::Constant *buildCopyHelper(CodeGenModule &CGM, in buildCopyHelper() argument 53 return CodeGenFunction(CGM).GenerateCopyHelperFunction(blockInfo); in buildCopyHelper() 57 static llvm::Constant *buildDisposeHelper(CodeGenModule &CGM, in buildDisposeHelper() argument 59 return CodeGenFunction(CGM).GenerateDestroyHelperFunction(blockInfo); in buildDisposeHelper() 76 static llvm::Constant *buildBlockDescriptor(CodeGenModule &CGM, in buildBlockDescriptor() argument 78 ASTContext &C = CGM.getContext(); in buildBlockDescriptor() 80 llvm::Type *ulong = CGM.getTypes().ConvertType(C.UnsignedLongTy); in buildBlockDescriptor() 81 llvm::Type *i8p = CGM.getTypes().ConvertType(C.VoidPtrTy); in buildBlockDescriptor() 98 elements.push_back(buildCopyHelper(CGM, blockInfo)); in buildBlockDescriptor() [all …]
|
D | CGVTT.cpp | 22 GetAddrOfVTTVTable(CodeGenVTables &CGVT, CodeGenModule &CGM, in GetAddrOfVTTVTable() argument 31 return CGM.getCXXABI().getAddrOfVTable(MostDerivedClass, CharUnits()); in GetAddrOfVTTVTable() 45 VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/true); in EmitVTTDefinition() 47 llvm::Type *Int8PtrTy = CGM.Int8PtrTy, *Int64Ty = CGM.Int64Ty; in EmitVTTDefinition() 56 VTables.push_back(GetAddrOfVTTVTable(*this, CGM, RD, *i, Linkage, in EmitVTTDefinition() 98 CGM.setGlobalVisibility(VTT, RD); in EmitVTTDefinition() 106 cast<ItaniumMangleContext>(CGM.getCXXABI().getMangleContext()) in GetAddrOfVTT() 112 (void) CGM.getCXXABI().getAddrOfVTable(RD, CharUnits()); in GetAddrOfVTT() 114 VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/false); in GetAddrOfVTT() 117 llvm::ArrayType::get(CGM.Int8PtrTy, Builder.getVTTComponents().size()); in GetAddrOfVTT() [all …]
|
D | CodeGenABITypes.cpp | 31 CGM(new CodeGen::CodeGenModule(C, *CGO, M, TD, C.getDiagnostics())) { in CodeGenABITypes() 37 delete CGM; in ~CodeGenABITypes() 43 return CGM->getTypes().arrangeObjCMessageSendSignature(MD, receiverType); in arrangeObjCMessageSendSignature() 48 return CGM->getTypes().arrangeFreeFunctionType(Ty); in arrangeFreeFunctionType() 53 return CGM->getTypes().arrangeFreeFunctionType(Ty); in arrangeFreeFunctionType() 59 return CGM->getTypes().arrangeCXXMethodType(RD, FTP); in arrangeCXXMethodType() 67 return CGM->getTypes().arrangeLLVMFunctionInfo( in arrangeFreeFunctionCall()
|
D | CGDebugInfo.cpp | 44 CGDebugInfo::CGDebugInfo(CodeGenModule &CGM) in CGDebugInfo() argument 45 : CGM(CGM), DebugKind(CGM.getCodeGenOpts().getDebugInfo()), in CGDebugInfo() 46 DBuilder(CGM.getModule()) { in CGDebugInfo() 107 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); in setLocation() 114 SourceManager &SM = CGM.getContext().getSourceManager(); in setLocation() 156 return getOrCreateType(CGM.getContext().getTypeDeclType(RDecl), in getContextDescriptor() 182 PrintingPolicy Policy(CGM.getLangOpts()); in getFunctionName() 236 RD->getNameForDiagnostic(OS, CGM.getContext().getPrintingPolicy(), in getClassName() 250 SourceManager &SM = CGM.getContext().getSourceManager(); in getOrCreateFile() 284 SourceManager &SM = CGM.getContext().getSourceManager(); in getLineNumber() [all …]
|
D | CGObjCMac.cpp | 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() [all …]
|
D | CGObjC.cpp | 51 CGM.getObjCRuntime().GenerateConstantString(E->getString()); in EmitObjCStringLiteral() 73 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCBoxedExpr() 92 ASTContext &Context = CGM.getContext(); in EmitObjCCollectionLiteral() 119 CGM.getCodeGenOpts().OptimizationLevel != 0); in EmitObjCCollectionLiteral() 175 llvm::ConstantInt::get(CGM.getTypes().ConvertType(ArgQT), NumElements); in EmitObjCCollectionLiteral() 185 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCCollectionLiteral() 220 return CGM.getObjCRuntime().GetSelector(*this, E->getSelector()); in EmitObjCSelectorExpr() 225 return CGM.getObjCRuntime().GenerateProtocolRef(*this, E->getProtocol()); in EmitObjCProtocolExpr() 310 CGM.getLangOpts().ObjCAutoRefCount && in EmitObjCMessageExpr() 314 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCMessageExpr() [all …]
|
D | CGCUDARuntime.h | 33 CodeGenModule &CGM; 36 CGCUDARuntime(CodeGenModule &CGM) : CGM(CGM) {} in CGCUDARuntime() argument 49 CGCUDARuntime *CreateNVCUDARuntime(CodeGenModule &CGM);
|
D | CGCUDANV.cpp | 40 CGNVCUDARuntime(CodeGenModule &CGM); 47 CGNVCUDARuntime::CGNVCUDARuntime(CodeGenModule &CGM) : CGCUDARuntime(CGM) { in CGNVCUDARuntime() argument 48 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in CGNVCUDARuntime() 49 ASTContext &Ctx = CGM.getContext(); in CGNVCUDARuntime() 64 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, in getSetupArgumentFn() 73 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, in getLaunchFn() 123 CGCUDARuntime *CodeGen::CreateNVCUDARuntime(CodeGenModule &CGM) { in CreateNVCUDARuntime() argument 124 return new CGNVCUDARuntime(CGM); in CreateNVCUDARuntime()
|
D | CGObjCGNU.cpp | 48 CodeGenModule *CGM; member in __anona7bd50360111::LazyRuntimeFunction 57 : CGM(nullptr), FunctionName(nullptr), Function(nullptr) {} in LazyRuntimeFunction() 64 CGM =Mod; in init() 86 cast<llvm::Constant>(CGM->CreateRuntimeFunction(FTy, FunctionName)); in operator llvm::Constant*() 174 llvm::Constant *ConstStr = CGM.GetAddrOfConstantCString(Str, Name.c_str()); in MakeConstantString() 229 const ObjCRuntime &R = CGM.getLangOpts().ObjCRuntime; in MakePropertyEncodingString() 234 CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container, TypeStr); in MakePropertyEncodingString() 241 CGM.GetAddrOfConstantCString(NameAndAttributes), Zeros); in MakePropertyEncodingString() 552 llvm::Constant *BuildGCBlockLayout(CodeGenModule &CGM, in BuildGCBlockLayout() argument 556 llvm::Constant *BuildRCBlockLayout(CodeGenModule &CGM, in BuildRCBlockLayout() argument [all …]
|
D | CGObjCRuntime.h | 65 CodeGen::CodeGenModule &CGM; 66 CGObjCRuntime(CodeGen::CodeGenModule &CGM) : CGM(CGM) {} in CGObjCRuntime() argument 78 uint64_t ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, 81 uint64_t ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, 265 virtual llvm::Constant *BuildGCBlockLayout(CodeGen::CodeGenModule &CGM, 267 virtual llvm::Constant *BuildRCBlockLayout(CodeGen::CodeGenModule &CGM, 269 virtual llvm::Constant *BuildByrefLayout(CodeGen::CodeGenModule &CGM, 289 unsigned ComputeBitfieldBitOffset(CodeGen::CodeGenModule &CGM, 296 CGObjCRuntime *CreateGNUObjCRuntime(CodeGenModule &CGM); 297 CGObjCRuntime *CreateMacObjCRuntime(CodeGenModule &CGM);
|
D | CodeGenFunction.cpp | 37 : CodeGenTypeCache(cgm), CGM(cgm), Target(cgm.getTarget()), in CodeGenFunction() 40 SanOpts(&CGM.getLangOpts().Sanitize), AutoreleaseResult(false), BlockInfo(nullptr), in CodeGenFunction() 44 EHSelectorSlot(nullptr), DebugInfo(CGM.getModuleDebugInfo()), in CodeGenFunction() 55 CGM.getCXXABI().getMangleContext().startNewFunction(); in CodeGenFunction() 58 if (CGM.getLangOpts().FastMath) in CodeGenFunction() 60 if (CGM.getLangOpts().FiniteMathOnly) { in CodeGenFunction() 77 CGM.getOpenMPRuntime().FunctionFinished(*this); in ~CodeGenFunction() 83 return CGM.getTypes().ConvertTypeForMem(T); in ConvertTypeForMem() 87 return CGM.getTypes().ConvertType(T); in ConvertType() 281 if (CGM.getCodeGenOpts().EmitDeclMetadata) in FinishFunction() [all …]
|
D | CGOpenCLRuntime.h | 34 CodeGenModule &CGM; 37 CGOpenCLRuntime(CodeGenModule &CGM) : CGM(CGM) {} in CGOpenCLRuntime() argument
|
D | CGCXXABI.cpp | 23 DiagnosticsEngine &Diags = CGF.CGM.getDiags(); in ErrorUnsupportedABI() 67 return llvm::Constant::getNullValue(CGM.getTypes().ConvertType(T)); in GetBogusMemberPointer() 72 return CGM.getTypes().ConvertType(CGM.getContext().getPointerDiffType()); in ConvertMemberPointerType() 84 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType( in EmitLoadOfMemberFunctionPointer() 85 CGM.getTypes().arrangeCXXMethodType(RD, FPT)); in EmitLoadOfMemberFunctionPointer() 135 CGM.getContext().getMemberPointerType(MD->getType(), in EmitMemberPointer() 159 = ImplicitParamDecl::Create(CGM.getContext(), nullptr, MD->getLocation(), in buildThisParam() 160 &CGM.getContext().Idents.get("this"), in buildThisParam() 161 MD->getThisType(CGM.getContext())); in buildThisParam() 254 CGM.ErrorUnsupported(&D, "non-trivial TLS destruction"); in registerGlobalDtor() [all …]
|
D | CGBuiltin.cpp | 162 llvm::Value *Fn = CGF.CGM.CreateRuntimeFunction(FT, FnName); in EmitFAbs() 191 llvm::Value *Callee = CGF.CGM.getIntrinsic(IntrinsicID, X->getType()); in EmitOverflowIntrinsic() 201 if (E->EvaluateAsRValue(Result, CGM.getContext()) && in EmitBuiltinExpr() 215 return RValue::get(CGM.EmitConstantExpr(E, E->getType(), nullptr)); in EmitBuiltinExpr() 230 return RValue::get(Builder.CreateCall(CGM.getIntrinsic(inst), ArgValue)); in EmitBuiltinExpr() 240 return RValue::get(Builder.CreateCall2(CGM.getIntrinsic(Intrinsic::vacopy), in EmitBuiltinExpr() 300 Value *F = CGM.getIntrinsic(Intrinsic::cttz, ArgType); in EmitBuiltinExpr() 317 Value *F = CGM.getIntrinsic(Intrinsic::ctlz, ArgType); in EmitBuiltinExpr() 334 Value *F = CGM.getIntrinsic(Intrinsic::cttz, ArgType); in EmitBuiltinExpr() 355 Value *F = CGM.getIntrinsic(Intrinsic::ctpop, ArgType); in EmitBuiltinExpr() [all …]
|
D | CGDecl.cpp | 129 CGM.getLLVMLinkageVarDefinition(&D, /*isConstant=*/false); in EmitVarDecl() 143 return CGM.getOpenCLRuntime().EmitWorkGroupLocalVarDecl(*this, D); in EmitVarDecl() 151 CodeGenModule &CGM = CGF.CGM; in GetStaticDeclName() local 154 return CGM.getMangledName(&D).str(); in GetStaticDeclName() 162 ContextName = CGM.getBlockMangledName(GlobalDecl(), BD); in GetStaticDeclName() 166 ContextName = CGM.getMangledName(FD); in GetStaticDeclName() 185 Name = CGM.getMangledName(&D); in CreateStaticVarDecl() 189 llvm::Type *LTy = CGM.getTypes().ConvertTypeForMem(Ty); in CreateStaticVarDecl() 191 CGM.GetGlobalVarAddressSpace(&D, CGM.getContext().getTargetAddressSpace(Ty)); in CreateStaticVarDecl() 193 new llvm::GlobalVariable(CGM.getModule(), LTy, in CreateStaticVarDecl() [all …]
|
D | CGStmtOpenMP.cpp | 32 CodeGenFunction CGF(CGM, true); in EmitOMPParallelDirective() 40 CGM.getOpenMPRuntime().EmitOpenMPUpdateLocation(*this, S.getLocStart()), in EmitOMPParallelDirective() 44 CGM.getOpenMPRuntime().getKmpc_MicroPointerTy()), in EmitOMPParallelDirective() 46 llvm::Constant *RTLFn = CGM.getOpenMPRuntime().CreateRuntimeFunction( in EmitOMPParallelDirective()
|