Lines Matching refs:llvm

34 namespace llvm {
62 llvm::DIBuilder DBuilder;
63 llvm::DICompileUnit *TheCU = nullptr;
67 llvm::MDNode *CurInlinedAt = nullptr;
68 llvm::DIType *VTablePtrType = nullptr;
69 llvm::DIType *ClassTy = nullptr;
70 llvm::DICompositeType *ObjTy = nullptr;
71 llvm::DIType *SelTy = nullptr;
73 llvm::DIType *SingletonId = nullptr;
75 llvm::DIType *OCLSamplerDITy = nullptr;
76 llvm::DIType *OCLEventDITy = nullptr;
77 llvm::DIType *OCLClkEventDITy = nullptr;
78 llvm::DIType *OCLQueueDITy = nullptr;
79 llvm::DIType *OCLNDRangeDITy = nullptr;
80 llvm::DIType *OCLReserveIDDITy = nullptr;
82 llvm::DIType *Id##Ty = nullptr;
86 llvm::DenseMap<const void *, llvm::TrackingMDRef> TypeCache;
88 std::map<llvm::StringRef, llvm::StringRef, std::greater<llvm::StringRef>>
93 llvm::SmallDenseMap<QualType, llvm::Metadata *> SizeExprCache;
109 llvm::DIType *Decl;
110 llvm::DIFile *Unit;
111 ObjCInterfaceCacheEntry(const ObjCInterfaceType *Type, llvm::DIType *Decl, in ObjCInterfaceCacheEntry()
112 llvm::DIFile *Unit) in ObjCInterfaceCacheEntry()
117 llvm::SmallVector<ObjCInterfaceCacheEntry, 32> ObjCInterfaceCache;
122 llvm::DenseMap<const ObjCInterfaceDecl *,
123 std::vector<llvm::PointerIntPair<llvm::DISubprogram *, 1>>>
127 llvm::DenseMap<const Module *, llvm::TrackingMDRef> ModuleCache;
133 std::vector<std::pair<const TagType *, llvm::TrackingMDRef>> ReplaceMap;
137 std::vector<std::pair<const DeclaratorDecl *, llvm::TrackingMDRef>>
141 std::vector<llvm::TypedTrackingMDRef<llvm::DIScope>> LexicalBlockStack;
142 llvm::DenseMap<const Decl *, llvm::TrackingMDRef> RegionMap;
150 llvm::BumpPtrAllocator DebugInfoNames;
153 llvm::DenseMap<const char *, llvm::TrackingMDRef> DIFileCache;
154 llvm::DenseMap<const FunctionDecl *, llvm::TrackingMDRef> SPCache;
157 llvm::DenseMap<const Decl *, llvm::TrackingMDRef> DeclCache;
158 llvm::DenseMap<const NamespaceDecl *, llvm::TrackingMDRef> NamespaceCache;
159 llvm::DenseMap<const NamespaceAliasDecl *, llvm::TrackingMDRef>
161 llvm::DenseMap<const Decl *, llvm::TypedTrackingMDRef<llvm::DIDerivedType>>
164 using ParamDecl2StmtTy = llvm::DenseMap<const ParmVarDecl *, const Stmt *>;
166 llvm::DenseMap<const ParmVarDecl *, llvm::DILocalVariable *>;
177 llvm::DIType *CreateType(const BuiltinType *Ty);
178 llvm::DIType *CreateType(const ComplexType *Ty);
179 llvm::DIType *CreateType(const AutoType *Ty);
180 llvm::DIType *CreateType(const ExtIntType *Ty);
181 llvm::DIType *CreateQualifiedType(QualType Ty, llvm::DIFile *Fg);
182 llvm::DIType *CreateType(const TypedefType *Ty, llvm::DIFile *Fg);
183 llvm::DIType *CreateType(const TemplateSpecializationType *Ty,
184 llvm::DIFile *Fg);
185 llvm::DIType *CreateType(const ObjCObjectPointerType *Ty, llvm::DIFile *F);
186 llvm::DIType *CreateType(const PointerType *Ty, llvm::DIFile *F);
187 llvm::DIType *CreateType(const BlockPointerType *Ty, llvm::DIFile *F);
188 llvm::DIType *CreateType(const FunctionType *Ty, llvm::DIFile *F);
190 llvm::DIType *CreateType(const RecordType *Tyg);
191 llvm::DIType *CreateTypeDefinition(const RecordType *Ty);
192 llvm::DICompositeType *CreateLimitedType(const RecordType *Ty);
194 llvm::DICompositeType *CT);
196 llvm::DIType *CreateType(const ObjCInterfaceType *Ty, llvm::DIFile *F);
197 llvm::DIType *CreateTypeDefinition(const ObjCInterfaceType *Ty,
198 llvm::DIFile *F);
200 llvm::DIType *CreateType(const ObjCObjectType *Ty, llvm::DIFile *F);
201 llvm::DIType *CreateType(const ObjCTypeParamType *Ty, llvm::DIFile *Unit);
203 llvm::DIType *CreateType(const VectorType *Ty, llvm::DIFile *F);
204 llvm::DIType *CreateType(const ConstantMatrixType *Ty, llvm::DIFile *F);
205 llvm::DIType *CreateType(const ArrayType *Ty, llvm::DIFile *F);
206 llvm::DIType *CreateType(const LValueReferenceType *Ty, llvm::DIFile *F);
207 llvm::DIType *CreateType(const RValueReferenceType *Ty, llvm::DIFile *Unit);
208 llvm::DIType *CreateType(const MemberPointerType *Ty, llvm::DIFile *F);
209 llvm::DIType *CreateType(const AtomicType *Ty, llvm::DIFile *F);
210 llvm::DIType *CreateType(const PipeType *Ty, llvm::DIFile *F);
212 llvm::DIType *CreateEnumType(const EnumType *Ty);
213 llvm::DIType *CreateTypeDefinition(const EnumType *Ty);
220 llvm::DIType *CreateSelfType(const QualType &QualTy, llvm::DIType *Ty);
225 llvm::DIType *getTypeOrNull(const QualType);
230 llvm::DISubroutineType *getOrCreateMethodType(const CXXMethodDecl *Method,
231 llvm::DIFile *F, bool decl);
232 llvm::DISubroutineType *
234 llvm::DIFile *Unit, bool decl);
235 llvm::DISubroutineType *
236 getOrCreateFunctionType(const Decl *D, QualType FnType, llvm::DIFile *F);
238 llvm::DIType *getOrCreateVTablePtrType(llvm::DIFile *F);
241 llvm::DINamespace *getOrCreateNamespace(const NamespaceDecl *N);
242 llvm::DIType *CreatePointerLikeType(llvm::dwarf::Tag Tag, const Type *Ty,
243 QualType PointeeTy, llvm::DIFile *F);
244 llvm::DIType *getOrCreateStructPtrType(StringRef Name, llvm::DIType *&Cache);
248 llvm::DISubprogram *CreateCXXMemberFunction(const CXXMethodDecl *Method,
249 llvm::DIFile *F,
250 llvm::DIType *RecordTy);
255 void CollectCXXMemberFunctions(const CXXRecordDecl *Decl, llvm::DIFile *F,
256 SmallVectorImpl<llvm::Metadata *> &E,
257 llvm::DIType *T);
262 void CollectCXXBases(const CXXRecordDecl *Decl, llvm::DIFile *F,
263 SmallVectorImpl<llvm::Metadata *> &EltTys,
264 llvm::DIType *RecordTy);
269 const CXXRecordDecl *RD, llvm::DIFile *Unit,
270 SmallVectorImpl<llvm::Metadata *> &EltTys, llvm::DIType *RecordTy,
272 llvm::DenseSet<CanonicalDeclPtr<const CXXRecordDecl>> &SeenTypes,
273 llvm::DINode::DIFlags StartingFlags);
276 llvm::DINodeArray CollectTemplateParams(const TemplateParameterList *TPList,
278 llvm::DIFile *Unit);
281 llvm::DINodeArray CollectFunctionTemplateParams(const FunctionDecl *FD,
282 llvm::DIFile *Unit);
286 llvm::DINodeArray CollectVarTemplateParams(const VarDecl *VD,
287 llvm::DIFile *Unit);
291 llvm::DINodeArray
293 llvm::DIFile *F);
295 llvm::DIType *createFieldType(StringRef name, QualType type,
298 llvm::DIFile *tunit, llvm::DIScope *scope,
301 llvm::DIType *createFieldType(StringRef name, QualType type,
303 uint64_t offsetInBits, llvm::DIFile *tunit,
304 llvm::DIScope *scope,
311 llvm::DIType *createBitFieldType(const FieldDecl *BitFieldDecl,
312 llvm::DIScope *RecordTy,
318 SmallVectorImpl<llvm::Metadata *> &E,
319 llvm::DIType *RecordTy);
320 llvm::DIDerivedType *CreateRecordStaticField(const VarDecl *Var,
321 llvm::DIType *RecordTy,
324 llvm::DIFile *F,
325 SmallVectorImpl<llvm::Metadata *> &E,
326 llvm::DIType *RecordTy, const RecordDecl *RD);
328 SmallVectorImpl<llvm::Metadata *> &E);
329 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F,
330 SmallVectorImpl<llvm::Metadata *> &E,
331 llvm::DICompositeType *RecordTy);
335 void CollectVTableInfo(const CXXRecordDecl *Decl, llvm::DIFile *F,
336 SmallVectorImpl<llvm::Metadata *> &EltTys);
356 const BlockPointerType *Ty, llvm::DIFile *Unit,
357 llvm::DIDerivedType *DescTy, unsigned LineNo,
358 SmallVectorImpl<llvm::Metadata *> &EltTys);
364 const llvm::StructLayout &BlockLayout, llvm::DIFile *Unit,
365 SmallVectorImpl<llvm::Metadata *> &Fields);
377 void registerVLASizeExpression(QualType Ty, llvm::Metadata *SizeExpr) { in registerVLASizeExpression()
407 void setInlinedAt(llvm::MDNode *InlinedAt) { CurInlinedAt = InlinedAt; } in setInlinedAt()
410 llvm::MDNode *getInlinedAt() const { return CurInlinedAt; } in getInlinedAt()
413 llvm::DebugLoc SourceLocToDebugLoc(SourceLocation Loc);
426 llvm::Function *Fn, bool CurFnIsThunk);
436 QualType FnType, llvm::Function *Fn = nullptr);
440 void EmitFuncDeclForCallSite(llvm::CallBase *CallOrInvoke,
445 void EmitFunctionEnd(CGBuilderTy &Builder, llvm::Function *Fn);
459 llvm::DILocalVariable *
460 EmitDeclareOfAutoVariable(const VarDecl *Decl, llvm::Value *AI,
470 const VarDecl *variable, llvm::Value *storage, CGBuilderTy &Builder,
471 const CGBlockInfo &blockInfo, llvm::Instruction *InsertPoint = nullptr);
475 llvm::DILocalVariable *EmitDeclareOfArgVariable(const VarDecl *Decl,
476 llvm::Value *AI,
484 llvm::AllocaInst *LocalAddr,
488 void EmitGlobalVariable(llvm::GlobalVariable *GV, const VarDecl *Decl);
494 void EmitExternalVariable(llvm::GlobalVariable *GV, const VarDecl *Decl);
512 llvm::DIImportedEntity *EmitNamespaceAlias(const NamespaceAliasDecl &NA);
515 llvm::DIType *getOrCreateRecordType(QualType Ty, SourceLocation L);
518 llvm::DIType *getOrCreateInterfaceType(QualType Ty, SourceLocation Loc);
521 llvm::DIType *getOrCreateStandaloneType(QualType Ty, SourceLocation Loc);
524 void addHeapAllocSiteMetadata(llvm::CallBase *CallSite, QualType AllocatedTy,
538 llvm::DIMacro *CreateMacro(llvm::DIMacroFile *Parent, unsigned MType,
543 llvm::DIMacroFile *CreateTempMacroFile(llvm::DIMacroFile *Parent,
556 llvm::DILocalVariable *EmitDeclare(const VarDecl *decl, llvm::Value *AI,
557 llvm::Optional<unsigned> ArgNo,
563 llvm::DIType *BlockByRefWrapper;
565 llvm::DIType *WrappedType;
573 llvm::DIScope *getDeclContextDescriptor(const Decl *D);
575 llvm::DIScope *getContextDescriptor(const Decl *Context,
576 llvm::DIScope *Default);
578 llvm::DIScope *getCurrentContextDescriptor(const Decl *Decl);
581 llvm::DICompositeType *getOrCreateRecordFwdDecl(const RecordType *,
582 llvm::DIScope *);
591 Optional<llvm::DIFile::ChecksumKind>
599 llvm::DIFile *getOrCreateFile(SourceLocation Loc);
602 llvm::DIFile *
604 Optional<llvm::DIFile::ChecksumInfo<StringRef>> CSInfo,
608 llvm::DIType *getOrCreateType(QualType Ty, llvm::DIFile *Fg);
612 llvm::DIModule *getOrCreateModuleRef(ASTSourceDescriptor Mod,
616 llvm::DIModule *getParentModuleOrNull(const Decl *D);
620 llvm::DICompositeType *getOrCreateLimitedType(const RecordType *Ty);
623 llvm::DIType *CreateTypeNode(QualType Ty, llvm::DIFile *Fg);
626 llvm::DIType *CreateMemberType(llvm::DIFile *Unit, QualType FType,
631 llvm::DINode *getDeclarationOrDefinition(const Decl *D);
635 llvm::DISubprogram *getFunctionDeclaration(const Decl *D);
643 llvm::DISubprogram *
644 getObjCMethodDeclaration(const Decl *D, llvm::DISubroutineType *FnType,
645 unsigned LineNo, llvm::DINode::DIFlags Flags,
646 llvm::DISubprogram::DISPFlags SPFlags);
652 llvm::DIDerivedType *
656 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub);
660 llvm::DISubprogram *getFunctionForwardDeclaration(GlobalDecl GD);
664 llvm::DISubprogram *getFunctionStub(GlobalDecl GD);
668 llvm::DIGlobalVariable *
678 llvm::DIGlobalVariableExpression *
679 CollectAnonRecordDecls(const RecordDecl *RD, llvm::DIFile *Unit,
681 llvm::GlobalVariable *Var, llvm::DIScope *DContext);
686 llvm::DINode::DIFlags getCallSiteRelatedAttrs() const;
714 llvm::Function *InitFn);
727 void collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
729 llvm::DIScope *&FDContext,
730 llvm::DINodeArray &TParamsArray,
731 llvm::DINode::DIFlags &Flags);
734 void collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit,
737 llvm::MDTuple *&TemplateParameters,
738 llvm::DIScope *&VDContext);
761 llvm::DebugLoc OriginalLocation;
768 ApplyDebugLocation(CodeGenFunction &CGF, llvm::DebugLoc Loc);