Lines Matching refs:llvm
33 namespace llvm {
60 llvm::DIBuilder DBuilder;
61 llvm::DICompileUnit *TheCU = nullptr;
65 llvm::MDNode *CurInlinedAt = nullptr;
66 llvm::DIType *VTablePtrType = nullptr;
67 llvm::DIType *ClassTy = nullptr;
68 llvm::DICompositeType *ObjTy = nullptr;
69 llvm::DIType *SelTy = nullptr;
71 llvm::DIType *SingletonId = nullptr;
73 llvm::DIType *OCLSamplerDITy = nullptr;
74 llvm::DIType *OCLEventDITy = nullptr;
75 llvm::DIType *OCLClkEventDITy = nullptr;
76 llvm::DIType *OCLQueueDITy = nullptr;
77 llvm::DIType *OCLNDRangeDITy = nullptr;
78 llvm::DIType *OCLReserveIDDITy = nullptr;
80 llvm::DIType *Id##Ty = nullptr;
84 llvm::DenseMap<const void *, llvm::TrackingMDRef> TypeCache;
86 llvm::SmallDenseMap<llvm::StringRef, llvm::StringRef> DebugPrefixMap;
90 llvm::SmallDenseMap<QualType, llvm::Metadata *> SizeExprCache;
94 llvm::DIType *Decl;
95 llvm::DIFile *Unit;
96 ObjCInterfaceCacheEntry(const ObjCInterfaceType *Type, llvm::DIType *Decl, in ObjCInterfaceCacheEntry()
97 llvm::DIFile *Unit) in ObjCInterfaceCacheEntry()
102 llvm::SmallVector<ObjCInterfaceCacheEntry, 32> ObjCInterfaceCache;
105 llvm::DenseMap<const ObjCInterfaceDecl *, std::vector<llvm::DISubprogram *>>
109 llvm::DenseMap<const Module *, llvm::TrackingMDRef> ModuleCache;
115 std::vector<std::pair<const TagType *, llvm::TrackingMDRef>> ReplaceMap;
119 std::vector<std::pair<const DeclaratorDecl *, llvm::TrackingMDRef>>
123 std::vector<llvm::TypedTrackingMDRef<llvm::DIScope>> LexicalBlockStack;
124 llvm::DenseMap<const Decl *, llvm::TrackingMDRef> RegionMap;
132 llvm::BumpPtrAllocator DebugInfoNames;
135 llvm::DenseMap<const char *, llvm::TrackingMDRef> DIFileCache;
136 llvm::DenseMap<const FunctionDecl *, llvm::TrackingMDRef> SPCache;
139 llvm::DenseMap<const Decl *, llvm::TrackingMDRef> DeclCache;
140 llvm::DenseMap<const NamespaceDecl *, llvm::TrackingMDRef> NamespaceCache;
141 llvm::DenseMap<const NamespaceAliasDecl *, llvm::TrackingMDRef>
143 llvm::DenseMap<const Decl *, llvm::TypedTrackingMDRef<llvm::DIDerivedType>>
150 llvm::DIType *CreateType(const BuiltinType *Ty);
151 llvm::DIType *CreateType(const ComplexType *Ty);
152 llvm::DIType *CreateQualifiedType(QualType Ty, llvm::DIFile *Fg);
153 llvm::DIType *CreateType(const TypedefType *Ty, llvm::DIFile *Fg);
154 llvm::DIType *CreateType(const TemplateSpecializationType *Ty,
155 llvm::DIFile *Fg);
156 llvm::DIType *CreateType(const ObjCObjectPointerType *Ty, llvm::DIFile *F);
157 llvm::DIType *CreateType(const PointerType *Ty, llvm::DIFile *F);
158 llvm::DIType *CreateType(const BlockPointerType *Ty, llvm::DIFile *F);
159 llvm::DIType *CreateType(const FunctionType *Ty, llvm::DIFile *F);
161 llvm::DIType *CreateType(const RecordType *Tyg);
162 llvm::DIType *CreateTypeDefinition(const RecordType *Ty);
163 llvm::DICompositeType *CreateLimitedType(const RecordType *Ty);
165 llvm::DICompositeType *CT);
167 llvm::DIType *CreateType(const ObjCInterfaceType *Ty, llvm::DIFile *F);
168 llvm::DIType *CreateTypeDefinition(const ObjCInterfaceType *Ty,
169 llvm::DIFile *F);
171 llvm::DIType *CreateType(const ObjCObjectType *Ty, llvm::DIFile *F);
172 llvm::DIType *CreateType(const ObjCTypeParamType *Ty, llvm::DIFile *Unit);
174 llvm::DIType *CreateType(const VectorType *Ty, llvm::DIFile *F);
175 llvm::DIType *CreateType(const ArrayType *Ty, llvm::DIFile *F);
176 llvm::DIType *CreateType(const LValueReferenceType *Ty, llvm::DIFile *F);
177 llvm::DIType *CreateType(const RValueReferenceType *Ty, llvm::DIFile *Unit);
178 llvm::DIType *CreateType(const MemberPointerType *Ty, llvm::DIFile *F);
179 llvm::DIType *CreateType(const AtomicType *Ty, llvm::DIFile *F);
180 llvm::DIType *CreateType(const PipeType *Ty, llvm::DIFile *F);
182 llvm::DIType *CreateEnumType(const EnumType *Ty);
183 llvm::DIType *CreateTypeDefinition(const EnumType *Ty);
190 llvm::DIType *CreateSelfType(const QualType &QualTy, llvm::DIType *Ty);
195 llvm::DIType *getTypeOrNull(const QualType);
200 llvm::DISubroutineType *getOrCreateMethodType(const CXXMethodDecl *Method,
201 llvm::DIFile *F);
202 llvm::DISubroutineType *
204 llvm::DIFile *Unit);
205 llvm::DISubroutineType *
206 getOrCreateFunctionType(const Decl *D, QualType FnType, llvm::DIFile *F);
208 llvm::DIType *getOrCreateVTablePtrType(llvm::DIFile *F);
211 llvm::DINamespace *getOrCreateNamespace(const NamespaceDecl *N);
212 llvm::DIType *CreatePointerLikeType(llvm::dwarf::Tag Tag, const Type *Ty,
213 QualType PointeeTy, llvm::DIFile *F);
214 llvm::DIType *getOrCreateStructPtrType(StringRef Name, llvm::DIType *&Cache);
218 llvm::DISubprogram *CreateCXXMemberFunction(const CXXMethodDecl *Method,
219 llvm::DIFile *F,
220 llvm::DIType *RecordTy);
225 void CollectCXXMemberFunctions(const CXXRecordDecl *Decl, llvm::DIFile *F,
226 SmallVectorImpl<llvm::Metadata *> &E,
227 llvm::DIType *T);
232 void CollectCXXBases(const CXXRecordDecl *Decl, llvm::DIFile *F,
233 SmallVectorImpl<llvm::Metadata *> &EltTys,
234 llvm::DIType *RecordTy);
239 const CXXRecordDecl *RD, llvm::DIFile *Unit,
240 SmallVectorImpl<llvm::Metadata *> &EltTys, llvm::DIType *RecordTy,
242 llvm::DenseSet<CanonicalDeclPtr<const CXXRecordDecl>> &SeenTypes,
243 llvm::DINode::DIFlags StartingFlags);
246 llvm::DINodeArray CollectTemplateParams(const TemplateParameterList *TPList,
248 llvm::DIFile *Unit);
251 llvm::DINodeArray CollectFunctionTemplateParams(const FunctionDecl *FD,
252 llvm::DIFile *Unit);
256 llvm::DINodeArray CollectVarTemplateParams(const VarDecl *VD,
257 llvm::DIFile *Unit);
261 llvm::DINodeArray
263 llvm::DIFile *F);
265 llvm::DIType *createFieldType(StringRef name, QualType type,
268 llvm::DIFile *tunit, llvm::DIScope *scope,
271 llvm::DIType *createFieldType(StringRef name, QualType type,
273 uint64_t offsetInBits, llvm::DIFile *tunit,
274 llvm::DIScope *scope,
281 llvm::DIType *createBitFieldType(const FieldDecl *BitFieldDecl,
282 llvm::DIScope *RecordTy,
288 SmallVectorImpl<llvm::Metadata *> &E,
289 llvm::DIType *RecordTy);
290 llvm::DIDerivedType *CreateRecordStaticField(const VarDecl *Var,
291 llvm::DIType *RecordTy,
294 llvm::DIFile *F,
295 SmallVectorImpl<llvm::Metadata *> &E,
296 llvm::DIType *RecordTy, const RecordDecl *RD);
298 SmallVectorImpl<llvm::Metadata *> &E);
299 void CollectRecordFields(const RecordDecl *Decl, llvm::DIFile *F,
300 SmallVectorImpl<llvm::Metadata *> &E,
301 llvm::DICompositeType *RecordTy);
305 void CollectVTableInfo(const CXXRecordDecl *Decl, llvm::DIFile *F,
306 SmallVectorImpl<llvm::Metadata *> &EltTys,
307 llvm::DICompositeType *RecordTy);
327 const BlockPointerType *Ty, llvm::DIFile *Unit,
328 llvm::DIDerivedType *DescTy, unsigned LineNo,
329 SmallVectorImpl<llvm::Metadata *> &EltTys);
335 const llvm::StructLayout &BlockLayout, llvm::DIFile *Unit,
336 SmallVectorImpl<llvm::Metadata *> &Fields);
348 void registerVLASizeExpression(QualType Ty, llvm::Metadata *SizeExpr) { in registerVLASizeExpression()
380 void setInlinedAt(llvm::MDNode *InlinedAt) { CurInlinedAt = InlinedAt; } in setInlinedAt()
383 llvm::MDNode *getInlinedAt() const { return CurInlinedAt; } in getInlinedAt()
386 llvm::DebugLoc SourceLocToDebugLoc(SourceLocation Loc);
399 llvm::Function *Fn, bool CurFnIsThunk,
411 void EmitFunctionEnd(CGBuilderTy &Builder, llvm::Function *Fn);
425 llvm::DILocalVariable *EmitDeclareOfAutoVariable(const VarDecl *Decl,
426 llvm::Value *AI,
432 const VarDecl *variable, llvm::Value *storage, CGBuilderTy &Builder,
433 const CGBlockInfo &blockInfo, llvm::Instruction *InsertPoint = nullptr);
437 void EmitDeclareOfArgVariable(const VarDecl *Decl, llvm::Value *AI,
444 llvm::AllocaInst *LocalAddr,
448 void EmitGlobalVariable(llvm::GlobalVariable *GV, const VarDecl *Decl);
466 llvm::DIImportedEntity *EmitNamespaceAlias(const NamespaceAliasDecl &NA);
469 llvm::DIType *getOrCreateRecordType(QualType Ty, SourceLocation L);
472 llvm::DIType *getOrCreateInterfaceType(QualType Ty, SourceLocation Loc);
475 llvm::DIType *getOrCreateStandaloneType(QualType Ty, SourceLocation Loc);
488 llvm::DIMacro *CreateMacro(llvm::DIMacroFile *Parent, unsigned MType,
493 llvm::DIMacroFile *CreateTempMacroFile(llvm::DIMacroFile *Parent,
501 llvm::DILocalVariable *EmitDeclare(const VarDecl *decl, llvm::Value *AI,
502 llvm::Optional<unsigned> ArgNo,
507 llvm::DIType *BlockByRefWrapper;
509 llvm::DIType *WrappedType;
517 llvm::DIScope *getDeclContextDescriptor(const Decl *D);
519 llvm::DIScope *getContextDescriptor(const Decl *Context,
520 llvm::DIScope *Default);
522 llvm::DIScope *getCurrentContextDescriptor(const Decl *Decl);
525 llvm::DICompositeType *getOrCreateRecordFwdDecl(const RecordType *,
526 llvm::DIScope *);
535 Optional<llvm::DIFile::ChecksumKind>
543 llvm::DIFile *getOrCreateFile(SourceLocation Loc);
546 llvm::DIFile *
548 Optional<llvm::DIFile::ChecksumInfo<StringRef>> CSInfo,
552 llvm::DIType *getOrCreateType(QualType Ty, llvm::DIFile *Fg);
556 llvm::DIModule *
561 llvm::DIModule *getParentModuleOrNull(const Decl *D);
565 llvm::DICompositeType *getOrCreateLimitedType(const RecordType *Ty,
566 llvm::DIFile *F);
569 llvm::DIType *CreateTypeNode(QualType Ty, llvm::DIFile *Fg);
572 llvm::DIType *CreateMemberType(llvm::DIFile *Unit, QualType FType,
577 llvm::DINode *getDeclarationOrDefinition(const Decl *D);
581 llvm::DISubprogram *getFunctionDeclaration(const Decl *D);
587 llvm::DIDerivedType *
591 llvm::DISubprogram *getFunctionFwdDeclOrStub(GlobalDecl GD, bool Stub);
595 llvm::DISubprogram *getFunctionForwardDeclaration(GlobalDecl GD);
599 llvm::DISubprogram *getFunctionStub(GlobalDecl GD);
603 llvm::DIGlobalVariable *
613 llvm::DIGlobalVariableExpression *
614 CollectAnonRecordDecls(const RecordDecl *RD, llvm::DIFile *Unit,
616 llvm::GlobalVariable *Var, llvm::DIScope *DContext);
621 llvm::DINode::DIFlags getCallSiteRelatedAttrs() const;
656 void collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
658 llvm::DIScope *&FDContext,
659 llvm::DINodeArray &TParamsArray,
660 llvm::DINode::DIFlags &Flags);
663 void collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit,
666 llvm::MDTuple *&TemplateParameters,
667 llvm::DIScope *&VDContext);
690 llvm::DebugLoc OriginalLocation;
697 ApplyDebugLocation(CodeGenFunction &CGF, llvm::DebugLoc Loc);