/external/clang/lib/CodeGen/ |
D | CGOpenMPRuntime.cpp | 723 CGOpenMPRuntime::CGOpenMPRuntime(CodeGenModule &CGM) in CGOpenMPRuntime() argument 724 : CGM(CGM), OffloadEntriesInfoManager(CGM) { in CGOpenMPRuntime() 726 "ident_t", CGM.Int32Ty /* reserved_1 */, CGM.Int32Ty /* flags */, in CGOpenMPRuntime() 727 CGM.Int32Ty /* reserved_2 */, CGM.Int32Ty /* reserved_3 */, in CGOpenMPRuntime() 728 CGM.Int8PtrTy /* psource */, nullptr); in CGOpenMPRuntime() 729 KmpCriticalNameTy = llvm::ArrayType::get(CGM.Int32Ty, /*NumElements*/ 8); in CGOpenMPRuntime() 739 emitCombinerOrInitializer(CodeGenModule &CGM, QualType Ty, in emitCombinerOrInitializer() argument 743 auto &C = CGM.getContext(); in emitCombinerOrInitializer() 753 CGM.getTypes().arrangeBuiltinFunctionDeclaration(C.VoidTy, Args); in emitCombinerOrInitializer() 754 auto *FnTy = CGM.getTypes().GetFunctionType(FnInfo); in emitCombinerOrInitializer() [all …]
|
D | SwiftCallingConv.cpp | 23 static const SwiftABIInfo &getSwiftABIInfo(CodeGenModule &CGM) { in getSwiftABIInfo() argument 24 return cast<SwiftABIInfo>(CGM.getTargetCodeGenInfo().getABIInfo()); in getSwiftABIInfo() 56 static CharUnits getTypeStoreSize(CodeGenModule &CGM, llvm::Type *type) { in getTypeStoreSize() argument 57 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeStoreSize(type)); in getTypeStoreSize() 71 auto arrayType = CGM.getContext().getAsConstantArrayType(type); in addTypedData() 75 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData() 83 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData() 84 auto eltLLVMType = CGM.getTypes().ConvertType(eltType); in addTypedData() 91 addOpaqueData(begin, begin + CGM.getContext().getTypeSizeInChars(type)); in addTypedData() 97 auto llvmType = CGM.getTypes().ConvertType(type); in addTypedData() [all …]
|
D | CGVTables.cpp | 32 CodeGenVTables::CodeGenVTables(CodeGenModule &CGM) in CodeGenVTables() argument 33 : CGM(CGM), VTContext(CGM.getContext().getVTableContext()) {} in CodeGenVTables() 53 static void setThunkVisibility(CodeGenModule &CGM, const CXXMethodDecl *MD, in setThunkVisibility() argument 55 CGM.setGlobalVisibility(Fn, MD); in setThunkVisibility() 58 static void setThunkProperties(CodeGenModule &CGM, const ThunkInfo &Thunk, in setThunkProperties() argument 61 CGM.setFunctionLinkage(GD, ThunkFn); in setThunkProperties() 62 CGM.getCXXABI().setThunkLinkage(ThunkFn, ForVTable, GD, in setThunkProperties() 67 setThunkVisibility(CGM, MD, Thunk, ThunkFn); in setThunkProperties() 69 if (CGM.supportsCOMDAT() && ThunkFn->isWeakForLinker()) in setThunkProperties() 70 ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); in setThunkProperties() [all …]
|
D | ItaniumCXXABI.cpp | 54 ItaniumCXXABI(CodeGen::CodeGenModule &CGM, in ItaniumCXXABI() argument 57 CGCXXABI(CGM), UseARMMethodPtrABI(UseARMMethodPtrABI), in ItaniumCXXABI() 158 unsigned Align = CGM.getContext().getTargetInfo().getExnObjectAlignment(); in getAlignmentOfExnObject() 159 return CGM.getContext().toCharUnitsFromBits(Align); in getAlignmentOfExnObject() 321 CodeGenModule &CGM, 368 CGM.getItaniumVTableContext().getVTableLayout(RD); in hasAnyUsedVirtualInlineFunction() 383 CGM.getItaniumVTableContext().getVTableLayout(RD); in isVTableHidden() 403 ARMCXXABI(CodeGen::CodeGenModule &CGM) : in ARMCXXABI() argument 404 ItaniumCXXABI(CGM, /* UseARMMethodPtrABI = */ true, in ARMCXXABI() 428 iOS64CXXABI(CodeGen::CodeGenModule &CGM) : ARMCXXABI(CGM) {} in iOS64CXXABI() 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() 82 if (CGM.getLangOpts().OpenCL) in buildBlockDescriptor() 85 CGM.getLLVMContext(), C.getTargetAddressSpace(LangAS::opencl_constant)); in buildBlockDescriptor() [all …]
|
D | MicrosoftCXXABI.cpp | 45 MicrosoftCXXABI(CodeGenModule &CGM) in MicrosoftCXXABI() argument 46 : CGCXXABI(CGM), BaseClassDescriptorType(nullptr), in MicrosoftCXXABI() 221 CGM.getMicrosoftVTableContext().getMethodVFTableLocation(MD); in getThisArgumentTypeForMethod() 319 if (auto *VDispMap = CGM.getModule().getNamedGlobal(MangledName)) in getAddrOfVirtualDisplacementMap() 322 MicrosoftVTableContext &VTContext = CGM.getMicrosoftVTableContext(); in getAddrOfVirtualDisplacementMap() 325 llvm::UndefValue::get(CGM.IntTy)); in getAddrOfVirtualDisplacementMap() 326 Map[0] = llvm::ConstantInt::get(CGM.IntTy, 0); in getAddrOfVirtualDisplacementMap() 335 Map[SrcVBIndex] = llvm::ConstantInt::get(CGM.IntTy, DstVBIndex * 4); in getAddrOfVirtualDisplacementMap() 342 llvm::ArrayType *VDispMapTy = llvm::ArrayType::get(CGM.IntTy, Map.size()); in getAddrOfVirtualDisplacementMap() 349 CGM.getModule(), VDispMapTy, /*Constant=*/true, Linkage, in getAddrOfVirtualDisplacementMap() [all …]
|
D | CGOpenMPRuntimeNVPTX.cpp | 28 &CGM.getModule(), llvm::Intrinsic::nvvm_read_ptx_sreg_warpsize), in getNVPTXWarpSize() 37 &CGM.getModule(), llvm::Intrinsic::nvvm_read_ptx_sreg_tid_x), in getNVPTXThreadID() 46 &CGM.getModule(), llvm::Intrinsic::nvvm_read_ptx_sreg_ntid_x), in getNVPTXNumThreads() 54 &CGM.getModule(), llvm::Intrinsic::nvvm_barrier0)); in getNVPTXCTABarrier() 94 CodeGenModule &CGM) in WorkerFunctionState() argument 96 createWorkerFunction(CGM); in WorkerFunctionState() 100 CodeGenModule &CGM) { in createWorkerFunction() argument 102 CGFI = &CGM.getTypes().arrangeNullaryFunction(); in createWorkerFunction() 105 CGM.getTypes().GetFunctionType(*CGFI), llvm::GlobalValue::InternalLinkage, in createWorkerFunction() 106 /* placeholder */ "_worker", &CGM.getModule()); in createWorkerFunction() [all …]
|
D | CodeGenABITypes.cpp | 30 CodeGen::arrangeObjCMessageSendSignature(CodeGenModule &CGM, in arrangeObjCMessageSendSignature() argument 33 return CGM.getTypes().arrangeObjCMessageSendSignature(MD, receiverType); in arrangeObjCMessageSendSignature() 37 CodeGen::arrangeFreeFunctionType(CodeGenModule &CGM, in arrangeFreeFunctionType() argument 40 return CGM.getTypes().arrangeFreeFunctionType(Ty, FD); in arrangeFreeFunctionType() 44 CodeGen::arrangeFreeFunctionType(CodeGenModule &CGM, in arrangeFreeFunctionType() argument 46 return CGM.getTypes().arrangeFreeFunctionType(Ty); in arrangeFreeFunctionType() 50 CodeGen::arrangeCXXMethodType(CodeGenModule &CGM, in arrangeCXXMethodType() argument 54 return CGM.getTypes().arrangeCXXMethodType(RD, FTP, MD); in arrangeCXXMethodType() 58 CodeGen::arrangeFreeFunctionCall(CodeGenModule &CGM, in arrangeFreeFunctionCall() argument 63 return CGM.getTypes().arrangeLLVMFunctionInfo( in arrangeFreeFunctionCall()
|
D | SanitizerMetadata.cpp | 22 SanitizerMetadata::SanitizerMetadata(CodeGenModule &CGM) : CGM(CGM) {} in SanitizerMetadata() argument 28 if (!CGM.getLangOpts().Sanitize.hasOneOf(SanitizerKind::Address | in reportGlobalToASan() 31 IsDynInit &= !CGM.isInSanitizerBlacklist(GV, Loc, Ty, "init"); in reportGlobalToASan() 32 IsBlacklisted |= CGM.isInSanitizerBlacklist(GV, Loc, Ty); in reportGlobalToASan() 36 llvm::LLVMContext &VMContext = CGM.getLLVMContext(); in reportGlobalToASan() 54 CGM.getModule().getOrInsertNamedMetadata("llvm.asan.globals"); in reportGlobalToASan() 60 if (!CGM.getLangOpts().Sanitize.hasOneOf(SanitizerKind::Address | in reportGlobalToASan() 72 if (CGM.getLangOpts().Sanitize.hasOneOf(SanitizerKind::Address | in disableSanitizerForGlobal() 78 I->setMetadata(CGM.getModule().getMDKindID("nosanitize"), in disableSanitizerForInstruction() 79 llvm::MDNode::get(CGM.getLLVMContext(), None)); in disableSanitizerForInstruction() [all …]
|
D | CGExprConstant.cpp | 38 CodeGenModule &CGM; member in __anonf87f0b7c0111::ConstStructBuilder 46 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CFG, 50 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, 52 static llvm::Constant *BuildStruct(CodeGenModule &CGM, CodeGenFunction *CGF, 56 ConstStructBuilder(CodeGenModule &CGM, CodeGenFunction *CGF) in ConstStructBuilder() argument 57 : CGM(CGM), CGF(CGF), Packed(false), in ConstStructBuilder() 85 CGM.getDataLayout().getABITypeAlignment(C->getType())); in getAlignment() 90 CGM.getDataLayout().getTypeAllocSize(C->getType())); in getSizeInChars() 97 const ASTContext &Context = CGM.getContext(); in AppendField() 159 const ASTContext &Context = CGM.getContext(); in AppendBitField() [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 | 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 | CGDebugInfo.cpp | 47 CGDebugInfo::CGDebugInfo(CodeGenModule &CGM) in CGDebugInfo() argument 48 : CGM(CGM), DebugKind(CGM.getCodeGenOpts().getDebugInfo()), in CGDebugInfo() 49 DebugTypeExtRefs(CGM.getCodeGenOpts().DebugTypeExtRefs), in CGDebugInfo() 50 DBuilder(CGM.getModule()) { in CGDebugInfo() 51 for (const auto &KV : CGM.getCodeGenOpts().DebugPrefixMap) in CGDebugInfo() 127 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); in setLocation() 135 SourceManager &SM = CGM.getContext().getSourceManager(); in setLocation() 177 return getOrCreateType(CGM.getContext().getTypeDeclType(RDecl), in getContextDescriptor() 195 CGM.getCodeGenOpts().EmitCodeView; in getFunctionName() 202 PrintingPolicy Policy(CGM.getLangOpts()); in getFunctionName() [all …]
|
D | CGCUDANV.cpp | 61 auto ConstStr = CGM.GetAddrOfConstantCString(Str, Name.c_str()); in makeConstantString() 69 CGNVCUDARuntime(CodeGenModule &CGM); 84 CGNVCUDARuntime::CGNVCUDARuntime(CodeGenModule &CGM) in CGNVCUDARuntime() argument 85 : CGCUDARuntime(CGM), Context(CGM.getLLVMContext()), in CGNVCUDARuntime() 86 TheModule(CGM.getModule()) { in CGNVCUDARuntime() 87 CodeGen::CodeGenTypes &Types = CGM.getTypes(); in CGNVCUDARuntime() 88 ASTContext &Ctx = CGM.getContext(); in CGNVCUDARuntime() 102 return CGM.CreateRuntimeFunction(llvm::FunctionType::get(IntTy, in getSetupArgumentFn() 109 return CGM.CreateRuntimeFunction( in getLaunchFn() 187 CGBuilderTy Builder(CGM, Context); in makeRegisterGlobalsFn() [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, *Int32Ty = CGM.Int32Ty; in EmitVTTDefinition() 56 VTables.push_back(GetAddrOfVTTVTable(*this, CGM, RD, *i, Linkage, in EmitVTTDefinition() 97 if (CGM.supportsCOMDAT() && VTT->isWeakForLinker()) in EmitVTTDefinition() 98 VTT->setComdat(CGM.getModule().getOrInsertComdat(VTT->getName())); in EmitVTTDefinition() 101 CGM.setGlobalVisibility(VTT, RD); in EmitVTTDefinition() 109 cast<ItaniumMangleContext>(CGM.getCXXABI().getMangleContext()) in GetAddrOfVTT() 114 (void) CGM.getCXXABI().getAddrOfVTable(RD, CharUnits()); in GetAddrOfVTT() [all …]
|
D | CGDeclCXX.cpp | 38 CodeGenModule &CGM = CGF.CGM; in EmitDeclInit() local 40 CGM.getObjCRuntime().EmitObjCGlobalAssign(CGF, CGF.EmitScalarExpr(Init), in EmitDeclInit() 43 CGM.getObjCRuntime().EmitObjCWeakAssign(CGF, CGF.EmitScalarExpr(Init), in EmitDeclInit() 65 CodeGenModule &CGM = CGF.CGM; in EmitDeclDestroy() local 94 Record && (!CGM.getCXXABI().HasThisReturn( in EmitDeclDestroy() 96 CGM.getCXXABI().canCallMismatchedFunctionType()); in EmitDeclDestroy() 100 bool UsingExternalHelper = !CGM.getCodeGenOpts().CXAAtExit; in EmitDeclDestroy() 105 function = CGM.getAddrOfCXXStructor(dtor, StructorType::Complete); in EmitDeclDestroy() 111 function = CodeGenFunction(CGM) in EmitDeclDestroy() 117 CGM.getCXXABI().registerGlobalDtor(CGF, D, function, argument); in EmitDeclDestroy() [all …]
|
D | CGObjCGNU.cpp | 46 CodeGenModule *CGM; member in __anonc6edbebb0111::LazyRuntimeFunction 56 : CGM(nullptr), FunctionName(nullptr), Function(nullptr) {} in LazyRuntimeFunction() 62 CGM = Mod; in init() 83 cast<llvm::Constant>(CGM->CreateRuntimeFunction(FTy, FunctionName)); in operator llvm::Constant*() 168 ConstantAddress Array = CGM.GetAddrOfConstantCString(Str, Name.c_str()); in MakeConstantString() 237 const ObjCRuntime &R = CGM.getLangOpts().ObjCRuntime; in MakePropertyEncodingString() 242 CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container, TypeStr); in MakePropertyEncodingString() 581 llvm::Constant *BuildGCBlockLayout(CodeGenModule &CGM, in BuildGCBlockLayout() argument 585 llvm::Constant *BuildRCBlockLayout(CodeGenModule &CGM, in BuildRCBlockLayout() argument 590 llvm::Constant *BuildByrefLayout(CodeGenModule &CGM, QualType T) override { in BuildByrefLayout() argument [all …]
|
D | CGObjC.cpp | 49 CGM.getObjCRuntime().GenerateConstantString(E->getString()).getPointer(); in EmitObjCStringLiteral() 72 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCBoxedExpr() 94 llvm::Constant *GV = CGM.GetAddrOfConstantCString(Str).getPointer(); in EmitObjCBoxedExpr() 115 ASTContext &Context = CGM.getContext(); in EmitObjCCollectionLiteral() 142 CGM.getCodeGenOpts().OptimizationLevel != 0); in EmitObjCCollectionLiteral() 195 llvm::ConstantInt::get(CGM.getTypes().ConvertType(ArgQT), NumElements); in EmitObjCCollectionLiteral() 205 CGObjCRuntime &Runtime = CGM.getObjCRuntime(); in EmitObjCCollectionLiteral() 240 return CGM.getObjCRuntime().GetSelector(*this, E->getSelector()); in EmitObjCSelectorExpr() 245 return CGM.getObjCRuntime().GenerateProtocolRef(*this, E->getProtocol()); in EmitObjCProtocolExpr() 368 CGM.getLangOpts().ObjCAutoRefCount && in EmitObjCMessageExpr() [all …]
|
D | CGException.cpp | 32 static llvm::Constant *getFreeExceptionFn(CodeGenModule &CGM) { in getFreeExceptionFn() argument 36 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); in getFreeExceptionFn() 38 return CGM.CreateRuntimeFunction(FTy, "__cxa_free_exception"); in getFreeExceptionFn() 41 static llvm::Constant *getUnexpectedFn(CodeGenModule &CGM) { in getUnexpectedFn() argument 45 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); in getUnexpectedFn() 47 return CGM.CreateRuntimeFunction(FTy, "__cxa_call_unexpected"); in getUnexpectedFn() 76 static llvm::Constant *getCatchallRethrowFn(CodeGenModule &CGM, in getCatchallRethrowFn() argument 79 llvm::FunctionType::get(CGM.VoidTy, CGM.Int8PtrTy, /*IsVarArgs=*/false); in getCatchallRethrowFn() 81 return CGM.CreateRuntimeFunction(FTy, Name); in getCatchallRethrowFn() 189 const EHPersonality &EHPersonality::get(CodeGenModule &CGM, in get() argument [all …]
|
D | CodeGenFunction.cpp | 41 : CodeGenTypeCache(cgm), CGM(cgm), Target(cgm.getTarget()), in CodeGenFunction() 46 SanOpts(CGM.getLangOpts().Sanitize), IsSanitizerScope(false), in CodeGenFunction() 53 DebugInfo(CGM.getModuleDebugInfo()), in CodeGenFunction() 64 CGM.getCXXABI().getMangleContext().startNewFunction(); in CodeGenFunction() 67 if (CGM.getLangOpts().FastMath) in CodeGenFunction() 69 if (CGM.getLangOpts().FiniteMathOnly) { in CodeGenFunction() 73 if (CGM.getCodeGenOpts().NoNaNsFPMath) { in CodeGenFunction() 76 if (CGM.getCodeGenOpts().NoSignedZeros) { in CodeGenFunction() 79 if (CGM.getCodeGenOpts().ReciprocalMath) { in CodeGenFunction() 95 CGM.getOpenMPRuntime().functionFinished(*this); in ~CodeGenFunction() [all …]
|
D | CGClass.cpp | 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() [all …]
|
D | CodeGenPGO.cpp | 34 llvm::IndexedInstrProfReader *PGOReader = CGM.getPGOReader(); in setFuncName() 36 Name, Linkage, CGM.getCodeGenOpts().MainFileName, in setFuncName() 40 if (CGM.getCodeGenOpts().hasProfileClangInstr()) in setFuncName() 41 FuncNameVar = llvm::createPGOFuncNameVar(CGM.getModule(), Linkage, FuncName); in setFuncName() 616 bool InstrumentRegions = CGM.getCodeGenOpts().hasProfileClangInstr(); in assignRegionCounters() 617 llvm::IndexedInstrProfReader *PGOReader = CGM.getPGOReader(); in assignRegionCounters() 625 if (CGM.getTarget().getCXXABI().hasConstructorVariants() && in assignRegionCounters() 632 CGM.ClearUnusedCoverageMapping(D); in assignRegionCounters() 636 if (CGM.getCodeGenOpts().CoverageMapping) in assignRegionCounters() 639 SourceManager &SM = CGM.getContext().getSourceManager(); in assignRegionCounters() [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, 274 virtual llvm::Constant *BuildGCBlockLayout(CodeGen::CodeGenModule &CGM, 276 virtual llvm::Constant *BuildRCBlockLayout(CodeGen::CodeGenModule &CGM, 280 virtual llvm::Constant *BuildByrefLayout(CodeGen::CodeGenModule &CGM, 301 unsigned ComputeBitfieldBitOffset(CodeGen::CodeGenModule &CGM, 308 CGObjCRuntime *CreateGNUObjCRuntime(CodeGenModule &CGM); 309 CGObjCRuntime *CreateMacObjCRuntime(CodeGenModule &CGM);
|
D | CGBuiltin.cpp | 228 Value *F = CGF.CGM.getIntrinsic(IntrinsicID, Src0->getType()); in emitUnaryBuiltin() 239 Value *F = CGF.CGM.getIntrinsic(IntrinsicID, Src0->getType()); in emitBinaryBuiltin() 251 Value *F = CGF.CGM.getIntrinsic(IntrinsicID, Src0->getType()); in emitTernaryBuiltin() 262 Value *F = CGF.CGM.getIntrinsic(IntrinsicID, Src0->getType()); in emitFPIntBuiltin() 268 Value *F = CGF.CGM.getIntrinsic(Intrinsic::fabs, V->getType()); in EmitFAbs() 277 LLVMContext &C = CGF.CGM.getLLVMContext(); in EmitSignBit() 329 llvm::Value *Callee = CGF.CGM.getIntrinsic(IntrinsicID, X->getType()); in EmitOverflowIntrinsic() 340 Value *F = CGF.CGM.getIntrinsic(IntrinsicID, {}); in emitRangedBuiltin() 397 return Builder.CreateCall(CGM.getIntrinsic(inst), ArgValue); in EmitVAStartEnd() 461 Value *F = CGM.getIntrinsic(Intrinsic::objectsize, Tys); in emitBuiltinObjectSize() [all …]
|
/external/clang/include/clang/CodeGen/ |
D | SwiftCallingConv.h | 44 CodeGenModule &CGM; variable 59 SwiftAggLowering(CodeGenModule &CGM) : CGM(CGM) {} in SwiftAggLowering() argument 121 CharUnits getMaximumVoluntaryIntegerSize(CodeGenModule &CGM); 124 CharUnits getNaturalAlignment(CodeGenModule &CGM, llvm::Type *type); 128 bool isLegalIntegerType(CodeGenModule &CGM, llvm::IntegerType *type); 132 bool isLegalVectorType(CodeGenModule &CGM, CharUnits vectorSize, 134 bool isLegalVectorType(CodeGenModule &CGM, CharUnits vectorSize, 139 splitLegalVectorType(CodeGenModule &CGM, CharUnits vectorSize, 146 void legalizeVectorType(CodeGenModule &CGM, CharUnits vectorSize, 151 bool shouldPassCXXRecordIndirectly(CodeGenModule &CGM, [all …]
|