Lines Matching defs:std

35   OS.AddComment(std::string(BTFKindStr[Kind]) + "(id = " + std::to_string(Id) +
262 std::string BTFTypeStruct::getName() { return STy->getName(); }
271 const std::unordered_map<uint32_t, StringRef> &FuncArgNames)
346 BTFKindDataSec::BTFKindDataSec(AsmPrinter *AsmPrt, std::string SecName)
362 OS.EmitIntValue(std::get<0>(V), 4);
363 Asm->EmitLabelReference(std::get<1>(V), 4);
364 OS.EmitIntValue(std::get<2>(V), 4);
389 uint32_t BTFDebug::addType(std::unique_ptr<BTFTypeBase> TypeEntry,
394 TypeEntries.push_back(std::move(TypeEntry));
398 uint32_t BTFDebug::addType(std::unique_ptr<BTFTypeBase> TypeEntry) {
401 TypeEntries.push_back(std::move(TypeEntry));
416 auto TypeEntry = std::make_unique<BTFTypeInt>(
418 TypeId = addType(std::move(TypeEntry), BTy);
424 const std::unordered_map<uint32_t, StringRef> &FuncArgNames,
435 auto TypeEntry = std::make_unique<BTFTypeFuncProto>(STy, VLen, FuncArgNames);
437 TypeId = addType(std::move(TypeEntry)); // For subprogram
439 TypeId = addType(std::move(TypeEntry), STy); // For func ptr
466 std::make_unique<BTFTypeStruct>(CTy, IsStruct, HasBitField, VLen);
468 TypeId = addType(std::move(TypeEntry), CTy);
493 std::make_unique<BTFTypeArray>(ElemTypeId,
496 ElemTypeId = addType(std::move(TypeEntry), CTy);
498 ElemTypeId = addType(std::move(TypeEntry));
508 auto TypeEntry = std::make_unique<BTFTypeInt>(dwarf::DW_ATE_unsigned, 32,
510 ArrayIndexTypeId = addType(std::move(TypeEntry));
520 auto TypeEntry = std::make_unique<BTFTypeEnum>(CTy, VLen);
521 TypeId = addType(std::move(TypeEntry), CTy);
528 auto TypeEntry = std::make_unique<BTFTypeFwd>(CTy->getName(), IsUnion);
529 TypeId = addType(std::move(TypeEntry), CTy);
570 auto TypeEntry = std::make_unique<BTFTypeDerived>(DTy, Tag, true);
574 TypeId = addType(std::move(TypeEntry), DTy);
584 auto TypeEntry = std::make_unique<BTFTypeDerived>(DTy, Tag, false);
585 TypeId = addType(std::move(TypeEntry), DTy);
641 visitSubroutineType(STy, false, std::unordered_map<uint32_t, StringRef>(),
683 std::make_unique<BTFTypeStruct>(CTy, true, HasBitField, Elements.size());
685 TypeId = addType(std::move(TypeEntry), CTy);
695 std::string BTFDebug::populateFileContent(const DISubprogram *SP) {
697 std::string FileName;
708 std::vector<std::string> Content;
709 std::string Line;
712 std::unique_ptr<MemoryBuffer> Buf;
716 else if (ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
718 Buf = std::move(*BufOrErr);
729 std::string FileName = populateFileContent(SP);
780 OS.AddComment("string offset=" + std::to_string(StringOffset));
833 std::to_string(FuncSec.first));
847 std::to_string(LineSec.first));
854 OS.AddComment("Line " + std::to_string(LineInfo.LineNum) + " Col " +
855 std::to_string(LineInfo.ColumnNum));
866 std::to_string(FieldRelocSec.first));
916 std::unordered_map<uint32_t, StringRef> FuncArgNames;
935 std::make_unique<BTFTypeFunc>(SP->getName(), ProtoTypeId, Scope);
936 uint32_t FuncTypeId = addType(std::move(FuncTypeEntry));
990 FieldReloc.RelocKind = std::stoull(RelocKindStr);
991 PatchImms[AccessPattern.str()] = std::stoul(PatchImmStr);
1148 std::make_unique<BTFKindVar>(Global.getName(), GVTypeId, GVarInfo);
1149 uint32_t VarId = addType(std::move(VarEntry));
1155 DataSecEntries[SecName] = std::make_unique<BTFKindDataSec>(Asm, SecName);
1219 const std::unordered_map<uint32_t, StringRef> FuncArgNames;
1224 std::make_unique<BTFTypeFunc>(SP->getName(), ProtoTypeId, Scope);
1225 addType(std::move(FuncTypeEntry));
1239 addType(std::move(DataSec.second));
1256 auto FwdTypeEntry = std::make_unique<BTFTypeFwd>(TypeName, IsUnion);
1257 StructTypeId = addType(std::move(FwdTypeEntry));