/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/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 …]
|
D | Path.cpp | 160 static std::error_code createUniqueEntity(const Twine &Model, int &ResultFD, in createUniqueEntity() 169 if (!sys::path::is_absolute(Twine(ModelStorage))) { in createUniqueEntity() 172 sys::path::append(TDir, Twine(ModelStorage)); in createUniqueEntity() 195 sys::fs::openFileForWrite(Twine(ResultPath.begin()), ResultFD, in createUniqueEntity() 443 void append(SmallVectorImpl<char> &path, const Twine &a, in append() 444 const Twine &b, in append() 445 const Twine &c, in append() 446 const Twine &d) { in append() 502 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension) { in replace_extension() 520 void native(const Twine &path, SmallVectorImpl<char> &result) { in native() [all …]
|
D | MemoryBuffer.cpp | 67 const Twine &Name; 68 NamedBufferAlloc(const Twine &Name) : Name(Name) {} in NamedBufferAlloc() 101 getFileAux(const Twine &Filename, int64_t FileSize, uint64_t MapSize, 119 MemoryBuffer::getMemBufferCopy(StringRef InputData, const Twine &BufferName) { in getMemBufferCopy() 130 MemoryBuffer::getNewUninitMemBuffer(size_t Size, const Twine &BufferName) { in getNewUninitMemBuffer() 165 MemoryBuffer::getFileOrSTDIN(const Twine &Filename, int64_t FileSize, in getFileOrSTDIN() 176 MemoryBuffer::getFileSlice(const Twine &FilePath, uint64_t MapSize, in getFileSlice() 228 getMemoryBufferForStream(int FD, const Twine &BufferName) { in getMemoryBufferForStream() 248 MemoryBuffer::getFile(const Twine &Filename, int64_t FileSize, in getFile() 255 getOpenFileImpl(int FD, const Twine &Filename, uint64_t FileSize, [all …]
|
/external/llvm/include/llvm/ADT/ |
D | Twine.h | 79 class Twine { 136 const Twine *twine; 165 explicit Twine(NodeKind Kind) in Twine() function 171 explicit Twine(const Twine &LHS, const Twine &RHS) in Twine() function 179 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine() function 186 Twine &operator=(const Twine &Other) = delete; 257 /*implicit*/ Twine() : LHSKind(EmptyKind), RHSKind(EmptyKind) { in Twine() function 261 Twine(const Twine &) = default; 268 /*implicit*/ Twine(const char *Str) in Twine() function 280 /*implicit*/ Twine(const std::string &Str) in Twine() function [all …]
|
/external/llvm/include/llvm/Support/ |
D | Path.h | 141 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension); 153 void append(SmallVectorImpl<char> &path, const Twine &a, 154 const Twine &b = "", 155 const Twine &c = "", 156 const Twine &d = ""); 182 void native(const Twine &path, SmallVectorImpl<char> &result); 341 bool user_cache_directory(SmallVectorImpl<char> &Result, const Twine &Path1, 342 const Twine &Path2 = "", const Twine &Path3 = ""); 350 bool has_root_name(const Twine &path); 358 bool has_root_directory(const Twine &path); [all …]
|
D | FileSystem.h | 280 std::error_code make_absolute(const Twine ¤t_directory, 302 std::error_code create_directories(const Twine &path, 312 std::error_code create_directory(const Twine &path, bool IgnoreExisting = true, 326 std::error_code create_link(const Twine &to, const Twine &from); 341 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true); 347 std::error_code rename(const Twine &from, const Twine &to); 353 std::error_code copy_file(const Twine &From, const Twine &To); 381 std::error_code access(const Twine &Path, AccessMode Mode); 387 inline bool exists(const Twine &Path) { in exists() 395 bool can_execute(const Twine &Path); [all …]
|
D | MemoryBuffer.h | 72 getFile(const Twine &Filename, int64_t FileSize = -1, 79 getOpenFileSlice(int FD, const Twine &Filename, uint64_t MapSize, 89 getOpenFile(int FD, const Twine &Filename, uint64_t FileSize, 104 getMemBufferCopy(StringRef InputData, const Twine &BufferName = ""); 116 getNewUninitMemBuffer(size_t Size, const Twine &BufferName = ""); 124 getFileOrSTDIN(const Twine &Filename, int64_t FileSize = -1, 129 getFileSlice(const Twine &Filename, uint64_t MapSize, uint64_t Offset);
|
/external/llvm/include/llvm/IR/ |
D | DiagnosticInfo.h | 31 class Twine; variable 117 const Twine &MsgStr; 125 DiagnosticInfoInlineAsm(const Twine &MsgStr, 134 DiagnosticInfoInlineAsm(unsigned LocCookie, const Twine &MsgStr, 144 DiagnosticInfoInlineAsm(const Instruction &I, const Twine &MsgStr, 148 const Twine &getMsgStr() const { return MsgStr; } in getMsgStr() 218 const Twine &Msg, 222 DiagnosticInfoSampleProfile(StringRef FileName, const Twine &Msg, 226 DiagnosticInfoSampleProfile(const Twine &Msg, 239 const Twine &getMsg() const { return Msg; } in getMsg() [all …]
|
D | IRBuilder.h | 44 void InsertHelper(Instruction *I, const Twine &Name, in InsertHelper() 239 GlobalVariable *CreateGlobalString(StringRef Str, const Twine &Name = "", 429 Value *PassThru = nullptr, const Twine &Name = ""); 446 const Twine &Name = ""); 456 const Twine &Name = ""); 465 const Twine &Name = ""); 474 ArrayRef<Value *> GCArgs, const Twine &Name = ""); 483 const Twine &Name = ""); 493 ArrayRef<Value *> GCArgs, const Twine &Name = ""); 499 const Twine &Name = ""); [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) {\ 390 const Twine &Name = "") { 396 const Twine &Name, BasicBlock *BB) { 402 const Twine &Name, Instruction *I) { [all …]
|
D | Instructions.h | 87 const Twine &Name = "", 90 const Twine &Name, BasicBlock *InsertAtEnd); 92 AllocaInst(Type *Ty, const Twine &Name, Instruction *InsertBefore = nullptr); 93 AllocaInst(Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd); 96 const Twine &Name = "", Instruction *InsertBefore = nullptr); 98 const Twine &Name, BasicBlock *InsertAtEnd); 187 LoadInst(Value *Ptr, const Twine &NameStr, Instruction *InsertBefore); 188 LoadInst(Value *Ptr, const Twine &NameStr, BasicBlock *InsertAtEnd); 189 LoadInst(Type *Ty, Value *Ptr, const Twine &NameStr, bool isVolatile = false, 191 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile = false, [all …]
|
D | GlobalAlias.h | 36 const Twine &Name, Constant *Aliasee, Module *Parent); 47 LinkageTypes Linkage, const Twine &Name, 52 LinkageTypes Linkage, const Twine &Name, 57 LinkageTypes Linkage, const Twine &Name, 61 static GlobalAlias *create(LinkageTypes Linkage, const Twine &Name, 65 static GlobalAlias *create(const Twine &Name, GlobalValue *Aliasee);
|
/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 | 34 virtual void EmitInt8(uint8_t Byte, const Twine &Comment = "") = 0; 35 virtual void EmitSLEB128(uint64_t DWord, const Twine &Comment = "") = 0; 36 virtual void EmitULEB128(uint64_t DWord, const Twine &Comment = "") = 0; 45 void EmitInt8(uint8_t Byte, const Twine &Comment) override { in EmitInt8() 49 void EmitSLEB128(uint64_t DWord, const Twine &Comment) override { in EmitSLEB128() 53 void EmitULEB128(uint64_t DWord, const Twine &Comment) override { in EmitULEB128() 64 void EmitInt8(uint8_t Byte, const Twine &Comment) override { in EmitInt8() 67 void EmitSLEB128(uint64_t DWord, const Twine &Comment) override { in EmitSLEB128() 70 void EmitULEB128(uint64_t DWord, const Twine &Comment) override { in EmitULEB128() 90 void EmitInt8(uint8_t Byte, const Twine &Comment) override { in EmitInt8() [all …]
|
/external/llvm/unittests/Support/ |
D | Path.cpp | 450 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F1)); in TEST_F() 451 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F2)); in TEST_F() 461 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D)); in TEST_F() 465 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2))); in TEST_F() 469 ASSERT_NO_ERROR(fs::create_link(Twine(TempPath), Twine(TempPath2))); in TEST_F() 471 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D2)); in TEST_F() 498 ASSERT_TRUE(sys::fs::exists(Twine(TempPath))); in TEST_F() 508 ASSERT_NO_ERROR(fs::status(Twine(TempPath), A)); in TEST_F() 509 ASSERT_NO_ERROR(fs::status(Twine(TempPath2), B)); in TEST_F() 515 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2))); in TEST_F() [all …]
|
/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/include/clang/Basic/ |
D | VirtualFileSystem.h | 95 getBuffer(const Twine &Name, int64_t FileSize = -1, 162 recursive_directory_iterator(FileSystem &FS, const Twine &Path, 187 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0; 190 openFileForRead(const Twine &Path) = 0; 195 getBufferForFile(const Twine &Name, int64_t FileSize = -1, 200 virtual directory_iterator dir_begin(const Twine &Dir, 205 virtual std::error_code setCurrentWorkingDirectory(const Twine &Path) = 0; 210 bool exists(const Twine &Path); 251 llvm::ErrorOr<Status> status(const Twine &Path) override; 253 openFileForRead(const Twine &Path) override; [all …]
|
D | MacroBuilder.h | 30 void defineMacro(const Twine &Name, const Twine &Value = "1") { 36 void undefineMacro(const Twine &Name) { in undefineMacro() 41 void append(const Twine &Str) { in append()
|
/external/clang/lib/CodeGen/ |
D | CGBuilder.h | 34 void InsertHelper(llvm::Instruction *I, const llvm::Twine &Name, 78 llvm::LoadInst *CreateLoad(Address Addr, const llvm::Twine &Name = "") { 91 const llvm::Twine &Name = "") { 100 const llvm::Twine &Name = "") { 109 const llvm::Twine &Name = "") { 115 const llvm::Twine &Name = "") { 136 const llvm::Twine &Name = "") { 144 const llvm::Twine &Name = "") { 156 const llvm::Twine &Name = "") { 169 const llvm::Twine &Name = "") { [all …]
|
/external/clang/lib/Frontend/ |
D | InitPreprocessor.cpp | 58 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro() 72 Builder.append(Twine("#include \"") + File + "\""); in AddImplicitInclude() 76 Builder.append(Twine("#__include_macros \"") + File + "\""); in AddImplicitIncludeMacros() 162 Builder.defineMacro(DefPrefix + "DENORM_MIN__", Twine(DenormMin)+Ext); in DefineFloatMacros() 164 Builder.defineMacro(DefPrefix + "DIG__", Twine(Digits)); in DefineFloatMacros() 165 Builder.defineMacro(DefPrefix + "DECIMAL_DIG__", Twine(DecimalDigits)); in DefineFloatMacros() 166 Builder.defineMacro(DefPrefix + "EPSILON__", Twine(Epsilon)+Ext); in DefineFloatMacros() 169 Builder.defineMacro(DefPrefix + "MANT_DIG__", Twine(MantissaDigits)); in DefineFloatMacros() 171 Builder.defineMacro(DefPrefix + "MAX_10_EXP__", Twine(Max10Exp)); in DefineFloatMacros() 172 Builder.defineMacro(DefPrefix + "MAX_EXP__", Twine(MaxExp)); in DefineFloatMacros() [all …]
|
/external/llvm/lib/IR/ |
D | DiagnosticInfo.cpp | 97 const Twine &MsgStr, in DiagnosticInfoInlineAsm() 161 return (Filename + ":" + Twine(Line) + ":" + Twine(Column)).str(); in getLocationStr() 190 const Twine &Msg) { in emitOptimizationRemark() 197 const Twine &Msg) { in emitOptimizationRemarkMissed() 205 const Twine &Msg) { in emitOptimizationRemarkAnalysis() 214 const Twine &Msg) { in emitOptimizationRemarkAnalysisFPCommute() 223 const Twine &Msg) { in emitOptimizationRemarkAnalysisAliasing() 234 const DebugLoc &DLoc, const Twine &Msg) { in emitLoopVectorizeWarning() 236 Fn, DLoc, Twine("loop not vectorized: " + Msg))); in emitLoopVectorizeWarning() 240 const DebugLoc &DLoc, const Twine &Msg) { in emitLoopInterleaveWarning() [all …]
|
D | Instructions.cpp | 162 const Twine &NameStr, Instruction *InsertBefore) in LandingPadInst() 168 const Twine &NameStr, BasicBlock *InsertAtEnd) in LandingPadInst() 187 const Twine &NameStr, in Create() 193 const Twine &NameStr, in Create() 198 void LandingPadInst::init(unsigned NumReservedValues, const Twine &NameStr) { in init() 231 ArrayRef<OperandBundleDef> Bundles, const Twine &NameStr) { in init() 257 void CallInst::init(Value *Func, const Twine &NameStr) { in init() 268 CallInst::CallInst(Value *Func, const Twine &Name, in CallInst() 278 CallInst::CallInst(Value *Func, const Twine &Name, in CallInst() 388 const Twine &Name) { in createMalloc() [all …]
|
/external/llvm/include/llvm/MC/MCParser/ |
D | MCAsmParserExtension.h | 18 class Twine; variable 68 bool Warning(SMLoc L, const Twine &Msg) { in Warning() 71 bool Error(SMLoc L, const Twine &Msg) { in Error() 74 void Note(SMLoc L, const Twine &Msg) { in Note() 77 bool TokError(const Twine &Msg) { in TokError()
|
/external/clang/lib/Basic/ |
D | VirtualFileSystem.cpp | 92 FileSystem::getBufferForFile(const llvm::Twine &Name, int64_t FileSize, in getBufferForFile() 109 bool FileSystem::exists(const Twine &Path) { in exists() 133 ErrorOr<std::unique_ptr<MemoryBuffer>> getBuffer(const Twine &Name, 154 RealFile::getBuffer(const Twine &Name, int64_t FileSize, in getBuffer() 182 ErrorOr<Status> status(const Twine &Path) override; 183 ErrorOr<std::unique_ptr<File>> openFileForRead(const Twine &Path) override; 184 directory_iterator dir_begin(const Twine &Dir, std::error_code &EC) override; 187 std::error_code setCurrentWorkingDirectory(const Twine &Path) override; 191 ErrorOr<Status> RealFileSystem::status(const Twine &Path) { in status() 199 RealFileSystem::openFileForRead(const Twine &Name) { in openFileForRead() [all …]
|