1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00
llvm-mirror/include/llvm
Wouter van Oortmerssen 538b137e0b [WebAssembly] Added initial type checker to MC Assembler
This to protect against non-sensical instruction sequences being assembled,
which would either cause asserts/crashes further down, or a Wasm module being output that doesn't validate.

Unlike a validator, this type checker is able to give type-errors as part of the parsing process, which makes the assembler much friendlier to be used by humans writing manual input.

Because the MC system is single pass (instructions aren't even stored in MC format, they are directly output) the type checker has to be single pass as well, which means that from now on .globaltype and .functype decls must come before their use. An extra pass is added to Codegen to collect information for this purpose, since AsmPrinter is normally single pass / streaming as well, and would otherwise generate this information on the fly.

A `-no-type-check` flag was added to llvm-mc (and any other tools that take asm input) that surpresses type errors, as a quick escape hatch for tests that were not intended to be type correct.

This is a first version of the type checker that ignores control flow, i.e. it checks that types are correct along the linear path, but not the branch path. This will still catch most errors. Branch checking could be added in the future.

Differential Revision: https://reviews.llvm.org/D104945
2021-07-09 14:07:25 -07:00
..
ADT Revert "PR51018: Disallow explicit construction of StringRef from SmallString due to ambiguity in C++23" 2021-07-08 13:46:36 -07:00
Analysis [FPEnv][InstSimplify] Constrained FP support for NaN 2021-07-09 11:26:28 -04:00
AsmParser [AttrBuilder] Make handling of type attributes more generic (NFCI) 2021-07-09 17:48:09 +02:00
BinaryFormat [AIX][XCOFF] Use bit order of has_vec and longtbtable bits as defined in AIX header debug.h 2021-07-09 11:06:46 -04:00
Bitcode [OpaquePtr] Create new bitcode encoding for atomicrmw 2021-05-25 16:30:34 -07:00
Bitstream BitstreamWriter.h - add missing implicit MathExtras.h header dependency. NFCI. 2021-06-05 19:20:14 +01:00
CodeGen [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
Config Move the definition of LLVM_SUPPORT_XCODE_SIGNPOSTS into llvm-config.h 2021-06-16 14:40:37 -07:00
DebugInfo [COFF] [CodeView] Add a few new enum values 2021-07-07 22:00:18 +03:00
Demangle [Clang] Introduce Swift async calling convention. 2021-07-09 11:50:10 -07:00
DWARFLinker
ExecutionEngine [ORC] Introduce ExecutorAddress type, fix broken LLDB bot. 2021-07-08 16:31:59 +10:00
FileCheck
Frontend [OpenMP] Enable HeapToStack conversion in OpenMPOpt for new RTL globalization calls 2021-06-22 13:23:05 -04:00
FuzzMutate
InterfaceStub
IR [IR] Add GEPOperator::indices() (NFC) 2021-07-09 21:41:20 +02:00
IRReader
LineEditor
Linker
LTO [LTO] Support new PM in ThinLTOCodeGenerator. 2021-06-09 10:05:14 +01:00
MC [WebAssembly] Added initial type checker to MC Assembler 2021-07-09 14:07:25 -07:00
MCA [MCA] Anchoring the vtable of CustomBehaviour 2021-06-16 12:43:58 -07:00
Object [llvm-readobj][XCOFF] Add support for printing the String Table. 2021-07-05 04:16:58 +00:00
ObjectYAML [LLD][LLVM] CG Graph profile using relocations 2021-06-24 09:09:33 -07:00
Option [OptTable] Rename PrintHelp to printHelp 2021-06-24 14:47:03 -07:00
Passes [NFC][PassBuilder] addVectorPasses(): clarify that 'IsLTO' is actually 'IsFullLTO' 2021-07-01 10:09:24 +03:00
ProfileData [llvm-cov] Enforce alignment of function records 2021-06-25 10:56:06 +02:00
Remarks
Support Recommit: Support: add llvm::thread class that supports specifying stack size. 2021-07-08 16:22:26 +01:00
TableGen
Target [NFC] Fix a few whitespace issues and typos. 2021-07-04 11:49:58 +01:00
Testing/Support added some example code for llvm::Expected<T> 2021-07-01 09:57:20 +00:00
TextAPI [TextAPI] add symbol name prefixes to central location, NFC 2021-06-23 11:21:00 -07:00
ToolDrivers
Transforms [Attributor][FIX] Replace uses first, then values 2021-07-06 22:43:51 -05:00
WindowsManifest
WindowsResource
XRay
CMakeLists.txt
InitializePasses.h Function Specialization Pass 2021-06-11 09:11:29 +01:00
LinkAllIR.h
LinkAllPasses.h Function Specialization Pass 2021-06-11 09:11:29 +01:00
module.extern.modulemap
module.install.modulemap
module.modulemap
module.modulemap.build
Pass.h
PassAnalysisSupport.h
PassInfo.h
PassRegistry.h
PassSupport.h