/external/swiftshader/third_party/LLVM/unittests/ADT/ |
D | StringRefTest.cpp | 18 std::ostream &operator<<(std::ostream &OS, const StringRef &S) { in operator <<() 24 const std::pair<StringRef, StringRef> &P) { in operator <<() argument 33 EXPECT_EQ("", StringRef()); in TEST() 34 EXPECT_EQ("hello", StringRef("hello")); in TEST() 35 EXPECT_EQ("hello", StringRef("hello world", 5)); in TEST() 36 EXPECT_EQ("hello", StringRef(std::string("hello"))); in TEST() 40 StringRef S("hello"); in TEST() 48 EXPECT_EQ(p, StringRef(p, 0).data()); in TEST() 49 EXPECT_TRUE(StringRef().empty()); in TEST() 50 EXPECT_EQ((size_t) 5, StringRef("hello").size()); in TEST() [all …]
|
/external/llvm/unittests/ADT/ |
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 …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | TargetParser.h | 23 class StringRef; variable 105 StringRef getCanonicalArchName(StringRef Arch); 108 StringRef getFPUName(unsigned FPUKind); 114 bool getFPUFeatures(unsigned FPUKind, std::vector<StringRef> &Features); 115 bool getHWDivFeatures(unsigned HWDivKind, std::vector<StringRef> &Features); 117 std::vector<StringRef> &Features); 119 StringRef getArchName(unsigned ArchKind); 121 StringRef getCPUAttr(unsigned ArchKind); 122 StringRef getSubArch(unsigned ArchKind); 123 StringRef getArchExtName(unsigned ArchExtKind); [all …]
|
D | Path.h | 50 : public std::iterator<std::input_iterator_tag, const StringRef> { 51 StringRef Path; ///< The entire path. 52 StringRef Component; ///< The current component. Not necessarily in Path. 56 friend const_iterator begin(StringRef path); 57 friend const_iterator end(StringRef path); 76 : public std::iterator<std::input_iterator_tag, const StringRef> { 77 StringRef Path; ///< The entire path. 78 StringRef Component; ///< The current component. Not necessarily in Path. 81 friend reverse_iterator rbegin(StringRef path); 82 friend reverse_iterator rend(StringRef path); [all …]
|
/external/llvm/include/llvm/Support/ |
D | TargetParser.h | 23 class StringRef; variable 105 StringRef getCanonicalArchName(StringRef Arch); 108 StringRef getFPUName(unsigned FPUKind); 119 StringRef getArchName(unsigned ArchKind); 121 StringRef getCPUAttr(unsigned ArchKind); 122 StringRef getSubArch(unsigned ArchKind); 123 StringRef getArchExtName(unsigned ArchExtKind); 124 const char *getArchExtFeature(StringRef ArchExt); 125 StringRef getHWDivName(unsigned HWDivKind); 128 unsigned getDefaultFPU(StringRef CPU, unsigned ArchKind); [all …]
|
D | Path.h | 50 : public std::iterator<std::input_iterator_tag, const StringRef> { 51 StringRef Path; ///< The entire path. 52 StringRef Component; ///< The current component. Not necessarily in Path. 56 friend const_iterator begin(StringRef path); 57 friend const_iterator end(StringRef path); 76 : public std::iterator<std::input_iterator_tag, const StringRef> { 77 StringRef Path; ///< The entire path. 78 StringRef Component; ///< The current component. Not necessarily in Path. 81 friend reverse_iterator rbegin(StringRef path); 82 friend reverse_iterator rend(StringRef path); [all …]
|
D | ScopedPrinter.h | 25 StringRef Name; 33 StringRef AltName; 35 EnumEntry(StringRef N, StringRef A, T V) : Name(N), AltName(A), Value(V) {} in EnumEntry() 36 EnumEntry(StringRef N, T V) : Name(N), AltName(N), Value(V) {} in EnumEntry() 83 void setPrefix(StringRef P) { Prefix = P; } in setPrefix() 94 void printEnum(StringRef Label, T Value, in printEnum() 96 StringRef Name; in printEnum() 114 void printFlags(StringRef Label, T Value, ArrayRef<EnumEntry<TFlag>> Flags, 148 template <typename T> void printFlags(StringRef Label, T Value) { in printFlags() 161 void printNumber(StringRef Label, uint64_t Value) { in printNumber() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | StringRef.h | 27 class StringRef; variable 30 bool getAsUnsignedInteger(StringRef Str, unsigned Radix, 33 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result); 42 class StringRef { 69 /*implicit*/ StringRef() : Data(nullptr), Length(0) {} in StringRef() function 72 /*implicit*/ StringRef(const char *Str) in StringRef() function 80 /*implicit*/ StringRef(const char *data, size_t length) in StringRef() function 88 /*implicit*/ StringRef(const std::string &Str) in StringRef() function 139 template <typename Allocator> StringRef copy(Allocator &A) const { in copy() 142 return StringRef(); in copy() [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | StringRef.h | 28 class StringRef; variable 31 bool getAsUnsignedInteger(StringRef Str, unsigned Radix, 34 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result); 36 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix, 38 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result); 47 class StringRef { 74 /*implicit*/ StringRef() = default; 78 StringRef(std::nullptr_t) = delete; 82 /*implicit*/ StringRef(const char *Str) in StringRef() function 87 /*implicit*/ constexpr StringRef(const char *data, size_t length) in StringRef() function [all …]
|
/external/llvm/include/llvm/DebugInfo/DWARF/ |
D | DWARFContext.h | 194 virtual StringRef getAbbrevSection() = 0; 196 virtual StringRef getARangeSection() = 0; 197 virtual StringRef getDebugFrameSection() = 0; 198 virtual StringRef getEHFrameSection() = 0; 200 virtual StringRef getStringSection() = 0; 201 virtual StringRef getRangeSection() = 0; 202 virtual StringRef getMacinfoSection() = 0; 203 virtual StringRef getPubNamesSection() = 0; 204 virtual StringRef getPubTypesSection() = 0; 205 virtual StringRef getGnuPubNamesSection() = 0; [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | TargetParser.cpp | 40 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName() 67 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName() 70 StringRef getCPUAttr() const { return StringRef(CPUAttrCStr, CPUAttrLength); } in getCPUAttr() 73 StringRef getSubArch() const { return StringRef(SubArchCStr, SubArchLength); } in getSubArch() 99 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName() 118 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName() 136 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName() 156 StringRef llvm::ARM::getFPUName(unsigned FPUKind) { in getFPUName() 158 return StringRef(); in getFPUName() 180 unsigned llvm::ARM::getDefaultFPU(StringRef CPU, unsigned ArchKind) { in getDefaultFPU() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/ADT/ |
D | StringRef.h | 30 class StringRef { 62 /*implicit*/ StringRef() : Data(0), Length(0) {} in StringRef() function 65 /*implicit*/ StringRef(const char *Str) in StringRef() function 72 /*implicit*/ StringRef(const char *data, size_t length) in StringRef() function 79 /*implicit*/ StringRef(const std::string &Str) in StringRef() function 118 bool equals(StringRef RHS) const { in equals() 124 bool equals_lower(StringRef RHS) const { in equals_lower() 130 int compare(StringRef RHS) const { in compare() 142 int compare_lower(StringRef RHS) const; 146 int compare_numeric(StringRef RHS) const; [all …]
|
/external/swiftshader/third_party/LLVM/lib/MC/MCParser/ |
D | DarwinAsmParser.cpp | 28 template<bool (DarwinAsmParser::*Handler)(StringRef, SMLoc)> 29 void AddDirectiveHandler(StringRef Directive) { in AddDirectiveHandler() 107 bool ParseDirectiveDesc(StringRef, SMLoc); 108 bool ParseDirectiveDumpOrLoad(StringRef, SMLoc); 109 bool ParseDirectiveLsym(StringRef, SMLoc); 110 bool ParseDirectiveSection(StringRef, SMLoc); 111 bool ParseDirectiveSecureLogReset(StringRef, SMLoc); 112 bool ParseDirectiveSecureLogUnique(StringRef, SMLoc); 113 bool ParseDirectiveSubsectionsViaSymbols(StringRef, SMLoc); 114 bool ParseDirectiveTBSS(StringRef, SMLoc); [all …]
|
D | AsmLexer.cpp | 49 return AsmToken(AsmToken::Error, StringRef(Loc, 0)); in ReturnError() 91 StringRef(TokStart, CurPtr - TokStart)); in LexFloatLiteral() 113 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier() 115 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier() 124 default: return AsmToken(AsmToken::Slash, StringRef(CurPtr-1, 1)); in LexSlash() 154 return AsmToken(AsmToken::Eof, StringRef(CurPtr, 0)); in LexLineComment() 155 return AsmToken(AsmToken::EndOfStatement, StringRef(CurPtr, 0)); in LexLineComment() 184 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit() 208 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit() 219 StringRef Result(TokStart, CurPtr - TokStart); in LexDigit() [all …]
|
D | COFFAsmParser.cpp | 27 template<bool (COFFAsmParser::*Handler)(StringRef, SMLoc)> 28 void AddDirectiveHandler(StringRef Directive) { in AddDirectiveHandler() 33 bool ParseSectionSwitch(StringRef Section, 79 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument 86 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument 93 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument 101 bool ParseDirectiveDef(StringRef, SMLoc); 102 bool ParseDirectiveScl(StringRef, SMLoc); 103 bool ParseDirectiveType(StringRef, SMLoc); 104 bool ParseDirectiveEndef(StringRef, SMLoc); [all …]
|
/external/llvm/lib/MC/MCParser/ |
D | DarwinAsmParser.cpp | 33 template<bool (DarwinAsmParser::*HandlerMethod)(StringRef, SMLoc)> 34 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler() 186 bool parseDirectiveAltEntry(StringRef, SMLoc); 187 bool parseDirectiveDesc(StringRef, SMLoc); 188 bool parseDirectiveIndirectSymbol(StringRef, SMLoc); 189 bool parseDirectiveDumpOrLoad(StringRef, SMLoc); 190 bool parseDirectiveLsym(StringRef, SMLoc); 191 bool parseDirectiveLinkerOption(StringRef, SMLoc); 192 bool parseDirectiveSection(StringRef, SMLoc); 193 bool parseDirectivePushSection(StringRef, SMLoc); [all …]
|
D | AsmLexer.cpp | 28 AllowAtInIdentifier = !StringRef(MAI.getCommentString()).startswith("@"); in AsmLexer() 34 void AsmLexer::setBuffer(StringRef Buf, const char *ptr) { in setBuffer() 50 return AsmToken(AsmToken::Error, StringRef(Loc, CurPtr - Loc)); in ReturnError() 81 StringRef(TokStart, CurPtr - TokStart)); in LexFloatLiteral() 128 return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart)); in LexHexFloatLiteral() 152 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier() 154 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier() 169 return AsmToken(AsmToken::Slash, StringRef(TokStart, 1)); in LexSlash() 182 StringRef(TokStart, CurPtr - TokStart)); in LexSlash() 203 StringRef(TokStart, CurPtr - TokStart)); in LexLineComment() [all …]
|
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); 93 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument 100 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument 106 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument [all …]
|
/external/llvm/lib/Support/ |
D | TargetParser.cpp | 40 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName() 67 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName() 70 StringRef getCPUAttr() const { return StringRef(CPUAttrCStr, CPUAttrLength); } in getCPUAttr() 73 StringRef getSubArch() const { return StringRef(SubArchCStr, SubArchLength); } in getSubArch() 95 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName() 114 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName() 132 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName() 149 StringRef llvm::ARM::getFPUName(unsigned FPUKind) { in getFPUName() 151 return StringRef(); in getFPUName() 173 unsigned llvm::ARM::getDefaultFPU(StringRef CPU, unsigned ArchKind) { in getDefaultFPU() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | PathV2.h | 50 StringRef Path; //< The entire path. 51 StringRef Component; //< The current component. Not necessarily in Path. 55 friend const_iterator begin(StringRef path); 56 friend const_iterator end(StringRef path); 59 typedef const StringRef value_type; 83 const_iterator begin(StringRef path); 88 const_iterator end(StringRef path); 93 inline reverse_iterator rbegin(StringRef path) { in rbegin() 100 inline reverse_iterator rend(StringRef path) { in rend() 178 const StringRef root_name(StringRef path); [all …]
|
/external/clang/unittests/AST/ |
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 …]
|
/external/swiftshader/third_party/LLVM/lib/Support/ |
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 …]
|
/external/llvm/include/llvm/IR/ |
D | DIBuilder.h | 31 class StringRef; variable 99 createCompileUnit(unsigned Lang, StringRef File, StringRef Dir, 100 StringRef Producer, bool isOptimized, StringRef Flags, 101 unsigned RV, StringRef SplitName = StringRef(), 108 DIFile *createFile(StringRef Filename, StringRef Directory); 111 DIEnumerator *createEnumerator(StringRef Name, int64_t Val); 114 DIBasicType *createUnspecifiedType(StringRef Name); 125 DIBasicType *createBasicType(StringRef Name, uint64_t SizeInBits, 141 StringRef Name = ""); 165 DIDerivedType *createTypedef(DIType *Ty, StringRef Name, DIFile *File, [all …]
|
/external/swiftshader/third_party/LLVM/lib/DebugInfo/ |
D | DWARFContext.h | 73 virtual StringRef getInfoSection() = 0; 74 virtual StringRef getAbbrevSection() = 0; 75 virtual StringRef getARangeSection() = 0; 76 virtual StringRef getLineSection() = 0; 77 virtual StringRef getStringSection() = 0; 89 StringRef InfoSection; 90 StringRef AbbrevSection; 91 StringRef ARangeSection; 92 StringRef LineSection; 93 StringRef StringSection; [all …]
|
/external/llvm/utils/FileCheck/ |
D | FileCheck.cpp | 107 StringRef FixedStr; 119 std::vector<std::pair<StringRef, unsigned> > VariableUses; 124 std::map<StringRef, unsigned> VariableDefs; 139 bool ParsePattern(StringRef PatternStr, 140 StringRef Prefix, 150 size_t Match(StringRef Buffer, size_t &MatchLen, 151 StringMap<StringRef> &VariableTable) const; 155 void PrintFailureInfo(const SourceMgr &SM, StringRef Buffer, 156 const StringMap<StringRef> &VariableTable) const; 164 bool AddRegExToRegEx(StringRef RS, unsigned &CurParen, SourceMgr &SM); [all …]
|