Home
last modified time | relevance | path

Searched refs:Twine (Results 1 – 25 of 858) sorted by relevance

12345678910>>...35

/openbsd/src/gnu/llvm/llvm/lib/Support/
DTwine.cpp17 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()
57 void Twine::printOneChild(raw_ostream &OS, Child Ptr, in printOneChild()
60 case Twine::NullKind: break; in printOneChild()
61 case Twine::EmptyKind: break; in printOneChild()
62 case Twine::TwineKind: in printOneChild()
65 case Twine::CStringKind: in printOneChild()
68 case Twine::StdStringKind: in printOneChild()
71 case Twine::PtrAndLengthKind: in printOneChild()
[all …]
/openbsd/src/gnu/llvm/llvm/include/llvm/ADT/
DTwine.h81 class Twine {
138 const Twine *twine;
171 explicit Twine(NodeKind Kind) : LHSKind(Kind) { in Twine() function
176 explicit Twine(const Twine &LHS, const Twine &RHS) in Twine() function
184 explicit Twine(Child LHS, NodeKind LHSKind, Child RHS, NodeKind RHSKind) in Twine() function
258 /*implicit*/ Twine() { in Twine() function
262 Twine(const Twine &) = default;
269 /*implicit*/ Twine(const char *Str) { in Twine() function
280 /*implicit*/ Twine(std::nullptr_t) = delete;
283 /*implicit*/ Twine(const std::string &Str) : LHSKind(StdStringKind) { in Twine() function
[all …]
/openbsd/src/gnu/llvm/llvm/include/llvm/TableGen/
DError.h22 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 &Msg);
[all …]
/openbsd/src/gnu/llvm/llvm/lib/TableGen/
DError.cpp28 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 &Msg) { in PrintWarning()
95 void PrintWarning(const char *Loc, const Twine &Msg) { in PrintWarning()
[all …]
/openbsd/src/gnu/llvm/llvm/lib/Object/
DMachOObjectFile.cpp63 static Error malformedError(const Twine &Msg) { in malformedError()
194 return malformedError("load command " + Twine(LoadCommandIndex) + in getLoadCommandInfo()
197 return malformedError("load command " + Twine(LoadCommandIndex) + in getLoadCommandInfo()
221 return malformedError("load command " + Twine(LoadCommandIndex + 1) + in getNextLoadCommandInfo()
258 return malformedError(Twine(Name) + " at offset " + Twine(Offset) + in checkOverlappingElement()
259 " with a size of " + Twine(Size) + ", overlaps " + in checkOverlappingElement()
260 E.Name + " at offset " + Twine(E.Offset) + " with " in checkOverlappingElement()
261 "a size of " + Twine(E.Size)); in checkOverlappingElement()
287 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand()
295 return malformedError("load command " + Twine(LoadCommandIndex) + in parseSegmentLoadCommand()
[all …]
DMachOUniversal.cpp26 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 …]
/openbsd/src/gnu/llvm/clang/lib/Basic/Targets/
DMips.cpp126 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()
154 Builder.defineMacro("__mips16", Twine(1)); in getTargetDefines()
157 Builder.defineMacro("__mips_micromips", Twine(1)); in getTargetDefines()
[all …]
/openbsd/src/gnu/llvm/llvm/include/llvm/Support/
DFileSystem.h284 void make_absolute(const Twine &current_directory, SmallVectorImpl<char> &path);
305 std::error_code create_directories(const Twine &path,
315 std::error_code create_directory(const Twine &path, bool IgnoreExisting = true,
329 std::error_code create_link(const Twine &to, const Twine &from);
337 std::error_code create_hard_link(const Twine &to, const Twine &from);
346 std::error_code real_path(const Twine &path, SmallVectorImpl<char> &output,
353 void expand_tilde(const Twine &path, SmallVectorImpl<char> &output);
367 std::error_code set_current_path(const Twine &path);
375 std::error_code remove(const Twine &path, bool IgnoreNonExisting = true);
382 std::error_code remove_directories(const Twine &path, bool IgnoreErrors = true);
[all …]
DPath.h169 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 …]
DVirtualFileSystem.h42 class Twine; variable
74 Status(const Twine &Name, llvm::sys::fs::UniqueID UID,
82 static Status copyWithNewName(const Status &In, const Twine &NewName);
84 const Twine &NewName);
133 getBuffer(const Twine &Name, int64_t FileSize = -1,
141 getWithPath(ErrorOr<std::unique_ptr<File>> Result, const Twine &P);
145 virtual void setPath(const Twine &Path) {} in setPath()
237 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 …]
DMemoryBuffer.h98 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 …]
DCaching.h42 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,
/openbsd/src/gnu/llvm/llvm/include/llvm/IR/
DIRBuilder.h65 virtual void InsertHelper(Instruction *I, const Twine &Name, in InsertHelper()
85 void InsertHelper(Instruction *I, const Twine &Name, in InsertHelper()
145 InstTy *Insert(InstTy *I, const Twine &Name = "") const {
152 Constant *Insert(Constant *C, const Twine& = "") const {
156 Value *Insert(Value *V, const Twine &Name = "") const {
442 GlobalVariable *CreateGlobalString(StringRef Str, const Twine &Name = "",
773 Value *PassThru = nullptr, const Twine &Name = "");
782 const Twine &Name = "");
791 const Twine &Name = "");
820 const Twine &Name = "");
[all …]
/openbsd/src/gnu/llvm/lld/include/lld/Common/
DErrorHandler.h110 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 …]
/openbsd/src/gnu/llvm/clang/lib/Frontend/
DInitPreprocessor.cpp57 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()
146 Builder.defineMacro(DefPrefix + "DENORM_MIN__", Twine(DenormMin)+Ext); in DefineFloatMacros()
148 Builder.defineMacro(DefPrefix + "DIG__", Twine(Digits)); in DefineFloatMacros()
149 Builder.defineMacro(DefPrefix + "DECIMAL_DIG__", Twine(DecimalDigits)); in DefineFloatMacros()
150 Builder.defineMacro(DefPrefix + "EPSILON__", Twine(Epsilon)+Ext); in DefineFloatMacros()
153 Builder.defineMacro(DefPrefix + "MANT_DIG__", Twine(MantissaDigits)); in DefineFloatMacros()
155 Builder.defineMacro(DefPrefix + "MAX_10_EXP__", Twine(Max10Exp)); in DefineFloatMacros()
156 Builder.defineMacro(DefPrefix + "MAX_EXP__", Twine(MaxExp)); in DefineFloatMacros()
[all …]
/openbsd/src/gnu/llvm/llvm/include/llvm/DebugInfo/CodeView/
DCodeViewRecordIO.h36 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 …]
/openbsd/src/gnu/llvm/lld/wasm/
DWriterUtils.h20 void debugWrite(uint64_t offset, const Twine &msg);
25 void writeUleb128(raw_ostream &os, uint64_t number, const Twine &msg);
27 void writeSleb128(raw_ostream &os, int64_t number, const Twine &msg);
30 const Twine &msg);
32 void writeStr(raw_ostream &os, StringRef string, const Twine &msg);
34 void writeU8(raw_ostream &os, uint8_t byte, const Twine &msg);
36 void writeU32(raw_ostream &os, uint32_t number, const Twine &msg);
39 const Twine &msg);
43 void writeI32Const(raw_ostream &os, int32_t number, const Twine &msg);
45 void writeI64Const(raw_ostream &os, int64_t number, const Twine &msg);
[all …]
DWriterUtils.cpp78 void debugWrite(uint64_t offset, const Twine &msg) { in debugWrite()
83 void writeUleb128(raw_ostream &os, uint64_t number, const Twine &msg) { in writeUleb128()
88 void writeSleb128(raw_ostream &os, int64_t number, const Twine &msg) { in writeSleb128()
94 const Twine &msg) { in writeBytes()
95 debugWrite(os.tell(), msg + " [data[" + Twine(count) + "]]"); in writeBytes()
99 void writeStr(raw_ostream &os, StringRef string, const Twine &msg) { in writeStr()
101 msg + " [str[" + Twine(string.size()) + "]: " + string + "]"); in writeStr()
106 void writeU8(raw_ostream &os, uint8_t byte, const Twine &msg) { in writeU8()
111 void writeU32(raw_ostream &os, uint32_t number, const Twine &msg) { in writeU32()
116 void writeU64(raw_ostream &os, uint64_t number, const Twine &msg) { in writeU64()
[all …]
/openbsd/src/gnu/llvm/llvm/lib/Transforms/Utils/
DLowerGlobalDtors.cpp167 (Priority != UINT16_MAX ? (Twine(".") + Twine(Priority)) in runImpl()
168 : Twine()) + in runImpl()
169 (AtThisPriority.size() > 1 ? Twine("$") + Twine(ThisId) in runImpl()
170 : Twine()) + in runImpl()
171 (!Associated->isNullValue() ? (Twine(".") + Associated->getName()) in runImpl()
172 : Twine()), in runImpl()
185 (Priority != UINT16_MAX ? (Twine(".") + Twine(Priority)) in runImpl()
186 : Twine()) + in runImpl()
187 (AtThisPriority.size() > 1 ? Twine("$") + Twine(ThisId) in runImpl()
188 : Twine()) + in runImpl()
[all …]
/openbsd/src/gnu/llvm/lldb/include/lldb/Host/
DFileSystem.h66 llvm::vfs::directory_iterator DirBegin(const llvm::Twine &dir,
73 llvm::ErrorOr<llvm::vfs::Status> GetStatus(const llvm::Twine &path) const;
79 llvm::sys::TimePoint<> GetModificationTime(const llvm::Twine &path) const;
85 uint64_t GetByteSize(const llvm::Twine &path) const;
94 uint32_t GetPermissions(const llvm::Twine &path) const;
96 uint32_t GetPermissions(const llvm::Twine &path, std::error_code &ec) const;
102 bool Exists(const llvm::Twine &path) const;
108 bool Readable(const llvm::Twine &path) const;
114 bool IsDirectory(const llvm::Twine &path) const;
120 bool IsLocal(const llvm::Twine &path) const;
[all …]
/openbsd/src/gnu/llvm/lldb/include/lldb/Interpreter/
DScriptedInterface.h39 error.SetErrorString(llvm::Twine(caller_name + llvm::Twine(" ERROR = ") +
40 llvm::Twine(error_msg))
49 llvm::Twine("Null StructuredData object (" + in CheckStructuredDataObject()
50 llvm::Twine(error.AsCString()) + in CheckStructuredDataObject()
51 llvm::Twine(").")) in CheckStructuredDataObject()
59 llvm::Twine("Invalid StructuredData object (" + in CheckStructuredDataObject()
60 llvm::Twine(error.AsCString()) + llvm::Twine(").")) in CheckStructuredDataObject()
/openbsd/src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/
DByteStreamer.h32 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 …]
/openbsd/src/gnu/llvm/llvm/include/llvm/Object/
DELF.h113 Twine(*Size) + ")");
147 " section with index " + Twine(SecNdx)) in describe()
156 return ("[index " + Twine(&Phdr - &Headers->front()) + "]").str(); in getPhdrIndexForError()
162 static inline Error defaultWarningHandler(const Twine &Msg) { in defaultWarningHandler()
176 using WarningHandler = llvm::function_ref<Error(const Twine &Msg)>;
286 Twine(getHeader().e_phentsize)); in program_headers()
293 Twine(getBufSize()) + ": e_phoff = 0x" + in program_headers()
294 Twine::utohexstr(getHeader().e_phoff) + in program_headers()
295 ", e_phnum = " + Twine(getHeader().e_phnum) + in program_headers()
296 ", e_phentsize = " + Twine(getHeader().e_phentsize)); in program_headers()
[all …]
/openbsd/src/gnu/llvm/lld/Common/
DErrorHandler.cpp27 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 …]
/openbsd/src/gnu/llvm/llvm/include/llvm/MC/MCParser/
DMCAsmParserExtension.h19 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()

12345678910>>...35