Home | History | Annotate | Download | only in IR

Lines Matching defs:Name

322 static void PrintEscapedString(StringRef Name, raw_ostream &Out) {
323 for (unsigned i = 0, e = Name.size(); i != e; ++i) {
324 unsigned char C = Name[i];
340 /// PrintLLVMName - Turn the specified name into an 'LLVM name', which is either
343 static void PrintLLVMName(raw_ostream &OS, StringRef Name, PrefixType Prefix) {
344 assert(!Name.empty() && "Cannot get empty name!");
353 // Scan the name to see if it needs quotes first.
354 bool NeedsQuotes = isdigit(static_cast<unsigned char>(Name[0]));
356 for (unsigned i = 0, e = Name.size(); i != e; ++i) {
361 unsigned char C = Name[i];
370 // If we didn't need any quotes, just write out the name in one blast.
372 OS << Name;
379 PrintEscapedString(Name, OS);
383 /// PrintLLVMName - Turn the specified name into an 'LLVM name', which is either
440 /// use of type names or up references to shorten the type name where possible.
898 /// CreateSlot - Create a new slot for the specified value if it has no name.
1373 void printString(StringRef Name, StringRef Value,
1375 void printMetadata(StringRef Name, const Metadata *MD,
1378 void printInt(StringRef Name, IntTy Int, bool ShouldSkipZero = true);
1379 void printBool(StringRef Name, bool Value);
1380 void printDIFlags(StringRef Name, unsigned Flags);
1382 void printDwarfEnum(StringRef Name, IntTy Value, Stringifier toString,
1395 void MDFieldPrinter::printString(StringRef Name, StringRef Value,
1400 Out << FS << Name << ": \"";
1416 void MDFieldPrinter::printMetadata(StringRef Name, const Metadata *MD,
1421 Out << FS << Name << ": ";
1426 void MDFieldPrinter::printInt(StringRef Name, IntTy Int, bool ShouldSkipZero) {
1430 Out << FS << Name << ": " << Int;
1433 void MDFieldPrinter::printBool(StringRef Name, bool Value) {
1434 Out << FS << Name << ": " << (Value ? "true" : "false");
1437 void MDFieldPrinter::printDIFlags(StringRef Name, unsigned Flags) {
1441 Out << FS << Name << ": ";
1457 void MDFieldPrinter::printDwarfEnum(StringRef Name, IntTy Value,
1462 Out << FS << Name << ": ";
1514 Printer.printString("name", N->getName(), /* ShouldSkipEmpty */ false);
1525 Printer.printString("name", N->getName());
1539 Printer.printString("name", N->getName());
1559 Printer.printString("name", N->getName());
1628 Printer.printString("name", N->getName());
1681 Printer.printString("name", N->getName());
1695 Printer.printString("name", N->getName());
1709 Printer.printString("name", N->getName());
1720 Printer.printString("name", N->getName());
1739 Printer.printString("name", N->getName());
1777 Printer.printString("name", N->getName());
1793 Printer.printString("name", N->getName());
2202 StringRef Name = NMD->getName();
2203 if (Name.empty()) {
2204 Out << "<empty name> ";
2206 if (isalpha(static_cast<unsigned char>(Name[0])) ||
2207 Name[0] == '-' || Name[0] == '$' ||
2208 Name[0] == '.' || Name[0] == '_')
2209 Out << Name[0];
2211 Out << '\\' << hexdigit(Name[0] >> 4) << hexdigit(Name[0] & 0x0F);
2212 for (unsigned i = 1, e = Name.size(); i != e; ++i) {
2213 unsigned char C = Name[i];
2428 // Print out the return type and name.
2567 // Output name, if available...
2644 // Print out name if it exists...