[ms] [llvm-ml] Add support for MASM STRUCT casting field accessors: (<TYPE> PTR ...
authorEric Astor <epastor@google.com>
Mon, 13 Jul 2020 14:38:39 +0000 (10:38 -0400)
committerEric Astor <epastor@google.com>
Mon, 13 Jul 2020 14:40:47 +0000 (10:40 -0400)
commitf08e8b6d7c46334ff8aa37cf8e473aa405e4fa93
treea7e23607f31e72e57cf6a81c23cb4791819e6bde
parent835c1f9f40ecc1a725f8f392a2a1628f634479fe
[ms] [llvm-ml] Add support for MASM STRUCT casting field accessors: (<TYPE> PTR <value>).<field>

Summary:
Add support for MASM STRUCT casting field accessors: (<TYPE> PTR <value>).<field>

Since these are operands, we add them to X86AsmParser. If/when we extend MASM support to other architectures (e.g., ARM), we will need similar changes there as well.

Reviewed By: thakis

Differential Revision: https://reviews.llvm.org/D83346
llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
llvm/test/tools/llvm-ml/struct.test