/freebsd-10.0-release/contrib/llvm/tools/llvm-mc/ |
H A D | Disassembler.cpp | 93 StringRef &Str, 95 while (!Str.empty()) { 97 if (size_t Pos = Str.find_first_not_of(" \t\r")) { 98 Str = Str.substr(Pos); 104 if (Str[0] == '\n' || Str[0] == '#') { 107 if (Str[0] == '\n') { 108 Str = Str 92 ByteArrayFromString(ByteArrayTy &ByteArray, StringRef &Str, SourceMgr &SM) argument 159 StringRef Str = Buffer.getBuffer(); local [all...] |
/freebsd-10.0-release/contrib/diff/lib/ |
H A D | xstrtol.h | 58 # define _STRTOL_ERROR(Exit_code, Str, Argument_type_string, Err) \ 68 (Argument_type_string), (Str)); \ 74 (Argument_type_string), (Str)); \ 79 (Argument_type_string), (Str)); \ 85 # define STRTOL_FATAL_ERROR(Str, Argument_type_string, Err) \ 86 _STRTOL_ERROR (exit_failure, Str, Argument_type_string, Err) 88 # define STRTOL_FAIL_WARN(Str, Argument_type_string, Err) \ 89 _STRTOL_ERROR (0, Str, Argument_type_string, Err)
|
/freebsd-10.0-release/gnu/usr.bin/grep/ |
H A D | xstrtol.h | 32 # define _STRTOL_ERROR(Exit_code, Str, Argument_type_string, Err) \ 42 (Argument_type_string), (Str)); \ 47 (Argument_type_string), (Str)); \ 52 (Argument_type_string), (Str)); \ 58 # define STRTOL_FATAL_ERROR(Str, Argument_type_string, Err) \ 59 _STRTOL_ERROR (2, Str, Argument_type_string, Err) 61 # define STRTOL_FAIL_WARN(Str, Argument_type_string, Err) \ 62 _STRTOL_ERROR (0, Str, Argument_type_string, Err)
|
/freebsd-10.0-release/contrib/llvm/lib/MC/MCParser/ |
H A D | MCAsmLexer.cpp | 27 return SMLoc::getFromPointer(Str.data()); 31 return SMLoc::getFromPointer(Str.data() + Str.size());
|
/freebsd-10.0-release/contrib/llvm/utils/TableGen/ |
H A D | AsmWriterInst.h | 38 /// Str - For isLiteralTextOperand, this IS the literal text. For 42 std::string Str; member in struct:llvm::AsmWriterOperand 61 : OperandType(op), Str(LitStr) {} 68 : OperandType(op), Str(Printer), CGIOpNo(_CGIOpNo), MIOpNo(_MIOpNo), 72 if (OperandType != Other.OperandType || Str != Other.Str) return true; 101 void AddLiteralString(const std::string &Str) { argument 106 Operands.back().Str.append(Str); 108 Operands.push_back(AsmWriterOperand(Str)); [all...] |
H A D | StringToOffsetTable.h | 30 unsigned GetOrAddStringOffset(StringRef Str, bool appendZero = true) { argument 31 StringMapEntry<unsigned> &Entry = StringOffset.GetOrCreateValue(Str, -1U); 35 AggregateString.append(Str.begin(), Str.end()); 45 SmallString<256> Str; local 46 raw_svector_ostream(Str).write_escaped(AggregateString); 47 AggregateString = Str.str();
|
/freebsd-10.0-release/contrib/llvm/lib/Support/ |
H A D | StringRef.cpp | 120 /// find - Search for the first string \arg Str in the string. 122 /// \return - The index of the first occurrence of \arg Str, or npos if not 124 size_t StringRef::find(StringRef Str, size_t From) const { 125 size_t N = Str.size(); 132 if (substr(i, N).equals(Str)) 144 BadCharSkip[(uint8_t)Str[i]] = N-1-i; 148 if (substr(Pos, N).equals(Str)) // See if this is the correct substring. 160 /// rfind - Search for the last string \arg Str in the string. 162 /// \return - The index of the last occurrence of \arg Str, or npos if not 164 size_t StringRef::rfind(StringRef Str) cons [all...] |
H A D | GraphWriter.cpp | 25 std::string Str(Label); 26 for (unsigned i = 0; i != Str.length(); ++i) 27 switch (Str[i]) { 29 Str.insert(Str.begin()+i, '\\'); // Escape character... 31 Str[i] = 'n'; 34 Str.insert(Str.begin()+i, ' '); // Convert to two spaces 36 Str[i] = ' '; 39 if (i+1 != Str [all...] |
/freebsd-10.0-release/contrib/llvm/lib/Bitcode/Writer/ |
H A D | BitcodeWriterPass.cpp | 39 ModulePass *llvm::createBitcodeWriterPass(raw_ostream &Str) { argument 40 return new WriteBitcodePass(Str);
|
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Basic/ |
H A D | MacroBuilder.h | 40 /// Directly append Str and a newline to the underlying buffer. 41 void append(const Twine &Str) { argument 42 Out << Str << '\n'; local
|
H A D | OpenMPKinds.h | 31 OpenMPDirectiveKind getOpenMPDirectiveKind(llvm::StringRef Str);
|
/freebsd-10.0-release/contrib/llvm/lib/Target/NVPTX/ |
H A D | ManagedStringPool.h | 40 std::string *Str = new std::string(S); local 41 Pool.push_back(Str); 42 return Str;
|
/freebsd-10.0-release/contrib/llvm/lib/Target/R600/ |
H A D | AMDGPUMachineFunction.cpp | 18 StringRef Str = A.getValueAsString(); local 19 if (Str.getAsInteger(0, ShaderType))
|
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Basic/ |
H A D | OpenMPKinds.cpp | 23 OpenMPDirectiveKind clang::getOpenMPDirectiveKind(StringRef Str) { argument 24 return llvm::StringSwitch<OpenMPDirectiveKind>(Str)
|
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Frontend/ |
H A D | TextDiagnosticBuffer.cpp | 47 static StringRef escapeDiag(StringRef Str, SmallVectorImpl<char> &Buf) { argument 48 size_t Pos = Str.find('%'); 50 return Str; 54 Buf.append(Str.data(), Str.data() + Pos); 55 for (size_t I = Pos, E = Str.size(); I != E; ++I) { 56 if (Str[I] == '%') 58 Buf.push_back(Str[I]);
|
/freebsd-10.0-release/contrib/llvm/lib/Target/ |
H A D | Mangler.cpp | 47 /// NameNeedsEscaping - Return true if the identifier \p Str needs quotes 49 static bool NameNeedsEscaping(StringRef Str, const MCAsmInfo &MAI) { argument 50 assert(!Str.empty() && "Cannot create an empty MCSymbol"); 54 if (!MAI.doesAllowNameToStartWithDigit() && Str[0] >= '0' && Str[0] <= '9') 61 for (unsigned i = 0, e = Str.size(); i != e; ++i) 62 if (!isAcceptableChar(Str[i], AllowPeriod, AllowUTF8)) 69 static void appendMangledName(SmallVectorImpl<char> &OutName, StringRef Str, argument 73 if (!MAI.doesAllowNameToStartWithDigit() && Str[0] >= '0' && Str[ 92 appendMangledQuotedName(SmallVectorImpl<char> &OutName, StringRef Str) argument [all...] |
/freebsd-10.0-release/contrib/llvm/include/llvm/ADT/ |
H A D | StringSwitch.h | 44 StringRef Str; member in class:llvm::StringSwitch 52 : Str(S), Result(0) { } 56 if (!Result && N-1 == Str.size() && 57 (std::memcmp(S, Str.data(), N-1) == 0)) { 66 if (!Result && Str.size() >= N-1 && 67 std::memcmp(S, Str.data() + Str.size() + 1 - N, N-1) == 0) { 76 if (!Result && Str.size() >= N-1 && 77 std::memcmp(S, Str.data(), N-1) == 0) {
|
H A D | Triple.h | 146 explicit Triple(const Twine &Str); 159 static std::string normalize(StringRef Str); 362 /// setTriple - Set all components to the new triple \p Str. 363 void setTriple(const Twine &Str); 367 void setArchName(StringRef Str); 371 void setVendorName(StringRef Str); 375 void setOSName(StringRef Str); 379 void setEnvironmentName(StringRef Str); 383 void setOSAndEnvironmentName(StringRef Str); 440 static ArchType getArchTypeForLLVMName(StringRef Str); [all...] |
/freebsd-10.0-release/contrib/llvm/tools/clang/include/clang/Rewrite/Core/ |
H A D | Rewriter.h | 69 void InsertText(unsigned OrigOffset, StringRef Str, 77 void InsertTextBefore(unsigned OrigOffset, StringRef Str) { argument 78 InsertText(OrigOffset, Str, false); 84 void InsertTextAfter(unsigned OrigOffset, StringRef Str) { argument 85 InsertText(OrigOffset, Str); 191 bool InsertText(SourceLocation Loc, StringRef Str, 199 bool InsertTextAfter(SourceLocation Loc, StringRef Str) { argument 200 return InsertText(Loc, Str); 205 bool InsertTextAfterToken(SourceLocation Loc, StringRef Str); 212 bool InsertTextBefore(SourceLocation Loc, StringRef Str) { argument [all...] |
/freebsd-10.0-release/contrib/llvm/lib/MC/ |
H A D | MCSymbol.cpp | 29 /// NameNeedsQuoting - Return true if the identifier \p Str needs quotes to be 31 static bool NameNeedsQuoting(StringRef Str) { argument 32 assert(!Str.empty() && "Cannot create an empty MCSymbol"); 36 for (unsigned i = 0, e = Str.size(); i != e; ++i) 37 if (!isAcceptableChar(Str[i]))
|
/freebsd-10.0-release/contrib/llvm/tools/llvm-readobj/ |
H A D | StreamWriter.cpp | 30 void StreamWriter::printBinaryImpl(StringRef Label, StringRef Str, argument 37 if (Str.size() > 0) 38 OS << ": " << Str; local 66 if (Str.size() > 0) 67 OS << " " << Str; local
|
/freebsd-10.0-release/contrib/llvm/lib/Option/ |
H A D | Option.cpp | 120 const char *Str = Args.getArgString(Index) + ArgSize; local 124 const char *Prev = Str; 125 for (;; ++Str) { 126 char c = *Str; 129 if (Prev != Str) { 130 char *Value = new char[Str - Prev + 1]; 131 memcpy(Value, Prev, Str - Prev); 132 Value[Str - Prev] = '\0'; 139 Prev = Str + 1;
|
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Driver/ |
H A D | Option.cpp | 118 const char *Str = Args.getArgString(Index) + ArgSize; local 122 const char *Prev = Str; 123 for (;; ++Str) { 124 char c = *Str; 127 if (Prev != Str) { 128 char *Value = new char[Str - Prev + 1]; 129 memcpy(Value, Prev, Str - Prev); 130 Value[Str - Prev] = '\0'; 137 Prev = Str + 1;
|
/freebsd-10.0-release/contrib/llvm/tools/clang/lib/Lex/ |
H A D | TokenConcatenation.cpp | 21 /// IsStringPrefix - Return true if Str is a string prefix. 23 static bool IsStringPrefix(StringRef Str, bool CPlusPlus11) { argument 25 if (Str[0] == 'L' || 26 (CPlusPlus11 && (Str[0] == 'u' || Str[0] == 'U' || Str[0] == 'R'))) { 28 if (Str.size() == 1) 33 if (Str[1] == 'R' && Str[0] != 'R' && Str [all...] |
/freebsd-10.0-release/contrib/llvm/include/llvm/Analysis/ |
H A D | CFGPrinter.h | 40 std::string Str; 41 raw_string_ostream OS(Str); 49 std::string Str; local 50 raw_string_ostream OS(Str); 96 std::string Str; 97 raw_string_ostream OS(Str);
|