/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
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 | TargetInfo.h | 82 CodeGen::CodeGenModule &CGM, in emitTargetMetadata() argument 86 virtual void emitTargetGlobals(CodeGen::CodeGenModule &CGM) const {} in emitTargetGlobals() argument 90 virtual void checkFunctionABI(CodeGenModule &CGM, in checkFunctionABI() argument 95 virtual void checkFunctionCallABI(CodeGenModule &CGM, SourceLocation CallLoc, in checkFunctionCallABI() argument 162 CodeGenModule &CGM) const { in testFPKind() argument 219 getUBSanFunctionSignature(CodeGen::CodeGenModule &CGM) const { in getUBSanFunctionSignature() argument 220 return llvm::ConstantInt::get(CGM.Int32Ty, 0xc105cafe); in getUBSanFunctionSignature() 287 virtual llvm::Constant *getNullPointer(const CodeGen::CodeGenModule &CGM, 294 virtual LangAS getGlobalVarAddressSpace(CodeGenModule &CGM, 321 virtual llvm::Constant *performAddrSpaceCast(CodeGenModule &CGM, [all …]
|
H A D | ItaniumCXXABI.cpp | 64 ItaniumCXXABI(CodeGen::CodeGenModule &CGM, in ItaniumCXXABI() argument 67 CGCXXABI(CGM), UseARMMethodPtrABI(UseARMMethodPtrABI), in ItaniumCXXABI() 200 if (!CGM.getCodeGenOpts().AssumeUniqueVTables || in hasUniqueVTablePointer() 206 if (!CGM.shouldEmitRTTI()) in hasUniqueVTablePointer() 211 if (!llvm::GlobalValue::isWeakForLinker(CGM.getVTableLinkage(RD))) in hasUniqueVTablePointer() 219 if (CGM.GetLLVMVisibility(RD->getVisibility()) != in hasUniqueVTablePointer() 334 CGM.setGVProperties(Thunk, GD); in setThunkLinkage() 377 CodeGenModule &CGM, 437 CGM.getItaniumVTableContext().getVTableLayout(RD); in hasAnyUnusedVirtualInlineFunction() 448 StringRef Name = CGM.getMangledName(VtableComponent.getGlobalDecl()); in hasAnyUnusedVirtualInlineFunction() [all …]
|
H A D | CGVTables.cpp | 32 CodeGenVTables::CodeGenVTables(CodeGenModule &CGM) in CodeGenVTables() argument 33 : CGM(CGM), VTContext(CGM.getContext().getVTableContext()) {} in CodeGenVTables() 41 static void setThunkProperties(CodeGenModule &CGM, const ThunkInfo &Thunk, in setThunkProperties() argument 44 CGM.setFunctionLinkage(GD, ThunkFn); in setThunkProperties() 45 CGM.getCXXABI().setThunkLinkage(ThunkFn, ForVTable, GD, in setThunkProperties() 49 CGM.setGVProperties(ThunkFn, GD); in setThunkProperties() 51 if (!CGM.getCXXABI().exportThunk()) { in setThunkProperties() 56 if (CGM.supportsCOMDAT() && ThunkFn->isWeakForLinker()) in setThunkProperties() 57 ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); in setThunkProperties() 93 auto ClassAlign = CGF.CGM.getClassPointerAlignment(ClassDecl); in PerformReturnAdjustment() [all …]
|
H A D | CGBlocks.cpp | 52 static llvm::Constant *buildGlobalBlock(CodeGenModule &CGM, 57 static llvm::Constant *buildCopyHelper(CodeGenModule &CGM, in buildCopyHelper() argument 59 return CodeGenFunction(CGM).GenerateCopyHelperFunction(blockInfo); in buildCopyHelper() 63 static llvm::Constant *buildDisposeHelper(CodeGenModule &CGM, in buildDisposeHelper() argument 65 return CodeGenFunction(CGM).GenerateDestroyHelperFunction(blockInfo); in buildDisposeHelper() 84 CodeGenModule &CGM); 87 CodeGenModule &CGM) { in getBlockDescriptorName() argument 92 if (CGM.getLangOpts().Exceptions) in getBlockDescriptorName() 94 if (CGM.getCodeGenOpts().ObjCAutoRefCountExceptions) in getBlockDescriptorName() 110 BlockInfo.BlockAlign, CGM); in getBlockDescriptorName() [all …]
|
H A D | SwiftCallingConv.cpp | 24 static const SwiftABIInfo &getSwiftABIInfo(CodeGenModule &CGM) { in getSwiftABIInfo() argument 25 return CGM.getTargetCodeGenInfo().getSwiftABIInfo(); in getSwiftABIInfo() 57 static CharUnits getTypeStoreSize(CodeGenModule &CGM, llvm::Type *type) { in getTypeStoreSize() argument 58 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeStoreSize(type)); in getTypeStoreSize() 61 static CharUnits getTypeAllocSize(CodeGenModule &CGM, llvm::Type *type) { in getTypeAllocSize() argument 62 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeAllocSize(type)); in getTypeAllocSize() 76 auto arrayType = CGM.getContext().getAsConstantArrayType(type); in addTypedData() 80 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData() 88 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData() 89 auto eltLLVMType = CGM.getTypes().ConvertType(eltType); in addTypedData() [all …]
|
H A D | CGExprConstant.cpp | 46 CodeGenModule &CGM; member 48 ConstantAggregateBuilderUtils(CodeGenModule &CGM) : CGM(CGM) {} in ConstantAggregateBuilderUtils() 52 CGM.getDataLayout().getABITypeAlign(C->getType())); in getAlignment() 56 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeAllocSize(Ty)); in getSize() 64 llvm::Type *Ty = CGM.CharTy; in getPadding() 71 llvm::Type *Ty = llvm::ArrayType::get(CGM.CharTy, ZeroSize.getQuantity()); in getZeroes() 102 static llvm::Constant *buildFrom(CodeGenModule &CGM, 110 ConstantAggregateBuilder(CodeGenModule &CGM) in ConstantAggregateBuilder() argument 111 : ConstantAggregateBuilderUtils(CGM) {} in ConstantAggregateBuilder() 133 return buildFrom(CGM, Elems, Offsets, CharUnits::Zero(), Size, in build() [all …]
|
H A D | CGCUDANV.cpp | 92 return CGM.GetAddrOfConstantCString(Str, Name.c_str()).getPointer(); in makeConstantString() 128 CGBuilderTy FuncBuilder(CGM, Context); in makeDummyFunction() 173 CGNVCUDARuntime(CodeGenModule &CGM); 194 if (CGM.getLangOpts().HIP) in addPrefixToName() 200 if (CGM.getLangOpts().HIP) in addUnderscoredPrefixToName() 205 static std::unique_ptr<MangleContext> InitDeviceMC(CodeGenModule &CGM) { in InitDeviceMC() argument 209 if (CGM.getContext().getAuxTargetInfo() && in InitDeviceMC() 210 CGM.getContext().getTargetInfo().getCXXABI().isMicrosoft() && in InitDeviceMC() 211 CGM.getContext().getAuxTargetInfo()->getCXXABI().isItaniumFamily()) { in InitDeviceMC() 213 CGM.getContext().createDeviceMangleContext( in InitDeviceMC() [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 CGM.GlobalsInt8PtrTy, 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() 83 CGM.getDataLayout().getTypeAllocSize(getVTableComponentType()); in EmitVTTDefinition() 84 unsigned VTableSize = CGM.getDataLayout().getTypeAllocSize( in EmitVTTDefinition() [all …]
|
H A D | MicrosoftCXXABI.cpp | 47 MicrosoftCXXABI(CodeGenModule &CGM) in MicrosoftCXXABI() argument 48 : CGCXXABI(CGM), BaseClassDescriptorType(nullptr), in MicrosoftCXXABI() 52 assert(!(CGM.getLangOpts().isExplicitDefaultVisibilityExportMapping() || in MicrosoftCXXABI() 53 CGM.getLangOpts().isAllDefaultVisibilityExportMapping()) && in MicrosoftCXXABI() 266 CGM.getMicrosoftVTableContext().getMethodVFTableLocation(LookupGD); in getThisArgumentTypeForMethod() 364 if (auto *VDispMap = CGM.getModule().getNamedGlobal(MangledName)) in getAddrOfVirtualDisplacementMap() 367 MicrosoftVTableContext &VTContext = CGM.getMicrosoftVTableContext(); in getAddrOfVirtualDisplacementMap() 370 llvm::UndefValue::get(CGM.IntTy)); in getAddrOfVirtualDisplacementMap() 371 Map[0] = llvm::ConstantInt::get(CGM.IntTy, 0); in getAddrOfVirtualDisplacementMap() 380 Map[SrcVBIndex] = llvm::ConstantInt::get(CGM.IntTy, DstVBIndex * 4); in getAddrOfVirtualDisplacementMap() [all …]
|
H A D | CGObjCGNU.cpp | 51 CodeGenModule *CGM = nullptr; member in __anonbab9bb100111::LazyRuntimeFunction 64 CGM = Mod; in init() 84 Function = CGM->CreateRuntimeFunction(FTy, FunctionName); in operator llvm::FunctionCallee() 178 const ObjCRuntime &R = CGM.getLangOpts().ObjCRuntime; in isRuntime() 184 return (StringRef(CGM.getTriple().isOSBinFormatCOFF() ? "$_" : "._") + Name).str(); in ManglePublicSymbol() 201 CGM.GetAddrOfConstantCString(std::string(Str), Name); in MakeConstantString() 233 CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container); in MakePropertyEncodingString() 283 CGM.getContext().getCharWidth()); in PushPropertyListHeader() 296 ASTContext &Context = CGM.getContext(); in PushProperty() 594 CGM.getContext().getObjCEncodingForMethodDecl(M)); in GetConstantSelector() [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 | CGDebugInfo.cpp | 82 CGDebugInfo::CGDebugInfo(CodeGenModule &CGM) in CGDebugInfo() argument 83 : CGM(CGM), DebugKind(CGM.getCodeGenOpts().getDebugInfo()), in CGDebugInfo() 84 DebugTypeExtRefs(CGM.getCodeGenOpts().DebugTypeExtRefs), in CGDebugInfo() 85 DBuilder(CGM.getModule()) { in CGDebugInfo() 117 if (OriginalLocation && !DI->CGM.getExpressionLocationsEnabled()) in init() 189 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); in setLocation() 197 SourceManager &SM = CGM.getContext().getSourceManager(); in setLocation() 238 return getOrCreateType(CGM.getContext().getTypeDeclType(RDecl), in getContextDescriptor() 244 PrintingPolicy PP = CGM.getContext().getPrintingPolicy(); in getPrintingPolicy() 251 if (CGM.getCodeGenOpts().EmitCodeView) { in getPrintingPolicy() [all …]
|
H A D | CGObjC.cpp | 54 CGM.getObjCRuntime().GenerateConstantString(E->getString()).getPointer(); in EmitObjCStringLiteral() 71 ConstantEmitter ConstEmitter(CGM); in EmitObjCBoxedExpr() 81 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCBoxedExpr() 104 llvm::Constant *GV = CGM.GetAddrOfConstantCString(Str).getPointer(); in EmitObjCBoxedExpr() 125 ASTContext &Context = CGM.getContext(); in EmitObjCCollectionLiteral() 134 if (NumElements == 0 && CGM.getLangOpts().ObjCRuntime.hasEmptyCollections()) { in EmitObjCCollectionLiteral() 136 QualType IdTy(CGM.getContext().getObjCIdType()); in EmitObjCCollectionLiteral() 138 CGM.CreateRuntimeVariable(ConvertType(IdTy), ConstantName); in EmitObjCCollectionLiteral() 166 CGM.getCodeGenOpts().OptimizationLevel != 0); in EmitObjCCollectionLiteral() 216 llvm::ConstantInt::get(CGM.getTypes().ConvertType(ArgQT), NumElements); in EmitObjCCollectionLiteral() [all …]
|
H A D | CodeGenFunction.cpp | 78 : CodeGenTypeCache(cgm), CGM(cgm), Target(cgm.getTarget()), in CodeGenFunction() 81 SanOpts(CGM.getLangOpts().Sanitize), CurFPFeatures(CGM.getLangOpts()), in CodeGenFunction() 82 DebugInfo(CGM.getModuleDebugInfo()), PGO(cgm), in CodeGenFunction() 84 shouldEmitLifetimeMarkers(CGM.getCodeGenOpts(), CGM.getLangOpts())) { in CodeGenFunction() 86 CGM.getCXXABI().getMangleContext().startNewFunction(); in CodeGenFunction() 98 CGM.getOpenMPRuntime().functionFinished(*this); in ~CodeGenFunction() 105 if (CGM.getLangOpts().OpenMPIRBuilder && CurFn) in ~CodeGenFunction() 106 CGM.getOpenMPRuntime().getOMPBuilder().finalize(CurFn); in ~CodeGenFunction() 205 CGF.CGM.getNaturalTypeAlignment(T, &BaseInfo, &TBAAInfo, ForPointeeType); in makeNaturalAlignAddrLValue() 241 return CGM.getTypes().ConvertTypeForMem(T); in ConvertTypeForMem() [all …]
|
H A D | CGObjCRuntime.cpp | 31 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, in ComputeIvarBaseOffset() argument 34 return CGM.getContext().lookupFieldBitOffset(OID, nullptr, Ivar) / in ComputeIvarBaseOffset() 35 CGM.getContext().getCharWidth(); in ComputeIvarBaseOffset() 38 uint64_t CGObjCRuntime::ComputeIvarBaseOffset(CodeGen::CodeGenModule &CGM, in ComputeIvarBaseOffset() argument 41 return CGM.getContext().lookupFieldBitOffset(OID->getClassInterface(), OID, in ComputeIvarBaseOffset() 43 CGM.getContext().getCharWidth(); in ComputeIvarBaseOffset() 47 CodeGen::CodeGenModule &CGM, in ComputeBitfieldBitOffset() argument 50 return CGM.getContext().lookupFieldBitOffset(ID, ID->getImplementation(), in ComputeBitfieldBitOffset() 63 CGF.CGM.getContext().getObjCObjectPointerType(InterfaceTy); in EmitValueForIvarAtOffset() 89 CGF.CGM.getContext().lookupFieldBitOffset(OID, nullptr, Ivar); in EmitValueForIvarAtOffset() [all …]
|
H A D | CGDeclCXX.cpp | 44 CodeGenModule &CGM = CGF.CGM; in EmitDeclInit() local 46 CGM.getObjCRuntime().EmitObjCGlobalAssign(CGF, CGF.EmitScalarExpr(Init), in EmitDeclInit() 49 CGM.getObjCRuntime().EmitObjCWeakAssign(CGF, CGF.EmitScalarExpr(Init), in EmitDeclInit() 101 CodeGenModule &CGM = CGF.CGM; in EmitDeclDestroy() local 110 Record && (!CGM.getCXXABI().HasThisReturn( in EmitDeclDestroy() 112 CGM.getCXXABI().canCallMismatchedFunctionType()); in EmitDeclDestroy() 116 bool UsingExternalHelper = !CGM.getCodeGenOpts().CXAAtExit; in EmitDeclDestroy() 121 Func = CGM.getAddrAndTypeOfCXXStructor(GlobalDecl(Dtor, Dtor_Complete)); in EmitDeclDestroy() 124 CGM.getTargetCodeGenInfo().getAddrSpaceOfCxaAtexitPtrParam(); in EmitDeclDestroy() 126 CGM.getLLVMContext(), CGM.getContext().getTargetAddressSpace(DestAS)); in EmitDeclDestroy() [all …]
|
H A D | TargetInfo.cpp | 120 llvm::Constant *TargetCodeGenInfo::getNullPointer(const CodeGen::CodeGenModule &CGM, in getNullPointer() argument 125 LangAS TargetCodeGenInfo::getGlobalVarAddressSpace(CodeGenModule &CGM, in getGlobalVarAddressSpace() argument 127 assert(!CGM.getLangOpts().OpenCL && in getGlobalVarAddressSpace() 128 !(CGM.getLangOpts().CUDA && CGM.getLangOpts().CUDAIsDevice) && in getGlobalVarAddressSpace() 139 return performAddrSpaceCast(CGF.CGM, C, SrcAddr, DestAddr, DestTy); in performAddrSpaceCast() 146 TargetCodeGenInfo::performAddrSpaceCast(CodeGenModule &CGM, llvm::Constant *Src, in performAddrSpaceCast() argument 163 const Decl *D, llvm::GlobalValue *GV, CodeGen::CodeGenModule &CGM) const { in addStackProbeTargetAttributes() 165 if (CGM.getCodeGenOpts().StackProbeSize != 4096) in addStackProbeTargetAttributes() 167 llvm::utostr(CGM.getCodeGenOpts().StackProbeSize)); in addStackProbeTargetAttributes() 168 if (CGM.getCodeGenOpts().NoStackArgProbe) in addStackProbeTargetAttributes() [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 | CGOpenMPRuntime.cpp | 605 CGF.CGM.getOpenMPRuntime().getUserDefinedReduction(DRD); in emitInitWithReductionInitializer() 622 llvm::Constant *Init = CGF.CGM.EmitNullConstant(Ty); in emitInitWithReductionInitializer() 623 std::string Name = CGF.CGM.getOpenMPRuntime().getName({"init"}); in emitInitWithReductionInitializer() 625 CGF.CGM.getModule(), Init->getType(), /*isConstant=*/true, in emitInitWithReductionInitializer() 912 CGF.CGM.getTBAAInfoForSubobject(BaseLV, BaseLV.getType())); in loadToBegin() 1036 CGOpenMPRuntime::CGOpenMPRuntime(CodeGenModule &CGM) in CGOpenMPRuntime() argument 1037 : CGM(CGM), OMPBuilder(CGM.getModule()) { in CGOpenMPRuntime() 1038 KmpCriticalNameTy = llvm::ArrayType::get(CGM.Int32Ty, /*NumElements*/ 8); in CGOpenMPRuntime() 1040 CGM.getLangOpts().OpenMPIsTargetDevice, isGPU(), in CGOpenMPRuntime() 1041 CGM.getLangOpts().OpenMPOffloadMandatory, in CGOpenMPRuntime() [all …]
|
H A D | CGDecl.cpp | 174 return CGM.EmitOMPDeclareReduction(cast<OMPDeclareReductionDecl>(&D), this); in EmitDecl() 177 return CGM.EmitOMPDeclareMapper(cast<OMPDeclareMapperDecl>(&D), this); in EmitDecl() 207 CGM.getLLVMLinkageVarDefinition(&D); in EmitVarDecl() 217 return CGM.getOpenCLRuntime().EmitWorkGroupLocalVarDecl(*this, D); in EmitVarDecl() 223 static std::string getStaticDeclName(CodeGenModule &CGM, const VarDecl &D) { in getStaticDeclName() argument 224 if (CGM.getLangOpts().CPlusPlus) in getStaticDeclName() 225 return CGM.getMangledName(&D).str(); in getStaticDeclName() 234 ContextName = std::string(CGM.getMangledName(FD)); in getStaticDeclName() 236 ContextName = std::string(CGM.getBlockMangledName(GlobalDecl(), BD)); in getStaticDeclName() 352 CGM.ErrorUnsupported(D.getInit(), "constant l-value expression"); in AddInitializerToStaticVarDecl() [all …]
|
H A D | CGClass.cpp | 140 CXXThisAlignment = CGM.getClassPointerAlignment(MD->getParent()); in LoadCXXThisAddress() 159 CGM.getCXXABI().EmitMemberDataPointerAddress(*this, E, base, in EmitCXXMemberDataPointerAddress() 164 CGM.getNaturalTypeAlignment(memberType, BaseInfo, TBAAInfo); in EmitCXXMemberDataPointerAddress() 166 CGM.getDynamicOffsetAlignment(base.getAlignment(), in EmitCXXMemberDataPointerAddress() 261 (CGF.CGM.getTarget().getCXXABI().isItaniumFamily() && in ApplyNonVirtualAndVirtualOffset() 262 CGF.CGM.getItaniumVTableContext().isRelativeLayout()) in ApplyNonVirtualAndVirtualOffset() 283 alignment = CGF.CGM.getVBaseAlignment(addr.getAlignment(), in ApplyNonVirtualAndVirtualOffset() 316 CharUnits NonVirtualOffset = CGM.computeNonVirtualBaseClassOffset( in GetAddressOfBaseClass() 332 CGM.getLLVMContext(), Value.getType()->getPointerAddressSpace()); in GetAddressOfBaseClass() 335 CharUnits DerivedAlign = CGM.getClassPointerAlignment(Derived); in GetAddressOfBaseClass() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/ |
H A D | CodeGenABITypes.h | 63 const CGFunctionInfo &arrangeObjCMessageSendSignature(CodeGenModule &CGM, 67 const CGFunctionInfo &arrangeFreeFunctionType(CodeGenModule &CGM, 70 const CGFunctionInfo &arrangeFreeFunctionType(CodeGenModule &CGM, 73 const CGFunctionInfo &arrangeCXXMethodType(CodeGenModule &CGM, 78 const CGFunctionInfo &arrangeFreeFunctionCall(CodeGenModule &CGM, 87 getImplicitCXXConstructorArgs(CodeGenModule &CGM, const CXXConstructorDecl *D); 90 getCXXDestructorImplicitParam(CodeGenModule &CGM, llvm::BasicBlock *InsertBlock, 96 llvm::FunctionType *convertFreeFunctionType(CodeGenModule &CGM, 99 llvm::Type *convertTypeForMemory(CodeGenModule &CGM, QualType T); 105 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 …]
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | XCore.cpp | 128 void emitTargetMetadata(CodeGen::CodeGenModule &CGM, 293 const CodeGen::CodeGenModule &CGM, 299 const CodeGen::CodeGenModule &CGM) const { in emitTargetMD() 301 if (getTypeString(Enc, D, CGM, TSC)) { in emitTargetMD() 302 llvm::LLVMContext &Ctx = CGM.getModule().getContext(); in emitTargetMD() 306 CGM.getModule().getOrInsertNamedMetadata("xcore.typestrings"); in emitTargetMD() 312 CodeGen::CodeGenModule &CGM, in emitTargetMetadata() argument 319 llvm::GlobalValue *GV = CGM.GetGlobalValue(Val.second); in emitTargetMetadata() 322 emitTargetMD(D, GV, CGM); in emitTargetMetadata() 328 const CodeGen::CodeGenModule &CGM, [all …]
|