1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/include/llvm/Support
Francis Visoiu Mistrih 061acf9c7f [YAML] Add support for non-printable characters
LLVM IR function names which disable mangling start with '\01'
(https://www.llvm.org/docs/LangRef.html#identifiers).

When an identifier like "\01@abc@" gets dumped to MIR, it is quoted, but
only with single quotes.

http://www.yaml.org/spec/1.2/spec.html#id2770814:

"The allowed character range explicitly excludes the C0 control block
allowed), the surrogate block #xD800-#xDFFF, #xFFFE, and #xFFFF."

http://www.yaml.org/spec/1.2/spec.html#id2776092:

"All non-printable characters must be escaped.
[...]
Note that escape sequences are only interpreted in double-quoted scalars."

This patch adds support for printing escaped non-printable characters
between double quotes if needed.

Should also fix PR31743.

Differential Revision: https://reviews.llvm.org/D41290

llvm-svn: 320996
2017-12-18 17:38:03 +00:00
..
Solaris/sys [Solaris] replace Solaris.h hack with a set of better hacks 2017-06-22 13:18:46 +00:00
AArch64TargetParser.def [AArch64] Add basic support for Qualcomm's Saphira CPU. 2017-09-25 14:05:00 +00:00
AlignOf.h Revert r291503, "Lift the 10-type limit for AlignedCharArrayUnion", and followings. 2017-01-13 01:13:10 +00:00
Allocator.h Use a BumpPtrAllocator for Loop objects 2017-09-28 02:45:42 +00:00
AMDGPUKernelDescriptor.h AMDGPU: Rename MaxFlatWorkgroupSize to MaxFlatWorkGroupSize for consistency 2017-10-18 17:31:09 +00:00
AMDGPUMetadata.h AMDGPU: Add num spilled s/vgprs to metadata 2017-11-28 17:51:08 +00:00
ARMAttributeParser.h [ARM] Create objdump subtarget from build attrs 2017-01-18 13:52:12 +00:00
ARMBuildAttributes.h [ARM] Create objdump subtarget from build attrs 2017-01-18 13:52:12 +00:00
ARMEHABI.h
ARMTargetParser.def [ARM][AArch64] Cortex-A75 and Cortex-A55 support 2017-08-21 08:43:06 +00:00
ARMWinEH.h
ArrayRecycler.h [Support] Make asan poisoning for recyclers more aggressive by also poisoning the 'next' pointer. 2017-04-20 20:28:18 +00:00
Atomic.h Undef MemoryFence, which is defined to _mm_mfence by winnt.h 2017-02-14 01:38:14 +00:00
AtomicOrdering.h AtomicOrdering.h: Don't mark header functions as file local 2017-10-24 21:29:18 +00:00
BinaryByteStream.h [CodeView] Refactor / Rewrite TypeSerializer and TypeTableBuilder. 2017-11-28 18:33:17 +00:00
BinaryItemStream.h [BinaryStream] Support growable streams. 2017-11-27 18:48:37 +00:00
BinaryStream.h [BinaryStream] Support growable streams. 2017-11-27 18:48:37 +00:00
BinaryStreamArray.h Resubmit "[llvm-pdbutil] rewrite the "raw" output style." 2017-06-15 22:24:24 +00:00
BinaryStreamError.h [Support] Move Stream library from MSF -> Support. 2017-03-02 20:52:51 +00:00
BinaryStreamReader.h Add a BinarySubstreamRef, and a method to read one. 2017-06-23 16:38:40 +00:00
BinaryStreamRef.h [BinaryStream] Support growable streams. 2017-11-27 18:48:37 +00:00
BinaryStreamWriter.h [BinaryStream] Reduce the amount of boiler plate needed to use. 2017-05-17 20:23:31 +00:00
BlockFrequency.h [ConstHoisting] choose to hoist when frequency is the same. 2017-07-06 22:32:27 +00:00
BranchProbability.h [BPI] Add multiplication by scalar operators to BranchProbability 2017-04-21 03:14:30 +00:00
CachePruning.h CachePruning: Allow limiting the number of files in the cache directory. 2017-11-22 18:27:31 +00:00
Capacity.h
Casting.h [Support] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC). 2017-06-09 21:41:54 +00:00
CBindingWrapping.h Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Chrono.h Support formatv of TimePoint with strftime-style formats. 2017-10-24 08:30:19 +00:00
circular_raw_ostream.h
CMakeLists.txt Move the srpm, ocaml_make_directory, llvm_vcsrevision_h, and llvm-headers projects into the Misc folder on IDEs like Visual Studio rather than leave them in the root directory. NFC. 2017-11-04 19:59:14 +00:00
CodeGen.h Delete Default and JITDefault code models 2017-08-03 02:16:21 +00:00
CodeGenCoverage.h Fix use of config.h in public headers. 2017-11-18 22:42:26 +00:00
CodeGenCWrappers.h Prune linefeed at eof. 2017-08-03 11:36:44 +00:00
COM.h
CommandLine.h typo 2017-09-20 23:29:47 +00:00
Compiler.h Reverting r315590; it did not include changes for llvm-tblgen, which is causing link errors for several people. 2017-10-15 14:32:27 +00:00
Compression.h Recommit r292214 "[Support/Compression] - Change zlib API to return Error instead of custom status" 2017-01-17 15:45:07 +00:00
ConvertUTF.h ConvertUTF.h: Don't mark header functions as file local 2017-10-24 21:29:18 +00:00
CrashRecoveryContext.h
DataExtractor.h [DWARF] Support for DW_FORM_strx3 and complete support for DW_FORM_strx{1,2,4} 2017-06-21 19:37:44 +00:00
DataTypes.h.cmake Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Debug.h Make VerifyDomInfo and VerifyLoopInfo global variables 2017-01-24 05:52:07 +00:00
DebugCounter.h [DebugCounter] Move the semicolon out of the DEBUG_COUNTER macro and require it to be placed at the end of each use. 2017-08-10 17:48:11 +00:00
DOTGraphTraits.h
DynamicLibrary.h Allow clients to specify search order of DynamicLibraries. 2017-07-12 21:22:45 +00:00
Endian.h [Support] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC). 2017-06-09 21:41:54 +00:00
EndianStream.h
Errc.h
Errno.h Recommit "[Support] Add RetryAfterSignal helper function" 2017-06-29 13:15:31 +00:00
Error.h [Support] Make llvm::Error and Expected faster. 2017-11-09 19:31:52 +00:00
ErrorHandling.h [Support] - Add bad alloc error handler for handling allocation malfunctions 2017-07-11 16:45:30 +00:00
ErrorOr.h [Support] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC). 2017-06-09 21:41:54 +00:00
FileOutputBuffer.h Convert FileOutputBuffer::commit to Error. 2017-11-08 01:50:29 +00:00
FileSystem.h Use FILE_FLAG_DELETE_ON_CLOSE for TempFile on windows. 2017-11-28 01:41:22 +00:00
FileUtilities.h
Format.h Support: Add llvm::center_justify. 2017-07-13 16:11:08 +00:00
FormatAdapters.h [formatv] Add the ability to specify a fill character when aligning. 2017-06-15 03:06:38 +00:00
FormatCommon.h [formatv] Add the ability to specify a fill character when aligning. 2017-06-15 03:06:38 +00:00
FormatProviders.h Revert "[llvm-pdbutil] rewrite the "raw" output style." 2017-06-15 20:55:51 +00:00
FormattedStream.h
FormatVariadic.h Support formatting formatv_objects. 2017-10-23 15:40:44 +00:00
FormatVariadicDetails.h Support formatting formatv_objects. 2017-10-23 15:40:44 +00:00
GenericDomTree.h [Dominators] Take fast path when applying <=1 updates 2017-10-04 17:32:55 +00:00
GenericDomTreeConstruction.h [Dominators] Remove the NCA check 2017-10-14 03:00:56 +00:00
GlobPattern.h Move GlobPattern class from LLD to llvm/Support. 2016-12-20 23:09:09 +00:00
GraphWriter.h [ProfileData, Support] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC). 2017-06-21 23:19:47 +00:00
Host.h Don't #include MemoryBuffer.h from Host.h. 2017-11-17 01:00:35 +00:00
JamCRC.h
KnownBits.h [KnownBits][ValueTracking] Move the math for calculating known bits for add/sub into a static method in KnownBits object 2017-08-08 16:29:35 +00:00
LEB128.h Change encodeU/SLEB128 to pad to certain number of bytes 2017-09-15 20:34:47 +00:00
LICENSE.TXT
LineIterator.h
Locale.h
LockFileManager.h Use TempFile in the implementation of LockFileManager. 2017-11-17 20:06:41 +00:00
LowLevelTypeImpl.h [GlobalISel] Enable legalizing non-power-of-2 sized types. 2017-11-07 10:34:34 +00:00
ManagedStatic.h [ManagedStatic] Avoid putting function pointers in template args. 2017-05-29 20:56:27 +00:00
MathExtras.h [pdb/lld] Write a valid FPM. 2017-08-02 22:31:39 +00:00
MD5.h Add a function to MD5 a file's contents. 2017-03-20 23:33:18 +00:00
Memory.h [Support] Support NetBSD PaX MPROTECT in sys::Memory. 2017-11-16 23:04:44 +00:00
MemoryBuffer.h Fixed line length style issue. 2017-11-02 18:04:44 +00:00
MipsABIFlags.h
Mutex.h
MutexGuard.h
NativeFormatting.h Add newline to end of file to quiet warnings. 2016-12-25 18:41:47 +00:00
OnDiskHashTable.h Retire llvm::alignOf in favor of C++11 alignof. 2016-10-20 15:02:18 +00:00
Options.h Use StringRef in CommandLine Options handling (NFC) 2016-10-01 03:43:20 +00:00
Parallel.h [Support/Parallel] - Do not use a task group for a very small task. 2017-08-21 08:00:54 +00:00
Path.h [Support] Don't use std::iterator, it's deprecated in C++17. 2017-06-25 00:00:08 +00:00
PluginLoader.h
PointerLikeTypeTraits.h [ADT] Enable reverse iteration for DenseMap 2017-08-24 23:02:48 +00:00
PrettyStackTrace.h Prepare PrettyStackTrace for LLDB adoption 2016-12-14 19:09:43 +00:00
Printable.h Printable.h: Don't mark header functions as file local 2017-10-24 21:29:19 +00:00
Process.h [llvm-rc] Use proper search algorithm for finding resources. 2017-10-11 20:12:09 +00:00
Program.h Remove unneeded forward declaration. NFC 2017-09-15 11:45:57 +00:00
RandomNumberGenerator.h [RandomNumberGenerator] Remove MSVC 2013 compatibility hack. 2016-11-06 20:55:40 +00:00
raw_os_ostream.h
raw_ostream.h [raw_fd_ostream] report actual error in error messages 2017-10-24 01:26:22 +00:00
raw_sha1_ostream.h Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Recycler.h [Support] Make asan poisoning for recyclers more aggressive by also poisoning the 'next' pointer. 2017-04-20 20:28:18 +00:00
RecyclingAllocator.h Retire llvm::alignOf in favor of C++11 alignof. 2016-10-20 15:02:18 +00:00
Regex.h Add const to a const method. NFC 2017-04-18 01:04:05 +00:00
Registry.h Add missing #include from r283039. Found by modules build. 2016-10-05 22:40:54 +00:00
ReverseIteration.h [ADT] Enable reverse iteration for DenseMap 2017-08-24 23:02:48 +00:00
RWMutex.h RWMutex.h: Use llvm-config.h instead of config.h in installed headers. 2017-02-16 08:22:08 +00:00
SaveAndRestore.h
ScaledNumber.h Make more constructors constexpr or use =default. 2017-10-08 15:59:35 +00:00
ScopedPrinter.h [llvm-pdbdump] Allow printing only a portion of a stream. 2017-04-28 00:43:38 +00:00
SHA1.h Add convenient functions to compute hashes of byte vectors. 2016-11-23 00:46:09 +00:00
Signals.h
SMLoc.h [Support] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-15 22:17:02 +00:00
SourceMgr.h Add DK_Remark to SMDiagnostic 2017-10-12 23:56:02 +00:00
SpecialCaseList.h Extend SpecialCaseList to allow users to blame matches on entries in the file. 2017-11-07 21:16:46 +00:00
StringPool.h [Support] Fix some Clang-tidy modernize-use-using and Include What You Use warnings; other minor fixes (NFC). 2017-06-09 21:41:54 +00:00
StringSaver.h Make StringSaver::save less ambiguous. 2017-04-27 03:45:33 +00:00
SwapByteOrder.h Add missing includes on Windows. 2016-12-21 18:50:52 +00:00
SystemUtils.h
TargetParser.h [X86] Move the information about the feature bits used by compiler-rt and shared by Host.cpp to a .def file and TargetParser.h so clang can make use of it. 2017-11-21 23:36:42 +00:00
TargetRegistry.h [arc] Update TargetInfo to include the new backend name argument 2017-11-16 19:10:26 +00:00
TargetSelect.h
TarWriter.h [Support/TarWriter] - Don't allow TarWriter to add the same file more than once. 2017-12-05 10:09:59 +00:00
thread.h [Windows] Remove the #include <eh.h> hack. 2017-03-03 20:21:59 +00:00
Threading.h Bring r314809 back. 2017-10-04 20:27:01 +00:00
ThreadLocal.h
ThreadPool.h Bring r314809 back. 2017-10-04 20:27:01 +00:00
Timer.h [Support] Make printAllJSONValues public, for custom output. 2017-04-03 18:04:15 +00:00
ToolOutputFile.h [Support] Rename tool_output_file to ToolOutputFile, NFC 2017-09-23 01:03:17 +00:00
TrailingObjects.h Workaround MSVC bug when using TrailingObjects from a template. 2017-02-28 18:05:41 +00:00
TrigramIndex.h Use trigrams to speed up SpecialCaseList. 2016-12-01 02:54:54 +00:00
type_traits.h Revert "Fix isPodLike for MSVC and use it in TypeHashing." 2017-12-14 19:59:10 +00:00
TypeName.h
Unicode.h
UnicodeCharRanges.h Remove unneeded use of #undef DEBUG_TYPE. NFC 2017-07-12 20:49:21 +00:00
UniqueLock.h [Support] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). 2017-02-15 22:17:02 +00:00
Valgrind.h
Watchdog.h
Win64EH.h
WindowsError.h
X86TargetParser.def [X86] Move the information about the feature bits used by compiler-rt and shared by Host.cpp to a .def file and TargetParser.h so clang can make use of it. 2017-11-21 23:36:42 +00:00
xxhash.h Revert r301487: Replace HashString algorithm with xxHash64 2017-04-26 23:15:10 +00:00
YAMLParser.h [YAMLParser] Fix unused variable warning. 2017-11-23 21:07:11 +00:00
YAMLTraits.h [YAML] Add support for non-printable characters 2017-12-18 17:38:03 +00:00