[PATCH] D75306: [ms] [llvm-ml] Add initial MASM STRUCT/UNION support
Eric Astor via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 27 14:15:30 PST 2020
epastor created this revision.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
Add support for user-defined types to MasmParser, including initialization and field access.
Known issues:
- Omitted entry initializers (e.g., <,0>) do not work consistently for nested structs/arrays.
- Size checking/inference for values with known types is not yet implemented.
- Some ml64.exe syntaxes for accessing STRUCT fields are not recognized.
- `[<register>.<struct name>].<field>`
- `[<register>[<struct name>.<field>]]`
- `(<struct name> PTR [<register>]).<field>`
- `[<variable>.<struct name>].<field>`
- `(<struct name> PTR <variable>).<field>`
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D75306
Files:
llvm/include/llvm/MC/MCParser/MCAsmParser.h
llvm/include/llvm/MC/MCParser/MCTargetAsmParser.h
llvm/lib/MC/MCParser/MasmParser.cpp
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/test/tools/llvm-ml/struct.test
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75306.247107.patch
Type: text/x-patch
Size: 71137 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200227/3ea9fdb9/attachment-0001.bin>
More information about the llvm-commits
mailing list