/external/llvm/unittests/ADT/ |
TwineTest.cpp | 1 //===- TwineTest.cpp - Twine unit tests -----------------------------------===// 11 #include "llvm/ADT/Twine.h" 18 std::string repr(const Twine &Value) { 26 EXPECT_EQ("", Twine().str()); 27 EXPECT_EQ("hi", Twine("hi").str()); 28 EXPECT_EQ("hi", Twine(std::string("hi")).str()); 29 EXPECT_EQ("hi", Twine(StringRef("hi")).str()); 30 EXPECT_EQ("hi", Twine(StringRef(std::string("hi"))).str()); 31 EXPECT_EQ("hi", Twine(StringRef("hithere", 2)).str()); 35 EXPECT_EQ("123", Twine(123U).str()) [all...] |
/external/clang/test/CodeGenCXX/ |
constructor-convert.cpp | 4 class Twine { 5 Twine(const char *Str) { } 8 static void error(const Twine &Message) {}
|
/external/llvm/lib/Support/ |
Twine.cpp | 1 //===-- Twine.cpp - Fast Temporary String Concatenation -------------------===// 10 #include "llvm/ADT/Twine.h" 16 std::string Twine::str() const { 26 void Twine::toVector(SmallVectorImpl<char> &Out) const { 31 StringRef Twine::toStringRef(SmallVectorImpl<char> &Out) const { 38 StringRef Twine::toNullTerminatedStringRef(SmallVectorImpl<char> &Out) const { 58 void Twine::printOneChild(raw_ostream &OS, const void *Ptr, 61 case Twine::NullKind: break; 62 case Twine::EmptyKind: break; 63 case Twine::TwineKind [all...] |
ErrorHandling.cpp | 15 #include "llvm/ADT/Twine.h" 53 report_fatal_error(Twine(Reason)); 57 report_fatal_error(Twine(Reason)); 61 report_fatal_error(Twine(Reason)); 64 void llvm::report_fatal_error(const Twine &Reason) {
|
PathV2.cpp | 353 void append(SmallVectorImpl<char> &path, const Twine &a, 354 const Twine &b, 355 const Twine &c, 356 const Twine &d) { 414 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension) { 432 void native(const Twine &path, SmallVectorImpl<char> &result) { 493 bool has_root_name(const Twine &path) { 500 bool has_root_directory(const Twine &path) { 507 bool has_root_path(const Twine &path) { 514 bool has_relative_path(const Twine &path) [all...] |
/external/llvm/include/llvm/Support/ |
FileSystem.h | 31 #include "llvm/ADT/Twine.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) [all...] |
PathV2.h | 20 #include "llvm/ADT/Twine.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); 273 bool has_root_name(const Twine &path); 281 bool has_root_directory(const Twine &path); 289 bool has_root_path(const Twine &path) [all...] |
IRBuilder.h | 22 #include "llvm/ADT/Twine.h" 35 void InsertHelper(Instruction *I, const Twine &Name, 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 [all...] |
ErrorHandling.h | 23 class Twine; 79 LLVM_ATTRIBUTE_NORETURN void report_fatal_error(const Twine &reason);
|
FileUtilities.h | 46 explicit FileRemover(const Twine& filename, bool deleteIt = true) 62 void setFile(const Twine& filename, bool deleteIt = true) {
|
/external/clang/include/clang/Basic/ |
MacroBuilder.h | 17 #include "llvm/ADT/Twine.h" 28 void defineMacro(const llvm::Twine &Name, const llvm::Twine &Value = "1") { 34 void undefineMacro(const llvm::Twine &Name) { 39 void append(const llvm::Twine &Str) {
|
/external/llvm/include/llvm/ADT/ |
Twine.h | 1 //===-- Twine.h - Fast Temporary String Concatenation -----------*- C++ -*-===// 24 /// Twine - A lightweight data structure for efficiently representing the 27 /// A Twine is a kind of rope, it represents a concatenated string using a 29 /// Twine can be efficiently rendered into a buffer when its result is used, 31 /// results -- particularly in cases when the Twine result is never 36 /// A Twine is not intended for use directly and should not be stored, its 48 /// Given the nature of a Twine, it is not possible for the Twine's 50 /// represented inside the returned value. For this reason a Twine object 52 /// concatenation. We also have nullary Twine objects, which are effectivel [all...] |
/external/llvm/utils/TableGen/ |
Error.cpp | 16 #include "llvm/ADT/Twine.h" 23 void PrintError(SMLoc ErrorLoc, const Twine &Msg) { 27 void PrintError(const char *Loc, const Twine &Msg) { 31 void PrintError(const Twine &Msg) {
|
Error.h | 32 void PrintError(SMLoc ErrorLoc, const Twine &Msg); 33 void PrintError(const char *Loc, const Twine &Msg); 34 void PrintError(const Twine &Msg);
|
/external/llvm/include/llvm/ |
InstrTypes.h | 22 #include "llvm/ADT/Twine.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 = "") [all...] |
Instructions.h | 45 const Twine &Name = "", Instruction *InsertBefore = 0); 47 const Twine &Name, BasicBlock *InsertAtEnd); 49 AllocaInst(Type *Ty, const Twine &Name, Instruction *InsertBefore = 0); 50 AllocaInst(Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd); 53 const Twine &Name = "", Instruction *InsertBefore = 0); 55 const Twine &Name, BasicBlock *InsertAtEnd); 124 LoadInst(Value *Ptr, const Twine &NameStr, Instruction *InsertBefore); 125 LoadInst(Value *Ptr, const Twine &NameStr, BasicBlock *InsertAtEnd); 126 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile = false, 128 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile [all...] |
Argument.h | 20 #include "llvm/ADT/Twine.h" 42 explicit Argument(Type *Ty, const Twine &Name = "", Function *F = 0);
|
/external/llvm/include/llvm/Target/ |
Mangler.h | 21 class Twine; 69 void getNameWithPrefix(SmallVectorImpl<char> &OutName, const Twine &GVName,
|
/external/llvm/include/llvm/MC/MCParser/ |
MCAsmParser.h | 28 class Twine; 76 virtual bool Warning(SMLoc L, const Twine &Msg) = 0; 83 virtual bool Error(SMLoc L, const Twine &Msg) = 0; 93 bool TokError(const Twine &Msg);
|
MCAsmParserExtension.h | 18 class Twine; 59 bool Warning(SMLoc L, const Twine &Msg) { 62 bool Error(SMLoc L, const Twine &Msg) { 65 bool TokError(const Twine &Msg) {
|
/external/llvm/unittests/Support/ |
Path.cpp | 177 ASSERT_NO_ERROR(sys::fs::exists(Twine(TempPath), TempFileExists)); 188 fs::copy_file(Twine(TempPath), Twine(TempPath2)), errc::file_exists); 192 ASSERT_NO_ERROR(fs::copy_file(Twine(TempPath), Twine(TempPath2), 195 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2), TempFileExists)); 199 ASSERT_NO_ERROR(fs::exists(Twine(TempPath2), TempFileExists)); 203 ASSERT_NO_ERROR(fs::create_hard_link(Twine(TempPath), Twine(TempPath2))); 205 ASSERT_NO_ERROR(fs::equivalent(Twine(TempPath), Twine(TempPath2), equal)) [all...] |
/external/llvm/lib/ExecutionEngine/MCJIT/ |
MCJITMemoryManager.h | 43 F = M->getFunction((Twine("\1") + Name).str()); 60 F = M->getFunction((Twine("\1") + Name).str());
|
/external/llvm/lib/MC/ |
MCLoggingStreamer.cpp | 12 #include "llvm/ADT/Twine.h" 31 void LogCall(const char *Function, const Twine &Message) { 41 virtual void AddComment(const Twine &T) { 212 "FileNo:" + Twine(FileNo) + " Filename:" + Filename); 221 "FileNo:" + Twine(FileNo) + " Line:" + Twine(Line) + 222 " Column:" + Twine(Column) + " Flags:" + Twine(Flags) + 223 " Isa:" + Twine(Isa) + " Discriminator:" + Twine(Discriminator)) [all...] |
/external/llvm/lib/MC/MCParser/ |
MCAsmParser.cpp | 11 #include "llvm/ADT/Twine.h" 36 bool MCAsmParser::TokError(const Twine &Msg) {
|
/external/llvm/lib/Target/XCore/ |
XCoreAsmPrinter.cpp | 96 OutStreamer.EmitRawText("\t.set\t" + Twine(Sym->getName())); 97 OutStreamer.EmitRawText(".globound," + Twine(ATy->getNumElements())); 100 OutStreamer.EmitRawText(MAI->getWeakDefDirective() +Twine(Sym->getName())+ 121 OutStreamer.EmitRawText("\t.cc_top " + Twine(GVSym->getName()) + ".data," + 158 OutStreamer.EmitRawText("\t.size " + Twine(GVSym->getName()) + "," + 159 Twine(Size)); 174 OutStreamer.EmitRawText("\t.cc_bottom " + Twine(GVSym->getName()) + ".data"); 181 OutStreamer.EmitRawText("\t.cc_bottom " + Twine(CurrentFnSym->getName()) + 187 OutStreamer.EmitRawText("\t.cc_top " + Twine(CurrentFnSym->getName()) +
|