• Home
  • Raw
  • Download

Lines Matching refs:CGM

119     CXXThisAlignment = CGM.getClassPointerAlignment(RD);  in LoadCXXThisAddress()
135 CGM.getCXXABI().EmitMemberDataPointerAddress(*this, E, base, in EmitCXXMemberDataPointerAddress()
141 CGM.getDynamicOffsetAlignment(base.getAlignment(), in EmitCXXMemberDataPointerAddress()
255 alignment = CGF.CGM.getVBaseAlignment(addr.getAlignment(), in ApplyNonVirtualAndVirtualOffset()
288 CharUnits NonVirtualOffset = CGM.computeNonVirtualBaseClassOffset( in GetAddressOfBaseClass()
306 CharUnits DerivedAlign = CGM.getClassPointerAlignment(Derived); in GetAddressOfBaseClass()
342 CGM.getCXXABI().GetVirtualBaseClassOffset(*this, Value, Derived, VBase); in GetAddressOfBaseClass()
380 CGM.GetNonVirtualBaseClassOffset(Derived, PathBegin, PathEnd); in GetAddressOfDerivedClass()
422 return Address(Value, CGM.getClassPointerAlignment(Derived)); in GetAddressOfDerivedClass()
428 if (!CGM.getCXXABI().NeedsVTTParameter(GD)) { in GetVTTParameter()
446 assert(!CGM.getCXXABI().NeedsVTTParameter(CurGD) && in GetVTTParameter()
457 CGM.getVTables().getSubVTTIndex(RD, BaseSubobject(Base, BaseOffset)); in GetVTTParameter()
461 if (CGM.getCXXABI().NeedsVTTParameter(CurGD)) { in GetVTTParameter()
467 VTT = CGM.getVTables().GetAddrOfVTT(RD); in GetVTTParameter()
559 if (CGF.CGM.getLangOpts().Exceptions && in EmitBaseInitializer()
729 CGF.CGM.getCXXABI().getSrcArgforCopyCtor(Constructor, Args); in EmitMemberInitializer()
866 unsigned PtrSize = CGM.getDataLayout().getPointerSizeInBits(); in EmitAsanPrologueOrEpilogue()
892 llvm::FunctionType::get(CGM.VoidTy, Args, false); in EmitAsanPrologueOrEpilogue()
893 llvm::Constant *F = CGM.CreateRuntimeFunction( in EmitAsanPrologueOrEpilogue()
922 assert((CGM.getTarget().getCXXABI().hasConstructorVariants() || in EmitConstructorBody()
929 CGM.getTarget().getCXXABI().hasConstructorVariants()) { in EmitConstructorBody()
1135 return Args[CGF.CGM.getCXXABI().getSrcArgforCopyCtor(CD, Args)]; in getTrivialCopySource()
1365 !CGM.getTarget().getCXXABI().hasConstructorVariants()) { in EmitCtorPrologue()
1369 CGM.getCXXABI().EmitCtorCompleteObjectHandler(*this, ClassDecl); in EmitCtorPrologue()
1376 if (CGM.getCodeGenOpts().StrictVTablePointers && in EmitCtorPrologue()
1377 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCtorPrologue()
1393 if (CGM.getCodeGenOpts().StrictVTablePointers && in EmitCtorPrologue()
1394 CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCtorPrologue()
1567 if (CGM.getCodeGenOpts().StrictVTablePointers && in EmitDestructorBody()
1568 CGM.getCodeGenOpts().OptimizationLevel > 0) in EmitDestructorBody()
1689 CGF.CGM.CreateRuntimeFunction(FnType, "__sanitizer_dtor_callback"); in EmitSanitizerDtorCallback()
1838 if (CGM.getCodeGenOpts().SanitizeMemoryUseAfterDtor && in EnterDtorCleanups()
1864 if (CGM.getCodeGenOpts().SanitizeMemoryUseAfterDtor && in EnterDtorCleanups()
1888 if (CGM.getCodeGenOpts().SanitizeMemoryUseAfterDtor && in EnterDtorCleanups()
2092 CGF.CGM.getTypes().arrangeCXXConstructorCall(Args, Ctor, Type, 0); in canEmitDelegateCallArgs()
2145 unsigned ExtraArgs = CGM.getCXXABI().addImplicitConstructorArgs( in EmitCXXConstructorCall()
2149 llvm::Value *Callee = CGM.getAddrOfCXXStructor(D, getFromCtorType(Type)); in EmitCXXConstructorCall()
2151 CGM.getTypes().arrangeCXXConstructorCall(Args, D, Type, ExtraArgs); in EmitCXXConstructorCall()
2165 if (CGM.getCodeGenOpts().OptimizationLevel > 0 && in EmitCXXConstructorCall()
2167 CGM.getCXXABI().canSpeculativelyEmitVTable(ClassDecl) && in EmitCXXConstructorCall()
2168 CGM.getCodeGenOpts().StrictVTablePointers) in EmitCXXConstructorCall()
2181 CGM.getTarget().getCXXABI().hasConstructorVariants()) { in EmitInheritedCXXConstructorCall()
2232 CGM.getCXXABI().addImplicitConstructorArgs(*this, Ctor, CtorType, in EmitInlinedInheritingCXXConstructorCall()
2254 CGM.getCXXABI().EmitInstanceFunctionProlog(*this); in EmitInlinedInheritingCXXConstructorCall()
2263 CGM.getCXXABI().getVTableAddressPoint(Vptr.Base, Vptr.VTableClass); in EmitVTableAssumptionLoad()
2284 if (CGM.getCXXABI().doStructorsInitializeVPtrs(ClassDecl)) in EmitVTableAssumptionLoads()
2302 llvm::Type *t = CGM.getTypes().ConvertType(QT); in EmitSynthesizedCXXCopyCtorCall()
2330 if (CGM.getCXXABI().NeedsVTTParameter(CurGD)) { in EmitDelegateCXXConstructorCall()
2381 if (CGM.getLangOpts().Exceptions && !ClassDecl->hasTrivialDestructor()) { in EmitDelegatingCXXConstructorCall()
2396 CGM.getCXXABI().EmitDestructorCall(*this, DD, Type, ForVirtualBase, in EmitCXXDestructorCall()
2434 CGM.getCXXABI().getVTableAddressPointInStructor( in InitializeVTablePointer()
2444 if (CGM.getCXXABI().isVirtualOffsetNeededForVTableField(*this, Vptr)) { in InitializeVTablePointer()
2448 VirtualOffset = CGM.getCXXABI().GetVirtualBaseClassOffset( in InitializeVTablePointer()
2467 llvm::FunctionType::get(CGM.Int32Ty, /*isVarArg=*/true) in InitializeVTablePointer()
2474 CGM.DecorateInstructionWithTBAA(Store, CGM.getTBAAInfoForVTablePtr()); in InitializeVTablePointer()
2475 if (CGM.getCodeGenOpts().OptimizationLevel > 0 && in InitializeVTablePointer()
2476 CGM.getCodeGenOpts().StrictVTablePointers) in InitializeVTablePointer()
2477 CGM.DecorateInstructionWithInvariantGroup(Store, Vptr.VTableClass); in InitializeVTablePointer()
2555 if (CGM.getCXXABI().doStructorsInitializeVPtrs(RD)) in InitializeVTablePointers()
2560 CGM.getCXXABI().initializeHiddenVirtualInheritanceMembers(*this, RD); in InitializeVTablePointers()
2568 CGM.DecorateInstructionWithTBAA(VTable, CGM.getTBAAInfoForVTablePtr()); in GetVTablePtr()
2570 if (CGM.getCodeGenOpts().OptimizationLevel > 0 && in GetVTablePtr()
2571 CGM.getCodeGenOpts().StrictVTablePointers) in GetVTablePtr()
2572 CGM.DecorateInstructionWithInvariantGroup(VTable, RD); in GetVTablePtr()
2615 if (CGM.getCodeGenOpts().WholeProgramVTables && in EmitTypeMetadataCodeForVCall()
2616 CGM.HasHiddenLTOVisibility(RD)) { in EmitTypeMetadataCodeForVCall()
2618 CGM.CreateMetadataIdentifierForType(QualType(RD->getTypeForDecl(), 0)); in EmitTypeMetadataCodeForVCall()
2620 llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD); in EmitTypeMetadataCodeForVCall()
2624 Builder.CreateCall(CGM.getIntrinsic(llvm::Intrinsic::type_test), in EmitTypeMetadataCodeForVCall()
2626 Builder.CreateCall(CGM.getIntrinsic(llvm::Intrinsic::assume), TypeTest); in EmitTypeMetadataCodeForVCall()
2692 if (!CGM.getCodeGenOpts().SanitizeCfiCrossDso && in EmitVTablePtrCheck()
2693 !CGM.HasHiddenLTOVisibility(RD)) in EmitVTablePtrCheck()
2721 CGM.CreateMetadataIdentifierForType(QualType(RD->getTypeForDecl(), 0)); in EmitVTablePtrCheck()
2726 CGM.getIntrinsic(llvm::Intrinsic::type_test), {CastedVTable, TypeId}); in EmitVTablePtrCheck()
2752 auto CrossDsoTypeId = CGM.CreateCrossDsoCfiTypeId(MD); in EmitVTablePtrCheck()
2753 if (CGM.getCodeGenOpts().SanitizeCfiCrossDso && CrossDsoTypeId) { in EmitVTablePtrCheck()
2758 if (CGM.getCodeGenOpts().SanitizeTrap.has(M)) { in EmitVTablePtrCheck()
2764 CGM.getLLVMContext(), in EmitVTablePtrCheck()
2765 llvm::MDString::get(CGM.getLLVMContext(), "all-vtables")); in EmitVTablePtrCheck()
2767 CGM.getIntrinsic(llvm::Intrinsic::type_test), {CastedVTable, AllVtables}); in EmitVTablePtrCheck()
2773 if (!CGM.getCodeGenOpts().WholeProgramVTables || in ShouldEmitVTableTypeCheckedLoad()
2775 !CGM.getCodeGenOpts().SanitizeTrap.has(SanitizerKind::CFIVCall) || in ShouldEmitVTableTypeCheckedLoad()
2776 !CGM.HasHiddenLTOVisibility(RD)) in ShouldEmitVTableTypeCheckedLoad()
2790 CGM.CreateMetadataIdentifierForType(QualType(RD->getTypeForDecl(), 0)); in EmitVTableTypeCheckedLoad()
2791 llvm::Value *TypeId = llvm::MetadataAsValue::get(CGM.getLLVMContext(), MD); in EmitVTableTypeCheckedLoad()
2795 CGM.getIntrinsic(llvm::Intrinsic::type_checked_load), in EmitVTableTypeCheckedLoad()
2903 CGM.getTypes().arrangeCXXMethodDeclaration(callOperator); in EmitForwardingCallToLambda()
2905 CGM.GetAddrOfFunction(GlobalDecl(callOperator), in EmitForwardingCallToLambda()
2906 CGM.getTypes().GetFunctionType(calleeFnInfo)); in EmitForwardingCallToLambda()
2958 CGM.ErrorUnsupported(CurCodeDecl, "lambda conversion to variadic function"); in EmitLambdaToBlockPointerBody()
2999 CGM.ErrorUnsupported(MD, "lambda conversion to variadic function"); in EmitLambdaStaticInvokeFunction()