Home
last modified time | relevance | path

Searched refs:Twine (Results 1 – 25 of 523) sorted by relevance

12345678910>>...21

/external/llvm/unittests/ADT/
DTwineTest.cpp18 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/swiftshader/third_party/LLVM/unittests/ADT/
DTwineTest.cpp18 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()
35 EXPECT_EQ("123", Twine(123U).str()); in TEST()
36 EXPECT_EQ("123", Twine(123).str()); in TEST()
37 EXPECT_EQ("-123", Twine(-123).str()); in TEST()
[all …]
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DTwine.cpp17 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/
DTwine.cpp16 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/swiftshader/third_party/LLVM/lib/Support/
DTwine.cpp16 std::string Twine::str() const { in str()
26 void Twine::toVector(SmallVectorImpl<char> &Out) const { in toVector()
31 StringRef Twine::toStringRef(SmallVectorImpl<char> &Out) const { in toStringRef()
38 StringRef Twine::toNullTerminatedStringRef(SmallVectorImpl<char> &Out) const { in toNullTerminatedStringRef()
58 void Twine::printOneChild(raw_ostream &OS, Child Ptr, in printOneChild()
61 case Twine::NullKind: break; in printOneChild()
62 case Twine::EmptyKind: break; in printOneChild()
63 case Twine::TwineKind: in printOneChild()
66 case Twine::CStringKind: in printOneChild()
69 case Twine::StdStringKind: in printOneChild()
[all …]
/external/llvm/include/llvm/ADT/
DTwine.h79 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/
DTwine.h81 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/swiftshader/third_party/LLVM/include/llvm/ADT/
DTwine.h80 class Twine {
134 const Twine *twine;
164 explicit Twine(NodeKind Kind) in Twine() function
170 explicit Twine(const Twine &_LHS, const Twine &_RHS) in Twine() function
178 explicit Twine(Child _LHS, NodeKind _LHSKind, in Twine() function
253 /*implicit*/ Twine() : LHSKind(EmptyKind), RHSKind(EmptyKind) { in Twine() function
262 /*implicit*/ Twine(const char *Str) in Twine() function
274 /*implicit*/ Twine(const std::string &Str) in Twine() function
281 /*implicit*/ Twine(const StringRef &Str) in Twine() function
288 explicit Twine(char Val) in Twine() function
[all …]
DTriple.h140 explicit Triple(const Twine &Str) : Data(Str.str()), Arch(InvalidArch) {} in Triple()
141 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr) in Triple()
142 : Data((ArchStr + Twine('-') + VendorStr + Twine('-') + OSStr).str()), in Triple()
146 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr, in Triple()
147 const Twine &EnvironmentStr) in Triple()
148 : Data((ArchStr + Twine('-') + VendorStr + Twine('-') + OSStr + Twine('-') + in Triple()
311 void setTriple(const Twine &Str);
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DFileSystem.h130 error_code copy_file(const Twine &from, const Twine &to,
139 error_code create_directories(const Twine &path, bool &existed);
147 error_code create_directory(const Twine &path, bool &existed);
155 error_code create_hard_link(const Twine &to, const Twine &from);
163 error_code create_symlink(const Twine &to, const Twine &from);
179 error_code remove(const Twine &path, bool &existed);
188 error_code remove_all(const Twine &path, uint32_t &num_removed);
194 error_code rename(const Twine &from, const Twine &to);
202 error_code resize_file(const Twine &path, uint64_t size);
222 error_code exists(const Twine &path, bool &result);
[all …]
DIRBuilder.h35 void InsertHelper(Instruction *I, const Twine &Name, in InsertHelper()
178 Value *CreateGlobalString(StringRef Str, const Twine &Name = "");
383 InstTy *Insert(InstTy *I, const Twine &Name = "") const {
391 Constant *Insert(Constant *C, const Twine& = "") const {
451 BasicBlock *UnwindDest, const Twine &Name = "") {
458 const Twine &Name = "") {
465 const Twine &Name = "") {
473 const Twine &Name = "") {
492 const Twine &Name, in CreateInsertNUWNSWBinOp()
500 Value *CreateAdd(Value *LHS, Value *RHS, const Twine &Name = "",
[all …]
DPathV2.h127 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension);
137 void append(SmallVectorImpl<char> &path, const Twine &a,
138 const Twine &b = "",
139 const Twine &c = "",
140 const Twine &d = "");
164 void native(const Twine &path, SmallVectorImpl<char> &result);
284 bool has_root_name(const Twine &path);
292 bool has_root_directory(const Twine &path);
300 bool has_root_path(const Twine &path);
308 bool has_relative_path(const Twine &path);
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/
DInstrTypes.h145 const Twine &Name, Instruction *InsertBefore);
147 const Twine &Name, BasicBlock *InsertAtEnd);
164 const Twine &Name = Twine(),
172 const Twine &Name, BasicBlock *InsertAtEnd);
179 const Twine &Name = "") {\
185 const Twine &Name, BasicBlock *BB) {\
191 const Twine &Name, Instruction *I) {\
197 const Twine &Name = "") {
203 const Twine &Name, BasicBlock *BB) {
209 const Twine &Name, Instruction *I) {
[all …]
DInstructions.h62 const Twine &Name = "", Instruction *InsertBefore = 0);
64 const Twine &Name, BasicBlock *InsertAtEnd);
66 AllocaInst(Type *Ty, const Twine &Name, Instruction *InsertBefore = 0);
67 AllocaInst(Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd);
70 const Twine &Name = "", Instruction *InsertBefore = 0);
72 const Twine &Name, BasicBlock *InsertAtEnd);
141 LoadInst(Value *Ptr, const Twine &NameStr, Instruction *InsertBefore);
142 LoadInst(Value *Ptr, const Twine &NameStr, BasicBlock *InsertAtEnd);
143 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile = false,
145 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile,
[all …]
/external/llvm/include/llvm/IR/
DIRBuilder.h63 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 …]
DDiagnosticInfo.h120 const Twine &MsgStr;
128 DiagnosticInfoInlineAsm(const Twine &MsgStr,
137 DiagnosticInfoInlineAsm(unsigned LocCookie, const Twine &MsgStr,
147 DiagnosticInfoInlineAsm(const Instruction &I, const Twine &MsgStr,
151 const Twine &getMsgStr() const { return MsgStr; } in getMsgStr()
279 const Twine &Msg,
283 DiagnosticInfoSampleProfile(StringRef FileName, const Twine &Msg,
287 DiagnosticInfoSampleProfile(const Twine &Msg,
300 const Twine &getMsg() const { return Msg; } in getMsg()
311 const Twine &Msg;
[all …]
DInstrTypes.h334 const Twine &Name, Instruction *InsertBefore);
336 const Twine &Name, BasicBlock *InsertAtEnd);
357 const Twine &Name = Twine(),
365 const Twine &Name, BasicBlock *InsertAtEnd);
372 const Twine &Name = "") {\
378 const Twine &Name, BasicBlock *BB) {\
384 const Twine &Name, Instruction *I) {\
392 const Twine &Name = "") {
399 const Twine &Name = "") {
405 const Twine &Name, BasicBlock *BB) {
[all …]
/external/llvm/include/llvm/Support/
DPath.h143 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 …]
DFileSystem.h294 std::error_code make_absolute(const Twine &current_directory,
316 std::error_code create_directories(const Twine &path,
326 std::error_code create_directory(const Twine &path, bool IgnoreExisting = true,
340 std::error_code create_link(const Twine &to, const Twine &from);
355 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true);
361 std::error_code rename(const Twine &from, const Twine &to);
367 std::error_code copy_file(const Twine &From, const Twine &To);
395 std::error_code access(const Twine &Path, AccessMode Mode);
401 inline bool exists(const Twine &Path) { in exists()
409 bool can_execute(const Twine &Path);
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DPath.h143 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 …]
DFileSystem.h297 std::error_code make_absolute(const Twine &current_directory,
319 std::error_code create_directories(const Twine &path,
329 std::error_code create_directory(const Twine &path, bool IgnoreExisting = true,
343 std::error_code create_link(const Twine &to, const Twine &from);
351 std::error_code create_hard_link(const Twine &to, const Twine &from);
366 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true);
372 std::error_code rename(const Twine &from, const Twine &to);
378 std::error_code copy_file(const Twine &From, const Twine &To);
406 std::error_code access(const Twine &Path, AccessMode Mode);
412 inline bool exists(const Twine &Path) { in exists()
[all …]
/external/llvm/unittests/Support/
DPath.cpp451 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F1)); in TEST_F()
452 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F2)); in TEST_F()
462 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D)); in TEST_F()
466 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2))); in TEST_F()
470 ASSERT_NO_ERROR(fs::create_link(Twine(TempPath), Twine(TempPath2))); in TEST_F()
472 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D2)); in TEST_F()
499 ASSERT_TRUE(sys::fs::exists(Twine(TempPath))); in TEST_F()
509 ASSERT_NO_ERROR(fs::status(Twine(TempPath), A)); in TEST_F()
510 ASSERT_NO_ERROR(fs::status(Twine(TempPath2), B)); in TEST_F()
516 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2))); in TEST_F()
[all …]
/external/llvm/lib/CodeGen/AsmPrinter/
DByteStreamer.h33 virtual void EmitInt8(uint8_t Byte, const Twine &Comment = "") = 0;
34 virtual void EmitSLEB128(uint64_t DWord, const Twine &Comment = "") = 0;
35 virtual void EmitULEB128(uint64_t DWord, const Twine &Comment = "") = 0;
44 void EmitInt8(uint8_t Byte, const Twine &Comment) override { in EmitInt8()
48 void EmitSLEB128(uint64_t DWord, const Twine &Comment) override { in EmitSLEB128()
52 void EmitULEB128(uint64_t DWord, const Twine &Comment) override { in EmitULEB128()
63 void EmitInt8(uint8_t Byte, const Twine &Comment) override { in EmitInt8()
66 void EmitSLEB128(uint64_t DWord, const Twine &Comment) override { in EmitSLEB128()
69 void EmitULEB128(uint64_t DWord, const Twine &Comment) override { in EmitULEB128()
89 void EmitInt8(uint8_t Byte, const Twine &Comment) override { in EmitInt8()
[all …]
/external/llvm/include/llvm/TableGen/
DError.h22 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg);
23 void PrintWarning(const char *Loc, const Twine &Msg);
24 void PrintWarning(const Twine &Msg);
26 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg);
27 void PrintError(const char *Loc, const Twine &Msg);
28 void PrintError(const Twine &Msg);
30 LLVM_ATTRIBUTE_NORETURN void PrintFatalError(const Twine &Msg);
32 const Twine &Msg);
/external/clang/lib/CodeGen/
DCGBuilder.h33 void InsertHelper(llvm::Instruction *I, const llvm::Twine &Name,
70 llvm::LoadInst *CreateLoad(Address Addr, const llvm::Twine &Name = "") {
83 const llvm::Twine &Name = "") {
92 const llvm::Twine &Name = "") {
101 const llvm::Twine &Name = "") {
107 const llvm::Twine &Name = "") {
128 const llvm::Twine &Name = "") {
136 const llvm::Twine &Name = "") {
148 const llvm::Twine &Name = "") {
161 const llvm::Twine &Name = "") {
[all …]

12345678910>>...21