Home
last modified time | relevance | path

Searched refs:CGM (Results 1 – 25 of 114) sorted by relevance

12345

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenABITypes.cpp28 void CodeGen::addDefaultFunctionDefinitionAttributes(CodeGenModule &CGM, in addDefaultFunctionDefinitionAttributes() argument
30 CGM.addDefaultFunctionDefinitionAttributes(attrs); in addDefaultFunctionDefinitionAttributes()
34 CodeGen::arrangeObjCMessageSendSignature(CodeGenModule &CGM, in arrangeObjCMessageSendSignature() argument
37 return CGM.getTypes().arrangeObjCMessageSendSignature(MD, receiverType); in arrangeObjCMessageSendSignature()
41 CodeGen::arrangeFreeFunctionType(CodeGenModule &CGM, in arrangeFreeFunctionType() argument
43 return CGM.getTypes().arrangeFreeFunctionType(Ty); in arrangeFreeFunctionType()
47 CodeGen::arrangeFreeFunctionType(CodeGenModule &CGM, in arrangeFreeFunctionType() argument
49 return CGM.getTypes().arrangeFreeFunctionType(Ty); in arrangeFreeFunctionType()
53 CodeGen::arrangeCXXMethodType(CodeGenModule &CGM, in arrangeCXXMethodType() argument
57 return CGM.getTypes().arrangeCXXMethodType(RD, FTP, MD); in arrangeCXXMethodType()
[all …]
H A DTargetInfo.h86 CodeGen::CodeGenModule &CGM, in emitTargetMetadata() argument
90 virtual void emitTargetGlobals(CodeGen::CodeGenModule &CGM) const {} in emitTargetGlobals() argument
94 virtual void checkFunctionABI(CodeGenModule &CGM, in checkFunctionABI() argument
99 virtual void checkFunctionCallABI(CodeGenModule &CGM, SourceLocation CallLoc, in checkFunctionCallABI() argument
184 CodeGenModule &CGM) const { in testFPKind() argument
241 getUBSanFunctionSignature(CodeGen::CodeGenModule &CGM) const { in getUBSanFunctionSignature() argument
242 return llvm::ConstantInt::get(CGM.Int32Ty, 0xc105cafe); in getUBSanFunctionSignature()
309 virtual llvm::Constant *getNullPointer(const CodeGen::CodeGenModule &CGM,
316 virtual LangAS getGlobalVarAddressSpace(CodeGenModule &CGM,
342 virtual llvm::Constant *performAddrSpaceCast(CodeGenModule &CGM,
[all …]
H A DItaniumCXXABI.cpp64 ItaniumCXXABI(CodeGen::CodeGenModule &CGM, in ItaniumCXXABI() argument
67 CGCXXABI(CGM), UseARMMethodPtrABI(UseARMMethodPtrABI), in ItaniumCXXABI()
199 if (!CGM.getCodeGenOpts().AssumeUniqueVTables || in hasUniqueVTablePointer()
205 if (!CGM.shouldEmitRTTI()) in hasUniqueVTablePointer()
210 if (!llvm::GlobalValue::isWeakForLinker(CGM.getVTableLinkage(RD))) in hasUniqueVTablePointer()
218 if (CGM.GetLLVMVisibility(RD->getVisibility()) != in hasUniqueVTablePointer()
334 CGM.setGVProperties(Thunk, GD); in setThunkLinkage()
377 CodeGenModule &CGM,
437 CGM.getItaniumVTableContext().getVTableLayout(RD); in hasAnyUnusedVirtualInlineFunction()
451 StringRef Name = CGM.getMangledName(VtableComponent.getGlobalDecl()); in hasAnyUnusedVirtualInlineFunction()
[all …]
H A DCGVTables.cpp32 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 DSwiftCallingConv.cpp23 static const SwiftABIInfo &getSwiftABIInfo(CodeGenModule &CGM) { in getSwiftABIInfo() argument
24 return CGM.getTargetCodeGenInfo().getSwiftABIInfo(); in getSwiftABIInfo()
56 static CharUnits getTypeStoreSize(CodeGenModule &CGM, llvm::Type *type) { in getTypeStoreSize() argument
57 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeStoreSize(type)); in getTypeStoreSize()
60 static CharUnits getTypeAllocSize(CodeGenModule &CGM, llvm::Type *type) { in getTypeAllocSize() argument
61 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeAllocSize(type)); in getTypeAllocSize()
75 auto arrayType = CGM.getContext().getAsConstantArrayType(type); in addTypedData()
79 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData()
87 auto eltSize = CGM.getContext().getTypeSizeInChars(eltType); in addTypedData()
88 auto eltLLVMType = CGM.getTypes().ConvertType(eltType); in addTypedData()
[all …]
H A DCGBlocks.cpp51 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()
83 CodeGenModule &CGM);
86 CodeGenModule &CGM) { in getBlockDescriptorName() argument
91 if (CGM.getLangOpts().Exceptions) in getBlockDescriptorName()
93 if (CGM.getCodeGenOpts().ObjCAutoRefCountExceptions) in getBlockDescriptorName()
109 BlockInfo.BlockAlign, CGM); in getBlockDescriptorName()
[all …]
H A DCGExprConstant.cpp45 llvm::Constant *getPadding(const CodeGenModule &CGM, CharUnits PadSize) { in getPadding() argument
46 llvm::Type *Ty = CGM.CharTy; in getPadding()
49 if (CGM.shouldZeroInitPadding()) { in getPadding()
56 CodeGenModule &CGM; member
58 ConstantAggregateBuilderUtils(CodeGenModule &CGM) : CGM(CGM) {} in ConstantAggregateBuilderUtils()
62 CGM.getDataLayout().getABITypeAlign(C->getType())); in getAlignment()
66 return CharUnits::fromQuantity(CGM.getDataLayout().getTypeAllocSize(Ty)); in getSize()
74 return ::getPadding(CGM, PadSize); in getPadding()
78 llvm::Type *Ty = llvm::ArrayType::get(CGM.CharTy, ZeroSize.getQuantity()); in getZeroes()
109 static llvm::Constant *buildFrom(CodeGenModule &CGM,
[all …]
H A DCGCUDANV.cpp97 return CGM.GetAddrOfConstantCString(Str, Name.c_str()).getPointer(); in makeConstantString()
133 CGBuilderTy FuncBuilder(CGM, Context); in makeDummyFunction()
181 CGNVCUDARuntime(CodeGenModule &CGM);
209 static std::unique_ptr<MangleContext> InitDeviceMC(CodeGenModule &CGM) { in InitDeviceMC() argument
213 if (CGM.getContext().getAuxTargetInfo() && in InitDeviceMC()
214 CGM.getContext().getTargetInfo().getCXXABI().isMicrosoft() && in InitDeviceMC()
215 CGM.getContext().getAuxTargetInfo()->getCXXABI().isItaniumFamily()) { in InitDeviceMC()
217 CGM.getContext().createDeviceMangleContext( in InitDeviceMC()
218 *CGM.getContext().getAuxTargetInfo())); in InitDeviceMC()
221 return std::unique_ptr<MangleContext>(CGM.getContext().createMangleContext( in InitDeviceMC()
[all …]
H A DCGVTT.cpp21 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 DMicrosoftCXXABI.cpp48 MicrosoftCXXABI(CodeGenModule &CGM) in MicrosoftCXXABI() argument
49 : CGCXXABI(CGM), BaseClassDescriptorType(nullptr), in MicrosoftCXXABI()
53 assert(!(CGM.getLangOpts().isExplicitDefaultVisibilityExportMapping() || in MicrosoftCXXABI()
54 CGM.getLangOpts().isAllDefaultVisibilityExportMapping()) && in MicrosoftCXXABI()
267 CGM.getMicrosoftVTableContext().getMethodVFTableLocation(LookupGD); in getThisArgumentTypeForMethod()
366 if (auto *VDispMap = CGM.getModule().getNamedGlobal(MangledName)) in getAddrOfVirtualDisplacementMap()
369 MicrosoftVTableContext &VTContext = CGM.getMicrosoftVTableContext(); in getAddrOfVirtualDisplacementMap()
372 llvm::PoisonValue::get(CGM.IntTy)); in getAddrOfVirtualDisplacementMap()
373 Map[0] = llvm::ConstantInt::get(CGM.IntTy, 0); in getAddrOfVirtualDisplacementMap()
382 Map[SrcVBIndex] = llvm::ConstantInt::get(CGM.IntTy, DstVBIndex * 4); in getAddrOfVirtualDisplacementMap()
[all …]
H A DCGObjCGNU.cpp50 CodeGenModule *CGM = nullptr; member in __anonbab9bb100111::LazyRuntimeFunction
63 CGM = Mod; in init()
83 Function = CGM->CreateRuntimeFunction(FTy, FunctionName); in operator llvm::FunctionCallee()
177 const ObjCRuntime &R = CGM.getLangOpts().ObjCRuntime; in isRuntime()
183 return (StringRef(CGM.getTriple().isOSBinFormatCOFF() ? "$_" : "._") + Name).str(); in ManglePublicSymbol()
200 CGM.GetAddrOfConstantCString(std::string(Str), Name); in MakeConstantString()
232 CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container); in MakePropertyEncodingString()
282 CGM.getContext().getCharWidth()); in PushPropertyListHeader()
295 ASTContext &Context = CGM.getContext(); in PushProperty()
593 CGM.getContext().getObjCEncodingForMethodDecl(M)); in GetConstantSelector()
[all …]
H A DCGObjCMac.cpp67 return CGM.CreateRuntimeFunction( in getMessageSendFn()
69 llvm::AttributeList::get(CGM.getLLVMContext(), in getMessageSendFn()
81 return CGM.CreateRuntimeFunction( in getMessageSendStretFn()
82 llvm::FunctionType::get(CGM.VoidTy, params, true), in getMessageSendStretFn()
93 return CGM.CreateRuntimeFunction( in getMessageSendFpretFn()
94 llvm::FunctionType::get(CGM.DoubleTy, params, true), in getMessageSendFpretFn()
109 return CGM.CreateRuntimeFunction( in getMessageSendFp2retFn()
121 return CGM.CreateRuntimeFunction( in getMessageSendSuperFn()
132 return CGM.CreateRuntimeFunction( in getMessageSendSuperFn2()
143 return CGM.CreateRuntimeFunction( in getMessageSendSuperStretFn()
[all …]
H A DCGOpenCLRuntime.cpp37 if (llvm::Type *TransTy = CGM.getTargetCodeGenInfo().getOpenCLType(CGM, T)) in convertOpenCLSpecificType()
47 uint32_t AddrSpc = CGM.getContext().getTargetAddressSpace( in getPointerType()
48 CGM.getContext().getOpenCLTypeAddrSpace(T)); in getPointerType()
49 return llvm::PointerType::get(CGM.getLLVMContext(), AddrSpc); in getPointerType()
53 if (llvm::Type *PipeTy = CGM.getTargetCodeGenInfo().getOpenCLType(CGM, T)) in getPipeType()
73 if (llvm::Type *TransTy = CGM.getTargetCodeGenInfo().getOpenCLType( in getSamplerType()
74 CGM, CGM.getContext().OCLSamplerTy.getTypePtr())) in getSamplerType()
84 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemSize()
85 unsigned TypeSize = CGM.getContext() in getPipeElemSize()
94 llvm::Type *Int32Ty = llvm::IntegerType::getInt32Ty(CGM.getLLVMContext()); in getPipeElemAlign()
[all …]
H A DSanitizerMetadata.cpp20 SanitizerMetadata::SanitizerMetadata(CodeGenModule &CGM) : CGM(CGM) {} in SanitizerMetadata() argument
40 SanitizerSet FsanitizeArgument = CGM.getLangOpts().Sanitize; in reportGlobal()
54 Meta.NoAddress |= CGM.isInNoSanitizeList( in reportGlobal()
58 Meta.NoHWAddress |= CGM.isInNoSanitizeList( in reportGlobal()
64 Meta.Memtag &= !CGM.isInNoSanitizeList( in reportGlobal()
69 !CGM.isInNoSanitizeList(SanitizerKind::Address | in reportGlobal()
75 if (Ty.isNull() || !CGM.getLangOpts().Sanitize.has(SanitizerKind::Type) || in reportGlobal()
79 llvm::MDNode *TBAAInfo = CGM.getTBAATypeInfo(Ty); in reportGlobal()
80 if (!TBAAInfo || TBAAInfo == CGM.getTBAATypeInfo(CGM.getContext().CharTy)) in reportGlobal()
87 if (llvm::MDNode::getIfExists(CGM.getLLVMContext(), GlobalMetadata)) in reportGlobal()
[all …]
H A DCGHLSLRuntime.cpp96 CGM.getTargetCodeGenInfo().getHLSLType(CGM, T, Packoffsets)) in convertHLSLSpecificType()
103 return CGM.getTarget().getTriple().getArch(); in getArch()
117 LLVMContext &Ctx = CGM.getLLVMContext(); in emitBufferGlobalsAndMetadata()
138 CGM.EmitTopLevelDecl(D); in emitBufferGlobalsAndMetadata()
152 CGM.EmitGlobal(VD); in emitBufferGlobalsAndMetadata()
172 cast<GlobalVariable>(CGM.GetAddrOfGlobalVar(VD, LayoutType)); in emitBufferGlobalsAndMetadata()
179 CGM.getModule() in emitBufferGlobalsAndMetadata()
270 CGM.getModule().insertGlobalVariable(BufGV); in addBuffer()
298 auto &TargetOpts = CGM.getTarget().getTargetOpts(); in finishCodeGen()
299 auto &CodeGenOpts = CGM.getCodeGenOpts(); in finishCodeGen()
[all …]
H A DCGDebugInfo.cpp119 CGDebugInfo::CGDebugInfo(CodeGenModule &CGM) in CGDebugInfo() argument
120 : CGM(CGM), DebugKind(CGM.getCodeGenOpts().getDebugInfo()), in CGDebugInfo()
121 DebugTypeExtRefs(CGM.getCodeGenOpts().DebugTypeExtRefs), in CGDebugInfo()
122 DBuilder(CGM.getModule()) { in CGDebugInfo()
170 if (!Group || !CGM.getCodeGenOpts().DebugKeyInstructions) in addInstToSpecificSourceAtom()
248 if (OriginalLocation && !DI->CGM.getExpressionLocationsEnabled()) in init()
327 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); in setLocation()
335 SourceManager &SM = CGM.getContext().getSourceManager(); in setLocation()
376 return getOrCreateType(CGM.getContext().getTypeDeclType(RDecl), in getContextDescriptor()
382 PrintingPolicy PP = CGM.getContext().getPrintingPolicy(); in getPrintingPolicy()
[all …]
H A DCGObjC.cpp54 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 DCGHLSLBuiltins.cpp35 if (CGF.CGM.getTarget().getTriple().isDXIL()) in handleAsDoubleBuiltin()
68 CGF->Builder.getInt1Ty(), CGF->CGM.getHLSLRuntime().getAnyIntrinsic(), in handleHlslClip()
74 if (CGF->CGM.getTarget().getTriple().isDXIL()) { in handleHlslClip()
76 } else if (CGF->CGM.getTarget().getTriple().isSPIRV()) { in handleHlslClip()
112 if (CGF->CGM.getTarget().getTriple().isDXIL()) { in handleHlslSplitdouble()
324 RetTy, CGM.getHLSLRuntime().getCreateResourceGetPointerIntrinsic(), in EmitHLSLBuiltinExpr()
328 llvm::Type *HandleTy = CGM.getTypes().ConvertType(E->getType()); in EmitHLSLBuiltinExpr()
332 llvm::Type *HandleTy = CGM.getTypes().ConvertType(E->getType()); in EmitHLSLBuiltinExpr()
344 CGM.getHLSLRuntime().getCreateHandleFromBindingIntrinsic(); in EmitHLSLBuiltinExpr()
350 llvm::Type *HandleTy = CGM.getTypes().ConvertType(E->getType()); in EmitHLSLBuiltinExpr()
[all …]
H A DCodeGenFunction.cpp79 : CodeGenTypeCache(cgm), CGM(cgm), Target(cgm.getTarget()), in CodeGenFunction()
82 SanOpts(CGM.getLangOpts().Sanitize), CurFPFeatures(CGM.getLangOpts()), in CodeGenFunction()
83 DebugInfo(CGM.getModuleDebugInfo()), in CodeGenFunction()
86 shouldEmitLifetimeMarkers(CGM.getCodeGenOpts(), CGM.getLangOpts())) { in CodeGenFunction()
88 CGM.getCXXABI().getMangleContext().startNewFunction(); in CodeGenFunction()
100 CGM.getOpenMPRuntime().functionFinished(*this); in ~CodeGenFunction()
107 if (CGM.getLangOpts().OpenMPIRBuilder && CurFn) in ~CodeGenFunction()
108 CGM.getOpenMPRuntime().getOMPBuilder().finalize(CurFn); in ~CodeGenFunction()
207 CGF.CGM.getNaturalTypeAlignment(T, &BaseInfo, &TBAAInfo, ForPointeeType); in makeNaturalAlignAddrLValue()
243 return CGM.getTypes().ConvertTypeForMem(T); in ConvertTypeForMem()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/CodeGen/
H A DCodeGenABITypes.h63 const CGFunctionInfo &arrangeObjCMessageSendSignature(CodeGenModule &CGM,
67 const CGFunctionInfo &arrangeFreeFunctionType(CodeGenModule &CGM,
70 const CGFunctionInfo &arrangeFreeFunctionType(CodeGenModule &CGM,
73 const CGFunctionInfo &arrangeCXXMethodType(CodeGenModule &CGM,
79 arrangeCXXMethodCall(CodeGenModule &CGM, CanQualType returnType,
85 CodeGenModule &CGM, CanQualType returnType, ArrayRef<CanQualType> argTypes,
92 arrangeFreeFunctionCall(CodeGenModule &CGM, CanQualType returnType, in arrangeFreeFunctionCall() argument
95 return arrangeFreeFunctionCall(CGM, returnType, argTypes, info, {}, args); in arrangeFreeFunctionCall()
101 getImplicitCXXConstructorArgs(CodeGenModule &CGM, const CXXConstructorDecl *D);
104 getCXXDestructorImplicitParam(CodeGenModule &CGM, llvm::BasicBlock *InsertBlock,
[all …]
H A DSwiftCallingConv.h42 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/TargetBuiltins/
H A DWebAssembly.cpp28 CGM.getIntrinsic(Intrinsic::wasm_memory_size, ResultType); in EmitWebAssemblyBuiltinExpr()
36 CGM.getIntrinsic(Intrinsic::wasm_memory_grow, ResultType); in EmitWebAssemblyBuiltinExpr()
41 Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_tls_size, ResultType); in EmitWebAssemblyBuiltinExpr()
46 Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_tls_align, ResultType); in EmitWebAssemblyBuiltinExpr()
50 Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_tls_base); in EmitWebAssemblyBuiltinExpr()
56 Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_throw); in EmitWebAssemblyBuiltinExpr()
60 Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_rethrow); in EmitWebAssemblyBuiltinExpr()
67 Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_memory_atomic_wait32); in EmitWebAssemblyBuiltinExpr()
74 Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_memory_atomic_wait64); in EmitWebAssemblyBuiltinExpr()
80 Function *Callee = CGM.getIntrinsic(Intrinsic::wasm_memory_atomic_notify); in EmitWebAssemblyBuiltinExpr()
[all …]
H A DRISCV.cpp37 auto &CGM = CGF->CGM; in emitRVVVLEFFBuiltin() local
53 llvm::Function *F = CGM.getIntrinsic(ID, IntrinsicTypes); in emitRVVVLEFFBuiltin()
59 Align = CGM.getNaturalPointeeTypeAlignment( in emitRVVVLEFFBuiltin()
62 Align = CGM.getNaturalPointeeTypeAlignment(E->getArg(1)->getType()); in emitRVVVLEFFBuiltin()
74 auto &CGM = CGF->CGM; in emitRVVVSSEBuiltin() local
88 llvm::Function *F = CGM.getIntrinsic(ID, IntrinsicTypes); in emitRVVVSSEBuiltin()
97 auto &CGM = CGF->CGM; in emitRVVIndexedStoreBuiltin() local
114 llvm::Function *F = CGM.getIntrinsic(ID, IntrinsicTypes); in emitRVVIndexedStoreBuiltin()
124 auto &CGM = CGF->CGM; in emitRVVPseudoUnaryBuiltin() local
144 llvm::Function *F = CGM.getIntrinsic(ID, IntrinsicTypes); in emitRVVPseudoUnaryBuiltin()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/
H A DSPIR.cpp55 llvm::Type *getOpenCLType(CodeGenModule &CGM, const Type *T) const override;
57 getHLSLType(CodeGenModule &CGM, const Type *Ty,
61 QualType SampledType, CodeGenModule &CGM) const;
70 LangAS getGlobalVarAddressSpace(CodeGenModule &CGM,
217 void computeSPIRKernelABIInfo(CodeGenModule &CGM, CGFunctionInfo &FI) { in computeSPIRKernelABIInfo() argument
218 if (CGM.getTarget().getTriple().isSPIRV()) in computeSPIRKernelABIInfo()
219 SPIRVABIInfo(CGM.getTypes()).computeInfo(FI); in computeSPIRKernelABIInfo()
221 CommonSPIRABIInfo(CGM.getTypes()).computeInfo(FI); in computeSPIRKernelABIInfo()
247 SPIRVTargetCodeGenInfo::getGlobalVarAddressSpace(CodeGenModule &CGM, in getGlobalVarAddressSpace() argument
249 assert(!CGM.getLangOpts().OpenCL && in getGlobalVarAddressSpace()
[all …]
H A DXCore.cpp128 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 …]

12345