[PATCH] D20337: [MC] Support symbolic expressions in assembly directives

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Mon May 23 16:48:54 PDT 2016


phosek updated this revision to Diff 58170.
phosek added a comment.

I have updated the implementation to follow the proposed approach. So far I've only implemented support for .fill, .skip, .space and .zero. I was also considering supporting .align, but this directive is a little more special due to various restrictions on various platforms and I'm not sure if the symbolic expression are actually being used in combination with .align. I have also restricted the symbolic expression support to the first argument which is the size, it might be possible to support them in other arguments as well (GNU assembler does), but again I'm not sure how useful that would be.


Repository:
  rL LLVM

http://reviews.llvm.org/D20337

Files:
  include/llvm/MC/MCObjectStreamer.h
  include/llvm/MC/MCStreamer.h
  lib/MC/MCAsmStreamer.cpp
  lib/MC/MCObjectStreamer.cpp
  lib/MC/MCParser/AsmParser.cpp
  lib/MC/MCStreamer.cpp
  test/MC/AsmParser/directive_fill.s
  test/MC/AsmParser/directive_space.s
  test/MC/AsmParser/symbolic-expression.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20337.58170.patch
Type: text/x-patch
Size: 11442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160523/4626e42e/attachment.bin>


More information about the llvm-commits mailing list