Lines Matching refs:Name
324 static void PrintEscapedString(StringRef Name, raw_ostream &Out) {
325 for (unsigned i = 0, e = Name.size(); i != e; ++i) {
326 unsigned char C = Name[i];
342 void llvm::printLLVMNameWithoutPrefix(raw_ostream &OS, StringRef Name) {
343 assert(!Name.empty() && "Cannot get empty name!");
345 // Scan the name to see if it needs quotes first.
346 bool NeedsQuotes = isdigit(static_cast<unsigned char>(Name[0]));
348 for (unsigned i = 0, e = Name.size(); i != e; ++i) {
353 unsigned char C = Name[i];
362 // If we didn't need any quotes, just write out the name in one blast.
364 OS << Name;
371 PrintEscapedString(Name, OS);
375 /// Turn the specified name into an 'LLVM name', which is either prefixed with %
378 static void PrintLLVMName(raw_ostream &OS, StringRef Name, PrefixType Prefix) {
394 printLLVMNameWithoutPrefix(OS, Name);
397 /// Turn the specified name into an 'LLVM name', which is either prefixed with %
454 /// use of type names or up references to shorten the type name where possible.
947 /// CreateSlot - Create a new slot for the specified value if it has no name.
1393 void printString(StringRef Name, StringRef Value,
1395 void printMetadata(StringRef Name, const Metadata *MD,
1398 void printInt(StringRef Name, IntTy Int, bool ShouldSkipZero = true);
1399 void printBool(StringRef Name, bool Value);
1400 void printDIFlags(StringRef Name, unsigned Flags);
1402 void printDwarfEnum(StringRef Name, IntTy Value, Stringifier toString,
1423 void MDFieldPrinter::printString(StringRef Name, StringRef Value,
1428 Out << FS << Name << ": \"";
1444 void MDFieldPrinter::printMetadata(StringRef Name, const Metadata *MD,
1449 Out << FS << Name << ": ";
1454 void MDFieldPrinter::printInt(StringRef Name, IntTy Int, bool ShouldSkipZero) {
1458 Out << FS << Name << ": " << Int;
1461 void MDFieldPrinter::printBool(StringRef Name, bool Value) {
1462 Out << FS << Name << ": " << (Value ? "true" : "false");
1465 void MDFieldPrinter::printDIFlags(StringRef Name, unsigned Flags) {
1469 Out << FS << Name << ": ";
1485 void MDFieldPrinter::printDwarfEnum(StringRef Name, IntTy Value,
1490 Out << FS << Name << ": ";
1542 Printer.printString("name", N->getName(), /* ShouldSkipEmpty */ false);
1553 Printer.printString("name", N->getName());
1567 Printer.printString("name", N->getName());
1587 Printer.printString("name", N->getName());
1658 Printer.printString("name", N->getName());
1710 Printer.printString("name", N->getName());
1724 Printer.printString("name", N->getName());
1746 Printer.printString("name", N->getName());
1761 Printer.printString("name", N->getName());
1775 Printer.printString("name", N->getName());
1786 Printer.printString("name", N->getName());
1804 Printer.printString("name", N->getName());
1840 Printer.printString("name", N->getName());
1856 Printer.printString("name", N->getName());
2286 static void printMetadataIdentifier(StringRef Name,
2288 if (Name.empty()) {
2289 Out << "<empty name> ";
2291 if (isalpha(static_cast<unsigned char>(Name[0])) || Name[0] == '-' ||
2292 Name[0] == '$' || Name[0] == '.' || Name[0] == '_')
2293 Out << Name[0];
2295 Out << '\\' << hexdigit(Name[0] >> 4) << hexdigit(Name[0] & 0x0F);
2296 for (unsigned i = 1, e = Name.size(); i != e; ++i) {
2297 unsigned char C = Name[i];
2516 // Print out the return type and name.
2661 // Output name, if available...
2754 // Print out name if it exists...