reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

Declarations

include/llvm/IR/Metadata.h
  620   StringRef getString() const;

References

include/llvm/Analysis/CFGPrinter.h
  161     if (MDName->getString() != "branch_weights")
include/llvm/IR/DebugInfoMetadata.h
  137       return S->getString();
  540       StringRefChecksum.emplace(Checksum->Kind, Checksum->Value->getString());
  544     return Source ? Optional<StringRef>((*Source)->getString()) : None;
 3115       return S->getString();
include/llvm/IR/Metadata.h
  622   unsigned getLength() const { return (unsigned)getString().size(); }
  627   iterator begin() const { return getString().begin(); }
  630   iterator end() const { return getString().end(); }
  632   const unsigned char *bytes_begin() const { return getString().bytes_begin(); }
  633   const unsigned char *bytes_end() const { return getString().bytes_end(); }
lib/Analysis/LoopInfo.cpp
  994     if (Name.equals(S->getString()))
 1032                 return S->getString().startswith(Prefix);
lib/Analysis/ModuleDebugInfoPrinter.cpp
  123         O << " (identifier: '" << S->getString() << "')";
lib/Analysis/ModuleSummaryAnalysis.cpp
  173     GlobalValue::GUID Guid = GlobalValue::getGUID(TypeId->getString());
  204     GlobalValue::GUID Guid = GlobalValue::getGUID(TypeId->getString());
  563       Index.getOrInsertTypeIdCompatibleVtableSummary(TypeId->getString())
lib/Analysis/TypeBasedAliasAnalysis.cpp
  457       if (Tag1->getString() == "vtable pointer")
  467     if (Id->getString() == "vtable pointer")
lib/Bitcode/Writer/BitcodeWriter.cpp
 1990     Blob.append(cast<MDString>(MD)->getString());
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
 2059       OutStreamer->EmitIdent(S->getString());
 2081     OutStreamer->EmitBytes(S->getString());
lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
 1095         StringRef Str = cast<MDString>(MD)->getString();
 2398     StringRef Name = MethodItr.first->getString();
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
  665         DD->addDwarfTypeUnitType(getCU(), TypeId->getString(), TyDIE, CTy);
 1071                 cast<MDString>(Val)->getString());
lib/CodeGen/MachinePipeliner.cpp
  293     if (S->getString() == "llvm.loop.pipeline.initiationinterval") {
  299     } else if (S->getString() == "llvm.loop.pipeline.disable") {
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
 2236       TLI->getRegisterByName(RegStr->getString().data(), Op->getValueType(0),
 2249   Register Reg = TLI->getRegisterByName(RegStr->getString().data(),
lib/CodeGen/TargetLoweringObjectFileImpl.cpp
   75     StringRef Key = MFE.Key->getString();
   85       Section = cast<MDString>(MFE.Val)->getString();
  280         Streamer.EmitBytes(cast<MDString>(Option)->getString());
  294           cast<MDString>(cast<MDNode>(Operand)->getOperand(0))->getString());
  319     StringRef Key = MFE.Key->getString();
  891         StrOptions.push_back(cast<MDString>(Piece)->getString());
 1456         Directive.append(cast<MDString>(Piece)->getString());
lib/IR/AsmWriter.cpp
 2336     printEscapedString(MDS->getString(), Out);
lib/IR/AutoUpgrade.cpp
 3845         ID->getString().split(ValueComp, "#");
 3993     if (ID->getString() == "Objective-C Image Info Version")
 3995     if (ID->getString() == "Objective-C Class Properties")
 3999     if (ID->getString() == "PIC Level" || ID->getString() == "PIE Level") {
 3999     if (ID->getString() == "PIC Level" || ID->getString() == "PIE Level") {
 4006               MDString::get(M.getContext(), ID->getString()),
 4016     if (ID->getString() == "Objective-C Image Info Section") {
 4019         Value->getString().split(ValueComp, " ");
 4085   return S->getString().startswith("llvm.vectorizer.");
 4109   if (!OldTag->getString().startswith("llvm.vectorizer."))
 4115   Ops.push_back(upgradeLoopTag(T->getContext(), OldTag->getString()));
lib/IR/BasicBlock.cpp
  484     if (MDName->getString().equals("loop_header_weight")) {
lib/IR/Core.cpp
  341     Result[i].Key = ModuleFlag.Key->getString().data();
  342     Result[i].KeyLen = ModuleFlag.Key->getString().size();
 1116       *Length = S->getString().size();
 1117       return S->getString().data();
lib/IR/DebugInfoMetadata.cpp
  255   return !S || !S->getString().empty();
  412   assert(!Identifier.getString().empty() && "Expected valid identifier");
  447   assert(!Identifier.getString().empty() && "Expected valid identifier");
  461   assert(!Identifier.getString().empty() && "Expected valid identifier");
lib/IR/Function.cpp
 1551       if (MDS->getString().equals("function_entry_count")) {
 1560                  MDS->getString().equals("synthetic_function_entry_count")) {
 1573       if (MDS->getString().equals("function_entry_count"))
 1590                ->getString()
 1593     return cast<MDString>(MD->getOperand(1))->getString();
lib/IR/Instruction.cpp
  698   if (MDName->getString() != "branch_weights")
lib/IR/Instructions.cpp
  472   if (!ProfDataName || (!ProfDataName->getString().equals("branch_weights") &&
  473                         !ProfDataName->getString().equals("VP")))
  489   if (ProfDataName->getString().equals("branch_weights") &&
  498   } else if (ProfDataName->getString().equals("VP"))
 3895       if (MDName->getString() == "branch_weights")
lib/IR/IntrinsicInst.cpp
  112   return StrToRoundingMode(cast<MDString>(MD)->getString());
  158   return StrToExceptionBehavior(cast<MDString>(MD)->getString());
lib/IR/Metadata.cpp
 1322   if (!ProfDataName || !ProfDataName->getString().equals("branch_weights"))
 1353   if (ProfDataName->getString().equals("branch_weights")) {
 1362   } else if (ProfDataName->getString().equals("VP") &&
lib/IR/Module.cpp
  314     if (Key == MFE.Key->getString())
lib/IR/ProfileSummary.cpp
   93   if (!KeyMD->getString().equals(Key))
  107   if (!KeyMD->getString().equals(Key) || !ValMD->getString().equals(Val))
  107   if (!KeyMD->getString().equals(Key) || !ValMD->getString().equals(Val))
  117   if (!KeyMD || !KeyMD->getString().equals("DetailedSummary"))
lib/IR/Verifier.cpp
 1463   if (ID->getString() == "wchar_size") {
 1469   if (ID->getString() == "Linker Options") {
 1477   if (ID->getString() == "CG Profile") {
 1861       StringRef ProfName = MDS->getString();
 4028   StringRef ProfName = MDS->getString();
lib/LTO/LTOModule.cpp
  635         OS << " " << MDOption->getString();
lib/Linker/IRMover.cpp
 1267         return stringErr("linking module flags '" + ID->getString() +
 1280       return stringErr("linking module flags '" + ID->getString() +
 1300         return stringErr("linking module flags '" + ID->getString() +
 1311             << "linking module flags '" << ID->getString()
 1362       return stringErr("linking module flags '" + Flag->getString() +
lib/Object/IRSymtab.cpp
  141           COFFLinkerOptsOS << " " << cast<MDString>(MDOption)->getString();
  151             cast<MDString>(cast<MDNode>(MDOptions)->getOperand(0))->getString();
lib/ProfileData/InstrProf.cpp
  266     StringRef S = cast<MDString>(MD->getOperand(0))->getString();
  995   if (!Tag->getString().equals("VP"))
lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
 2679   int Reg = getIntOperandFromRegisterString(RegString->getString());
 2690   auto TheReg = AArch64SysReg::lookupSysRegByName(RegString->getString());
 2695     Reg = AArch64SysReg::parseGenericRegister(RegString->getString());
 2705   if (RegString->getString() == "pc") {
 2725   int Reg = getIntOperandFromRegisterString(RegString->getString());
 2739   auto PMapper = AArch64PState::lookupPStateByName(RegString->getString());
 2764   auto TheReg = AArch64SysReg::lookupSysRegByName(RegString->getString());
 2769     Reg = AArch64SysReg::parseGenericRegister(RegString->getString());
lib/Target/AMDGPU/AMDGPUHSAMetadataStreamer.cpp
  262       Printf.push_back(cast<MDString>(Op->getOperand(0))->getString());
  316     Name = cast<MDString>(Node->getOperand(ArgNo))->getString();
  323     TypeName = cast<MDString>(Node->getOperand(ArgNo))->getString();
  328     BaseTypeName = cast<MDString>(Node->getOperand(ArgNo))->getString();
  337       AccQual = cast<MDString>(Node->getOperand(ArgNo))->getString();
  343     TypeQual = cast<MDString>(Node->getOperand(ArgNo))->getString();
  668           cast<MDString>(Op->getOperand(0))->getString(), /*Copy=*/true));
  733     Name = cast<MDString>(Node->getOperand(ArgNo))->getString();
  740     TypeName = cast<MDString>(Node->getOperand(ArgNo))->getString();
  745     BaseTypeName = cast<MDString>(Node->getOperand(ArgNo))->getString();
  754       AccQual = cast<MDString>(Node->getOperand(ArgNo))->getString();
  760     TypeQual = cast<MDString>(Node->getOperand(ArgNo))->getString();
lib/Target/AMDGPU/R600OpenCLImageTypeLoweringPass.cpp
  116     if (!StringNode || StringNode->getString() != KernelArgMDNodeNames[i])
  126   return cast<MDString>(ArgAQNode->getOperand(ArgIdx + 1))->getString();
  132   return cast<MDString>(ArgTypeNode->getOperand(ArgIdx + 1))->getString();
lib/Target/AMDGPU/Utils/AMDGPUPALMetadata.cpp
   42         setFromMsgPackBlob(MDS->getString());
lib/Target/ARM/ARMISelDAGToDAG.cpp
 4421   getIntOperandsFromRegisterString(RegString->getString(), CurDAG, DL, Ops);
 4447   std::string SpecialReg = RegString->getString().lower();
 4536   getIntOperandsFromRegisterString(RegString->getString(), CurDAG, DL, Ops);
 4563   std::string SpecialReg = RegString->getString().lower();
lib/Target/NVPTX/NVPTXUtilities.cpp
   61     std::string keyname = prop->getString().str();
lib/Target/RISCV/RISCVTargetObjectFile.cpp
   92     StringRef Key = MFE.Key->getString();
lib/Target/WebAssembly/WebAssemblyAsmPrinter.cpp
  156       std::string SectionName = (".custom_section." + Name->getString()).str();
  160       OutStreamer->EmitBytes(Contents->getString());
  187       std::pair<StringRef, StringRef> Field = S->getString().split("version");
lib/Target/X86/X86FrameLowering.cpp
 2545     if (ValConst && NodeName->getString() == LiteralName) {
lib/Transforms/IPO/LowerTypeTests.cpp
 1036   TypeIdLowering TIL = importTypeId(TypeIdStr->getString());
 1117         dbgs() << MDS->getString() << ": ";
 1153       uint8_t *MaskPtr = exportTypeId(cast<MDString>(TypeId)->getString(), TIL);
 1855             cast<MDString>(FuncMD->getOperand(0))->getString();
 2052         MetadataByGUID[GlobalValue::getGUID(TypeId->getString())].push_back(
 2139             cast<MDString>(AliasMD->getOperand(0))->getString();
 2140         StringRef Aliasee = cast<MDString>(AliasMD->getOperand(1))->getString();
 2181             cast<MDString>(Symver->getOperand(0))->getString();
 2182         StringRef Alias = cast<MDString>(Symver->getOperand(1))->getString();
lib/Transforms/IPO/WholeProgramDevirt.cpp
 1227   OS << cast<MDString>(Slot.TypeID)->getString() << '_' << Slot.ByteOffset;
 1683       ImportSummary->getTypeIdSummary(TypeId->getString());
 1815         MetadataByGUID[GlobalValue::getGUID(TypeId->getString())].push_back(
 1869                        cast<MDString>(S.first.TypeID)->getString())
 1892           GlobalValue::getGUID(cast<MDString>(S.first.TypeID)->getString());
lib/Transforms/Instrumentation/AddressSanitizer.cpp
 1116   Filename = DIFilename->getString();
 1146       E.Name = Name->getString();
lib/Transforms/Instrumentation/ControlHeightReduction.cpp
  612   if (MDName->getString() != "branch_weights" ||
lib/Transforms/Instrumentation/GCOVProfiling.cpp
  539         return Notes ? NotesFile->getString() : DataFile->getString();
  539         return Notes ? NotesFile->getString() : DataFile->getString();
  546       SmallString<128> Filename = GCovFile->getString();
lib/Transforms/ObjCARC/ObjCARCContract.cpp
  497                          RVInstMarker->getString(),
lib/Transforms/Scalar/JumpThreading.cpp
 2153   if (MDName->getString() != "branch_weights")
lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
  116       if (S->getString().startswith(Prefix))
lib/Transforms/Utils/LoopUnroll.cpp
  976     if (Name.equals(S->getString()))
lib/Transforms/Utils/LoopUtils.cpp
  222         if (S && S->getString().equals(StringMD)) {
  335         StringRef AttrName = cast<MDString>(NameMD)->getString();
lib/Transforms/Utils/MisExpect.cpp
  100         MisExpectDataName->getString().equals("misexpect")) {
  162       if (Tag->getString().equals("branch_weights")) {
lib/Transforms/Utils/SimplifyCFG.cpp
  960       return MDS->getString().equals("branch_weights");
lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
  211     StringRef Name = S->getString();
lib/Transforms/Vectorize/LoopVectorize.cpp
 6593             S && S->getString().startswith("llvm.loop.unroll.disable");
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 4263       return V->getString();
tools/clang/lib/CodeGen/CodeGenModule.cpp
 1213   return llvm::ConstantInt::get(Int64Ty, llvm::MD5Hash(MDS->getString()));
tools/clang/unittests/CodeGen/IRMatchers.h
  320       return MDS->getString().equals(Name);
unittests/IR/DebugTypeODRUniquingTest.cpp
   42   EXPECT_EQ(UUID.getString(), CT.getIdentifier());
unittests/IR/MDBuilderTest.cpp
   28   EXPECT_EQ(Str0->getString(), StringRef(""));
   29   EXPECT_EQ(Str1->getString(), StringRef("string"));
   78   EXPECT_EQ(cast<MDString>(R0->getOperand(0))->getString(), "Root");
   97   EXPECT_EQ(cast<MDString>(N0->getOperand(0))->getString(), "Node");
   98   EXPECT_EQ(cast<MDString>(N1->getOperand(0))->getString(), "edoN");
   99   EXPECT_EQ(cast<MDString>(N2->getOperand(0))->getString(), "Node");