Lines Matching defs:ID
703 static void EmitBlockID(unsigned ID, const char *Name,
707 Record.push_back(ID);
719 static void EmitRecordID(unsigned ID, const char *Name,
723 Record.push_back(ID);
1262 #define SANITIZER(NAME, ID) \
1263 Record.push_back(LangOpts.Sanitize.has(SanitizerKind::ID));
1390 // Original file name and file ID
1395 FileAbbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // File ID
1451 IFAbbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // ID
1550 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Input File ID
1843 // The source location entry is a file. Emit input file ID.
1948 if (L->first.ID < 0)
1951 // Emit the file ID
1952 Record.push_back(L->first.ID);
2132 /// the local macro ID
2142 MacroID ID = MacroInfosToEmit[I].ID;
2144 if (ID < FirstMacroID) {
2150 unsigned Index = ID - FirstMacroID;
2182 // ID that corresponds to this macro.
2209 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // first ID
2262 // Record this macro definition's ID.
2280 if (InclusionDirective *ID = dyn_cast<InclusionDirective>(*E)) {
2282 Record.push_back(ID->getFileName().size());
2283 Record.push_back(ID->wasInQuotes());
2284 Record.push_back(static_cast<unsigned>(ID->getKind()));
2285 Record.push_back(ID->importedModule());
2287 Buffer += ID->getFileName();
2290 if (ID->getFile())
2291 Buffer += ID->getFile()->getName();
2373 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // ID
2461 unsigned ID = getSubmoduleID(Mod);
2466 Record.push_back(ID);
2551 assert(ExportedID > 0 && "Unknown submodule ID?");
2812 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // base decl ID
2881 SelectorID ID;
2935 LE.write<uint32_t>(Methods.ID);
3000 SelectorID ID = SelectorAndID.second;
3003 ID,
3013 if (Chain && ID < FirstSelectorID) {
3066 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // first ID
3322 EmitKeyDataLength(raw_ostream& Out, IdentifierInfo* II, IdentID ID) {
3324 unsigned DataLen = 4; // 4 bytes for the persistent ID << 1
3327 DataLen += 2; // 2 bytes for builtin ID
3336 DataLen += 4; // MacroInfo ID or ModuleID.
3377 assert(Overridden[I] && "zero module ID for override");
3384 IdentID ID, unsigned) {
3389 LE.write<uint32_t>(ID << 1);
3393 LE.write<uint32_t>((ID << 1) | 0x01);
3474 for (IdentifierTable::iterator ID = PP.getIdentifierTable().begin(),
3476 ID != IDEnd; ++ID)
3477 IIs.push_back(ID->second);
3489 IdentID ID = IdentIDPair.second;
3492 Generator.insert(II, ID, Trait);
3525 Abbrev->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 32)); // first ID
3564 llvm::FoldingSetNodeID ID;
3565 ID.AddInteger(Name.getNameKind());
3569 ID.AddString(Name.getAsIdentifierInfo()->getName());
3574 ID.AddInteger(serialization::ComputeHash(Name.getObjCSelector()));
3581 ID.AddInteger(Name.getCXXOverloadedOperator());
3584 ID.AddString(Name.getCXXLiteralIdentifier()->getName());
3589 return ID.ComputeHash();
3983 // Add the mapping from the first ID from the AST to the set of local
3995 // Sort the local redeclarations map by the first declaration ID,
4048 // Sort the categories map by the definition ID, since the reader will be
4186 IdentID ID = IdentifierIDs[II];
4189 if (ID >= FirstIdentID)
4190 IdentifierOffsets[ID - FirstIdentID] = Offset;
4196 unsigned ID = SelectorIDs[Sel];
4197 assert(ID && "Unknown selector");
4200 if (ID < FirstSelectorID)
4202 SelectorOffsets[ID - FirstSelectorID] = Offset;
4480 for (IdentifierTable::iterator ID = PP.getIdentifierTable().begin(),
4482 ID != IDEnd; ++ID) {
4483 const IdentifierInfo *II = ID->second;
4510 // each of those modules were mapped into our own offset/ID space, so that
4511 // the reader can build the appropriate mapping to its own offset/ID space.
4515 // identifier-id:i32
4516 // preprocessed-entity-id:i32
4517 // macro-definition-id:i32
4518 // submodule-id:i32
4519 // selector-id:i32
4520 // declaration-id:i32
4521 // c++-base-specifiers-id:i32
4522 // type-id:i32)
4538 // Note: if a base ID was uint max, it would not be possible to load
4543 assert(BaseID < std::numeric_limits<uint32_t>::max() && "base id too high");
4681 uint64_t ID;
4683 ModuleInfo(uint64_t ID, Module *M) : ID(ID), M(M) {}
4694 return A.ID < B.ID;
4697 return A.ID == B.ID;
4707 ImportedModules.push_back(Import.ID);
4876 Record.push_back(I->ID);
4915 IdentID &ID = IdentifierIDs[II];
4916 if (ID == 0)
4917 ID = NextIdentID++;
4918 return ID;
4928 MacroID &ID = MacroIDs[MI];
4929 if (ID == 0) {
4930 ID = NextMacroID++;
4931 MacroInfoToEmitData Info = { Name, MI, ID };
4934 return ID;
4961 // This might trigger a ReadSelector callback, which will set the ID for
5075 // We haven't seen this type before. Assign it a new ID and put it
5102 assert(WritingAST && "Cannot request a declaration ID before AST writing");
5108 // If D comes from an AST file, its declaration ID is already known and
5114 DeclID &ID = DeclIDs[D];
5115 if (ID == 0) {
5121 // We haven't seen this declaration before. Give it a new ID and
5123 ID = NextDeclID++;
5127 return ID;
5134 // If D comes from an AST file, its declaration ID is already known and
5143 void ASTWriter::associateDeclWithFile(const Decl *D, DeclID ID) {
5144 assert(ID);
5173 std::pair<unsigned, serialization::DeclID> LocDecl(Offset, ID);
5552 unsigned Index = CXXBaseSpecifiersToWrite[I].ID - 1;
5624 unsigned Index = Init.ID - 1;
5766 void ASTWriter::IdentifierRead(IdentID ID, IdentifierInfo *II) {
5767 // Always keep the highest ID. See \p TypeRead() for more information.
5769 if (ID > StoredID)
5770 StoredID = ID;
5773 void ASTWriter::MacroRead(serialization::MacroID ID, MacroInfo *MI) {
5774 // Always keep the highest ID. See \p TypeRead() for more information.
5776 if (ID > StoredID)
5777 StoredID = ID;
5791 void ASTWriter::SelectorRead(SelectorID ID, Selector S) {
5792 // Always keep the highest ID. See \p TypeRead() for more information.
5794 if (ID > StoredID)
5795 StoredID = ID;
5798 void ASTWriter::MacroDefinitionRead(serialization::PreprocessedEntityID ID,
5801 MacroDefinitions[MD] = ID;
5804 void ASTWriter::ModuleRead(serialization::SubmoduleID ID, Module *Mod) {
5806 SubmoduleIDs[Mod] = ID;