/external/clang/lib/CodeGen/ |
H A D | CGOpenCLRuntime.h | 34 CodeGenModule &CGM; member in class:clang::CodeGen::CGOpenCLRuntime 37 CGOpenCLRuntime(CodeGenModule &CGM) : CGM(CGM) {} argument
|
H A D | CGCUDARuntime.h | 33 CodeGenModule &CGM; member in class:clang::CodeGen::CGCUDARuntime 36 CGCUDARuntime(CodeGenModule &CGM) : CGM(CGM) {} argument 49 CGCUDARuntime *CreateNVCUDARuntime(CodeGenModule &CGM);
|
H A D | CodeGenABITypes.cpp | 32 CGM(new CodeGen::CodeGenModule(C, *CGO, M, TD, C.getDiagnostics(), 39 delete CGM; 45 return CGM->getTypes().arrangeObjCMessageSendSignature(MD, receiverType); 50 return CGM->getTypes().arrangeFreeFunctionType(Ty); 55 return CGM->getTypes().arrangeFreeFunctionType(Ty); 61 return CGM->getTypes().arrangeCXXMethodType(RD, FTP); 69 return CGM->getTypes().arrangeLLVMFunctionInfo(
|
H A D | CGOpenMPRuntime.cpp | 259 CGOpenMPRuntime::CGOpenMPRuntime(CodeGenModule &CGM) argument 260 : CGM(CGM), DefaultOpenMPPSource(nullptr), KmpRoutineEntryPtrTy(nullptr) { 262 "ident_t", CGM.Int32Ty /* reserved_1 */, CGM.Int32Ty /* flags */, 263 CGM.Int32Ty /* reserved_2 */, CGM.Int32Ty /* reserved_3 */, 264 CGM.Int8PtrTy /* psource */, nullptr); 266 llvm::Type *MicroParams[] = {llvm::PointerType::getUnqual(CGM.Int32Ty), 267 llvm::PointerType::getUnqual(CGM 1109 emitCopyprivateCopyFunction( CodeGenModule &CGM, llvm::Type *ArgsType, ArrayRef<const Expr *> CopyprivateVars, ArrayRef<const Expr *> DestExprs, ArrayRef<const Expr *> SrcExprs, ArrayRef<const Expr *> AssignmentOps) argument 1471 createKmpTaskTRecordDecl(CodeGenModule &CGM, QualType KmpInt32Ty, QualType KmpRoutineEntryPointerQTy) argument 1502 emitProxyTaskFunction(CodeGenModule &CGM, SourceLocation Loc, QualType KmpInt32Ty, QualType KmpTaskTPtrQTy, QualType SharedsPtrTy, llvm::Value *TaskFunction, llvm::Type *KmpTaskTTy) argument 1632 emitReductionFunction(CodeGenModule &CGM, llvm::Type *ArgsType, ArrayRef<const Expr *> LHSExprs, ArrayRef<const Expr *> RHSExprs, ArrayRef<const Expr *> ReductionOps) argument [all...] |
H A D | SanitizerMetadata.cpp | 22 SanitizerMetadata::SanitizerMetadata(CodeGenModule &CGM) : CGM(CGM) {} argument 28 if (!CGM.getLangOpts().Sanitize.has(SanitizerKind::Address)) 30 IsDynInit &= !CGM.isInSanitizerBlacklist(GV, Loc, Ty, "init"); 31 IsBlacklisted |= CGM.isInSanitizerBlacklist(GV, Loc, Ty); 35 llvm::LLVMContext &VMContext = CGM.getLLVMContext(); 53 CGM.getModule().getOrInsertNamedMetadata("llvm.asan.globals"); 59 if (!CGM.getLangOpts().Sanitize.has(SanitizerKind::Address)) 70 if (CGM [all...] |
H A D | CGVTables.cpp | 32 CodeGenVTables::CodeGenVTables(CodeGenModule &CGM) argument 33 : CGM(CGM), VTContext(CGM.getContext().getVTableContext()) {} 54 static void setThunkVisibility(CodeGenModule &CGM, const CXXMethodDecl *MD, argument 56 CGM.setGlobalVisibility(Fn, MD); 91 ReturnValue = CGF.CGM.getCXXABI().performReturnAdjustment(CGF, ReturnValue, 136 llvm::Type *Ty = CGM.getTypes().GetFunctionType(FnInfo); 137 llvm::Value *Callee = CGM.GetAddrOfFunction(GD, Ty, /*ForVTable=*/true); 144 CGM 815 shouldEmitVTableAtEndOfTranslationUnit(CodeGenModule &CGM, const CXXRecordDecl *RD) argument [all...] |
H A D | CGVTT.cpp | 22 GetAddrOfVTTVTable(CodeGenVTables &CGVT, CodeGenModule &CGM, argument 31 return CGM.getCXXABI().getAddrOfVTable(MostDerivedClass, CharUnits()); 45 VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/true); 47 llvm::Type *Int8PtrTy = CGM.Int8PtrTy, *Int64Ty = CGM.Int64Ty; 56 VTables.push_back(GetAddrOfVTTVTable(*this, CGM, RD, *i, Linkage, 97 if (CGM.supportsCOMDAT() && VTT->isWeakForLinker()) 98 VTT->setComdat(CGM.getModule().getOrInsertComdat(VTT->getName())); 101 CGM.setGlobalVisibility(VTT, RD); 109 cast<ItaniumMangleContext>(CGM [all...] |
H A D | ItaniumCXXABI.cpp | 54 ItaniumCXXABI(CodeGen::CodeGenModule &CGM, argument 57 CGCXXABI(CGM), UseARMMethodPtrABI(UseARMMethodPtrABI), 260 CodeGenModule &CGM, 308 ARMCXXABI(CodeGen::CodeGenModule &CGM) : argument 309 ItaniumCXXABI(CGM, /* UseARMMethodPtrABI = */ true, 333 iOS64CXXABI(CodeGen::CodeGenModule &CGM) : ARMCXXABI(CGM) {} argument 340 CodeGen::CGCXXABI *CodeGen::CreateItaniumCXXABI(CodeGenModule &CGM) { argument 341 switch (CGM.getTarget().getCXXABI().getKind()) { 346 return new ARMCXXABI(CGM); 925 getAllocateExceptionFn(CodeGenModule &CGM) argument 934 getThrowFn(CodeGenModule &CGM) argument 1698 getGuardAcquireFn(CodeGenModule &CGM, llvm::PointerType *GuardPtrTy) argument 1710 getGuardReleaseFn(CodeGenModule &CGM, llvm::PointerType *GuardPtrTy) argument 1721 getGuardAbortFn(CodeGenModule &CGM, llvm::PointerType *GuardPtrTy) argument 1965 isThreadWrapperReplaceable(const VarDecl *VD, CodeGen::CodeGenModule &CGM) argument 1978 getThreadLocalWrapperLinkage(const VarDecl *VD, CodeGen::CodeGenModule &CGM) argument 2024 EmitThreadLocalInitFuncs( CodeGenModule &CGM, ArrayRef<std::pair<const VarDecl *, llvm::GlobalVariable *>> CXXThreadLocals, ArrayRef<llvm::Function *> CXXThreadLocalInits, ArrayRef<llvm::GlobalVariable *> CXXThreadLocalInitVars) argument 2164 CodeGenModule &CGM; // Per-module state. member in class:__anon999::ItaniumRTTIBuilder 2400 ShouldUseExternalRTTIDescriptor(CodeGenModule &CGM, QualType Ty) argument 2619 getTypeInfoLinkage(CodeGenModule &CGM, QualType Ty) argument 3173 getCodegenToUse(CodeGenModule &CGM, const CXXMethodDecl *MD) argument 3209 emitConstructorDestructorAlias(CodeGenModule &CGM, GlobalDecl AliasDecl, GlobalDecl TargetDecl) argument 3296 getBeginCatchFn(CodeGenModule &CGM) argument 3304 getEndCatchFn(CodeGenModule &CGM) argument 3312 getGetExceptionPtrFn(CodeGenModule &CGM) argument 3581 getClangCallTerminateFn(CodeGenModule &CGM) argument [all...] |
H A D | CGCUDANV.cpp | 40 CGNVCUDARuntime(CodeGenModule &CGM); 47 CGNVCUDARuntime::CGNVCUDARuntime(CodeGenModule &CGM) : CGCUDARuntime(CGM) { argument 48 CodeGen::CodeGenTypes &Types = CGM.getTypes(); 49 ASTContext &Ctx = CGM.getContext(); 64 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, 73 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, 123 CGCUDARuntime *CodeGen::CreateNVCUDARuntime(CodeGenModule &CGM) { argument 124 return new CGNVCUDARuntime(CGM);
|
H A D | CGObjCRuntime.cpp | 29 static uint64_t LookupFieldBitOffset(CodeGen::CodeGenModule &CGM, argument 43 RL = &CGM.getContext().getASTObjCImplementationLayout(ID); 45 RL = &CGM.getContext().getASTObjCInterfaceLayout(Container); 65 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, argument 68 return LookupFieldBitOffset(CGM, OID, nullptr, Ivar) / 69 CGM.getContext().getCharWidth(); 72 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, argument 75 return LookupFieldBitOffset(CGM, OID->getClassInterface(), OID, Ivar) / 76 CGM.getContext().getCharWidth(); 80 CodeGen::CodeGenModule &CGM, 79 ComputeBitfieldBitOffset( CodeGen::CodeGenModule &CGM, const ObjCInterfaceDecl *ID, const ObjCIvarDecl *Ivar) argument [all...] |
H A D | SanitizerMetadata.h | 37 CodeGenModule &CGM; member in class:clang::CodeGen::SanitizerMetadata 39 SanitizerMetadata(CodeGenModule &CGM);
|
H A D | CoverageMappingGen.h | 53 CodeGenModule &CGM; member in class:clang::CodeGen::CoverageMappingModuleGen 61 CoverageMappingModuleGen(CodeGenModule &CGM, CoverageSourceInfo &SourceInfo) argument 62 : CGM(CGM), SourceInfo(SourceInfo), FunctionRecordTy(nullptr) {}
|
H A D | CGObjCRuntime.h | 65 CodeGen::CodeGenModule &CGM; member in class:clang::CodeGen::CGObjCRuntime 66 CGObjCRuntime(CodeGen::CodeGenModule &CGM) : CGM(CGM) {} 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, [all...] |
H A D | MicrosoftCXXABI.cpp | 44 MicrosoftCXXABI(CodeGenModule &CGM) argument 45 : CGCXXABI(CGM), BaseClassDescriptorType(nullptr), 172 CGM.getMicrosoftVTableContext().getMethodVFTableLocation(MD); 273 CodeGenModule &CGM, 328 return CGM.getTarget().getPointerWidth(/*AddressSpace=*/0) == 64; 340 CGM.Int8PtrPtrTy, 341 CGM.Int8PtrTy, 342 llvm::ArrayType::get(CGM.Int8Ty, TypeInfoString.size() + 1)}; 344 llvm::StructType::create(CGM.getLLVMContext(), FieldTypes, TDTypeName); 351 return CGM 1966 EmitThreadLocalInitFuncs( CodeGenModule &CGM, ArrayRef<std::pair<const VarDecl *, llvm::GlobalVariable *>> CXXThreadLocals, ArrayRef<llvm::Function *> CXXThreadLocalInits, ArrayRef<llvm::GlobalVariable *> CXXThreadLocalInitVars) argument 2803 CreateMicrosoftCXXABI(CodeGenModule &CGM) argument 2837 getTypeInfoVTable(CodeGenModule &CGM) argument 2943 CodeGenModule &CGM; member in struct:__anon1008::MSRTTIBuilder 3289 emitCXXConstructor(CodeGenModule &CGM, const CXXConstructorDecl *ctor, StructorType ctorType) argument 3297 emitCXXDestructor(CodeGenModule &CGM, const CXXDestructorDecl *dtor, StructorType dtorType) argument [all...] |
H A D | CGDebugInfo.cpp | 44 CGDebugInfo::CGDebugInfo(CodeGenModule &CGM) argument 45 : CGM(CGM), DebugKind(CGM.getCodeGenOpts().getDebugInfo()), 46 DBuilder(CGM.getModule()) { 114 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); 122 SourceManager &SM = CGM.getContext().getSourceManager(); 162 return getOrCreateType(CGM.getContext().getTypeDeclType(RDecl), 188 PrintingPolicy Policy(CGM.getLangOpts()); 241 RD->getNameForDiagnostic(OS, CGM 602 getUniqueTagTypeName(const TagType *Ty, CodeGenModule &CGM, llvm::DICompileUnit TheCU) argument [all...] |
H A D | CGBlocks.cpp | 46 static llvm::Constant *buildGlobalBlock(CodeGenModule &CGM, 51 static llvm::Constant *buildCopyHelper(CodeGenModule &CGM, argument 53 return CodeGenFunction(CGM).GenerateCopyHelperFunction(blockInfo); 57 static llvm::Constant *buildDisposeHelper(CodeGenModule &CGM, argument 59 return CodeGenFunction(CGM).GenerateDestroyHelperFunction(blockInfo); 76 static llvm::Constant *buildBlockDescriptor(CodeGenModule &CGM, argument 78 ASTContext &C = CGM.getContext(); 80 llvm::Type *ulong = CGM.getTypes().ConvertType(C.UnsignedLongTy); 82 if (CGM.getLangOpts().OpenCL) 85 CGM 272 tryCaptureAsConstant(CodeGenModule &CGM, CodeGenFunction *CGF, const VarDecl *var) argument 303 initializeForBlockHeader(CodeGenModule &CGM, CGBlockInfo &info, SmallVectorImpl<llvm::Type*> &elementTypes) argument 337 computeBlockInfo(CodeGenModule &CGM, CodeGenFunction *CGF, CGBlockInfo &info) argument 1063 buildGlobalBlock(CodeGenModule &CGM, const CGBlockInfo &blockInfo, llvm::Constant *blockFn) argument 1828 buildByrefCopyHelper(CodeGenModule &CGM, llvm::StructType &byrefType, unsigned byrefValueIndex, CodeGenModule::ByrefHelpers &info) argument 1889 buildByrefDisposeHelper(CodeGenModule &CGM, llvm::StructType &byrefType, unsigned byrefValueIndex, CodeGenModule::ByrefHelpers &info) argument 1899 buildByrefHelpers(CodeGenModule &CGM, llvm::StructType &byrefTy, unsigned byrefValueIndex, T &byrefInfo) argument 2268 configureBlocksRuntimeObject(CodeGenModule &CGM, llvm::Constant *C) argument [all...] |
H A D | CGExprConstant.cpp | 37 CodeGenModule &CGM; member in class:__anon966::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) argument 52 : CGM(CGM), CGF(CGF), Packed(false), 78 CGM.getDataLayout().getABITypeAlignment(C->getType())); 83 CGM.getDataLayout().getTypeAllocSize(C->getType())); 90 const ASTContext &Context = CGM.getContext(); 152 const ASTContext &Context = CGM 548 BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, InitListExpr *ILE) argument 559 BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, const APValue &Val, QualType ValTy) argument 583 CodeGenModule &CGM; member in class:__anon966::ConstExprEmitter [all...] |
H A D | CGObjCMac.cpp | 66 CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, 69 llvm::AttributeSet::get(CGM.getLLVMContext(), 81 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.VoidTy, 94 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.DoubleTy, 111 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(resultType, 123 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, 134 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(ObjectPtrTy, 145 return CGM 172 CodeGen::CodeGenModule &CGM; member in class:__anon976::ObjCCommonTypesHelper 1934 BuildGCBlockLayout(CodeGenModule &CGM, const CGBlockInfo &blockInfo) argument 2450 BuildRCBlockLayout(CodeGenModule &CGM, const CGBlockInfo &blockInfo) argument 2504 BuildByrefLayout(CodeGen::CodeGenModule &CGM, QualType T) argument 7039 CreateMacObjCRuntime(CodeGen::CodeGenModule &CGM) argument [all...] |
H A D | CGDeclCXX.cpp | 41 CodeGenModule &CGM = CGF.CGM; local 43 CGM.getObjCRuntime().EmitObjCGlobalAssign(CGF, CGF.EmitScalarExpr(Init), 46 CGM.getObjCRuntime().EmitObjCWeakAssign(CGF, CGF.EmitScalarExpr(Init), 68 CodeGenModule &CGM = CGF.CGM; local 100 function = CGM.getAddrOfCXXStructor(dtor, StructorType::Complete); 106 function = CodeGenFunction(CGM) 112 CGM.getCXXABI().registerGlobalDtor(CGF, D, function, argument); 120 if (!CGF.CGM [all...] |
H A D | CGCXXABI.cpp | 23 DiagnosticsEngine &Diags = CGF.CGM.getDiags(); 67 return llvm::Constant::getNullValue(CGM.getTypes().ConvertType(T)); 72 return CGM.getTypes().ConvertType(CGM.getContext().getPointerDiffType()); 84 llvm::FunctionType *FTy = CGM.getTypes().GetFunctionType( 85 CGM.getTypes().arrangeCXXMethodType(RD, FPT)); 135 CGM.getContext().getMemberPointerType(MD->getType(), 159 = ImplicitParamDecl::Create(CGM.getContext(), nullptr, MD->getLocation(), 160 &CGM.getContext().Idents.get("this"), 161 MD->getThisType(CGM [all...] |
H A D | CGException.cpp | 31 static llvm::Constant *getFreeExceptionFn(CodeGenModule &CGM) { argument 35 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); 37 return CGM.CreateRuntimeFunction(FTy, "__cxa_free_exception"); 40 static llvm::Constant *getUnexpectedFn(CodeGenModule &CGM) { argument 44 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); 46 return CGM.CreateRuntimeFunction(FTy, "__cxa_call_unexpected"); 72 static llvm::Constant *getCatchallRethrowFn(CodeGenModule &CGM, argument 75 llvm::FunctionType::get(CGM 215 get(CodeGenModule &CGM, const FunctionDecl *FD) argument 242 getPersonalityFn(CodeGenModule &CGM, const EHPersonality &Personality) argument 250 getOpaquePersonalityFn(CodeGenModule &CGM, const EHPersonality &Personality) argument 1318 CodeGenModule &CGM = CGF.CGM; variable [all...] |
H A D | CodeGenFunction.cpp | 37 : CodeGenTypeCache(cgm), CGM(cgm), Target(cgm.getTarget()), 41 SanOpts(CGM.getLangOpts().Sanitize), IsSanitizerScope(false), 48 DebugInfo(CGM.getModuleDebugInfo()), DisableDebugInfo(false), 58 CGM.getCXXABI().getMangleContext().startNewFunction(); 61 if (CGM.getLangOpts().FastMath) 63 if (CGM.getLangOpts().FiniteMathOnly) { 67 if (CGM.getCodeGenOpts().NoNaNsFPMath) { 70 if (CGM.getCodeGenOpts().NoSignedZeros) { 73 if (CGM.getCodeGenOpts().ReciprocalMath) { 89 CGM 376 GenOpenCLArgMetadata(const FunctionDecl *FD, llvm::Function *Fn, CodeGenModule &CGM, llvm::LLVMContext &Context, SmallVector<llvm::Metadata *, 5> &kernelMDArgs, CGBuilderTy &Builder, ASTContext &ASTCtx) argument [all...] |
H A D | CGCXX.cpp | 257 assert(!CGF.CGM.getTarget().getCXXABI().isMicrosoft() && 260 CodeGenModule &CGM = CGF.CGM; local 261 llvm::Value *VTable = CGM.getCXXABI().getAddrOfVTable(RD, CharUnits()); 265 uint64_t VTableIndex = CGM.getItaniumVTableContext().getMethodVTableIndex(GD); 267 CGM.getItaniumVTableContext().getVTableLayout(RD) 310 const CGFunctionInfo &FInfo = CGM.getTypes().arrangeCXXStructorDeclaration( 312 llvm::Type *Ty = CGM.getTypes().GetFunctionType(FInfo);
|
H A D | CGOpenCLRuntime.cpp | 36 llvm::LLVMContext& Ctx = CGM.getLLVMContext(); 38 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global);
|
H A D | CGObjC.cpp | 51 CGM.getObjCRuntime().GenerateConstantString(E->getString()); 72 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); 88 ASTContext &Context = CGM.getContext(); 115 CGM.getCodeGenOpts().OptimizationLevel != 0); 168 llvm::ConstantInt::get(CGM.getTypes().ConvertType(ArgQT), NumElements); 178 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); 213 return CGM.getObjCRuntime().GetSelector(*this, E->getSelector()); 218 return CGM.getObjCRuntime().GenerateProtocolRef(*this, E->getProtocol()); 303 CGM.getLangOpts().ObjCAutoRefCount && 307 CGObjCRuntime &Runtime = CGM 549 getMaxAtomicAccessSize(CodeGenModule &CGM, llvm::Triple::ArchType arch) argument 606 PropertyImplStrategy(CodeGenModule &CGM, const ObjCPropertyImplDecl *propImpl) argument 1077 UseOptimizedSetter(CodeGenModule &CGM) argument 1761 createARCRuntimeFunction(CodeGenModule &CGM, llvm::FunctionType *type, StringRef fnName) argument [all...] |