[PATCH] D41221: [RISCV] writeNopData support generate c.nop

Shiva Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 19:10:18 PST 2017


shiva0217 created this revision.
shiva0217 added a reviewer: asb.
Herald added subscribers: sabuasal, jordy.potman.lists, johnrusso, rbar.

The assembler will generate nop for alignment. For the riscv target support C extension, it may need to generate c.nop to fix up alignment.

To support generate c.nop:

1. Add parseRISCVArch to recognize riscv triple with feature suffix.  E.g. riscv32imac
2. Recognize support C extension by triple and then emit c.nop
3. Add c.nop.s MC test case


Repository:
  rL LLVM

https://reviews.llvm.org/D41221

Files:
  lib/Support/Triple.cpp
  lib/Target/RISCV/MCTargetDesc/RISCVAsmBackend.cpp
  test/MC/RISCV/cnop.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41221.126887.patch
Type: text/x-patch
Size: 3830 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171214/cc068187/attachment.bin>


More information about the llvm-commits mailing list