/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | Twine.cpp | 1 //===-- Twine.cpp - Fast Temporary String Concatenation -------------------===// 9 #include "llvm/ADT/Twine.h" 17 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() 59 void Twine::printOneChild(raw_ostream &OS, Child Ptr, in printOneChild() 62 case Twine::NullKind: break; in printOneChild() 63 case Twine::EmptyKind: break; in printOneChild() 64 case Twine::TwineKind: in printOneChild() 67 case Twine in printOneChild() [all...] |
H A D | Path.cpp | 171 createUniqueEntity(const Twine &Model, int &ResultFD, in createUniqueEntity() 186 EC = sys::fs::openFileForReadWrite(Twine(ResultPath.begin()), ResultFD, in createUniqueEntity() 419 void append(SmallVectorImpl<char> &path, Style style, const Twine &a, in append() 420 const Twine &b, const Twine &c, const Twine &d) { in append() 457 void append(SmallVectorImpl<char> &path, const Twine &a, const Twine &b, in append() 458 const Twine &c, const Twine &d) { in append() 481 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension, in replace_extension() 536 (Twine(NewPrefix) + RelPath).toVector(NewPath); in replace_path_prefix() 541 void native(const Twine &path, SmallVectorImpl<char> &result, Style style) { in native() 616 bool has_root_name(const Twine &path, Style style) { in has_root_name() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | Twine.h | 1 //===- Twine.h - Fast Temporary String Concatenation ------------*- C++ -*-===// 25 /// Twine - A lightweight data structure for efficiently representing the 28 /// A Twine is a kind of rope, it represents a concatenated string using a 30 /// Twine can be efficiently rendered into a buffer when its result is used, 32 /// results -- particularly in cases when the Twine result is never 37 /// A Twine is not intended for use directly and should not be stored, its 49 /// Given the nature of a Twine, it is not possible for the Twine's 51 /// represented inside the returned value. For this reason a Twine object 53 /// concatenation. We also have nullary Twine object 171 explicit Twine(NodeKind Kind) : LHSKind(Kind) { Twine() function 176 explicit Twine(const Twine &LHS, const Twine &RHS) Twine() function 184 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) Twine() function 258 /*implicit*/ Twine() { Twine() function 269 /*implicit*/ Twine(const char *Str) { Twine() function 283 /*implicit*/ Twine(const std::string &Str) : LHSKind(StdStringKind) { Twine() function 292 /*implicit*/ Twine(const std::string_view &Str) Twine() function 300 /*implicit*/ Twine(const StringRef &Str) : LHSKind(PtrAndLengthKind) { Twine() function 307 /*implicit*/ Twine(const SmallVectorImpl<char> &Str) Twine() function 315 /*implicit*/ Twine(const formatv_object_base &Fmt) Twine() function 322 explicit Twine(char Val) : LHSKind(CharKind) { Twine() function 327 explicit Twine(signed char Val) : LHSKind(CharKind) { Twine() function 332 explicit Twine(unsigned char Val) : LHSKind(CharKind) { Twine() function 337 explicit Twine(unsigned Val) : LHSKind(DecUIKind) { Twine() function 342 explicit Twine(int Val) : LHSKind(DecIKind) { Twine() function 347 explicit Twine(const unsigned long &Val) : LHSKind(DecULKind) { Twine() function 352 explicit Twine(const long &Val) : LHSKind(DecLKind) { Twine() function 357 explicit Twine(const unsigned long long &Val) : LHSKind(DecULLKind) { Twine() function 362 explicit Twine(const long long &Val) : LHSKind(DecLLKind) { Twine() function 372 /*implicit*/ Twine(const char *LHS, const StringRef &RHS) Twine() function 381 /*implicit*/ Twine(const StringRef &LHS, const char *RHS) Twine() function [all...] |
/freebsd/contrib/llvm-project/llvm/include/llvm/TableGen/ |
H A D | Error.h | 22 void PrintNote(const Twine &Msg); 23 void PrintNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg); 25 [[noreturn]] void PrintFatalNote(const Twine &Msg); 26 [[noreturn]] void PrintFatalNote(ArrayRef<SMLoc> ErrorLoc, const Twine &Msg); 27 [[noreturn]] void PrintFatalNote(const Record *Rec, const Twine &Msg); 28 [[noreturn]] void PrintFatalNote(const RecordVal *RecVal, const Twine &Msg); 30 void PrintWarning(const Twine &Msg); 31 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine &Msg); 32 void PrintWarning(const char *Loc, const Twine &Msg); 34 void PrintError(const Twine [all...] |
/freebsd/contrib/llvm-project/llvm/lib/TableGen/ |
H A D | Error.cpp | 14 #include "llvm/ADT/Twine.h" 28 const Twine &Msg) { in PrintMessage() 45 void PrintNote(const Twine &Msg) { in PrintNote() 49 void PrintNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg) { in PrintNote() 55 void PrintFatalNote(const Twine &Msg) { in PrintFatalNote() 62 void PrintFatalNote(ArrayRef<SMLoc> NoteLoc, const Twine &Msg) { in PrintFatalNote() 71 void PrintFatalNote(const Record *Rec, const Twine &Msg) { in PrintFatalNote() 80 void PrintFatalNote(const RecordVal *RecVal, const Twine &Msg) { in PrintFatalNote() 89 void PrintWarning(const Twine &Msg) { WithColor::warning() << Msg << "\n"; } in PrintWarning() 91 void PrintWarning(ArrayRef<SMLoc> WarningLoc, const Twine [all...] |
/freebsd/contrib/llvm-project/clang/lib/Basic/Targets/ |
H A D | Mips.cpp | 126 Builder.defineMacro("__mips_hard_float", Twine(1)); in getTargetDefines() 129 Builder.defineMacro("__mips_soft_float", Twine(1)); in getTargetDefines() 134 Builder.defineMacro("__mips_single_float", Twine(1)); in getTargetDefines() 138 Builder.defineMacro("__mips_fpr", Twine(0)); in getTargetDefines() 141 Builder.defineMacro("__mips_fpr", Twine(32)); in getTargetDefines() 144 Builder.defineMacro("__mips_fpr", Twine(64)); in getTargetDefines() 149 Builder.defineMacro("_MIPS_FPSET", Twine(32)); in getTargetDefines() 151 Builder.defineMacro("_MIPS_FPSET", Twine(16)); in getTargetDefines() 153 Builder.defineMacro("_MIPS_SPFPSET", Twine(16)); in getTargetDefines() 155 Builder.defineMacro("_MIPS_SPFPSET", Twine(32)); in getTargetDefines() [all …]
|
H A D | LoongArch.cpp | 190 Builder.defineMacro("__loongarch_grlen", Twine(GRLen)); in getTargetDefines() 210 Twine('"') + "la64v1.1" + Twine('"')); in getTargetDefines() 213 Twine('"') + "la64v1.0" + Twine('"')); in getTargetDefines() 216 Twine('"') + ArchName + Twine('"')); in getTargetDefines() 219 Builder.defineMacro("__loongarch_arch", Twine('"') + ArchName + Twine('"')); in getTargetDefines() 226 Builder.defineMacro("__loongarch_tune", Twine('"') + TuneCPU + Twine('"')); in getTargetDefines() 230 Builder.defineMacro("__loongarch_sx", Twine(1)); in getTargetDefines() 231 Builder.defineMacro("__loongarch_asx", Twine(1)); in getTargetDefines() 234 Builder.defineMacro("__loongarch_sx", Twine(1)); in getTargetDefines() 237 Builder.defineMacro("__loongarch_frecipe", Twine(1)); in getTargetDefines()
|
H A D | AMDGPU.cpp | 300 Builder.defineMacro(Twine("__") + Twine(CanonName) + Twine("__")); in getTargetDefines() 306 Builder.defineMacro(Twine("__") + Twine(CanonFamilyName.upper()) + in getTargetDefines() 307 Twine("__")); in getTargetDefines() 309 Twine("\"") + Twine(CanonName) + Twine("\"")); in getTargetDefines() 311 Twine("\"") + Twine(*getTargetID()) + Twine("\"")); in getTargetDefines() 317 Builder.defineMacro(Twine("__amdgcn_feature_") + Twine(NewF) + in getTargetDefines() 318 Twine("__"), in getTargetDefines() 340 Builder.defineMacro("__AMDGCN_WAVEFRONT_SIZE__", Twine(WavefrontSize)); in getTargetDefines() 342 Builder.defineMacro("__AMDGCN_WAVEFRONT_SIZE", Twine(WavefrontSize)); in getTargetDefines() 343 Builder.defineMacro("__AMDGCN_CUMODE__", Twine(CUMode)); in getTargetDefines()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | FileSystem.h | 281 void make_absolute(const Twine ¤t_directory, SmallVectorImpl<char> &path); 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); 334 std::error_code create_hard_link(const Twine &to, const Twine &from); 343 std::error_code real_path(const Twine &path, SmallVectorImpl<char> &output, 350 void expand_tilde(const Twine &path, SmallVectorImpl<char> &output); 364 std::error_code set_current_path(const Twine &path); 372 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true); 379 std::error_code remove_directories(const Twine &path, bool IgnoreErrors = true); [all …]
|
H A D | Path.h | 169 void replace_extension(SmallVectorImpl<char> &path, const Twine &extension, 223 void append(SmallVectorImpl<char> &path, const Twine &a, 224 const Twine &b = "", 225 const Twine &c = "", 226 const Twine &d = ""); 228 void append(SmallVectorImpl<char> &path, Style style, const Twine &a, 229 const Twine &b = "", const Twine &c = "", const Twine &d = ""); 255 void native(const Twine &path, SmallVectorImpl<char> &result, 441 bool has_root_name(const Twine &path, Style style = Style::native); 449 bool has_root_directory(const Twine &path, Style style = Style::native); [all …]
|
H A D | VirtualFileSystem.h | 43 class Twine; variable 72 Status(const Twine &Name, llvm::sys::fs::UniqueID UID, 80 static Status copyWithNewName(const Status &In, const Twine &NewName); 82 const Twine &NewName); 131 getBuffer(const Twine &Name, int64_t FileSize = -1, 139 getWithPath(ErrorOr<std::unique_ptr<File>> Result, const Twine &P); 143 virtual void setPath(const Twine &Path) {} in setPath() 235 recursive_directory_iterator(FileSystem &FS, const Twine &Path, 272 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0; 276 openFileForRead(const Twine &Path) = 0; [all …]
|
H A D | MemoryBuffer.h | 98 getFile(const Twine &Filename, bool IsText = false, 106 getFileAsStream(const Twine &Filename); 112 getOpenFileSlice(sys::fs::file_t FD, const Twine &Filename, uint64_t MapSize, 126 getOpenFile(sys::fs::file_t FD, const Twine &Filename, uint64_t FileSize, 142 getMemBufferCopy(StringRef InputData, const Twine &BufferName = ""); 150 getFileOrSTDIN(const Twine &Filename, bool IsText = false, 156 getFileSlice(const Twine &Filename, uint64_t MapSize, uint64_t Offset, 203 getFile(const Twine &Filename, bool IsVolatile = false, 208 getFileSlice(const Twine &Filename, uint64_t MapSize, uint64_t Offset, 219 getNewUninitMemBuffer(size_t Size, const Twine &BufferName = "", [all …]
|
H A D | Caching.h | 42 unsigned Task, const Twine &ModuleName)>; 58 unsigned Task, StringRef Key, const Twine &ModuleName)>; 63 using AddBufferFn = std::function<void(unsigned Task, const Twine &ModuleName, 73 const Twine &CacheNameRef, const Twine &TempFilePrefixRef, 74 const Twine &CacheDirectoryPathRef, 75 AddBufferFn AddBuffer = [](size_t Task, const Twine &ModuleName,
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | MachOObjectFile.cpp | 63 static Error malformedError(const Twine &Msg) { in malformedError() 196 return malformedError("load command " + Twine(LoadCommandIndex) + in getLoadCommandInfo() 199 return malformedError("load command " + Twine(LoadCommandIndex) + in getLoadCommandInfo() 225 return malformedError("load command " + Twine(LoadCommandIndex + 1) + in getNextLoadCommandInfo() 263 return malformedError(Twine(Name) + " at offset " + Twine(Offset) + in checkOverlappingElement() 264 " with a size of " + Twine(Size) + ", overlaps " + in checkOverlappingElement() 265 E.Name + " at offset " + Twine(E.Offset) + " with " in checkOverlappingElement() 266 "a size of " + Twine(E.Size)); in checkOverlappingElement() 292 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand() 300 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand() [all …]
|
H A D | MachOUniversal.cpp | 26 malformedError(Twine Msg) { in malformedError() 163 Twine(Magic == MachO::FAT_MAGIC ? "" : "_64") + in MachOUniversalBinary() 173 Twine(A.getCPUType()) + ") cpusubtype (" + in MachOUniversalBinary() 174 Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) + in MachOUniversalBinary() 180 Err = malformedError("align (2^" + Twine(A.getAlign()) + in MachOUniversalBinary() 181 ") too large for cputype (" + Twine(A.getCPUType()) + in MachOUniversalBinary() 183 Twine(A.getCPUSubType() & ~MachO::CPU_SUBTYPE_MASK) + in MachOUniversalBinary() 184 ") (maximum 2^" + Twine(MaxSectionAlignment) + ")"); in MachOUniversalBinary() 188 Err = malformedError("offset: " + Twine(A.getOffset()) + in MachOUniversalBinary() 189 " for cputype (" + Twine(A.getCPUType()) + ") cpusubtype (" + in MachOUniversalBinary() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | IRBuilder.h | 64 virtual void InsertHelper(Instruction *I, const Twine &Name, in InsertHelper() 83 void InsertHelper(Instruction *I, const Twine &Name, in InsertHelper() 142 InstTy *Insert(InstTy *I, const Twine &Name = "") const { 149 Constant *Insert(Constant *C, const Twine& = "") const { 153 Value *Insert(Value *V, const Twine &Name = "") const { 453 GlobalVariable *CreateGlobalString(StringRef Str, const Twine &Name = "", 630 Function *MallocF = nullptr, const Twine &Name = ""); 639 const Twine &Name = ""); 820 Value *PassThru = nullptr, const Twine &Name = ""); 829 const Twine &Name = ""); [all …]
|
/freebsd/contrib/llvm-project/lld/include/lld/Common/ |
H A D | ErrorHandler.h | 110 void error(const Twine &msg); 111 void error(const Twine &msg, ErrorTag tag, ArrayRef<StringRef> args); 112 [[noreturn]] void fatal(const Twine &msg); 113 void log(const Twine &msg); 114 void message(const Twine &msg, llvm::raw_ostream &s); 115 void warn(const Twine &msg); 126 std::string getLocation(const Twine &msg); 128 const Twine &msg); 147 void error(const Twine &msg); 148 void error(const Twine &msg, ErrorTag tag, ArrayRef<StringRef> args); [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/CodeView/ |
H A D | CodeViewRecordIO.h | 36 virtual void AddComment(const Twine &T) = 0; 37 virtual void AddRawComment(const Twine &T) = 0; 67 Error mapInteger(TypeIndex &TypeInd, const Twine &Comment = ""); 100 template <typename T> Error mapInteger(T &Value, const Twine &Comment = "") { 114 template <typename T> Error mapEnum(T &Value, const Twine &Comment = "") { 133 Error mapEncodedInteger(int64_t &Value, const Twine &Comment = ""); 134 Error mapEncodedInteger(uint64_t &Value, const Twine &Comment = ""); 135 Error mapEncodedInteger(APSInt &Value, const Twine &Comment = ""); 136 Error mapStringZ(StringRef &Value, const Twine &Comment = ""); 137 Error mapGuid(GUID &Guid, const Twine &Comment = ""); [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | InitPreprocessor.cpp | 57 Builder.defineMacro(MacroName, Twine(MacroBody) + "\\\n"); in DefineBuiltinMacro() 71 Builder.append(Twine("#include \"") + File + "\""); in AddImplicitInclude() 75 Builder.append(Twine("#__include_macros \"") + File + "\""); in AddImplicitIncludeMacros() 150 Builder.defineMacro(DefPrefix + "DENORM_MIN__", Twine(DenormMin)+Ext); in DefineFloatMacros() 151 Builder.defineMacro(DefPrefix + "NORM_MAX__", Twine(NormMax)+Ext); in DefineFloatMacros() 153 Builder.defineMacro(DefPrefix + "DIG__", Twine(Digits)); in DefineFloatMacros() 154 Builder.defineMacro(DefPrefix + "DECIMAL_DIG__", Twine(DecimalDigits)); in DefineFloatMacros() 155 Builder.defineMacro(DefPrefix + "EPSILON__", Twine(Epsilon)+Ext); in DefineFloatMacros() 158 Builder.defineMacro(DefPrefix + "MANT_DIG__", Twine(MantissaDigits)); in DefineFloatMacros() 160 Builder.defineMacro(DefPrefix + "MAX_10_EXP__", Twine(Max10Exp)); in DefineFloatMacros() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | LowerGlobalDtors.cpp | 179 (Priority != UINT16_MAX ? (Twine(".") + Twine(Priority)) in runImpl() 180 : Twine()) + in runImpl() 181 (AtThisPriority.size() > 1 ? Twine("$") + Twine(ThisId) in runImpl() 182 : Twine()) + in runImpl() 183 (!Associated->isNullValue() ? (Twine(".") + Associated->getName()) in runImpl() 184 : Twine()), in runImpl() 197 (Priority != UINT16_MAX ? (Twine(".") + Twine(Priority)) in runImpl() 198 : Twine()) + in runImpl() 199 (AtThisPriority.size() > 1 ? Twine("$") + Twine(ThisId) in runImpl() 200 : Twine()) + in runImpl() [all …]
|
/freebsd/contrib/llvm-project/lldb/include/lldb/Host/ |
H A D | FileSystem.h | 76 llvm::vfs::directory_iterator DirBegin(const llvm::Twine &dir, 83 llvm::ErrorOr<llvm::vfs::Status> GetStatus(const llvm::Twine &path) const; 89 llvm::sys::TimePoint<> GetModificationTime(const llvm::Twine &path) const; 95 uint64_t GetByteSize(const llvm::Twine &path) const; 104 uint32_t GetPermissions(const llvm::Twine &path) const; 106 uint32_t GetPermissions(const llvm::Twine &path, std::error_code &ec) const; 112 bool Exists(const llvm::Twine &path) const; 118 bool Readable(const llvm::Twine &path) const; 124 bool IsDirectory(const llvm::Twine &path) const; 130 bool IsLocal(const llvm::Twine &path) const; [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | ByteStreamer.h | 32 virtual void emitInt8(uint8_t Byte, const Twine &Comment = "") = 0; 33 virtual void emitSLEB128(uint64_t DWord, const Twine &Comment = "") = 0; 34 virtual void emitULEB128(uint64_t DWord, const Twine &Comment = "", 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, in emitULEB128() 74 void emitInt8(uint8_t Byte, const Twine &Comment) override { in emitInt8() 77 void emitSLEB128(uint64_t DWord, const Twine &Comment) override { in emitSLEB128() 80 void emitULEB128(uint64_t DWord, const Twine &Comment, in emitULEB128() 105 void emitInt8(uint8_t Byte, const Twine &Comment) override { in emitInt8() [all …]
|
/freebsd/contrib/llvm-project/lld/Common/ |
H A D | ErrorHandler.cpp | 27 static StringRef getSeparator(const Twine &msg) { in getSeparator() 56 void lld::error(const Twine &msg) { errorHandler().error(msg); } in error() 57 void lld::error(const Twine &msg, ErrorTag tag, ArrayRef<StringRef> args) { in error() 60 void lld::fatal(const Twine &msg) { errorHandler().fatal(msg); } in fatal() 61 void lld::log(const Twine &msg) { errorHandler().log(msg); } in log() 62 void lld::message(const Twine &msg, llvm::raw_ostream &s) { in message() 65 void lld::warn(const Twine &msg) { errorHandler().warn(msg); } in warn() 170 std::string ErrorHandler::getLocation(const Twine &msg) { in getLocation() 208 StringRef diagKind, const Twine &msg) { in reportDiagnostic() 224 void ErrorHandler::log(const Twine &msg) { in log() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | ELF.h | 115 Twine(*Size) + ")"); 149 " section with index " + Twine(SecNdx)) in describe() 158 return ("[index " + Twine(&Phdr - &Headers->front()) + "]").str(); in getPhdrIndexForError() 164 static inline Error defaultWarningHandler(const Twine &Msg) { in defaultWarningHandler() 263 using WarningHandler = llvm::function_ref<Error(const Twine &Msg)>; 378 Twine(getHeader().e_phentsize)); in program_headers() 385 Twine(getBufSize()) + ": e_phoff = 0x" + in program_headers() 386 Twine::utohexstr(getHeader().e_phoff) + in program_headers() 387 ", e_phnum = " + Twine(getHeader().e_phnum) + in program_headers() 388 ", e_phentsize = " + Twine(getHeader().e_phentsize)); in program_headers() [all …]
|
/freebsd/contrib/llvm-project/llvm/include/llvm/MC/MCParser/ |
H A D | MCAsmParserExtension.h | 19 class Twine; variable 69 bool Warning(SMLoc L, const Twine &Msg) { in Warning() 73 bool Error(SMLoc L, const Twine &Msg, SMRange Range = SMRange()) { 77 void Note(SMLoc L, const Twine &Msg) { in Note() 81 bool TokError(const Twine &Msg) { in TokError() 88 const Twine &Msg = "unexpected token") { 103 bool check(bool P, const Twine &Msg) { in check() 107 bool check(bool P, SMLoc Loc, const Twine &Msg) { in check() 111 bool addErrorSuffix(const Twine &Suffix) { in addErrorSuffix()
|