/external/llvm-project/llvm/unittests/ADT/ |
D | TwineTest.cpp | 19 std::string repr(const Twine &Value) { in repr() 27 EXPECT_EQ("", Twine().str()); in TEST() 28 EXPECT_EQ("hi", Twine("hi").str()); in TEST() 29 EXPECT_EQ("hi", Twine(std::string("hi")).str()); in TEST() 30 EXPECT_EQ("hi", Twine(StringRef("hi")).str()); in TEST() 31 EXPECT_EQ("hi", Twine(StringRef(std::string("hi"))).str()); in TEST() 32 EXPECT_EQ("hi", Twine(StringRef("hithere", 2)).str()); in TEST() 33 EXPECT_EQ("hi", Twine(SmallString<4>("hi")).str()); in TEST() 34 EXPECT_EQ("hi", Twine(formatv("{0}", "hi")).str()); in TEST() 38 EXPECT_EQ("123", Twine(123U).str()); in TEST() [all …]
|
/external/llvm/unittests/ADT/ |
D | TwineTest.cpp | 18 std::string repr(const Twine &Value) { in repr() 26 EXPECT_EQ("", Twine().str()); in TEST() 27 EXPECT_EQ("hi", Twine("hi").str()); in TEST() 28 EXPECT_EQ("hi", Twine(std::string("hi")).str()); in TEST() 29 EXPECT_EQ("hi", Twine(StringRef("hi")).str()); in TEST() 30 EXPECT_EQ("hi", Twine(StringRef(std::string("hi"))).str()); in TEST() 31 EXPECT_EQ("hi", Twine(StringRef("hithere", 2)).str()); in TEST() 32 EXPECT_EQ("hi", Twine(SmallString<4>("hi")).str()); in TEST() 36 EXPECT_EQ("123", Twine(123U).str()); in TEST() 37 EXPECT_EQ("123", Twine(123).str()); in TEST() [all …]
|
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | llvm-twine-local.cpp | 4 class Twine { class 6 Twine(const char *); 7 Twine(int); 8 Twine(); 9 Twine &operator+(const Twine &); 15 void foo(const Twine &x); 16 void bar(Twine x); 18 static Twine Moo = Twine("bark") + "bah"; 24 const Twine t = Twine("a") + "b" + Twine(42); in main() 28 foo(Twine("a") + "b"); in main() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | Twine.cpp | 17 std::string Twine::str() const { in str() 32 void Twine::toVector(SmallVectorImpl<char> &Out) const { in toVector() 37 StringRef Twine::toNullTerminatedStringRef(SmallVectorImpl<char> &Out) const { in toNullTerminatedStringRef() 57 void Twine::printOneChild(raw_ostream &OS, Child Ptr, in printOneChild() 60 case Twine::NullKind: break; in printOneChild() 61 case Twine::EmptyKind: break; in printOneChild() 62 case Twine::TwineKind: in printOneChild() 65 case Twine::CStringKind: in printOneChild() 68 case Twine::StdStringKind: in printOneChild() 71 case Twine::StringRefKind: in printOneChild() [all …]
|
/external/llvm-project/llvm/lib/Support/ |
D | Twine.cpp | 17 std::string Twine::str() const { in str() 32 void Twine::toVector(SmallVectorImpl<char> &Out) const { in toVector() 37 StringRef Twine::toNullTerminatedStringRef(SmallVectorImpl<char> &Out) const { in toNullTerminatedStringRef() 57 void Twine::printOneChild(raw_ostream &OS, Child Ptr, in printOneChild() 60 case Twine::NullKind: break; in printOneChild() 61 case Twine::EmptyKind: break; in printOneChild() 62 case Twine::TwineKind: in printOneChild() 65 case Twine::CStringKind: in printOneChild() 68 case Twine::StdStringKind: in printOneChild() 71 case Twine::StringRefKind: in printOneChild() [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | Twine.cpp | 17 std::string Twine::str() const { in str() 32 void Twine::toVector(SmallVectorImpl<char> &Out) const { in toVector() 37 StringRef Twine::toNullTerminatedStringRef(SmallVectorImpl<char> &Out) const { in toNullTerminatedStringRef() 57 void Twine::printOneChild(raw_ostream &OS, Child Ptr, in printOneChild() 60 case Twine::NullKind: break; in printOneChild() 61 case Twine::EmptyKind: break; in printOneChild() 62 case Twine::TwineKind: in printOneChild() 65 case Twine::CStringKind: in printOneChild() 68 case Twine::StdStringKind: in printOneChild() 71 case Twine::StringRefKind: in printOneChild() [all …]
|
/external/llvm/lib/Support/ |
D | Twine.cpp | 16 std::string Twine::str() const { in str() 26 void Twine::toVector(SmallVectorImpl<char> &Out) const { in toVector() 31 StringRef Twine::toNullTerminatedStringRef(SmallVectorImpl<char> &Out) const { in toNullTerminatedStringRef() 51 void Twine::printOneChild(raw_ostream &OS, Child Ptr, in printOneChild() 54 case Twine::NullKind: break; in printOneChild() 55 case Twine::EmptyKind: break; in printOneChild() 56 case Twine::TwineKind: in printOneChild() 59 case Twine::CStringKind: in printOneChild() 62 case Twine::StdStringKind: in printOneChild() 65 case Twine::StringRefKind: in printOneChild() [all …]
|
/external/llvm-project/llvm/include/llvm/ADT/ |
D | Twine.h | 80 class Twine { 138 const Twine *twine; 169 explicit Twine(NodeKind Kind) : LHSKind(Kind) { in Twine() function 174 explicit Twine(const Twine &LHS, const Twine &RHS) in Twine() function 182 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine() function 256 /*implicit*/ Twine() { in Twine() function 260 Twine(const Twine &) = default; 267 /*implicit*/ Twine(const char *Str) { in Twine() function 278 /*implicit*/ Twine(std::nullptr_t) = delete; 281 /*implicit*/ Twine(const std::string &Str) : LHSKind(StdStringKind) { in Twine() function [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | Twine.h | 80 class Twine { 138 const Twine *twine; 169 explicit Twine(NodeKind Kind) : LHSKind(Kind) { in Twine() function 174 explicit Twine(const Twine &LHS, const Twine &RHS) in Twine() function 182 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine() function 256 /*implicit*/ Twine() { in Twine() function 260 Twine(const Twine &) = default; 267 /*implicit*/ Twine(const char *Str) { in Twine() function 278 /*implicit*/ Twine(std::nullptr_t) = delete; 281 /*implicit*/ Twine(const std::string &Str) : LHSKind(StdStringKind) { in Twine() function [all …]
|
/external/llvm/include/llvm/ADT/ |
D | Twine.h | 79 class Twine { 134 const Twine *twine; 163 explicit Twine(NodeKind Kind) in Twine() function 169 explicit Twine(const Twine &LHS, const Twine &RHS) in Twine() function 177 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine() function 184 Twine &operator=(const Twine &Other) = delete; 255 /*implicit*/ Twine() : LHSKind(EmptyKind), RHSKind(EmptyKind) { in Twine() function 259 Twine(const Twine &) = default; 266 /*implicit*/ Twine(const char *Str) in Twine() function 278 /*implicit*/ Twine(const std::string &Str) in Twine() function [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/ |
D | Twine.h | 81 class Twine { 139 const Twine *twine; 167 explicit Twine(NodeKind Kind) in Twine() function 173 explicit Twine(const Twine &LHS, const Twine &RHS) in Twine() function 181 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine() function 255 /*implicit*/ Twine() : LHSKind(EmptyKind), RHSKind(EmptyKind) { in Twine() function 259 Twine(const Twine &) = default; 266 /*implicit*/ Twine(const char *Str) in Twine() function 278 /*implicit*/ Twine(const std::string &Str) in Twine() function 285 /*implicit*/ Twine(const StringRef &Str) in Twine() function [all …]
|
/external/llvm-project/llvm/include/llvm/TableGen/ |
D | Error.h | 22 void PrintNote(const Twine &Msg); 23 void PrintNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg); 25 LLVM_ATTRIBUTE_NORETURN void PrintFatalNote(const Twine &Msg); 27 const Twine &Msg); 29 const Twine &Msg); 31 const Twine &Msg); 33 void PrintWarning(const Twine &Msg); 34 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg); 35 void PrintWarning(const char *Loc, const Twine &Msg); 37 void PrintError(const Twine &Msg); [all …]
|
/external/llvm/include/llvm/Support/ |
D | Path.h | 143 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension); 172 void append(SmallVectorImpl<char> &path, const Twine &a, 173 const Twine &b = "", 174 const Twine &c = "", 175 const Twine &d = ""); 201 void native(const Twine &path, SmallVectorImpl<char> &result); 360 bool user_cache_directory(SmallVectorImpl<char> &Result, const Twine &Path1, 361 const Twine &Path2 = "", const Twine &Path3 = ""); 369 bool has_root_name(const Twine &path); 377 bool has_root_directory(const Twine &path); [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | Path.h | 143 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension); 172 void append(SmallVectorImpl<char> &path, const Twine &a, 173 const Twine &b = "", 174 const Twine &c = "", 175 const Twine &d = ""); 201 void native(const Twine &path, SmallVectorImpl<char> &result); 360 bool user_cache_directory(SmallVectorImpl<char> &Result, const Twine &Path1, 361 const Twine &Path2 = "", const Twine &Path3 = ""); 369 bool has_root_name(const Twine &path); 377 bool has_root_directory(const Twine &path); [all …]
|
/external/llvm-project/llvm/lib/TableGen/ |
D | Error.cpp | 28 const Twine &Msg) { in PrintMessage() 45 void PrintNote(const Twine &Msg) { in PrintNote() 49 void PrintNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg) { in PrintNote() 55 void PrintFatalNote(const Twine &Msg) { in PrintFatalNote() 62 void PrintFatalNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg) { in PrintFatalNote() 71 void PrintFatalNote(const Record *Rec, const Twine &Msg) { in PrintFatalNote() 80 void PrintFatalNote(const RecordVal *RecVal, const Twine &Msg) { in PrintFatalNote() 89 void PrintWarning(const Twine &Msg) { WithColor::warning() << Msg << "\n"; } in PrintWarning() 91 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg) { in PrintWarning() 95 void PrintWarning(const char *Loc, const Twine &Msg) { in PrintWarning() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/ |
D | MachOObjectFile.cpp | 60 static Error malformedError(const Twine &Msg) { in malformedError() 191 return malformedError("load command " + Twine(LoadCommandIndex) + in getLoadCommandInfo() 194 return malformedError("load command " + Twine(LoadCommandIndex) + in getLoadCommandInfo() 218 return malformedError("load command " + Twine(LoadCommandIndex + 1) + in getNextLoadCommandInfo() 255 return malformedError(Twine(Name) + " at offset " + Twine(Offset) + in checkOverlappingElement() 256 " with a size of " + Twine(Size) + ", overlaps " + in checkOverlappingElement() 257 E.Name + " at offset " + Twine(E.Offset) + " with " in checkOverlappingElement() 258 "a size of " + Twine(E.Size)); in checkOverlappingElement() 284 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand() 292 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand() [all …]
|
D | MachOUniversal.cpp | 25 malformedError(Twine Msg) { in malformedError() 143 Twine(Magic == MachO::FAT_MAGIC ? "" : "_64") + in MachOUniversalBinary() 153 Twine(A.getCPUType()) + ") cpusubtype (" + in MachOUniversalBinary() 154 Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) + in MachOUniversalBinary() 160 Err = malformedError("align (2^" + Twine(A.getAlign()) + in MachOUniversalBinary() 161 ") too large for cputype (" + Twine(A.getCPUType()) + in MachOUniversalBinary() 163 Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) + in MachOUniversalBinary() 164 ") (maximum 2^" + Twine(MaxSectionAlignment) + ")"); in MachOUniversalBinary() 168 Err = malformedError("offset: " + Twine(A.getOffset()) + in MachOUniversalBinary() 169 " for cputype (" + Twine(A.getCPUType()) + ") cpusubtype (" + in MachOUniversalBinary() [all …]
|
/external/llvm-project/llvm/lib/Object/ |
D | MachOObjectFile.cpp | 60 static Error malformedError(const Twine &Msg) { in malformedError() 191 return malformedError("load command " + Twine(LoadCommandIndex) + in getLoadCommandInfo() 194 return malformedError("load command " + Twine(LoadCommandIndex) + in getLoadCommandInfo() 218 return malformedError("load command " + Twine(LoadCommandIndex + 1) + in getNextLoadCommandInfo() 255 return malformedError(Twine(Name) + " at offset " + Twine(Offset) + in checkOverlappingElement() 256 " with a size of " + Twine(Size) + ", overlaps " + in checkOverlappingElement() 257 E.Name + " at offset " + Twine(E.Offset) + " with " in checkOverlappingElement() 258 "a size of " + Twine(E.Size)); in checkOverlappingElement() 284 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand() 292 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | FileSystem.h | 304 void make_absolute(const Twine ¤t_directory, SmallVectorImpl<char> &path); 325 std::error_code create_directories(const Twine &path, 335 std::error_code create_directory(const Twine &path, bool IgnoreExisting = true, 349 std::error_code create_link(const Twine &to, const Twine &from); 357 std::error_code create_hard_link(const Twine &to, const Twine &from); 366 std::error_code real_path(const Twine &path, SmallVectorImpl<char> &output, 373 void expand_tilde(const Twine &path, SmallVectorImpl<char> &output); 387 std::error_code set_current_path(const Twine &path); 395 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true); 402 std::error_code remove_directories(const Twine &path, bool IgnoreErrors = true); [all …]
|
D | Path.h | 148 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension, 193 void append(SmallVectorImpl<char> &path, const Twine &a, 194 const Twine &b = "", 195 const Twine &c = "", 196 const Twine &d = ""); 198 void append(SmallVectorImpl<char> &path, Style style, const Twine &a, 199 const Twine &b = "", const Twine &c = "", const Twine &d = ""); 225 void native(const Twine &path, SmallVectorImpl<char> &result, 386 bool has_root_name(const Twine &path, Style style = Style::native); 394 bool has_root_directory(const Twine &path, Style style = Style::native); [all …]
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | FileSystem.h | 284 void make_absolute(const Twine ¤t_directory, SmallVectorImpl<char> &path); 305 std::error_code create_directories(const Twine &path, 315 std::error_code create_directory(const Twine &path, bool IgnoreExisting = true, 329 std::error_code create_link(const Twine &to, const Twine &from); 337 std::error_code create_hard_link(const Twine &to, const Twine &from); 346 std::error_code real_path(const Twine &path, SmallVectorImpl<char> &output, 353 void expand_tilde(const Twine &path, SmallVectorImpl<char> &output); 367 std::error_code set_current_path(const Twine &path); 375 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true); 382 std::error_code remove_directories(const Twine &path, bool IgnoreErrors = true); [all …]
|
D | Path.h | 148 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension, 187 void append(SmallVectorImpl<char> &path, const Twine &a, 188 const Twine &b = "", 189 const Twine &c = "", 190 const Twine &d = ""); 192 void append(SmallVectorImpl<char> &path, Style style, const Twine &a, 193 const Twine &b = "", const Twine &c = "", const Twine &d = ""); 219 void native(const Twine &path, SmallVectorImpl<char> &result, 394 bool has_root_name(const Twine &path, Style style = Style::native); 402 bool has_root_directory(const Twine &path, Style style = Style::native); [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/TableGen/ |
D | Error.h | 21 void PrintNote(const Twine &Msg); 22 void PrintNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg); 24 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg); 25 void PrintWarning(const char *Loc, const Twine &Msg); 26 void PrintWarning(const Twine &Msg); 28 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 29 void PrintError(const char *Loc, const Twine &Msg); 30 void PrintError(const Twine &Msg); 32 LLVM_ATTRIBUTE_NORETURN void PrintFatalError(const Twine &Msg); 34 const Twine &Msg);
|
/external/llvm-project/clang/lib/Basic/Targets/ |
D | Mips.cpp | 126 Builder.defineMacro("__mips_hard_float", Twine(1)); in getTargetDefines() 129 Builder.defineMacro("__mips_soft_float", Twine(1)); in getTargetDefines() 134 Builder.defineMacro("__mips_single_float", Twine(1)); in getTargetDefines() 138 Builder.defineMacro("__mips_fpr", Twine(0)); in getTargetDefines() 141 Builder.defineMacro("__mips_fpr", Twine(32)); in getTargetDefines() 144 Builder.defineMacro("__mips_fpr", Twine(64)); in getTargetDefines() 149 Builder.defineMacro("_MIPS_FPSET", Twine(32)); in getTargetDefines() 151 Builder.defineMacro("_MIPS_FPSET", Twine(16)); in getTargetDefines() 154 Builder.defineMacro("__mips16", Twine(1)); in getTargetDefines() 157 Builder.defineMacro("__mips_micromips", Twine(1)); in getTargetDefines() [all …]
|
/external/llvm/include/llvm/IR/ |
D | IRBuilder.h | 63 void InsertHelper(Instruction *I, const Twine &Name, in InsertHelper() 261 GlobalVariable *CreateGlobalString(StringRef Str, const Twine &Name = "", 451 Value *PassThru = nullptr, const Twine &Name = ""); 461 const Twine& Name = ""); 478 const Twine &Name = ""); 488 const Twine &Name = ""); 497 const Twine &Name = ""); 506 ArrayRef<Value *> GCArgs, const Twine &Name = ""); 515 const Twine &Name = ""); 525 ArrayRef<Value *> GCArgs, const Twine &Name = ""); [all …]
|