Home
last modified time | relevance | path

Searched refs:Record (Results 1 – 25 of 215) sorted by relevance

123456789

/freebsd-9-stable/contrib/llvm/tools/clang/lib/Serialization/
DASTWriterStmt.cpp34 ASTWriter::RecordData &Record; member in clang::ASTStmtWriter
40 ASTStmtWriter(ASTWriter &Writer, ASTWriter::RecordData &Record) in ASTStmtWriter() argument
41 : Writer(Writer), Record(Record) { } in ASTStmtWriter()
54 Writer.AddSourceLocation(Args.getTemplateKeywordLoc(), Record); in AddTemplateKWAndArgsInfo()
55 Writer.AddSourceLocation(Args.LAngleLoc, Record); in AddTemplateKWAndArgsInfo()
56 Writer.AddSourceLocation(Args.RAngleLoc, Record); in AddTemplateKWAndArgsInfo()
58 Writer.AddTemplateArgumentLoc(Args.getTemplateArgs()[i], Record); in AddTemplateKWAndArgsInfo()
66 Writer.AddSourceLocation(S->getSemiLoc(), Record); in VisitNullStmt()
67 Record.push_back(S->HasLeadingEmptyMacro); in VisitNullStmt()
73 Record.push_back(S->size()); in VisitCompoundStmt()
[all …]
DASTReaderStmt.cpp34 const ASTReader::RecordData &Record; member in clang::ASTStmtReader
83 const ASTReader::RecordData &Record, unsigned &Idx) in ASTStmtReader() argument
84 : Reader(Reader), F(F), DeclsCursor(Cursor), Record(Record), Idx(Idx) { } in ASTStmtReader()
111 SourceLocation TemplateKWLoc = ReadSourceLocation(Record, Idx); in ReadTemplateKWAndArgsInfo()
113 ArgInfo.setLAngleLoc(ReadSourceLocation(Record, Idx)); in ReadTemplateKWAndArgsInfo()
114 ArgInfo.setRAngleLoc(ReadSourceLocation(Record, Idx)); in ReadTemplateKWAndArgsInfo()
117 Reader.ReadTemplateArgumentLoc(F, Record, Idx)); in ReadTemplateKWAndArgsInfo()
127 S->setSemiLoc(ReadSourceLocation(Record, Idx)); in VisitNullStmt()
128 S->HasLeadingEmptyMacro = Record[Idx++]; in VisitNullStmt()
134 unsigned NumStmts = Record[Idx++]; in VisitCompoundStmt()
[all …]
DASTWriterDecl.cpp39 RecordData &Record; member in clang::ASTDeclWriter
45 ASTDeclWriter(ASTWriter &Writer, ASTContext &Context, RecordData &Record) in ASTDeclWriter() argument
46 : Writer(Writer), Context(Context), Record(Record) { in ASTDeclWriter()
143 Writer.AddTypeSourceInfo(DD->getTypeSourceInfo(), Record); in Visit()
150 Record.push_back(FD->doesThisDeclarationHaveABody()); in Visit()
157 Writer.AddDeclRef(cast_or_null<Decl>(D->getDeclContext()), Record); in VisitDecl()
158 Writer.AddDeclRef(cast_or_null<Decl>(D->getLexicalDeclContext()), Record); in VisitDecl()
159 Record.push_back(D->isInvalidDecl()); in VisitDecl()
160 Record.push_back(D->hasAttrs()); in VisitDecl()
163 D->getAttrs().size()), Record); in VisitDecl()
[all …]
DASTWriter.cpp78 ASTWriter::RecordDataImpl &Record; member in __anon94d4dcd60111::ASTTypeWriter
84 ASTTypeWriter(ASTWriter &Writer, ASTWriter::RecordDataImpl &Record) in ASTTypeWriter() argument
85 : Writer(Writer), Record(Record), Code(TYPE_EXT_QUAL) { } in ASTTypeWriter()
102 Writer.AddTypeRef(T->getElementType(), Record); in VisitComplexType()
107 Writer.AddTypeRef(T->getPointeeType(), Record); in VisitPointerType()
112 Writer.AddTypeRef(T->getOriginalType(), Record); in VisitDecayedType()
117 Writer.AddTypeRef(T->getPointeeType(), Record); in VisitBlockPointerType()
122 Writer.AddTypeRef(T->getPointeeTypeAsWritten(), Record); in VisitLValueReferenceType()
123 Record.push_back(T->isSpelledAsLValue()); in VisitLValueReferenceType()
128 Writer.AddTypeRef(T->getPointeeTypeAsWritten(), Record); in VisitRValueReferenceType()
[all …]
DASTReaderDecl.cpp43 const RecordData &Record; member in clang::ASTDeclReader
193 const RecordData &Record, unsigned &Idx) in ASTDeclReader() argument
195 RawLocation(RawLocation), Record(Record), Idx(Idx), in ASTDeclReader()
207 const RecordData &Record);
332 GetTypeSourceInfo(Record, Idx); in Visit()
335 DD->DeclInfo = GetTypeSourceInfo(Record, Idx); in Visit()
351 if (Record[Idx++]) { in Visit()
364 GlobalDeclID SemaDCIDForTemplateParmDecl = ReadDeclID(Record, Idx); in VisitDecl()
365 GlobalDeclID LexicalDCIDForTemplateParmDecl = ReadDeclID(Record, Idx); in VisitDecl()
371 DeclContext *SemaDC = ReadDeclAs<DeclContext>(Record, Idx); in VisitDecl()
[all …]
DASTReader.cpp727 RecordData Record; in ReadDeclContextStorage() local
730 unsigned RecCode = Cursor.readRecord(Code, Record, &Blob); in ReadDeclContextStorage()
744 RecordData Record; in ReadDeclContextStorage() local
747 unsigned RecCode = Cursor.readRecord(Code, Record, &Blob); in ReadDeclContextStorage()
754 (const unsigned char *)Blob.data() + Record[0], in ReadDeclContextStorage()
785 SmallVectorImpl<uint64_t> &Record) { in ParseLineTable() argument
791 for (int I = 0, N = Record[Idx++]; I != N; ++I) { in ParseLineTable()
793 unsigned FilenameLen = Record[Idx++]; in ParseLineTable()
794 std::string Filename(&Record[Idx], &Record[Idx] + FilenameLen); in ParseLineTable()
802 while (Idx < Record.size()) { in ParseLineTable()
[all …]
DGlobalModuleIndex.cpp145 case llvm::BitstreamEntry::Record: in GlobalModuleIndex()
164 SmallVector<uint64_t, 64> Record; in GlobalModuleIndex() local
166 switch ((IndexRecordTypes)Cursor.readRecord(Entry.ID, Record, &Blob)) { in GlobalModuleIndex()
169 if (Record.size() < 1 || Record[0] != CurrentVersion) in GlobalModuleIndex()
175 unsigned ID = Record[Idx++]; in GlobalModuleIndex()
185 Modules[ID].Size = Record[Idx++]; in GlobalModuleIndex()
186 Modules[ID].ModTime = Record[Idx++]; in GlobalModuleIndex()
189 unsigned NameLen = Record[Idx++]; in GlobalModuleIndex()
190 Modules[ID].FileName.assign(Record.begin() + Idx, in GlobalModuleIndex()
191 Record.begin() + Idx + NameLen); in GlobalModuleIndex()
[all …]
/freebsd-9-stable/contrib/llvm/lib/Bitcode/Reader/
DBitcodeReader.cpp65 static bool ConvertToString(ArrayRef<uint64_t> Record, unsigned Idx, in ConvertToString() argument
67 if (Idx > Record.size()) in ConvertToString()
70 for (unsigned i = Idx, e = Record.size(); i != e; ++i) in ConvertToString()
71 Result += (char)Record[i]; in ConvertToString()
461 SmallVector<uint64_t, 64> Record; in ParseAttributeBlock() local
475 case BitstreamEntry::Record: in ParseAttributeBlock()
481 Record.clear(); in ParseAttributeBlock()
482 switch (Stream.readRecord(Entry.ID, Record)) { in ParseAttributeBlock()
487 if (Record.size() & 1) in ParseAttributeBlock()
490 for (unsigned i = 0, e = Record.size(); i != e; i += 2) { in ParseAttributeBlock()
[all …]
DBitcodeReader.h286 bool getValueTypePair(SmallVectorImpl<uint64_t> &Record, unsigned &Slot, in getValueTypePair() argument
288 if (Slot == Record.size()) return true; in getValueTypePair()
289 unsigned ValNo = (unsigned)Record[Slot++]; in getValueTypePair()
298 } else if (Slot == Record.size()) { in getValueTypePair()
302 unsigned TypeNo = (unsigned)Record[Slot++]; in getValueTypePair()
310 bool popValue(SmallVectorImpl<uint64_t> &Record, unsigned &Slot, in popValue() argument
312 if (getValue(Record, Slot, InstNum, Ty, ResVal)) in popValue()
320 bool getValue(SmallVectorImpl<uint64_t> &Record, unsigned Slot, in getValue() argument
322 ResVal = getValue(Record, Slot, InstNum, Ty); in getValue()
328 Value *getValue(SmallVectorImpl<uint64_t> &Record, unsigned Slot, in getValue() argument
[all …]
/freebsd-9-stable/contrib/llvm/tools/clang/lib/Frontend/
DSerializedDiagnosticPrinter.cpp161 PresumedLoc PLoc, RecordDataImpl &Record,
165 void AddLocToRecord(SourceLocation Loc, RecordDataImpl &Record, in AddLocToRecord() argument
169 Record, TokSize); in AddLocToRecord()
173 void AddCharSourceRangeToRecord(CharSourceRange R, RecordDataImpl &Record,
209 RecordData Record; member
252 RecordDataImpl &Record) { in EmitBlockID() argument
253 Record.clear(); in EmitBlockID()
254 Record.push_back(ID); in EmitBlockID()
255 Stream.EmitRecord(llvm::bitc::BLOCKINFO_CODE_SETBID, Record); in EmitBlockID()
261 Record.clear(); in EmitBlockID()
[all …]
/freebsd-9-stable/contrib/llvm/utils/TableGen/
DCodeGenSchedule.h30 typedef std::vector<Record*> RecVec;
31 typedef std::vector<Record*>::const_iterator RecIter;
49 Record *TheDef;
61 CodeGenSchedRW(unsigned Idx, Record *Def) in CodeGenSchedRW()
130 Record *ItinClassDef;
147 bool isKeyEqual(Record *IC, const IdxVec &W, const IdxVec &R) { in isKeyEqual()
177 Record *ModelDef;
178 Record *ItinsDef;
199 CodeGenProcModel(unsigned Idx, const std::string &Name, Record *MDef, in CodeGenProcModel()
200 Record *IDef) : in CodeGenProcModel()
[all …]
DCodeGenDAGPatterns.h29 class Record; variable
158 SDTypeConstraint(Record *R);
200 Record *Def;
208 SDNodeInfo(Record *R); // Parse the specified record.
215 Record *getRecord() const { return Def; } in getRecord()
306 Record *Operator;
322 Record *TransformFn;
326 TreePatternNode(Record *Op, const std::vector<TreePatternNode*> &Ch, in TreePatternNode()
364 Record *getOperator() const { assert(!isLeaf()); return Operator; } in getOperator()
396 Record *getTransformFn() const { return TransformFn; } in getTransformFn()
[all …]
DCodeGenTarget.h53 MVT::SimpleValueType getValueType(Record *Rec);
60 std::string getQualifiedName(const Record *R);
66 Record *TargetRec;
68 mutable DenseMap<const Record*, CodeGenInstruction*> Instructions;
70 mutable std::vector<Record*> RegAltNameIndices;
83 Record *getTargetRecord() const { return TargetRec; } in getTargetRecord()
92 Record *getInstructionSet() const;
96 Record *getAsmParser() const;
101 Record *getAsmParserVariant(unsigned i) const;
110 Record *getAsmWriter() const;
[all …]
DCodeGenInstruction.h25 class Record; variable
67 Record *Rec;
107 OperandInfo(Record *R, const std::string &N, const std::string &PMN, in OperandInfo()
126 CGIOperandList(Record *D);
128 Record *TheDef; // The actual record containing this OperandList.
202 Record *TheDef; // The actual record defining this instruction.
215 std::vector<Record*> ImplicitDefs, ImplicitUses;
261 Record *InferredFrom;
263 CodeGenInstruction(Record *R);
282 Record *TheDef; // The actual record defining this InstAlias.
[all …]
DCodeGenMapTable.cpp83 typedef std::map<std::string, std::vector<Record*> > InstrRelMapTy;
85 typedef std::map<std::vector<Init*>, std::vector<Record*> > RowInstrMapTy;
101 InstrMap(Record* MapRec) { in InstrMap()
191 std::vector<Record*> InstrDefs;
198 std::vector<Record*> KeyInstrVec;
199 DenseMap<Record*, std::vector<Record*> > MapTable;
202 MapTableEmitter(CodeGenTarget &Target, RecordKeeper &Records, Record *IMRec): in MapTableEmitter()
212 bool isKeyColInstr(Record* CurInstr);
216 Record *getInstrForColumn(Record *KeyInstr, ListInit *CurValueCol);
243 Record *CurInstr = InstrDefs[i]; in buildRowInstrMap()
[all …]
DCodeGenTarget.cpp38 MVT::SimpleValueType llvm::getValueType(Record *Rec) { in getValueType()
124 std::string llvm::getQualifiedName(const Record *R) { in getQualifiedName()
137 std::vector<Record*> Targets = Records.getAllDerivedDefinitions("Target"); in CodeGenTarget()
165 Record *CodeGenTarget::getInstructionSet() const { in getInstructionSet()
172 Record *CodeGenTarget::getAsmParser() const { in getAsmParser()
173 std::vector<Record*> LI = TargetRec->getValueAsListOfDefs("AssemblyParsers"); in getAsmParser()
182 Record *CodeGenTarget::getAsmParserVariant(unsigned i) const { in getAsmParserVariant()
183 std::vector<Record*> LI = in getAsmParserVariant()
194 std::vector<Record*> LI = in getAsmParserVariantCount()
201 Record *CodeGenTarget::getAsmWriter() const { in getAsmWriter()
[all …]
/freebsd-9-stable/contrib/llvm/lib/TableGen/
DTGParser.h25 class Record; variable
104 bool AddValue(Record *TheRec, SMLoc Loc, const RecordVal &RV);
105 bool SetValue(Record *TheRec, SMLoc Loc, Init *ValName,
107 bool SetValue(Record *TheRec, SMLoc Loc, const std::string &ValName, in SetValue()
111 bool AddSubClass(Record *Rec, SubClassReference &SubClass);
126 bool ProcessForeachDefs(Record *CurRec, SMLoc Loc);
127 bool ProcessForeachDefs(Record *CurRec, SMLoc Loc, IterSet &IterVals);
134 Record *InstantiateMulticlassDef(MultiClass &MC,
135 Record *DefProto,
139 Record *DefProto,
[all …]
/freebsd-9-stable/contrib/llvm/tools/clang/utils/TableGen/
DClangSACheckersEmitter.cpp28 static bool isHidden(const Record &R) { in isHidden()
38 static bool isCheckerNamed(const Record *R) { in isCheckerNamed()
42 static std::string getPackageFullName(const Record *R);
44 static std::string getParentPackageFullName(const Record *R) { in getParentPackageFullName()
51 static std::string getPackageFullName(const Record *R) { in getPackageFullName()
57 static std::string getCheckerFullName(const Record *R) { in getCheckerFullName()
66 static std::string getStringValue(const Record &R, StringRef field) { in getStringValue()
74 llvm::DenseSet<const Record*> Checkers;
75 llvm::DenseSet<const Record *> SubGroups;
83 static void addPackageToCheckerGroup(const Record *package, const Record *group, in addPackageToCheckerGroup()
[all …]
DClangDiagnosticsEmitter.cpp43 std::map<const Record*, std::vector<Record*> > Mapping;
46 std::vector<Record*> DiagGroups in DiagGroupParentMap()
49 std::vector<Record*> SubGroups = in DiagGroupParentMap()
56 const std::vector<Record*> &getParents(const Record *Group) { in getParents()
63 getCategoryFromDiagGroup(const Record *Group, in getCategoryFromDiagGroup()
71 const std::vector<Record*> &Parents = DiagGroupParents.getParents(Group); in getCategoryFromDiagGroup()
81 static std::string getDiagnosticCategory(const Record *R, in getDiagnosticCategory()
108 std::vector<Record*> Diags = in DiagCategoryIDMap()
132 std::vector<const Record*> DiagsInGroup;
136 const Record *ExplicitDef;
[all …]
DClangAttrEmitter.cpp26 getValueAsListOfStrings(Record &R, StringRef FieldName) { in getValueAsListOfStrings()
103 Argument(Record &Arg, StringRef Attr) in Argument()
147 SimpleArgument(Record &Arg, StringRef Attr, std::string T) in SimpleArgument()
227 StringArgument(Record &Arg, StringRef Attr) in StringArgument()
294 AlignedArgument(Record &Arg, StringRef Attr) in AlignedArgument()
424 VariadicArgument(Record &Arg, StringRef Attr, std::string T) in VariadicArgument()
519 EnumArgument(Record &Arg, StringRef Attr) in EnumArgument()
615 VariadicEnumArgument(Record &Arg, StringRef Attr) in VariadicEnumArgument()
700 VersionArgument(Record &Arg, StringRef Attr) in VersionArgument()
753 ExprArgument(Record &Arg, StringRef Attr) in ExprArgument()
[all …]
DClangASTNodesEmitter.cpp28 typedef std::multimap<Record*, Record*> ChildMap;
32 Record Root;
46 std::string baseName(Record &R) { in baseName()
53 std::pair<Record *, Record *> EmitNode (const ChildMap &Tree, raw_ostream& OS,
54 Record *Base);
72 std::pair<Record *, Record *> ClangASTNodesEmitter::EmitNode( in EmitNode()
75 Record *Base) { in EmitNode()
80 Record *First = 0, *Last = 0; in EmitNode()
87 Record *R = i->second; in EmitNode()
104 const std::pair<Record *, Record *> &Result in EmitNode()
[all …]
/freebsd-9-stable/contrib/llvm/tools/clang/include/clang/Serialization/
DASTWriter.h450 void WriteAttributes(ArrayRef<const Attr*> Attrs, RecordDataImpl &Record);
505 void AddToken(const Token &Tok, RecordDataImpl &Record);
508 void AddSourceLocation(SourceLocation Loc, RecordDataImpl &Record);
511 void AddSourceRange(SourceRange Range, RecordDataImpl &Record);
514 void AddAPInt(const llvm::APInt &Value, RecordDataImpl &Record);
517 void AddAPSInt(const llvm::APSInt &Value, RecordDataImpl &Record);
520 void AddAPFloat(const llvm::APFloat &Value, RecordDataImpl &Record);
523 void AddIdentifierRef(const IdentifierInfo *II, RecordDataImpl &Record);
526 void AddSelectorRef(Selector, RecordDataImpl &Record);
529 void AddCXXTemporary(const CXXTemporary *Temp, RecordDataImpl &Record);
[all …]
DASTReader.h1004 bool ParseLineTable(ModuleFile &F, SmallVectorImpl<uint64_t> &Record);
1009 static bool ParseLanguageOptions(const RecordData &Record, bool Complain,
1011 static bool ParseTargetOptions(const RecordData &Record, bool Complain,
1013 static bool ParseDiagnosticOptions(const RecordData &Record, bool Complain,
1015 static bool ParseFileSystemOptions(const RecordData &Record, bool Complain,
1017 static bool ParseHeaderSearchOptions(const RecordData &Record, bool Complain,
1019 static bool ParsePreprocessorOptions(const RecordData &Record, bool Complain,
1401 const RecordData &Record, unsigned &Idx);
1406 const RecordData &Record, unsigned &Idx);
1410 const RecordData &Record, unsigned &Index);
[all …]
/freebsd-9-stable/contrib/llvm/lib/Bitcode/Writer/
DBitcodeWriter.cpp254 SmallVector<uint64_t, 64> Record; in WriteAttributeGroupTable() local
260 Record.push_back(VE.getAttributeGroupID(A)); in WriteAttributeGroupTable()
261 Record.push_back(AS.getSlotIndex(i)); in WriteAttributeGroupTable()
267 Record.push_back(0); in WriteAttributeGroupTable()
268 Record.push_back(getAttrKindEncoding(Attr.getKindAsEnum())); in WriteAttributeGroupTable()
270 Record.push_back(1); in WriteAttributeGroupTable()
271 Record.push_back(getAttrKindEncoding(Attr.getKindAsEnum())); in WriteAttributeGroupTable()
272 Record.push_back(Attr.getValueAsInt()); in WriteAttributeGroupTable()
277 Record.push_back(Val.empty() ? 3 : 4); in WriteAttributeGroupTable()
278 Record.append(Kind.begin(), Kind.end()); in WriteAttributeGroupTable()
[all …]
/freebsd-9-stable/contrib/llvm/include/llvm/TableGen/
DRecord.h60 class Record; variable
370 Record *Rec;
371 explicit RecordRecTy(Record *R) : RecTy(RecordRecTyKind), Rec(R) {} in RecordRecTy()
372 friend class Record; variable
378 static RecordRecTy *get(Record *R);
380 Record *getRecord() const { return Rec; } in getRecord()
522 virtual Init *getFieldInit(Record &R, const RecordVal *RV, in getFieldInit()
532 virtual Init *resolveReferences(Record &R, const RecordVal *RV) const { in resolveReferences()
586 virtual Init *resolveListElementReference(Record &R, const RecordVal *RV,
688 virtual Init *resolveReferences(Record &R, const RecordVal *RV) const;
[all …]

123456789