1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00
llvm-mirror/include/llvm/Support
Sander de Smalen 2112163f1d [TypeSize] Extend UnivariateLinearPolyBase with getWithIncrement/Decrement methods
This patch adds getWithIncrement/getWithDecrement methods to
ElementCount and TypeSize to allow:

  TypeSize::getFixed(8).getWithIncrement(8)     <=> TypeSize::getFixed(16)
  TypeSize::getFixed(16).getWithDecrement(8)    <=> TypeSize::getFixed(8)
  TypeSize::getScalable(8).getWithIncrement(8)  <=> TypeSize::getScalable(16)
  TypeSize::getScalable(16).getWithDecrement(8) <=> TypeSize::getScalable(8)

This patch implements parts of the POC in D90342.

Reviewed By: ctetreau, dmgreen

Differential Revision: https://reviews.llvm.org/D90713
2020-11-06 09:01:19 +00:00
..
FileSystem Support: Avoid std::tie in Support/FileSystem/UniqueID.h, NFC 2020-11-02 13:26:15 -05:00
Solaris/sys
Windows [Support] Improve Windows widenPath and add support for long UNC paths 2020-03-19 13:00:21 +00:00
AArch64TargetParser.def [AArch64] Add CPU Cortex-R82 2020-10-02 12:47:23 +01:00
AArch64TargetParser.h AArch64::ArchKind's underlying type is uint64_t 2020-09-17 12:13:57 -07:00
Alignment.h [Align] Remove operations on MaybeAlign that asserted that it had a defined value. 2020-05-22 21:54:28 -07:00
AlignOf.h
Allocator.h [Allocator] Make Deallocate() pass alignment and make it use (de)allocate_buffer 2020-05-02 16:08:46 +02:00
AllocatorBase.h [Allocator] Make Deallocate() pass alignment and make it use (de)allocate_buffer 2020-05-02 16:08:46 +02:00
AMDGPUMetadata.h AMDGPU: Remove .value_type from kernel metadata 2020-07-10 18:16:31 -04:00
AMDHSAKernelDescriptor.h [AMDGPU] Support disassembly for AMDGPU kernel descriptors 2020-10-07 20:39:43 +05:30
ARMAttributeParser.h [RISCV] ELF attribute section for RISC-V. 2020-03-31 16:16:19 +08:00
ARMBuildAttributes.h [RISCV] ELF attribute section for RISC-V. 2020-03-31 16:16:19 +08:00
ARMEHABI.h
ARMTargetParser.def [ARM] Add Cortex-A78 and Cortex-X1 Support for Clang and LLVM 2020-07-10 18:24:11 +01:00
ARMTargetParser.h [Driver][ARM] Disable unsupported features when nofp arch extension is used 2020-07-29 14:13:22 +01:00
ARMWinEH.h [llvm-readobj] [ARMWinEH] Print ARM64 packed unwind info 2020-09-15 08:50:02 +03:00
ArrayRecycler.h
Atomic.h
AtomicOrdering.h [NFC] Fix typo and variable names 2020-08-15 09:06:22 -07:00
Automaton.h
Base64.h Syndicate, test and fix base64 implementation 2020-03-03 12:17:53 +01:00
BinaryByteStream.h
BinaryItemStream.h
BinaryStream.h
BinaryStreamArray.h
BinaryStreamError.h
BinaryStreamReader.h Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
BinaryStreamRef.h
BinaryStreamWriter.h Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
BlockFrequency.h
BranchProbability.h Make some static class members constexpr 2020-04-22 12:25:01 +02:00
BuryPointer.h
CachePruning.h CachePruning.h - reduce StringRef.h to Optional.h include. NFC 2020-05-08 14:06:53 +01:00
Capacity.h
Casting.h [LLVM] Change isa<> to a variadic function template 2020-06-15 18:46:57 +00:00
CBindingWrapping.h
CFGDiff.h [CFGDiff] Refactor Succ/Pred maps. 2020-07-27 18:02:52 -07:00
CFGUpdate.h CFGUpdate.h - remove unused APInt include. NFCI. 2020-09-08 18:25:25 +01:00
CheckedArithmetic.h Fix some clang-tidy bugprone-argument-comment issues 2020-09-19 20:41:25 -07:00
Chrono.h Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
circular_raw_ostream.h Make some static class members constexpr 2020-04-22 12:25:01 +02:00
CMakeLists.txt [CMAKE] Fix 'clean' target not working 2020-07-29 07:34:24 -04:00
CodeGen.h
CodeGenCoverage.h
COM.h
CommandLine.h CommandLine.h - use auto const reference in ValuesClass::apply for range loop. NFCI. 2020-09-09 14:21:14 +01:00
Compiler.h [Support] Remove stale comment 2020-05-26 12:22:03 -07:00
Compression.h
ConvertUTF.h
CrashRecoveryContext.h [Support] On Windows, ensure abort() can be catched several times in a row with CrashRecoveryContext 2020-09-24 08:21:42 -04:00
CRC.h
DataExtractor.h [Support] Make DataExtractor error messages more clear 2020-06-02 12:57:51 +02:00
DataTypes.h
Debug.h
DebugCounter.h DebugCounter.h - remove unused includes. NFC. 2020-05-12 13:03:49 +01:00
DJB.h
DOTGraphTraits.h
DynamicLibrary.h
ELFAttributeParser.h [RISCV] ELF attribute section for RISC-V. 2020-03-31 16:16:19 +08:00
ELFAttributes.h [RISCV] ELF attribute section for RISC-V. 2020-03-31 16:16:19 +08:00
Endian.h Remove unused Endian.h includes, NFC 2020-03-11 15:45:34 -07:00
EndianStream.h
Errc.h
Errno.h Use C++14-style return type deduction in LLVM. 2020-02-11 07:38:42 -08:00
Error.h Make some static class members constexpr 2020-04-22 12:25:01 +02:00
ErrorHandling.h Improve error handling for SmallVector programming errors 2020-09-02 15:00:26 -07:00
ErrorOr.h Make some static class members constexpr 2020-04-22 12:25:01 +02:00
ExitCodes.h Fix out-of-tree clang build due to sysexits change 2020-10-06 18:21:17 -04:00
ExtensibleRTTI.h [Support] Add support RTTI support for open class hierarchies. 2020-04-13 12:52:44 -07:00
FileCollector.h [FileCollector] Move interface into FileCollectorBase (NFC) 2020-10-19 21:37:20 -07:00
FileOutputBuffer.h FileOutputBuffer.h - remove unused includes. NFC. 2020-05-28 14:38:12 +01:00
FileSystem.h Support: Avoid std::tie in Support/FileSystem/UniqueID.h, NFC 2020-11-02 13:26:15 -05:00
FileUtilities.h
Format.h
FormatAdapters.h [NFC] Add 'override' keyword where missing in include/ and lib/. 2020-07-14 09:47:29 -07:00
FormatCommon.h
FormatProviders.h Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
FormattedStream.h [Support] Fix formatted_raw_ostream for UTF-8 2020-07-06 16:18:15 +01:00
FormatVariadic.h [LLVM] Update formatv() documentation to clarify no escape for } 2020-07-22 15:30:40 -07:00
FormatVariadicDetails.h Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
GenericDomTree.h Revert "DomTree: Extract (mostly) read-only logic into type-erased base classes" 2020-10-27 20:33:29 +01:00
GenericDomTreeConstruction.h Revert "DomTree: Extract (mostly) read-only logic into type-erased base classes" 2020-10-27 20:33:29 +01:00
GenericIteratedDominanceFrontier.h [IteratedDominanceFrontier] Decrease number of SmallPtrSet::insert and delete unneeded SmallVector::clear 2020-06-13 19:48:50 -07:00
GlobPattern.h [Support] Add GlobPattern::isTrivialMatchAll() 2020-09-16 10:26:11 +01:00
GraphWriter.h Utility to dump .dot representation of SelectionDAG without firing viewer 2020-06-04 11:51:48 +05:30
Host.h Drop a StringMap.h include, NFC 2020-03-11 15:45:34 -07:00
InitLLVM.h
ItaniumManglingCanonicalizer.h ItaniumManglingCanonicalizer.h - add cstdint.h include for missing uintptr_t def 2020-05-08 14:22:26 +01:00
JSON.h [JSON] Add ObjectMapper::mapOptional to validate optional data. 2020-10-12 12:48:08 +02:00
KnownBits.h [KnownBits] Move ValueTracking SREM KnownBits handling to KnownBits::srem. NFCI. 2020-11-05 14:58:33 +00:00
LEB128.h [llvm/Support] Don't crash on empty nullptr ranges when decoding LEBs 2020-04-06 14:14:11 +02:00
LICENSE.TXT
LineIterator.h Support: Allow use of MemoryBufferRef with line_iterator 2020-10-13 16:43:49 -04:00
Locale.h
LockFileManager.h Improve module.pcm lock file performance on machines with high core counts 2020-03-23 14:59:39 -07:00
LowLevelTypeImpl.h LowLevelTypeImpl.h - fix implicit Debug.h dependency. NFC. 2020-06-23 09:43:39 +01:00
MachineValueType.h [WebAssembly] Implementation of (most) table instructions 2020-10-23 08:42:54 -07:00
ManagedStatic.h [ManagedStatic] Fix build errors with clang-tblgen in Debug mode using MSVC 2019 v16.6 2020-05-25 16:59:40 +03:00
MathExtras.h Support: Add specializations for reverseBits to use builtin 2020-04-03 14:52:54 -04:00
MD5.h Avoid SmallString.h include in MD5.h, NFC 2020-02-26 09:10:24 -08:00
MemAlloc.h [ADT] Move allocate_buffer to MemAlloc.h and out of line 2020-04-24 13:32:50 +02:00
Memory.h
MemoryBuffer.h Support: Add operator== for MemoryBufferRef and split out MemoryBufferRef.h 2020-10-13 16:42:24 -04:00
MemoryBufferRef.h Support: Add operator== for MemoryBufferRef and split out MemoryBufferRef.h 2020-10-13 16:42:24 -04:00
MipsABIFlags.h
MSVCErrorWorkarounds.h Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
Mutex.h
NativeFormatting.h NativeFormatting.h - reduce raw_ostream.h include to forward declaration. NFC. 2020-05-09 13:32:14 +01:00
OnDiskHashTable.h
OptimizedStructLayout.h Rename OptimalLayout to OptimizedStructLayout at Chris's request. 2020-04-10 00:14:20 -04:00
Parallel.h Add parallelTransformReduce and parallelForEachError 2020-11-02 16:50:14 -08:00
Path.h [Support/Path] Add path::is_absolute_gnu 2020-09-23 18:01:32 +01:00
PluginLoader.h PluginLoader.h - only include CommandLine.h if required. NFCI. 2020-09-11 11:44:29 +01:00
PointerLikeTypeTraits.h A few cosmetic cleanups to StringMap/StringSet.h, including fixing 2020-04-11 22:14:35 -07:00
PrettyStackTrace.h [Driver] When forcing a crash print the bug report message 2020-06-29 13:13:12 +01:00
Printable.h
Process.h Reapply: [clang-cl] Always interpret the LIB env var as separated with semicolons 2020-09-22 10:51:25 +03:00
Program.h Reapply: [clang-cl] Always interpret the LIB env var as separated with semicolons 2020-09-22 10:51:25 +03:00
RandomNumberGenerator.h
raw_os_ostream.h
raw_ostream.h Add a header file to support ssize_t for windows 2020-09-12 08:50:22 +00:00
raw_sha1_ostream.h
Recycler.h
RecyclingAllocator.h
Regex.h [ASTMatchers] Enhanced support for matchers taking Regex arguments 2020-07-02 14:52:25 +01:00
Registry.h
ReverseIteration.h
RISCVAttributeParser.h RISCVAttributeParser.h - remove unnecessary ScopedPrinter.h include. NFC. 2020-05-11 22:11:21 +01:00
RISCVAttributes.h [RISCV] ELF attribute section for RISC-V. 2020-03-31 16:16:19 +08:00
RISCVTargetParser.def [RISCV] Fix -Wbraced-scalar-init after D89025 2020-10-15 23:29:11 -07:00
RWMutex.h
SaveAndRestore.h
ScaledNumber.h Make some static class members constexpr 2020-04-22 12:25:01 +02:00
ScopedPrinter.h
SHA1.h SHA1.h - remove unnecessary ArrayRef.h/StringRef.h includes. NFC. 2020-04-21 15:12:17 +01:00
Signals.h [Support] On Unix, let the CrashRecoveryContext return the signal code 2020-09-24 08:21:43 -04:00
Signposts.h
SmallVectorMemoryBuffer.h
SMLoc.h
SMTAPI.h
SourceMgr.h [TableGen] New backend to print detailed records. 2020-10-02 10:22:13 -04:00
SpecialCaseList.h [Support/Utils] As part of using inclusive language within the 2020-06-20 00:15:50 -07:00
StringSaver.h Temporarily Revert "[Support] Make UniqueStringSaver wrap a StringSet" 2020-05-14 19:18:20 -07:00
SuffixTree.h [SuffixTree][MachOpt] Factoring out Suffix Tree and adding Unit Tests 2020-06-08 12:44:18 -07:00
SwapByteOrder.h [Support] Make Support/SwapByteOrder.h compile on Fuchsia 2020-10-29 10:49:06 -07:00
SymbolRemappingReader.h SymbolRemappingReader.h - pass Twine by reference not value. NFCI. 2020-07-25 12:48:14 +01:00
SystemUtils.h [opt] Remove obsolete --quiet option 2020-07-08 13:21:20 -07:00
TargetOpcodes.def [GlobalISel] Add G_VECREDUCE_* opcodes for vector reductions. 2020-10-08 10:33:19 -07:00
TargetParser.h [AMDGPU] Add gfx1033 target 2020-11-03 16:27:48 +00:00
TargetRegistry.h [SystemZ/ZOS] Add binary format goff and operating system zos to the triple 2020-08-11 05:26:26 -04:00
TargetSelect.h
TarWriter.h
TaskQueue.h Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
thread.h
Threading.h Add optimal thread strategy 2020-09-23 19:44:22 +03:00
ThreadLocal.h
ThreadPool.h Revert "[Support] Use unique_function rather than std::function for ThreadPool TaskTy." 2020-09-10 11:53:09 -07:00
TimeProfiler.h Refactor TimeProfiler write methods (NFC) 2020-03-06 14:34:56 -08:00
Timer.h [Clang][Driver] In -fintegrated-cc1 mode, avoid crashing on exit after a compiler crash 2020-03-13 08:15:35 -04:00
ToolOutputFile.h [Support] Use outs() in ToolOutputFile 2020-06-04 14:56:35 +02:00
TrailingObjects.h Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
TrigramIndex.h TrigramIndex.cpp - remove unnecessary includes. NFCI. 2020-09-09 11:38:31 +01:00
type_traits.h Use std::foo_t rather than std::foo in LLVM. 2020-02-11 15:12:51 -08:00
TypeName.h
TypeSize.h [TypeSize] Extend UnivariateLinearPolyBase with getWithIncrement/Decrement methods 2020-11-06 09:01:19 +00:00
Unicode.h
UnicodeCharRanges.h
Valgrind.h
VersionTuple.h [clang] Include missing LangOpts in getModuleHash. 2020-07-07 17:13:23 -06:00
VirtualFileSystem.h [lldb] Add reproducer verifier 2020-09-02 22:00:00 -07:00
Watchdog.h
Win64EH.h [AArch64] Add asm directives for the remaining SEH unwind codes 2020-09-03 11:12:01 +03:00
WindowsError.h
WithColor.h WithColor.h - reduce CommandLine.h include to forward declaration. NFC. 2020-06-23 17:07:53 +01:00
X86DisassemblerDecoderCommon.h [X86] Remove MODRM_SPLITREGM from the disassembler tables. 2020-07-03 00:16:20 -07:00
X86TargetParser.def [X86] Support Intel avxvnni 2020-10-31 12:39:51 +08:00
X86TargetParser.h [X86] Add a stub for Intel's alderlake. 2020-10-24 19:01:22 +02:00
xxhash.h
YAMLParser.h Add -Wno-error=unknown flag to clang-format. 2020-09-19 10:17:57 +02:00
YAMLTraits.h [llvm] Fix ODRViolations for VersionTuple YAML specializations NFC 2020-10-20 18:29:15 -07:00