llvm-project/llvm/lib/MC/MCParser
Wouter van Oortmerssen 29c6ce5879 [WebAssembly] Make assembler check for proper nesting of control flow.
Summary:
It does so using a simple nesting stack, and gives clear errors upon
violation. This is unique to wasm, since most CPUs do not have
any nested constructs.

Had to add an end of file check to the general assembler for this.

Note: if/else/end instructions are not currently supported in our
tablegen defs, so these tests will be enabled in a follow-up.
They already pass the nesting check.

Reviewers: dschuff, aheejin

Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits

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

llvm-svn: 350078
2018-12-26 22:46:18 +00:00
..
AsmLexer.cpp [WebAssembly] replaced .param/.result by .functype 2018-11-19 17:10:36 +00:00
AsmParser.cpp [WebAssembly] Make assembler check for proper nesting of control flow. 2018-12-26 22:46:18 +00:00
CMakeLists.txt [WebAssembly] Added WasmAsmParser. 2018-11-12 20:15:01 +00:00
COFFAsmParser.cpp [MC] Add support for the .rva assembler directive for COFF targets 2018-07-26 20:11:26 +00:00
DarwinAsmParser.cpp Add PLATFORM constants for iOS, tvOS, and watchOS simulators 2018-12-20 17:51:17 +00:00
ELFAsmParser.cpp [Hexagon] Handle Hexagon's SHF_HEX_GPREL section flag 2018-11-09 14:17:27 +00:00
LLVMBuild.txt
MCAsmLexer.cpp [WebAssembly] replaced .param/.result by .functype 2018-11-19 17:10:36 +00:00
MCAsmParser.cpp [MC] Shrink MCAsmParser by grouping bools, add const, NFC 2018-10-22 22:29:09 +00:00
MCAsmParserExtension.cpp
MCTargetAsmParser.cpp [Asm] Add debug tracing in table-generated assembly matcher 2017-10-11 09:17:43 +00:00
WasmAsmParser.cpp [WebAssembly] Added WasmAsmParser. 2018-11-12 20:15:01 +00:00