Home
last modified time | relevance | path

Searched refs:StringRef (Results 1 – 25 of 3608) sorted by relevance

12345678910>>...145

/external/llvm/unittests/ADT/
DStringRefTest.cpp22 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/llvm/include/llvm/Support/
DTargetParser.h23 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 …]
DPath.h50 : 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 …]
DScopedPrinter.h25 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/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DARMTargetParser.h66 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
83 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
107 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
171 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
200 StringRef getName() const { return StringRef(NameCStr, NameLength); } in getName()
203 StringRef getCPUAttr() const { return StringRef(CPUAttrCStr, CPUAttrLength); } in getCPUAttr()
206 StringRef getSubArch() const { return StringRef(SubArchCStr, SubArchLength); } in getSubArch()
221 StringRef getFPUName(unsigned FPUKind);
227 bool getFPUFeatures(unsigned FPUKind, std::vector<StringRef> &Features);
228 bool getHWDivFeatures(unsigned HWDivKind, std::vector<StringRef> &Features);
[all …]
DScopedPrinter.h24 StringRef Name;
32 StringRef AltName;
34 EnumEntry(StringRef N, StringRef A, T V) : Name(N), AltName(A), Value(V) {} in EnumEntry()
35 EnumEntry(StringRef N, T V) : Name(N), AltName(N), Value(V) {} in EnumEntry()
84 void setPrefix(StringRef P) { Prefix = P; } in setPrefix()
95 void printEnum(StringRef Label, T Value, in printEnum()
97 StringRef Name; in printEnum()
115 void printFlags(StringRef Label, T Value, ArrayRef<EnumEntry<TFlag>> Flags,
149 template <typename T> void printFlags(StringRef Label, T Value) { in printFlags()
162 void printNumber(StringRef Label, uint64_t Value) { in printNumber()
[all …]
DPath.h54 const StringRef> {
55 StringRef Path; ///< The entire path.
56 StringRef Component; ///< The current component. Not necessarily in Path.
61 friend const_iterator begin(StringRef path, Style style);
62 friend const_iterator end(StringRef path);
80 const StringRef> {
81 StringRef Path; ///< The entire path.
82 StringRef Component; ///< The current component. Not necessarily in Path.
86 friend reverse_iterator rbegin(StringRef path, Style style);
87 friend reverse_iterator rend(StringRef path);
[all …]
DStringSaver.h28 StringRef save(const char *S) { return save(StringRef(S)); } in save()
29 StringRef save(StringRef S);
30 StringRef save(const Twine &S) { return save(StringRef(S.str())); } in save()
31 StringRef save(const std::string &S) { return save(StringRef(S)); } in save()
44 llvm::DenseSet<llvm::StringRef> Unique;
50 StringRef save(const char *S) { return save(StringRef(S)); } in save()
51 StringRef save(StringRef S);
52 StringRef save(const Twine &S) { return save(StringRef(S.str())); } in save()
53 StringRef save(const std::string &S) { return save(StringRef(S)); } in save()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DStringRef.h35 class StringRef; variable
38 bool getAsUnsignedInteger(StringRef Str, unsigned Radix,
41 bool getAsSignedInteger(StringRef Str, unsigned Radix, long long &Result);
43 bool consumeUnsignedInteger(StringRef &Str, unsigned Radix,
45 bool consumeSignedInteger(StringRef &Str, unsigned Radix, long long &Result);
54 class StringRef {
96 /*implicit*/ StringRef() = default;
100 StringRef(std::nullptr_t) = delete;
103 /*implicit*/ constexpr StringRef(const char *Str) in StringRef() function
107 /*implicit*/ constexpr StringRef(const char *data, size_t length) in StringRef() function
[all …]
/external/llvm/include/llvm/ADT/
DStringRef.h27 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/Support/
DPath.h50 : 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/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DStringRef.h28 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/
DDWARFContext.h194 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-10.0/llvm/include/llvm/Remarks/
DBitstreamRemarkContainer.h70 constexpr StringRef MetaBlockName = StringRef("Meta", 4);
71 constexpr StringRef RemarkBlockName = StringRef("Remark", 6);
92 constexpr StringRef MetaContainerInfoName = StringRef("Container info", 14);
93 constexpr StringRef MetaRemarkVersionName = StringRef("Remark version", 14);
94 constexpr StringRef MetaStrTabName = StringRef("String table", 12);
95 constexpr StringRef MetaExternalFileName = StringRef("External File", 13);
96 constexpr StringRef RemarkHeaderName = StringRef("Remark header", 13);
97 constexpr StringRef RemarkDebugLocName = StringRef("Remark debug location", 21);
98 constexpr StringRef RemarkHotnessName = StringRef("Remark hotness", 14);
99 constexpr StringRef RemarkArgWithDebugLocName =
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/MC/MCParser/
DDarwinAsmParser.cpp45 template<bool (DarwinAsmParser::*HandlerMethod)(StringRef, SMLoc)>
46 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler()
52 bool parseSectionSwitch(StringRef Segment, StringRef Section,
201 bool parseDirectiveAltEntry(StringRef, SMLoc);
202 bool parseDirectiveDesc(StringRef, SMLoc);
203 bool parseDirectiveIndirectSymbol(StringRef, SMLoc);
204 bool parseDirectiveDumpOrLoad(StringRef, SMLoc);
205 bool parseDirectiveLsym(StringRef, SMLoc);
206 bool parseDirectiveLinkerOption(StringRef, SMLoc);
207 bool parseDirectiveSection(StringRef, SMLoc);
[all …]
DAsmLexer.cpp34 AllowAtInIdentifier = !StringRef(MAI.getCommentString()).startswith("@"); in AsmLexer()
39 void AsmLexer::setBuffer(StringRef Buf, const char *ptr) { in setBuffer()
55 return AsmToken(AsmToken::Error, StringRef(Loc, CurPtr - Loc)); in ReturnError()
87 StringRef(TokStart, CurPtr - TokStart)); in LexFloatLiteral()
134 return AsmToken(AsmToken::Real, StringRef(TokStart, CurPtr - TokStart)); in LexHexFloatLiteral()
160 return AsmToken(AsmToken::Dot, StringRef(TokStart, 1)); in LexIdentifier()
162 return AsmToken(AsmToken::Identifier, StringRef(TokStart, CurPtr - TokStart)); in LexIdentifier()
177 return AsmToken(AsmToken::Slash, StringRef(TokStart, 1)); in LexSlash()
193 StringRef(CommentTextStart, CurPtr - 1 - CommentTextStart)); in LexSlash()
197 StringRef(TokStart, CurPtr - TokStart)); in LexSlash()
[all …]
DCOFFAsmParser.cpp35 template<bool (COFFAsmParser::*HandlerMethod)(StringRef, SMLoc)>
36 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler()
42 bool ParseSectionSwitch(StringRef Section,
46 bool ParseSectionSwitch(StringRef Section, unsigned Characteristics,
47 SectionKind Kind, StringRef COMDATSymName,
50 bool ParseSectionName(StringRef &SectionName);
51 bool ParseSectionFlags(StringRef SectionName, StringRef FlagsString,
93 bool ParseSectionDirectiveText(StringRef, SMLoc) { in ParseSectionDirectiveText() argument
101 bool ParseSectionDirectiveData(StringRef, SMLoc) { in ParseSectionDirectiveData() argument
108 bool ParseSectionDirectiveBSS(StringRef, SMLoc) { in ParseSectionDirectiveBSS() argument
[all …]
/external/llvm/lib/MC/MCParser/
DDarwinAsmParser.cpp33 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 …]
DAsmLexer.cpp28 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 …]
DCOFFAsmParser.cpp28 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/
DTargetParser.cpp40 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/clang/unittests/AST/
DCommentLexer.cpp48 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-10.0/llvm/lib/BinaryFormat/
DDwarf.cpp21 StringRef llvm::dwarf::TagString(unsigned Tag) { in TagString()
24 return StringRef(); in TagString()
32 unsigned llvm::dwarf::getTag(StringRef TagString) { in getTag()
62 StringRef llvm::dwarf::ChildrenString(unsigned Children) { in ChildrenString()
69 return StringRef(); in ChildrenString()
72 StringRef llvm::dwarf::AttributeString(unsigned Attribute) { in AttributeString()
75 return StringRef(); in AttributeString()
105 StringRef llvm::dwarf::FormEncodingString(unsigned Encoding) { in FormEncodingString()
108 return StringRef(); in FormEncodingString()
138 StringRef llvm::dwarf::OperationEncodingString(unsigned Encoding) { in OperationEncodingString()
[all …]
/external/llvm/include/llvm/IR/
DDIBuilder.h31 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/llvm/utils/FileCheck/
DFileCheck.cpp107 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 …]

12345678910>>...145