/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/swiftshader/third_party/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() 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/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/swiftshader/third_party/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::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/ |
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/include/llvm/ADT/ |
D | Twine.h | 80 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 …]
|
D | Triple.h | 140 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/ |
D | FileSystem.h | 130 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 …]
|
D | PathV2.h | 127 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 …]
|
D | IRBuilder.h | 35 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 …]
|
/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 …]
|
D | FileSystem.h | 294 std::error_code make_absolute(const Twine ¤t_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/include/llvm/ |
D | InstrTypes.h | 145 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 …]
|
D | Instructions.h | 62 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/ |
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 …]
|
D | DiagnosticInfo.h | 120 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 …]
|
D | InstrTypes.h | 334 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/unittests/Support/ |
D | Path.cpp | 451 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/include/llvm/TableGen/ |
D | Error.h | 22 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/llvm/lib/CodeGen/AsmPrinter/ |
D | ByteStreamer.h | 33 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/lib/Target/PowerPC/ |
D | PPCMachineFunctionInfo.cpp | 22 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + in getPICOffsetSymbol() 23 Twine(MF.getFunctionNumber()) + in getPICOffsetSymbol() 29 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + in getGlobalEPSymbol() 31 Twine(MF.getFunctionNumber())); in getGlobalEPSymbol() 36 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + in getLocalEPSymbol() 38 Twine(MF.getFunctionNumber())); in getLocalEPSymbol() 43 return MF.getContext().getOrCreateSymbol(Twine(DL.getPrivateGlobalPrefix()) + in getTOCOffsetSymbol() 45 Twine(MF.getFunctionNumber())); in getTOCOffsetSymbol()
|
/external/llvm/lib/TableGen/ |
D | Error.cpp | 27 const Twine &Msg) { in PrintMessage() 42 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg) { in PrintWarning() 46 void PrintWarning(const char *Loc, const Twine &Msg) { in PrintWarning() 50 void PrintWarning(const Twine &Msg) { in PrintWarning() 54 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintError() 58 void PrintError(const char *Loc, const Twine &Msg) { in PrintError() 62 void PrintError(const Twine &Msg) { in PrintError() 66 void PrintFatalError(const Twine &Msg) { in PrintFatalError() 73 void PrintFatalError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintFatalError()
|
/external/clang/lib/CodeGen/ |
D | CGBuilder.h | 33 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 …]
|
/external/clang/include/clang/Basic/ |
D | VirtualFileSystem.h | 103 getBuffer(const Twine &Name, int64_t FileSize = -1, 171 recursive_directory_iterator(FileSystem &FS, const Twine &Path, 201 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0; 204 openFileForRead(const Twine &Path) = 0; 209 getBufferForFile(const Twine &Name, int64_t FileSize = -1, 214 virtual directory_iterator dir_begin(const Twine &Dir, 219 virtual std::error_code setCurrentWorkingDirectory(const Twine &Path) = 0; 224 bool exists(const Twine &Path); 265 llvm::ErrorOr<Status> status(const Twine &Path) override; 267 openFileForRead(const Twine &Path) override; [all …]
|
/external/swiftshader/third_party/LLVM/unittests/Support/ |
D | Path.cpp | 177 ASSERT_NO_ERROR(sys::fs::exists(Twine(TempPath), TempFileExists)); in TEST_F() 188 fs::copy_file(Twine(TempPath), Twine(TempPath2)), errc::file_exists); in TEST_F() 192 ASSERT_NO_ERROR(fs::copy_file(Twine(TempPath), Twine(TempPath2), in TEST_F() 195 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2), TempFileExists)); in TEST_F() 199 ASSERT_NO_ERROR(fs::exists(Twine(TempPath2), TempFileExists)); in TEST_F() 203 ASSERT_NO_ERROR(fs::create_hard_link(Twine(TempPath), Twine(TempPath2))); in TEST_F() 205 ASSERT_NO_ERROR(fs::equivalent(Twine(TempPath), Twine(TempPath2), equal)); in TEST_F() 210 ASSERT_NO_ERROR(fs::remove(Twine(TempPath), TempFileExists)); in TEST_F() 214 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2), TempFileExists)); in TEST_F() 218 ASSERT_NO_ERROR(fs::exists(Twine(TempPath), TempFileExists)); in TEST_F()
|