| /netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/ |
| H A D | ItaniumCXXABI.cpp | 61 ItaniumCXXABI(CodeGen::CodeGenModule &CGM, in ItaniumCXXABI() argument 64 CGCXXABI(CGM), UseARMMethodPtrABI(UseARMMethodPtrABI), in ItaniumCXXABI() 291 CGM.setGVProperties(Thunk, GD); in setThunkLinkage() 332 CodeGenModule &CGM, 420 CGM.getItaniumVTableContext().getVTableLayout(RD); in hasAnyUnusedVirtualInlineFunction() 431 StringRef Name = CGM.getMangledName(VtableComponent.getGlobalDecl()); in hasAnyUnusedVirtualInlineFunction() 432 auto *Entry = CGM.GetGlobalValue(Name); in hasAnyUnusedVirtualInlineFunction() 446 CGM.getItaniumVTableContext().getVTableLayout(RD); in isVTableHidden() 466 ARMCXXABI(CodeGen::CodeGenModule &CGM) : in ARMCXXABI() argument 467 ItaniumCXXABI(CGM, /*UseARMMethodPtrABI=*/true, in ARMCXXABI() [all …]
|
| H A D | CodeGenABITypes.cpp | 30 void CodeGen::addDefaultFunctionDefinitionAttributes(CodeGenModule &CGM, in addDefaultFunctionDefinitionAttributes() argument 32 CGM.addDefaultFunctionDefinitionAttributes(attrs); in addDefaultFunctionDefinitionAttributes() 36 CodeGen::arrangeObjCMessageSendSignature(CodeGenModule &CGM, in arrangeObjCMessageSendSignature() argument 39 return CGM.getTypes().arrangeObjCMessageSendSignature(MD, receiverType); in arrangeObjCMessageSendSignature() 43 CodeGen::arrangeFreeFunctionType(CodeGenModule &CGM, in arrangeFreeFunctionType() argument 45 return CGM.getTypes().arrangeFreeFunctionType(Ty); in arrangeFreeFunctionType() 49 CodeGen::arrangeFreeFunctionType(CodeGenModule &CGM, in arrangeFreeFunctionType() argument 51 return CGM.getTypes().arrangeFreeFunctionType(Ty); in arrangeFreeFunctionType() 55 CodeGen::arrangeCXXMethodType(CodeGenModule &CGM, in arrangeCXXMethodType() argument 59 return CGM.getTypes().arrangeCXXMethodType(RD, FTP, MD); in arrangeCXXMethodType() [all …]
|
| H A D | CGVTables.cpp | 31 CodeGenVTables::CodeGenVTables(CodeGenModule &CGM) in CodeGenVTables() argument 32 : CGM(CGM), VTContext(CGM.getContext().getVTableContext()) {} in CodeGenVTables() 40 static void setThunkProperties(CodeGenModule &CGM, const ThunkInfo &Thunk, in setThunkProperties() argument 43 CGM.setFunctionLinkage(GD, ThunkFn); in setThunkProperties() 44 CGM.getCXXABI().setThunkLinkage(ThunkFn, ForVTable, GD, in setThunkProperties() 48 CGM.setGVProperties(ThunkFn, GD); in setThunkProperties() 50 if (!CGM.getCXXABI().exportThunk()) { in setThunkProperties() 55 if (CGM.supportsCOMDAT() && ThunkFn->isWeakForLinker()) in setThunkProperties() 56 ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); in setThunkProperties() 92 auto ClassAlign = CGF.CGM.getClassPointerAlignment(ClassDecl); in PerformReturnAdjustment() [all …]
|
| H A D | SwiftCallingConv.cpp | 22 static const SwiftABIInfo &getSwiftABIInfo(CodeGenModule &CGM) { in getSwiftABIInfo() argument 23 return cast<SwiftABIInfo>(CGM.getTargetCodeGenInfo().getABIInfo()); in getSwiftABIInfo() 55 static CharUnits getTypeStoreSize(CodeGenModule &CGM, llvm::Type *type) { in getTypeStoreSize() argument 56 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeStoreSize(type)); in getTypeStoreSize() 59 static CharUnits getTypeAllocSize(CodeGenModule &CGM, llvm::Type *type) { in getTypeAllocSize() argument 60 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeAllocSize(type)); in getTypeAllocSize() 74 auto arrayType = CGM.getContext().getAsConstantArrayType(type); in addTypedData() 78 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData() 86 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData() 87 auto eltLLVMType = CGM.getTypes().ConvertType(eltType); in addTypedData() [all …]
|
| H A D | CGBlocks.cpp | 51 static llvm::Constant *buildGlobalBlock(CodeGenModule &CGM, 56 static llvm::Constant *buildCopyHelper(CodeGenModule &CGM, in buildCopyHelper() argument 58 return CodeGenFunction(CGM).GenerateCopyHelperFunction(blockInfo); in buildCopyHelper() 62 static llvm::Constant *buildDisposeHelper(CodeGenModule &CGM, in buildDisposeHelper() argument 64 return CodeGenFunction(CGM).GenerateDestroyHelperFunction(blockInfo); in buildDisposeHelper() 120 CodeGenModule &CGM); 123 CodeGenModule &CGM) { in getBlockDescriptorName() argument 128 if (CGM.getLangOpts().Exceptions) in getBlockDescriptorName() 130 if (CGM.getCodeGenOpts().ObjCAutoRefCountExceptions) in getBlockDescriptorName() 135 findBlockCapturedManagedEntities(BlockInfo, CGM.getContext().getLangOpts(), in getBlockDescriptorName() [all …]
|
| H A D | CGExprConstant.cpp | 43 CodeGenModule &CGM; member 45 ConstantAggregateBuilderUtils(CodeGenModule &CGM) : CGM(CGM) {} in ConstantAggregateBuilderUtils() 49 CGM.getDataLayout().getABITypeAlignment(C->getType())); in getAlignment() 53 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeAllocSize(Ty)); in getSize() 61 llvm::Type *Ty = CGM.CharTy; in getPadding() 68 llvm::Type *Ty = llvm::ArrayType::get(CGM.CharTy, ZeroSize.getQuantity()); in getZeroes() 99 static llvm::Constant *buildFrom(CodeGenModule &CGM, 107 ConstantAggregateBuilder(CodeGenModule &CGM) in ConstantAggregateBuilder() argument 108 : ConstantAggregateBuilderUtils(CGM) {} in ConstantAggregateBuilder() 130 return buildFrom(CGM, Elems, Offsets, CharUnits::Zero(), Size, in build() [all …]
|
| H A D | CGCUDANV.cpp | 94 auto ConstStr = CGM.GetAddrOfConstantCString(Str, Name.c_str()); in makeConstantString() 119 CGBuilderTy FuncBuilder(CGM, Context); in makeDummyFunction() 162 CGNVCUDARuntime(CodeGenModule &CGM); 183 if (CGM.getLangOpts().HIP) in addPrefixToName() 189 if (CGM.getLangOpts().HIP) in addUnderscoredPrefixToName() 194 CGNVCUDARuntime::CGNVCUDARuntime(CodeGenModule &CGM) in CGNVCUDARuntime() argument 195 : CGCUDARuntime(CGM), Context(CGM.getLLVMContext()), in CGNVCUDARuntime() 196 TheModule(CGM.getModule()), in CGNVCUDARuntime() 197 RelocatableDeviceCode(CGM.getLangOpts().GPURelocatableDeviceCode), in CGNVCUDARuntime() 198 DeviceMC(CGM.getContext().createMangleContext( in CGNVCUDARuntime() [all …]
|
| H A D | MicrosoftCXXABI.cpp | 46 MicrosoftCXXABI(CodeGenModule &CGM) in MicrosoftCXXABI() argument 47 : CGCXXABI(CGM), BaseClassDescriptorType(nullptr), in MicrosoftCXXABI() 238 CGM.getMicrosoftVTableContext().getMethodVFTableLocation(MD); in getThisArgumentTypeForMethod() 339 if (auto *VDispMap = CGM.getModule().getNamedGlobal(MangledName)) in getAddrOfVirtualDisplacementMap() 342 MicrosoftVTableContext &VTContext = CGM.getMicrosoftVTableContext(); in getAddrOfVirtualDisplacementMap() 345 llvm::UndefValue::get(CGM.IntTy)); in getAddrOfVirtualDisplacementMap() 346 Map[0] = llvm::ConstantInt::get(CGM.IntTy, 0); in getAddrOfVirtualDisplacementMap() 355 Map[SrcVBIndex] = llvm::ConstantInt::get(CGM.IntTy, DstVBIndex * 4); in getAddrOfVirtualDisplacementMap() 362 llvm::ArrayType *VDispMapTy = llvm::ArrayType::get(CGM.IntTy, Map.size()); in getAddrOfVirtualDisplacementMap() 369 CGM.getModule(), VDispMapTy, /*isConstant=*/true, Linkage, in getAddrOfVirtualDisplacementMap() [all …]
|
| H A D | CGObjCMac.cpp | 69 return CGM.CreateRuntimeFunction( in getMessageSendFn() 71 llvm::AttributeList::get(CGM.getLLVMContext(), in getMessageSendFn() 83 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(CGM.VoidTy, in getMessageSendStretFn() 95 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 …]
|
| H A D | CGObjCGNU.cpp | 49 CodeGenModule *CGM; member in __anon119c321b0111::LazyRuntimeFunction 59 : CGM(nullptr), FunctionName(nullptr), Function(nullptr) {} in LazyRuntimeFunction() 66 CGM = Mod; in init() 86 Function = CGM->CreateRuntimeFunction(FTy, FunctionName); in operator llvm::FunctionCallee() 174 const ObjCRuntime &R = CGM.getLangOpts().ObjCRuntime; in isRuntime() 180 return (StringRef(CGM.getTriple().isOSBinFormatCOFF() ? "$_" : "._") + Name).str(); in ManglePublicSymbol() 197 CGM.GetAddrOfConstantCString(std::string(Str), Name); in MakeConstantString() 231 CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container); in MakePropertyEncodingString() 281 CGM.getContext().getCharWidth()); in PushPropertyListHeader() 294 ASTContext &Context = CGM.getContext(); in PushProperty() [all …]
|
| H A D | CGVTT.cpp | 21 GetAddrOfVTTVTable(CodeGenVTables &CGVT, CodeGenModule &CGM, in GetAddrOfVTTVTable() argument 30 return CGM.getCXXABI().getAddrOfVTable(MostDerivedClass, CharUnits()); in GetAddrOfVTTVTable() 44 VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/true); in EmitVTTDefinition() 46 llvm::ArrayType::get(CGM.Int8PtrTy, Builder.getVTTComponents().size()); in EmitVTTDefinition() 53 VTables.push_back(GetAddrOfVTTVTable(*this, CGM, RD, *i, Linkage, in EmitVTTDefinition() 75 llvm::ConstantInt::get(CGM.Int32Ty, 0), in EmitVTTDefinition() 76 llvm::ConstantInt::get(CGM.Int32Ty, AddressPoint.VTableIndex), in EmitVTTDefinition() 77 llvm::ConstantInt::get(CGM.Int32Ty, AddressPoint.AddressPointIndex), in EmitVTTDefinition() 85 CGM.Int8PtrTy); in EmitVTTDefinition() 97 if (CGM.supportsCOMDAT() && VTT->isWeakForLinker()) in EmitVTTDefinition() [all …]
|
| H A D | CGDebugInfo.cpp | 66 CGDebugInfo::CGDebugInfo(CodeGenModule &CGM) in CGDebugInfo() argument 67 : CGM(CGM), DebugKind(CGM.getCodeGenOpts().getDebugInfo()), in CGDebugInfo() 68 DebugTypeExtRefs(CGM.getCodeGenOpts().DebugTypeExtRefs), in CGDebugInfo() 69 DBuilder(CGM.getModule()) { in CGDebugInfo() 70 for (const auto &KV : CGM.getCodeGenOpts().DebugPrefixMap) in CGDebugInfo() 103 if (OriginalLocation && !DI->CGM.getExpressionLocationsEnabled()) in init() 175 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); in setLocation() 183 SourceManager &SM = CGM.getContext().getSourceManager(); in setLocation() 224 return getOrCreateType(CGM.getContext().getTypeDeclType(RDecl), in getContextDescriptor() 230 PrintingPolicy PP = CGM.getContext().getPrintingPolicy(); in getPrintingPolicy() [all …]
|
| H A D | CGOpenMPRuntimeGPU.cpp | 540 auto &RT = static_cast<CGOpenMPRuntimeGPU &>(CGF.CGM.getOpenMPRuntime()); in getNVPTXWarpID() 551 auto &RT = static_cast<CGOpenMPRuntimeGPU &>(CGF.CGM.getOpenMPRuntime()); in getNVPTXLaneID() 564 auto &RT = static_cast<CGOpenMPRuntimeGPU &>(CGF.CGM.getOpenMPRuntime()); in getThreadLimit() 586 auto &RT = static_cast<CGOpenMPRuntimeGPU &>(CGF.CGM.getOpenMPRuntime()); in getMasterThreadID() 596 CodeGenModule &CGM, SourceLocation Loc) in WorkerFunctionState() argument 597 : WorkerFn(nullptr), CGFI(CGM.getTypes().arrangeNullaryFunction()), in WorkerFunctionState() 599 createWorkerFunction(CGM); in WorkerFunctionState() 603 CodeGenModule &CGM) { in createWorkerFunction() argument 607 CGM.getTypes().GetFunctionType(CGFI), llvm::GlobalValue::InternalLinkage, in createWorkerFunction() 608 /*placeholder=*/"_worker", &CGM.getModule()); in createWorkerFunction() [all …]
|
| H A D | CGObjC.cpp | 51 CGM.getObjCRuntime().GenerateConstantString(E->getString()).getPointer(); in EmitObjCStringLiteral() 69 ConstantEmitter ConstEmitter(CGM); in EmitObjCBoxedExpr() 79 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCBoxedExpr() 101 llvm::Constant *GV = CGM.GetAddrOfConstantCString(Str).getPointer(); in EmitObjCBoxedExpr() 122 ASTContext &Context = CGM.getContext(); in EmitObjCCollectionLiteral() 131 if (NumElements == 0 && CGM.getLangOpts().ObjCRuntime.hasEmptyCollections()) { in EmitObjCCollectionLiteral() 133 QualType IdTy(CGM.getContext().getObjCIdType()); in EmitObjCCollectionLiteral() 135 CGM.CreateRuntimeVariable(ConvertType(IdTy), ConstantName); in EmitObjCCollectionLiteral() 139 CGM.getModule().getMDKindID("invariant.load"), in EmitObjCCollectionLiteral() 163 CGM.getCodeGenOpts().OptimizationLevel != 0); in EmitObjCCollectionLiteral() [all …]
|
| H A D | SanitizerMetadata.cpp | 23 SanitizerMetadata::SanitizerMetadata(CodeGenModule &CGM) : CGM(CGM) {} in SanitizerMetadata() argument 35 if (!isAsanHwasanOrMemTag(CGM.getLangOpts().Sanitize)) in reportGlobalToASan() 37 IsDynInit &= !CGM.isInNoSanitizeList(GV, Loc, Ty, "init"); in reportGlobalToASan() 38 IsExcluded |= CGM.isInNoSanitizeList(GV, Loc, Ty); in reportGlobalToASan() 42 llvm::LLVMContext &VMContext = CGM.getLLVMContext(); in reportGlobalToASan() 60 CGM.getModule().getOrInsertNamedMetadata("llvm.asan.globals"); in reportGlobalToASan() 66 if (!isAsanHwasanOrMemTag(CGM.getLangOpts().Sanitize)) in reportGlobalToASan() 83 if (isAsanHwasanOrMemTag(CGM.getLangOpts().Sanitize)) in disableSanitizerForGlobal() 88 I->setMetadata(CGM.getModule().getMDKindID("nosanitize"), in disableSanitizerForInstruction() 89 llvm::MDNode::get(CGM.getLLVMContext(), None)); in disableSanitizerForInstruction() [all …]
|
| H A D | CGObjCRuntime.cpp | 30 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, in ComputeIvarBaseOffset() argument 33 return CGM.getContext().lookupFieldBitOffset(OID, nullptr, Ivar) / in ComputeIvarBaseOffset() 34 CGM.getContext().getCharWidth(); in ComputeIvarBaseOffset() 37 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, in ComputeIvarBaseOffset() argument 40 return CGM.getContext().lookupFieldBitOffset(OID->getClassInterface(), OID, in ComputeIvarBaseOffset() 42 CGM.getContext().getCharWidth(); in ComputeIvarBaseOffset() 46 CodeGen::CodeGenModule &CGM, in ComputeBitfieldBitOffset() argument 49 return CGM.getContext().lookupFieldBitOffset(ID, ID->getImplementation(), in ComputeBitfieldBitOffset() 62 CGF.CGM.getContext().getObjCObjectPointerType(InterfaceTy); in EmitValueForIvarAtOffset() 65 llvm::Type *LTy = CGF.CGM.getTypes().ConvertTypeForMem(IvarTy); in EmitValueForIvarAtOffset() [all …]
|
| H A D | CodeGenFunction.cpp | 69 : CodeGenTypeCache(cgm), CGM(cgm), Target(cgm.getTarget()), in CodeGenFunction() 72 SanOpts(CGM.getLangOpts().Sanitize), CurFPFeatures(CGM.getLangOpts()), in CodeGenFunction() 73 DebugInfo(CGM.getModuleDebugInfo()), PGO(cgm), in CodeGenFunction() 75 shouldEmitLifetimeMarkers(CGM.getCodeGenOpts(), CGM.getLangOpts())) { in CodeGenFunction() 77 CGM.getCXXABI().getMangleContext().startNewFunction(); in CodeGenFunction() 88 CGM.getOpenMPRuntime().functionFinished(*this); in ~CodeGenFunction() 95 if (CGM.getLangOpts().OpenMPIRBuilder && CurFn) in ~CodeGenFunction() 96 CGM.getOpenMPRuntime().getOMPBuilder().finalize(CurFn); in ~CodeGenFunction() 201 CharUnits Alignment = CGM.getNaturalTypeAlignment(T, &BaseInfo, &TBAAInfo); in MakeNaturalAlignAddrLValue() 212 CharUnits Align = CGM.getNaturalTypeAlignment(T, &BaseInfo, &TBAAInfo, in MakeNaturalAlignPointeeAddrLValue() [all …]
|
| H A D | CGOpenCLRuntime.cpp | 37 llvm::LLVMContext& Ctx = CGM.getLLVMContext(); in convertOpenCLSpecificType() 38 uint32_t AddrSpc = CGM.getContext().getTargetAddressSpace( in convertOpenCLSpecificType() 39 CGM.getContext().getOpenCLTypeAddrSpace(T)); in convertOpenCLSpecificType() 83 CGM.getLLVMContext(), Name), in getPipeType() 84 CGM.getContext().getTargetAddressSpace( in getPipeType() 85 CGM.getContext().getOpenCLTypeAddrSpace(T))); in getPipeType() 92 CGM.getLLVMContext(), "opencl.sampler_t"), in getSamplerType() 93 CGM.getContext().getTargetAddressSpace( in getSamplerType() 94 CGM.getContext().getOpenCLTypeAddrSpace(T))); in getSamplerType() 101 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemSize() [all …]
|
| H A D | CGOpenMPRuntime.cpp | 625 CGF.CGM.getOpenMPRuntime().getUserDefinedReduction(DRD); in emitInitWithReductionInitializer() 644 llvm::Constant *Init = CGF.CGM.EmitNullConstant(Ty); in emitInitWithReductionInitializer() 645 std::string Name = CGF.CGM.getOpenMPRuntime().getName({"init"}); in emitInitWithReductionInitializer() 647 CGF.CGM.getModule(), Init->getType(), /*isConstant=*/true, in emitInitWithReductionInitializer() 897 CGF.CGM.getTBAAInfoForSubobject(SharedAddresses[N].first, SharedType)); in emitInitialization() 953 CGF.CGM.getTBAAInfoForSubobject(BaseLV, BaseLV.getType())); in loadToBegin() 1075 CGOpenMPRuntime::CGOpenMPRuntime(CodeGenModule &CGM, StringRef FirstSeparator, in CGOpenMPRuntime() argument 1077 : CGM(CGM), FirstSeparator(FirstSeparator), Separator(Separator), in CGOpenMPRuntime() 1078 OMPBuilder(CGM.getModule()), OffloadEntriesInfoManager(CGM) { in CGOpenMPRuntime() 1079 KmpCriticalNameTy = llvm::ArrayType::get(CGM.Int32Ty, /*NumElements*/ 8); in CGOpenMPRuntime() [all …]
|
| H A D | CGException.cpp | 33 static llvm::FunctionCallee getFreeExceptionFn(CodeGenModule &CGM) { in getFreeExceptionFn() argument 37 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*isVarArg=*/false); in getFreeExceptionFn() 39 return CGM.CreateRuntimeFunction(FTy, "__cxa_free_exception"); in getFreeExceptionFn() 42 static llvm::FunctionCallee getSehTryBeginFn(CodeGenModule &CGM) { in getSehTryBeginFn() argument 44 llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false); in getSehTryBeginFn() 45 return CGM.CreateRuntimeFunction(FTy, "llvm.seh.try.begin"); in getSehTryBeginFn() 48 static llvm::FunctionCallee getSehTryEndFn(CodeGenModule &CGM) { in getSehTryEndFn() argument 50 llvm::FunctionType::get(CGM.VoidTy, /*isVarArg=*/false); in getSehTryEndFn() 51 return CGM.CreateRuntimeFunction(FTy, "llvm.seh.try.end"); in getSehTryEndFn() 54 static llvm::FunctionCallee getUnexpectedFn(CodeGenModule &CGM) { in getUnexpectedFn() argument [all …]
|
| H A D | CGDeclCXX.cpp | 43 CodeGenModule &CGM = CGF.CGM; in EmitDeclInit() local 45 CGM.getObjCRuntime().EmitObjCGlobalAssign(CGF, CGF.EmitScalarExpr(Init), in EmitDeclInit() 48 CGM.getObjCRuntime().EmitObjCWeakAssign(CGF, CGF.EmitScalarExpr(Init), in EmitDeclInit() 100 CodeGenModule &CGM = CGF.CGM; in EmitDeclDestroy() local 109 Record && (!CGM.getCXXABI().HasThisReturn( in EmitDeclDestroy() 111 CGM.getCXXABI().canCallMismatchedFunctionType()); in EmitDeclDestroy() 115 bool UsingExternalHelper = !CGM.getCodeGenOpts().CXAAtExit; in EmitDeclDestroy() 120 Func = CGM.getAddrAndTypeOfCXXStructor(GlobalDecl(Dtor, Dtor_Complete)); in EmitDeclDestroy() 123 CGM.getTargetCodeGenInfo().getAddrSpaceOfCxaAtexitPtrParam(); in EmitDeclDestroy() 125 CGM.getContext().getTargetAddressSpace(DestAS)); in EmitDeclDestroy() [all …]
|
| H A D | CodeGenPGO.cpp | 35 llvm::IndexedInstrProfReader *PGOReader = CGM.getPGOReader(); in setFuncName() 37 Name, Linkage, CGM.getCodeGenOpts().MainFileName, in setFuncName() 41 if (CGM.getCodeGenOpts().hasProfileClangInstr()) in setFuncName() 42 FuncNameVar = llvm::createPGOFuncNameVar(CGM.getModule(), Linkage, FuncName); in setFuncName() 145 CodeGenModule &CGM) { in getPGOHashVersion() argument 792 if (CGM.getLangOpts().CUDA && !CGM.getLangOpts().CUDAIsDevice && in assignRegionCounters() 796 bool InstrumentRegions = CGM.getCodeGenOpts().hasProfileClangInstr(); in assignRegionCounters() 797 llvm::IndexedInstrProfReader *PGOReader = CGM.getPGOReader(); in assignRegionCounters() 805 if (CGM.getTarget().getCXXABI().hasConstructorVariants()) { in assignRegionCounters() 814 CGM.ClearUnusedCoverageMapping(D); in assignRegionCounters() [all …]
|
| H A D | CGClass.cpp | 138 CXXThisAlignment = CGM.getClassPointerAlignment(RD); in LoadCXXThisAddress() 155 CGM.getCXXABI().EmitMemberDataPointerAddress(*this, E, base, in EmitCXXMemberDataPointerAddress() 160 CGM.getNaturalTypeAlignment(memberType, BaseInfo, TBAAInfo); in EmitCXXMemberDataPointerAddress() 162 CGM.getDynamicOffsetAlignment(base.getAlignment(), in EmitCXXMemberDataPointerAddress() 258 (CGF.CGM.getTarget().getCXXABI().isItaniumFamily() && in ApplyNonVirtualAndVirtualOffset() 259 CGF.CGM.getItaniumVTableContext().isRelativeLayout()) in ApplyNonVirtualAndVirtualOffset() 282 alignment = CGF.CGM.getVBaseAlignment(addr.getAlignment(), in ApplyNonVirtualAndVirtualOffset() 315 CharUnits NonVirtualOffset = CGM.computeNonVirtualBaseClassOffset( in GetAddressOfBaseClass() 334 CharUnits DerivedAlign = CGM.getClassPointerAlignment(Derived); in GetAddressOfBaseClass() 374 CGM.getCXXABI().GetVirtualBaseClassOffset(*this, Value, Derived, VBase); in GetAddressOfBaseClass() [all …]
|
| /netbsd-src/external/apache2/llvm/dist/clang/include/clang/CodeGen/ |
| H A D | CodeGenABITypes.h | 70 const CGFunctionInfo &arrangeObjCMessageSendSignature(CodeGenModule &CGM, 74 const CGFunctionInfo &arrangeFreeFunctionType(CodeGenModule &CGM, 77 const CGFunctionInfo &arrangeFreeFunctionType(CodeGenModule &CGM, 80 const CGFunctionInfo &arrangeCXXMethodType(CodeGenModule &CGM, 85 const CGFunctionInfo &arrangeFreeFunctionCall(CodeGenModule &CGM, 94 getImplicitCXXConstructorArgs(CodeGenModule &CGM, const CXXConstructorDecl *D); 97 getCXXDestructorImplicitParam(CodeGenModule &CGM, llvm::BasicBlock *InsertBlock, 103 llvm::FunctionType *convertFreeFunctionType(CodeGenModule &CGM, 106 llvm::Type *convertTypeForMemory(CodeGenModule &CGM, QualType T); 112 unsigned getLLVMFieldNumber(CodeGenModule &CGM, [all …]
|
| H A D | SwiftCallingConv.h | 42 CodeGenModule &CGM; variable 57 SwiftAggLowering(CodeGenModule &CGM) : CGM(CGM) {} in SwiftAggLowering() argument 123 bool shouldPassIndirectly(CodeGenModule &CGM, 128 CharUnits getMaximumVoluntaryIntegerSize(CodeGenModule &CGM); 131 CharUnits getNaturalAlignment(CodeGenModule &CGM, llvm::Type *type); 135 bool isLegalIntegerType(CodeGenModule &CGM, llvm::IntegerType *type); 139 bool isLegalVectorType(CodeGenModule &CGM, CharUnits vectorSize, 141 bool isLegalVectorType(CodeGenModule &CGM, CharUnits vectorSize, 146 splitLegalVectorType(CodeGenModule &CGM, CharUnits vectorSize, 153 void legalizeVectorType(CodeGenModule &CGM, CharUnits vectorSize, [all …]
|