/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() 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::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 …]
|
D | Path.cpp | 165 createUniqueEntity(const llvm::Twine &Model, int &ResultFD, 372 void append(SmallVectorImpl<char> &path, const Twine &a, in append() 373 const Twine &b, in append() 374 const Twine &c, in append() 375 const Twine &d) { in append() 433 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension) { in replace_extension() 451 void native(const Twine &path, SmallVectorImpl<char> &result) { in native() 563 bool has_root_name(const Twine &path) { in has_root_name() 570 bool has_root_directory(const Twine &path) { in has_root_directory() 577 bool has_root_path(const Twine &path) { in has_root_path() [all …]
|
D | FileOutputBuffer.cpp | 32 sys::fs::remove(Twine(TempPath), Existed); in ~FileOutputBuffer() 73 EC = sys::fs::createUniqueFile(Twine(FilePath) + ".tmp%%%%%%%", FD, in create() 96 error_code EC = sys::fs::resize_file(Twine(TempPath), NewSmallerSize); in commit() 102 return sys::fs::rename(Twine(TempPath), Twine(FinalPath)); in commit()
|
D | ErrorHandling.cpp | 53 report_fatal_error(Twine(Reason), GenCrashDiag); in report_fatal_error() 57 report_fatal_error(Twine(Reason), GenCrashDiag); in report_fatal_error() 61 report_fatal_error(Twine(Reason), GenCrashDiag); in report_fatal_error() 64 void llvm::report_fatal_error(const Twine &Reason, bool GenCrashDiag) { in report_fatal_error()
|
/external/llvm/include/llvm/ADT/ |
D | Twine.h | 81 class Twine { 135 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, in Twine() function 254 /*implicit*/ Twine() : LHSKind(EmptyKind), RHSKind(EmptyKind) { in Twine() function 263 /*implicit*/ Twine(const char *Str) in Twine() function 275 /*implicit*/ Twine(const std::string &Str) in Twine() function 282 /*implicit*/ Twine(const StringRef &Str) in Twine() function 289 explicit Twine(char Val) in Twine() function [all …]
|
D | Triple.h | 151 explicit Triple(const Twine &Str); 152 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr); 153 Triple(const Twine &ArchStr, const Twine &VendorStr, const Twine &OSStr, 154 const Twine &EnvironmentStr); 368 void setTriple(const Twine &Str);
|
/external/llvm/include/llvm/Support/ |
D | FileSystem.h | 279 error_code create_directories(const Twine &path, bool &existed); 283 inline error_code create_directories(const Twine &Path) { in create_directories() 294 error_code create_directory(const Twine &path, bool &existed); 298 inline error_code create_directory(const Twine &Path) { in create_directory() 309 error_code create_hard_link(const Twine &to, const Twine &from); 317 error_code create_symlink(const Twine &to, const Twine &from); 333 error_code remove(const Twine &path, bool &existed); 337 inline error_code remove(const Twine &Path) { in remove() 349 error_code remove_all(const Twine &path, uint32_t &num_removed); 353 inline error_code remove_all(const Twine &Path) { in remove_all() [all …]
|
D | Path.h | 133 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension); 145 void append(SmallVectorImpl<char> &path, const Twine &a, 146 const Twine &b = "", 147 const Twine &c = "", 148 const Twine &d = ""); 174 void native(const Twine &path, SmallVectorImpl<char> &result); 308 bool has_root_name(const Twine &path); 316 bool has_root_directory(const Twine &path); 324 bool has_root_path(const Twine &path); 332 bool has_relative_path(const Twine &path); [all …]
|
/external/llvm/include/llvm/IR/ |
D | IRBuilder.h | 40 void InsertHelper(Instruction *I, const Twine &Name, in InsertHelper() 182 Value *CreateGlobalString(StringRef Str, const Twine &Name = ""); 433 InstTy *Insert(InstTy *I, const Twine &Name = "") const { 440 Constant *Insert(Constant *C, const Twine& = "") const { 513 BasicBlock *UnwindDest, const Twine &Name = "") { 520 const Twine &Name = "") { 527 const Twine &Name = "") { 535 const Twine &Name = "") { 554 const Twine &Name, in CreateInsertNUWNSWBinOp() 573 Value *CreateAdd(Value *LHS, Value *RHS, const Twine &Name = "", [all …]
|
D | InstrTypes.h | 143 const Twine &Name, Instruction *InsertBefore); 145 const Twine &Name, BasicBlock *InsertAtEnd); 162 const Twine &Name = Twine(), 170 const Twine &Name, BasicBlock *InsertAtEnd); 177 const Twine &Name = "") {\ 183 const Twine &Name, BasicBlock *BB) {\ 189 const Twine &Name, Instruction *I) {\ 195 const Twine &Name = "") { 201 const Twine &Name, BasicBlock *BB) { 207 const Twine &Name, Instruction *I) { [all …]
|
D | Instructions.h | 65 const Twine &Name = "", Instruction *InsertBefore = 0); 67 const Twine &Name, BasicBlock *InsertAtEnd); 69 AllocaInst(Type *Ty, const Twine &Name, Instruction *InsertBefore = 0); 70 AllocaInst(Type *Ty, const Twine &Name, BasicBlock *InsertAtEnd); 73 const Twine &Name = "", Instruction *InsertBefore = 0); 75 const Twine &Name, BasicBlock *InsertAtEnd); 143 LoadInst(Value *Ptr, const Twine &NameStr, Instruction *InsertBefore); 144 LoadInst(Value *Ptr, const Twine &NameStr, BasicBlock *InsertAtEnd); 145 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile = false, 147 LoadInst(Value *Ptr, const Twine &NameStr, bool isVolatile, [all …]
|
D | LLVMContext.h | 26 class Twine; variable 91 void emitError(unsigned LocCookie, const Twine &ErrorStr); 92 void emitError(const Instruction *I, const Twine &ErrorStr); 93 void emitError(const Twine &ErrorStr);
|
/external/llvm/lib/TableGen/ |
D | Error.cpp | 26 const Twine &Msg) { in PrintMessage() 41 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg) { in PrintWarning() 45 void PrintWarning(const char *Loc, const Twine &Msg) { in PrintWarning() 49 void PrintWarning(const Twine &Msg) { in PrintWarning() 53 void PrintError(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg) { in PrintError() 57 void PrintError(const char *Loc, const Twine &Msg) { in PrintError() 61 void PrintError(const Twine &Msg) { in PrintError() 66 PrintError(Twine(Msg)); in PrintFatalError()
|
/external/llvm/unittests/Support/ |
D | Path.cpp | 173 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F1)); in TEST_F() 174 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath), F2)); in TEST_F() 184 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D)); in TEST_F() 188 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2))); in TEST_F() 192 ASSERT_NO_ERROR(fs::create_hard_link(Twine(TempPath), Twine(TempPath2))); in TEST_F() 194 ASSERT_NO_ERROR(fs::getUniqueID(Twine(TempPath2), D2)); in TEST_F() 222 ASSERT_NO_ERROR(sys::fs::exists(Twine(TempPath), TempFileExists)); in TEST_F() 233 ASSERT_NO_ERROR(fs::status(Twine(TempPath), A)); in TEST_F() 234 ASSERT_NO_ERROR(fs::status(Twine(TempPath2), B)); in TEST_F() 240 ASSERT_NO_ERROR(fs::remove(Twine(TempPath2), TempFileExists)); in TEST_F() [all …]
|
D | FileOutputBufferTest.cpp | 52 ASSERT_NO_ERROR(fs::has_magic(Twine(File1), Twine("AABBCCDDEEFFGGHHIIJJ"), in TEST() 57 ASSERT_NO_ERROR(fs::file_size(Twine(File1), File1Size)); in TEST() 72 ASSERT_NO_ERROR(fs::exists(Twine(File2), Exists)); in TEST() 90 ASSERT_NO_ERROR(fs::has_magic(Twine(File3), Twine("AABBCCDDEEFFGGHHIIJJ"), in TEST() 95 ASSERT_NO_ERROR(fs::file_size(Twine(File3), File3Size)); in TEST() 112 ASSERT_NO_ERROR(fs::status(Twine(File4), Status)); in TEST()
|
/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);
|
/external/clang/lib/Frontend/ |
D | InitPreprocessor.cpp | 57 Builder.append(Twine("#include \"") + in AddImplicitInclude() 64 Builder.append(Twine("#__include_macros \"") + in AddImplicitIncludeMacros() 149 Builder.defineMacro(DefPrefix + "DENORM_MIN__", Twine(DenormMin)+Ext); in DefineFloatMacros() 151 Builder.defineMacro(DefPrefix + "DIG__", Twine(Digits)); in DefineFloatMacros() 152 Builder.defineMacro(DefPrefix + "EPSILON__", Twine(Epsilon)+Ext); in DefineFloatMacros() 155 Builder.defineMacro(DefPrefix + "MANT_DIG__", Twine(MantissaDigits)); in DefineFloatMacros() 157 Builder.defineMacro(DefPrefix + "MAX_10_EXP__", Twine(Max10Exp)); in DefineFloatMacros() 158 Builder.defineMacro(DefPrefix + "MAX_EXP__", Twine(MaxExp)); in DefineFloatMacros() 159 Builder.defineMacro(DefPrefix + "MAX__", Twine(Max)+Ext); in DefineFloatMacros() 161 Builder.defineMacro(DefPrefix + "MIN_10_EXP__","("+Twine(Min10Exp)+")"); in DefineFloatMacros() [all …]
|
/external/clang/include/clang/Basic/ |
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/llvm/lib/Target/XCore/ |
D | XCoreAsmPrinter.cpp | 89 Twine(Sym->getName() + StringRef(".globound"))); in emitArrayBound() 92 OutStreamer.EmitRawText("\t.set\t" + Twine(Sym->getName()) + in emitArrayBound() 93 ".globound," + Twine(ATy->getNumElements())); in emitArrayBound() 97 OutStreamer.EmitRawText(MAI->getWeakDefDirective() +Twine(Sym->getName())+ in emitArrayBound() 118 OutStreamer.EmitRawText("\t.cc_top " + Twine(GVSym->getName()) + ".data," + in EmitGlobalVariable() 155 OutStreamer.EmitRawText("\t.size " + Twine(GVSym->getName()) + "," + in EmitGlobalVariable() 156 Twine(Size)); in EmitGlobalVariable() 167 OutStreamer.EmitRawText("\t.cc_bottom " + Twine(GVSym->getName()) + ".data"); in EmitGlobalVariable() 178 OutStreamer.EmitRawText("\t.cc_bottom " + Twine(CurrentFnSym->getName()) + in EmitFunctionBodyEnd() 184 OutStreamer.EmitRawText("\t.cc_top " + Twine(CurrentFnSym->getName()) + in EmitFunctionEntryLabel()
|
/external/clang/test/CodeGenCXX/ |
D | constructor-convert.cpp | 4 class Twine { class 6 Twine(const char *Str) { } in Twine() function in Twine 9 static void error(const Twine &Message) {} in error()
|
/external/llvm/include/llvm/MC/MCParser/ |
D | MCAsmParserExtension.h | 18 class Twine; variable 59 bool Warning(SMLoc L, const Twine &Msg) { in Warning() 62 bool Error(SMLoc L, const Twine &Msg) { in Error() 65 bool TokError(const Twine &Msg) { in TokError()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | AsmPrinterInlineAsm.cpp | 187 Twine(AsmStr) + "'"); in EmitMSInlineAsmStr() 192 Twine(AsmStr) + "'"); in EmitMSInlineAsmStr() 281 Twine(AsmStr) + "'"); in EmitGCCInlineAsmStr() 316 " string: '" + Twine(AsmStr) + "'"); in EmitGCCInlineAsmStr() 331 Twine(AsmStr) + "'"); in EmitGCCInlineAsmStr() 343 Twine(AsmStr) + "'"); in EmitGCCInlineAsmStr() 351 Twine(AsmStr) + "'"); in EmitGCCInlineAsmStr() 357 Twine(AsmStr) + "'"); in EmitGCCInlineAsmStr() 433 OutStreamer.EmitRawText(Twine("\t")+MAI->getCommentString()+ in EmitInlineAsm() 435 OutStreamer.EmitRawText(Twine("\t")+MAI->getCommentString()+ in EmitInlineAsm() [all …]
|
D | DwarfException.cpp | 461 Asm->OutContext.GetOrCreateSymbol(Twine("GCC_except_table")+ in EmitExceptionTable() 462 Twine(Asm->getFunctionNumber())); in EmitExceptionTable() 532 Asm->OutStreamer.AddComment(">> Call Site " + Twine(idx) + " <<"); in EmitExceptionTable() 533 Asm->OutStreamer.AddComment(" On exception at call site "+Twine(idx)); in EmitExceptionTable() 545 Twine((S.Action - 1) / 2 + 1)); in EmitExceptionTable() 597 Asm->OutStreamer.AddComment(">> Call Site " + Twine(++Entry) + " <<"); in EmitExceptionTable() 600 Asm->OutStreamer.AddComment(Twine(" Call between ") + in EmitExceptionTable() 613 Asm->OutStreamer.AddComment(Twine(" jumps to ") + in EmitExceptionTable() 626 Twine((S.Action - 1) / 2 + 1)); in EmitExceptionTable() 640 Asm->OutStreamer.AddComment(">> Action Record " + Twine(++Entry) + " <<"); in EmitExceptionTable() [all …]
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 181 unsigned NumReservedValues, const Twine &NameStr, in LandingPadInst() 188 unsigned NumReservedValues, const Twine &NameStr, in LandingPadInst() 211 const Twine &NameStr, in Create() 219 const Twine &NameStr, in Create() 226 const Twine &NameStr) { in init() 266 void CallInst::init(Value *Func, ArrayRef<Value *> Args, const Twine &NameStr) { in init() 288 void CallInst::init(Value *Func, const Twine &NameStr) { in init() 302 CallInst::CallInst(Value *Func, const Twine &Name, in CallInst() 312 CallInst::CallInst(Value *Func, const Twine &Name, in CallInst() 375 const Twine &Name) { in createMalloc() [all …]
|