1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/include/llvm/Support
Duncan P. N. Exon Smith d2ffaaeb6c FileManager: Use llvm::Expected in new getFileRef API
`FileManager::getFileRef` is a modern API which we expect to convert to
over time.  We should modernize the error handling as well, using
`llvm::Expected` instead of `llvm::ErrorOr`, to help clients that care
about errors to ensure nothing is missed.

However, not all clients care.  I've also added another path for those
that don't:

- `FileEntryRef` is now copy- and move-assignable (using a pointer
  instead of a reference).
- `FileManager::getOptionalFileRef` returns an `llvm::Optional` instead
  of `llvm::Expected`.
- Added an `llvm::expectedToOptional` utility in case this is useful
  elsewhere.

https://reviews.llvm.org/D66705

llvm-svn: 369943
2019-08-26 18:29:51 +00:00
..
Solaris/sys Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AArch64TargetParser.def [AArch64] Add support for Transactional Memory Extension (TME) 2019-07-31 12:52:17 +00:00
AArch64TargetParser.h [AArch64] Add support for Transactional Memory Extension (TME) 2019-07-31 12:52:17 +00:00
Alignment.h [LLVM][Alignment] Introduce Alignment In GlobalObject 2019-08-06 09:03:21 +00:00
AlignOf.h [NFC] use C++11 in AlignOf.h, remove AlignedCharArray 2019-07-30 04:03:33 +00:00
Allocator.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AMDGPUMetadata.h [AMDGPU] Added a new metadata for multi grid sync implicit argument 2019-07-05 16:05:17 +00:00
AMDHSAKernelDescriptor.h [AMDGPU] gfx1010 wave32 metadata 2019-06-17 16:48:56 +00:00
ARMAttributeParser.h [ARM] add target arch definitions for 8.1-M and MVE 2019-05-30 12:57:04 +00:00
ARMBuildAttributes.h [ARM] add target arch definitions for 8.1-M and MVE 2019-05-30 12:57:04 +00:00
ARMEHABI.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ARMTargetParser.def [ARM][AArch64] Support for Cortex-A65 & A65AE, Neoverse E1 & N1 2019-07-25 10:59:45 +00:00
ARMTargetParser.h [AArch64][AsmParser] Remove SVE and SVE2 from ARMTargetParser 2019-07-30 07:47:48 +00:00
ARMWinEH.h [AArch64] [Windows] Fix llvm-readobj -unwind output with many epilogs. 2019-02-28 20:33:22 +00:00
ArrayRecycler.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Atomic.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
AtomicOrdering.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BinaryByteStream.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BinaryItemStream.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BinaryStream.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BinaryStreamArray.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BinaryStreamError.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BinaryStreamReader.h [Support] Add LEB128 support to BinaryStreamReader/Writer. 2019-04-17 15:38:27 +00:00
BinaryStreamRef.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BinaryStreamWriter.h [Support] Add LEB128 support to BinaryStreamReader/Writer. 2019-04-17 15:38:27 +00:00
BlockFrequency.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
BranchProbability.h [PPC] Correctly adjust branch probability in PPCReduceCRLogicals 2019-05-31 16:11:17 +00:00
BuryPointer.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CachePruning.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Capacity.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Casting.h [llvm] Add isa_and_nonnull 2019-04-05 13:59:24 +00:00
CBindingWrapping.h Fix misspelled filenames in file headers 2019-02-07 14:38:25 +00:00
CFGUpdate.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CheckedArithmetic.h [InterleavedAccessAnalysis] Fix integer overflow in insertMember. 2019-03-07 17:50:16 +00:00
Chrono.h [Chrono] Remove ATTRIBUTE_ALWAYS inline from Chrono.h. 2019-01-22 22:49:19 +00:00
circular_raw_ostream.h [circular_raw_ostream] Delegate is_displayed to contained stream 2019-08-17 14:20:41 +00:00
CMakeLists.txt [CMake] Unify scripts for generating VCS headers 2019-02-06 03:51:00 +00:00
CodeGen.h Restore comment regarding why Reloc::PIC_ can't be PIC 2019-03-18 20:04:34 +00:00
CodeGenCoverage.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
COM.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CommandLine.h Revert Recommit "[CommandLine] Remove OptionCategory and SubCommand caches from the Option class." 2019-07-11 08:54:28 +00:00
Compiler.h Allow Compiler.h to be included in C files and fix fallthrough warnings 2019-08-23 17:25:21 +00:00
Compression.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ConvertUTF.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CrashRecoveryContext.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
CRC.h Attempt to recommit r357901 2019-04-08 12:31:12 +00:00
DataExtractor.h Remove support for 32-bit offsets in utility classes (5/5) 2019-08-07 11:44:47 +00:00
DataTypes.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Debug.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DebugCounter.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DJB.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
DOTGraphTraits.h Fix misspelled filenames in file headers 2019-02-07 14:38:25 +00:00
DynamicLibrary.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Endian.h [NFC] Remove uses of LLVM_ALIGNAS 2019-07-30 16:31:06 +00:00
EndianStream.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Errc.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Errno.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Error.h FileManager: Use llvm::Expected in new getFileRef API 2019-08-26 18:29:51 +00:00
ErrorHandling.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ErrorOr.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FileCheck.h [FileCheck] Add missing includes in header 2019-08-08 13:56:59 +00:00
FileCollector.h [FileCollector] Add a VFS that records FS accesses using the FileCollector 2019-07-29 23:38:30 +00:00
FileOutputBuffer.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FileSystem.h [Support] Improve readNativeFile(Slice) interface 2019-08-22 08:13:30 +00:00
FileUtilities.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Format.h Replace llvm::integer_sequence and friends with the C++14 standard version 2019-08-15 10:56:05 +00:00
FormatAdapters.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FormatCommon.h Fix misspelled filenames in file headers 2019-02-07 14:38:25 +00:00
FormatProviders.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FormattedStream.h Revert r367649: Improve raw_ostream so that you can "write" colors using operator<< 2019-08-02 07:22:34 +00:00
FormatVariadic.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
FormatVariadicDetails.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
GenericDomTree.h [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
GenericDomTreeConstruction.h [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
GenericIteratedDominanceFrontier.h Minor cleanup. 2019-07-12 16:13:29 +00:00
GlobPattern.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
GraphWriter.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Host.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
InitLLVM.h [Support] Move the static initializer install_out_memory_new_handler to InitLLVM 2019-07-12 16:23:25 +00:00
ItaniumManglingCanonicalizer.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
JamCRC.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
JSON.h [Bitcode] Move Bitstream to a separate library 2019-07-03 22:40:07 +00:00
KnownBits.h [KnownBits] Add computeForAddCarry() 2019-04-12 18:18:08 +00:00
LEB128.h Fix some undefined behavior (excessive shift of signed value) in r364253 detected by ubsan 2019-06-26 19:18:50 +00:00
LICENSE.TXT
LineIterator.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Locale.h
LockFileManager.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
LowLevelTypeImpl.h Add a getSizeInBits() accessor to MachineMemOperand. NFC. 2019-04-17 22:21:05 +00:00
MachineValueType.h [MVT] Add MVT equivalent to EVT::getHalfNumVectorElementsVT() helper. NFCI. 2019-08-22 11:14:30 +00:00
ManagedStatic.h Try once more to ensure constant initializaton of ManagedStatics 2019-04-24 20:13:23 +00:00
MathExtras.h [LLVM][NFC] Removing unused functions 2019-08-23 23:19:25 +00:00
MD5.h Remove \brief commands from doxygen comments. 2018-05-01 15:54:18 +00:00
MemAlloc.h Improve zero-size allocation with safe_malloc, etc. 2019-06-25 15:08:28 +00:00
Memory.h [Support] Renamed member 'Size' to 'AllocatedSize' in MemoryBlock and OwningMemoryBlock. 2019-05-20 20:53:05 +00:00
MemoryBuffer.h [Support] Move llvm::MemoryBuffer to sys::fs::file_t 2019-07-10 00:34:13 +00:00
MipsABIFlags.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MSVCErrorWorkarounds.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Mutex.h [Support] Base SmartMutex on std::recursive_mutex 2019-08-07 11:59:57 +00:00
NativeFormatting.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
OnDiskHashTable.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Options.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Parallel.h Parallel: only allow the first TaskGroup to run tasks parallelly 2019-04-25 11:33:30 +00:00
Path.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PluginLoader.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PointerLikeTypeTraits.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
PrettyStackTrace.h Support for dumping current PrettyStackTrace on SIGINFO (Ctrl-T) 2019-07-12 16:05:09 +00:00
Printable.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Process.h [Support] Add error handling to sys::Process::getPageSize(). 2019-05-08 02:11:07 +00:00
Program.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RandomNumberGenerator.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
raw_os_ostream.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
raw_ostream.h Revert "raw_ostream: add operator<< overload for std::error_code" 2019-08-14 13:59:04 +00:00
raw_sha1_ostream.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Recycler.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
RecyclingAllocator.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Regex.h Regex: Add isValid() with no parameter 2019-08-20 16:05:23 +00:00
Registry.h [llvm] Migrate llvm::make_unique to std::make_unique 2019-08-15 15:54:37 +00:00
ReverseIteration.h [ADT] Enable reverse iteration for DenseMap 2017-08-24 23:02:48 +00:00
RWMutex.h [RWMutex] Simplify availability check 2019-08-16 21:25:40 +00:00
SaveAndRestore.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ScalableSize.h Scalable Vector IR Type with further LTO fixes 2019-07-05 12:48:16 +00:00
ScaledNumber.h Replace llvm::isPodLike<...> by llvm::is_trivially_copyable<...> 2019-01-20 21:19:56 +00:00
ScopedPrinter.h Fix missing C++ mode comments 2019-02-21 15:48:10 +00:00
SHA1.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Signals.h Support for dumping current PrettyStackTrace on SIGINFO (Ctrl-T) 2019-07-12 16:05:09 +00:00
Signposts.h Annotate timeline in Instruments with passes and other timed regions. 2019-02-19 18:18:31 +00:00
SmallVectorMemoryBuffer.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SMLoc.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SMTAPI.h New methods to check for under-/overflow in the SMT API 2019-03-27 16:54:12 +00:00
SourceMgr.h [Remarks] Simplify and refactor the RemarkParser interface 2019-07-16 15:25:05 +00:00
SpecialCaseList.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
StringPool.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
StringSaver.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SwapByteOrder.h SwapByteOrder.h: don't check for unsupported GCC versions 2019-08-14 19:59:05 +00:00
SymbolRemappingReader.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
SystemUtils.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TargetOpcodes.def [GlobalISel] Introduce a G_DYN_STACKALLOC opcode to represent dynamic allocas. 2019-08-24 02:25:56 +00:00
TargetParser.h [AMDGPU] gfx908 target 2019-07-09 18:10:06 +00:00
TargetRegistry.h [NFC] Fix an indentation issue in llvm/Support/TargetRegistry.h 2019-07-19 07:21:59 +00:00
TargetSelect.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TarWriter.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TaskQueue.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
thread.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Threading.h [llvm][Support] Provide interface to set thread priorities 2019-04-16 14:32:43 +00:00
ThreadLocal.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ThreadPool.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TimeProfiler.h [Support] Fix -ftime-trace-granularity option 2019-07-24 14:55:40 +00:00
Timer.h [Legacy][TimePasses] allow -time-passes reporting into a custom stream 2019-03-22 23:11:08 +00:00
ToolOutputFile.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
TrailingObjects.h Use std::is_final directly 2019-08-14 20:13:49 +00:00
TrigramIndex.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
type_traits.h Use std::is_final directly 2019-08-14 20:13:49 +00:00
TypeName.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Unicode.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
UnicodeCharRanges.h Replace llvm::MutexGuard/UniqueLock with their standard equivalents 2019-08-07 10:57:25 +00:00
Valgrind.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VersionTuple.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
VirtualFileSystem.h [VFS] Add reverse iterator to OverlayFileSystem 2019-07-03 00:45:53 +00:00
Watchdog.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Win64EH.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
WindowsError.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
WithColor.h Revert r367649: Improve raw_ostream so that you can "write" colors using operator<< 2019-08-02 07:22:34 +00:00
X86DisassemblerDecoderCommon.h [X86Disassembler] Unify the EVEX and VEX code in emitContextTable. Merge the ATTR_VEXL/ATTR_EVEXL bits. NFCI 2019-06-13 22:15:25 +00:00
X86TargetParser.def [X86] Support -march=tigerlake 2019-08-12 01:29:46 +00:00
xxhash.h Make ICF log output order deterministic. 2018-07-31 18:04:58 +00:00
YAMLParser.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
YAMLTraits.h [YAMLIO] Remove trailing spaces when outputting maps 2019-07-12 04:51:31 +00:00