| /minix3/external/bsd/llvm/dist/llvm/unittests/ADT/ |
| H A D | StringRefTest.cpp | 22 std::ostream &operator<<(std::ostream &OS, const StringRef &S) { in operator <<() 28 const std::pair<StringRef, StringRef> &P) { in operator <<() argument 37 EXPECT_EQ("", StringRef()); in TEST() 38 EXPECT_EQ("hello", StringRef("hello")); in TEST() 39 EXPECT_EQ("hello", StringRef("hello world", 5)); in TEST() 40 EXPECT_EQ("hello", StringRef(std::string("hello"))); in TEST() 44 StringRef S("hello"); in TEST() 52 EXPECT_EQ(p, StringRef(p, 0).data()); in TEST() 53 EXPECT_TRUE(StringRef().empty()); in TEST() 54 EXPECT_EQ((size_t) 5, StringRef("hello").size()); in TEST() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/Support/ |
| H A D | Path.h | 51 : public std::iterator<std::input_iterator_tag, const StringRef> { 52 StringRef Path; ///< The entire path. 53 StringRef Component; ///< The current component. Not necessarily in Path. 57 friend const_iterator begin(StringRef path); 58 friend const_iterator end(StringRef path); 78 : public std::iterator<std::input_iterator_tag, const StringRef> { 79 StringRef Path; ///< The entire path. 80 StringRef Component; ///< The current component. Not necessarily in Path. 83 friend reverse_iterator rbegin(StringRef path); 84 friend reverse_iterator rend(StringRef path); [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/ADT/ |
| H A D | StringRef.h | 25 class StringRef; variable 28 bool getAsUnsignedInteger(StringRef Str, unsigned Radix, 31 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result); 40 class StringRef { 66 /*implicit*/ StringRef() : Data(nullptr), Length(0) {} in StringRef() function 69 /*implicit*/ StringRef(const char *Str) in StringRef() function 76 /*implicit*/ StringRef(const char *data, size_t length) in StringRef() function 83 /*implicit*/ StringRef(const std::string &Str) in StringRef() function 128 template <typename Allocator> StringRef copy(Allocator &A) const { in copy() 131 return StringRef(S, Length); in copy() [all …]
|
| H A D | SmallString.h | 31 SmallString(StringRef S) : SmallVector<char, InternalLen>(S.begin(), S.end()) {} in SmallString() 57 void assign(StringRef RHS) { in assign() 84 void append(StringRef RHS) { in append() 99 bool equals(StringRef RHS) const { in equals() 104 bool equals_lower(StringRef RHS) const { in equals_lower() 110 int compare(StringRef RHS) const { in compare() 115 int compare_lower(StringRef RHS) const { in compare_lower() 121 int compare_numeric(StringRef RHS) const { in compare_numeric() 130 bool startswith(StringRef Prefix) const { in startswith() 135 bool endswith(StringRef Suffix) const { in endswith() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/MC/MCParser/ |
| H A D | DarwinAsmParser.cpp | 30 template<bool (DarwinAsmParser::*HandlerMethod)(StringRef, SMLoc)> 31 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler() 172 bool parseDirectiveDesc(StringRef, SMLoc); 173 bool parseDirectiveIndirectSymbol(StringRef, SMLoc); 174 bool parseDirectiveDumpOrLoad(StringRef, SMLoc); 175 bool parseDirectiveLsym(StringRef, SMLoc); 176 bool parseDirectiveLinkerOption(StringRef, SMLoc); 177 bool parseDirectiveSection(StringRef, SMLoc); 178 bool parseDirectivePushSection(StringRef, SMLoc); 179 bool parseDirectivePopSection(StringRef, SMLoc); [all …]
|
| H A D | AsmLexer.cpp | 27 AllowAtInIdentifier = !StringRef(MAI.getCommentString()).startswith("@"); in AsmLexer() 33 void AsmLexer::setBuffer(StringRef Buf, const char *ptr) { in setBuffer() 49 return AsmToken(AsmToken::Error, StringRef(Loc, 0)); in ReturnError() 91 StringRef(TokStart, CurPtr - TokStart)); in LexFloatLiteral() 138 return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart)); in LexHexFloatLiteral() 162 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier() 164 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier() 173 default: return AsmToken(AsmToken::Slash, StringRef(CurPtr-1, 1)); in LexSlash() 203 return AsmToken(AsmToken::Eof, StringRef(TokStart, 0)); in LexLineComment() 204 return AsmToken(AsmToken::EndOfStatement, StringRef(TokStart, 0)); in LexLineComment() [all …]
|
| H A D | COFFAsmParser.cpp | 28 template<bool (COFFAsmParser::*HandlerMethod)(StringRef, SMLoc)> 29 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler() 35 bool ParseSectionSwitch(StringRef Section, 39 bool ParseSectionSwitch(StringRef Section, unsigned Characteristics, 40 SectionKind Kind, StringRef COMDATSymName, 43 bool ParseSectionName(StringRef &SectionName); 44 bool ParseSectionFlags(StringRef FlagsString, unsigned* Flags); 92 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument 99 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument 106 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument [all …]
|
| H A D | ELFAsmParser.cpp | 26 template<bool (ELFAsmParser::*HandlerMethod)(StringRef, SMLoc)> 27 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler() 34 bool ParseSectionSwitch(StringRef Section, unsigned Type, unsigned Flags, 82 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument 87 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument 92 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument 97 bool ParseSectionDirectiveRoData(StringRef, SMLoc) { in ParseSectionDirectiveRoData() argument 102 bool ParseSectionDirectiveTData(StringRef, SMLoc) { in ParseSectionDirectiveTData() argument 108 bool ParseSectionDirectiveTBSS(StringRef, SMLoc) { in ParseSectionDirectiveTBSS() argument 114 bool ParseSectionDirectiveDataRel(StringRef, SMLoc) { in ParseSectionDirectiveDataRel() argument [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/DebugInfo/ |
| H A D | DWARFContext.h | 173 virtual StringRef getAbbrevSection() = 0; 175 virtual StringRef getARangeSection() = 0; 176 virtual StringRef getDebugFrameSection() = 0; 178 virtual StringRef getStringSection() = 0; 179 virtual StringRef getRangeSection() = 0; 180 virtual StringRef getPubNamesSection() = 0; 181 virtual StringRef getPubTypesSection() = 0; 182 virtual StringRef getGnuPubNamesSection() = 0; 183 virtual StringRef getGnuPubTypesSection() = 0; 188 virtual StringRef getAbbrevDWOSection() = 0; [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/IR/ |
| H A D | DIBuilder.h | 34 class StringRef; variable 128 DICompileUnit createCompileUnit(unsigned Lang, StringRef File, 129 StringRef Dir, StringRef Producer, 130 bool isOptimized, StringRef Flags, 132 StringRef SplitName = StringRef(), 138 DIFile createFile(StringRef Filename, StringRef Directory); 141 DIEnumerator createEnumerator(StringRef Name, int64_t Val); 144 DIBasicType createUnspecifiedType(StringRef Name); 155 DIBasicType createBasicType(StringRef Name, uint64_t SizeInBits, 171 uint64_t AlignInBits = 0, StringRef Name = StringRef()); [all …]
|
| /minix3/external/bsd/llvm/dist/clang/include/clang/Basic/ |
| H A D | SanitizerBlacklist.h | 31 SanitizerBlacklist(StringRef BlacklistPath, SourceManager &SM); 32 bool isBlacklistedGlobal(StringRef GlobalName, 33 StringRef Category = StringRef()) const; 34 bool isBlacklistedType(StringRef MangledTypeName, 35 StringRef Category = StringRef()) const; 36 bool isBlacklistedFunction(StringRef FunctionName) const; 37 bool isBlacklistedFile(StringRef FileName, 38 StringRef Category = StringRef()) const; 40 StringRef Category = StringRef()) const;
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Support/ |
| H A D | StringExtras.cpp | 22 StringRef::size_type llvm::StrInStrNoCase(StringRef s1, StringRef s2) { in StrInStrNoCase() 25 return StringRef::npos; in StrInStrNoCase() 29 return StringRef::npos; in StrInStrNoCase() 38 std::pair<StringRef, StringRef> llvm::getToken(StringRef Source, in getToken() 39 StringRef Delimiters) { in getToken() 41 StringRef::size_type Start = Source.find_first_not_of(Delimiters); in getToken() 44 StringRef::size_type End = Source.find_first_of(Delimiters, Start); in getToken() 51 void llvm::SplitString(StringRef Source, in SplitString() 52 SmallVectorImpl<StringRef> &OutFragments, in SplitString() 53 StringRef Delimiters) { in SplitString() [all …]
|
| H A D | StringRef.cpp | 20 const size_t StringRef::npos; 52 int StringRef::compare_lower(StringRef RHS) const { in compare_lower() 61 bool StringRef::startswith_lower(StringRef Prefix) const { in startswith_lower() 67 bool StringRef::endswith_lower(StringRef Suffix) const { in endswith_lower() 73 int StringRef::compare_numeric(StringRef RHS) const { in compare_numeric() 104 unsigned StringRef::edit_distance(llvm::StringRef Other, in edit_distance() 117 std::string StringRef::lower() const { in lower() 125 std::string StringRef::upper() const { in upper() 142 size_t StringRef::find(StringRef Str, size_t From) const { in find() 182 size_t StringRef::rfind(StringRef Str) const { in rfind() [all …]
|
| H A D | YAMLTraits.cpp | 45 Input::Input(StringRef InputContent, in Input() 98 bool Input::mapTag(StringRef Tag, bool Default) { in mapTag() 289 void Input::scalarString(StringRef &S, bool) { in scalarString() 310 StringRef KeyStr = SN->getValue(StringStorage); in createHNodes() 316 KeyStr = StringRef(Buf, Len); in createHNodes() 338 StringRef KeyStr = KeyScalar->getValue(StringStorage); in createHNodes() 344 KeyStr = StringRef(Buf, Len); in createHNodes() 360 bool Input::MapHNode::isValidKey(StringRef Key) { in isValidKey() 403 bool Output::mapTag(StringRef Tag, bool Use) { in mapTag() 538 void Output::scalarString(StringRef &S, bool MustQuote) { in scalarString() [all …]
|
| /minix3/external/bsd/llvm/dist/clang/lib/Tooling/ |
| H A D | FileMatchTrie.cpp | 27 bool equivalent(StringRef FileA, StringRef FileB) const override { in equivalent() 52 void insert(StringRef NewPath, unsigned ConsumedLength = 0) { in insert() 67 StringRef Element(llvm::sys::path::filename( in insert() 68 StringRef(Path).drop_back(ConsumedLength))); in insert() 71 StringRef Element(llvm::sys::path::filename( in insert() 72 StringRef(NewPath).drop_back(ConsumedLength))); in insert() 97 StringRef findEquivalent(const PathComparator& Comparator, in findEquivalent() 98 StringRef FileName, in findEquivalent() 102 if (Comparator.equivalent(StringRef(Path), FileName)) in findEquivalent() 103 return StringRef(Path); in findEquivalent() [all …]
|
| /minix3/external/bsd/llvm/dist/clang/unittests/AST/ |
| H A D | CommentLexer.cpp | 48 StringRef getCommandName(const Token &Tok) { in getCommandName() 52 StringRef getVerbatimBlockName(const Token &Tok) { in getVerbatimBlockName() 56 StringRef getVerbatimLineName(const Token &Tok) { in getVerbatimLineName() 138 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F() 158 ASSERT_EQ(StringRef(" Meow"), Toks[0].getText()); in TEST_F() 181 ASSERT_EQ(StringRef(" Aaa"), Toks[0].getText()); in TEST_F() 183 ASSERT_EQ(StringRef("\\"), Toks[1].getText()); in TEST_F() 187 ASSERT_EQ(StringRef(" Bbb"), Toks[3].getText()); in TEST_F() 189 ASSERT_EQ(StringRef("\\"), Toks[4].getText()); in TEST_F() 191 ASSERT_EQ(StringRef(" "), Toks[5].getText()); in TEST_F() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/tools/llvm-readobj/ |
| H A D | StreamWriter.h | 28 StringRef Name; 80 void printEnum(StringRef Label, T Value, in printEnum() 82 StringRef Name; in printEnum() 100 void printFlags(StringRef Label, T Value, ArrayRef<EnumEntry<TFlag> > Flags, 127 void printFlags(StringRef Label, T Value) { in printFlags() 140 void printNumber(StringRef Label, uint64_t Value) { in printNumber() 144 void printNumber(StringRef Label, uint32_t Value) { in printNumber() 148 void printNumber(StringRef Label, uint16_t Value) { in printNumber() 152 void printNumber(StringRef Label, uint8_t Value) { in printNumber() 156 void printNumber(StringRef Label, int64_t Value) { in printNumber() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/tools/llvm-vtabledump/ |
| H A D | llvm-vtabledump.cpp | 58 static void reportError(StringRef Input, StringRef Message) { in reportError() 67 static void reportError(StringRef Input, std::error_code EC) { in reportError() 89 StringRef *I, StringRef *E) { in collectRelocatedSymbols() 99 StringRef RelocSymName; in collectRelocatedSymbols() 116 uint64_t SymAddress, uint64_t SymSize, StringRef SymName, in collectRelocationOffsets() 117 std::map<std::pair<StringRef, uint64_t>, StringRef> &Collection) { in collectRelocationOffsets() argument 125 StringRef RelocSymName; in collectRelocationOffsets() 140 StringRef Symbols[2]; in dumpVTables() 144 StringRef Symbols[1]; in dumpVTables() 148 StringRef Symbols[2]; in dumpVTables() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/utils/FileCheck/ |
| H A D | FileCheck.cpp | 93 StringRef FixedStr; 105 std::vector<std::pair<StringRef, unsigned> > VariableUses; 110 std::map<StringRef, unsigned> VariableDefs; 125 bool ParsePattern(StringRef PatternStr, 126 StringRef Prefix, 136 size_t Match(StringRef Buffer, size_t &MatchLen, 137 StringMap<StringRef> &VariableTable) const; 141 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, 142 const StringMap<StringRef> &VariableTable) const; 150 bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM); [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/ExecutionEngine/RuntimeDyld/ |
| H A D | RuntimeDyldCheckerImpl.h | 28 bool check(StringRef CheckExpr) const; 29 bool checkAllRulesInBuffer(StringRef RulePrefix, MemoryBuffer *MemBuf) const; 44 bool isSymbolValid(StringRef Symbol) const; 45 uint64_t getSymbolLinkerAddr(StringRef Symbol) const; 46 uint64_t getSymbolRemoteAddr(StringRef Symbol) const; 50 StringRef FileName, 51 StringRef SectionName) const; 53 std::pair<uint64_t, std::string> getSectionAddr(StringRef FileName, 54 StringRef SectionName, 57 std::pair<uint64_t, std::string> getStubAddrFor(StringRef FileName, [all …]
|
| H A D | RuntimeDyldChecker.cpp | 34 bool evaluate(StringRef Expr) const { in evaluate() 42 StringRef LHSExpr = Expr.substr(0, EQIdx).rtrim(); in evaluate() 43 StringRef RemainingExpr; in evaluate() 53 StringRef RHSExpr = Expr.substr(EQIdx + 1).ltrim(); in evaluate() 110 StringRef getTokenForError(StringRef Expr) const { in getTokenForError() 114 StringRef Token, Remaining; in getTokenForError() 128 EvalResult unexpectedToken(StringRef TokenStart, StringRef SubExpr, in unexpectedToken() 129 StringRef ErrText) const { in unexpectedToken() 144 bool handleError(StringRef Expr, const EvalResult &R) const { in handleError() 151 std::pair<BinOpToken, StringRef> parseBinOpToken(StringRef Expr) const { in parseBinOpToken() [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/ARM/ |
| H A D | ARMTargetMachine.h | 39 ARMBaseTargetMachine(const Target &T, StringRef TT, 40 StringRef CPU, StringRef FS, 66 ARMTargetMachine(const Target &T, StringRef TT, StringRef CPU, StringRef FS, 76 ARMLETargetMachine(const Target &T, StringRef TT, 77 StringRef CPU, StringRef FS, const TargetOptions &Options, 87 ARMBETargetMachine(const Target &T, StringRef TT, StringRef CPU, StringRef FS, 99 ThumbTargetMachine(const Target &T, StringRef TT, StringRef CPU, StringRef FS, 109 ThumbLETargetMachine(const Target &T, StringRef TT, StringRef CPU, 110 StringRef FS, const TargetOptions &Options, 120 ThumbBETargetMachine(const Target &T, StringRef TT, StringRef CPU, [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/include/llvm/MC/ |
| H A D | MCSectionMachO.h | 38 MCSectionMachO(StringRef Segment, StringRef Section, 43 StringRef getSegmentName() const { in getSegmentName() 46 return StringRef(SegmentName, 16); in getSegmentName() 47 return StringRef(SegmentName); in getSegmentName() 49 StringRef getSectionName() const { in getSectionName() 52 return StringRef(SectionName, 16); in getSectionName() 53 return StringRef(SectionName); in getSectionName() 57 return StringRef(getSegmentName().str() + getSectionName().str() + "_begin"); in getLabelBeginName() 61 return StringRef(getSegmentName().str() + getSectionName().str() + "_end"); in getLabelEndName() 81 static std::string ParseSectionSpecifier(StringRef Spec, // In. [all …]
|
| /minix3/external/bsd/llvm/dist/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMMCTargetDesc.h | 32 class StringRef; variable 40 std::string ParseARMTriple(StringRef TT, StringRef CPU); 45 MCSubtargetInfo *createARMMCSubtargetInfo(StringRef TT, StringRef CPU, 46 StringRef FS); 67 StringRef TT, StringRef CPU, 71 StringRef TT, StringRef CPU); 74 StringRef TT, StringRef CPU); 77 StringRef TT, StringRef CPU); 80 StringRef TT, StringRef CPU);
|
| /minix3/external/bsd/llvm/dist/clang/include/clang/AST/ |
| H A D | CommentLexer.h | 100 StringRef getText() const LLVM_READONLY { in getText() 102 return StringRef(TextPtr, IntVal); in getText() 105 void setText(StringRef Text) { in setText() 111 StringRef getUnknownCommandName() const LLVM_READONLY { in getUnknownCommandName() 113 return StringRef(TextPtr, IntVal); in getUnknownCommandName() 116 void setUnknownCommandName(StringRef Name) { in setUnknownCommandName() 142 StringRef getVerbatimBlockText() const LLVM_READONLY { in getVerbatimBlockText() 144 return StringRef(TextPtr, IntVal); in getVerbatimBlockText() 147 void setVerbatimBlockText(StringRef Text) { in setVerbatimBlockText() 163 StringRef getVerbatimLineText() const LLVM_READONLY { in getVerbatimLineText() [all …]
|