[PATCH] D45960: [MC] Add MCSubtargetInfo to MCPaddingFragment [NFC]

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 23 07:13:03 PDT 2018


peter.smith created this revision.
peter.smith added reviewers: eli.friedman, asb, phosek, echristo.
Herald added a reviewer: javed.absar.
Herald added a subscriber: kristof.beyls.

In preparation for passing the MCSubtargetInfo (STI) through to writeNops so that it can use the STI in operation at the time, we need to record the STI in operation when a MCPaddingFragment is created. The STI is currently unused, a further patch will pass it through to writeNops.

This is part 2 of 4 of a patch series to pass MCSubtargetInfo to writeNops so that the ARM and X86 AsmBackends can remove the per-module STI that is used to decide which nop encodings can be used.
1 [MC] Move bundling and MCSubtargetInfo to MCEncodedFragment [NFC]
2 [MC] Add MCSubtargetInfo to MCPaddingFragment [NFC]
3 [MC] Add MCSubtargetInfo to MCAlignFragment [NFC]
4 [MC] Use local MCSubtargetInfo in writeNops

This patch depends on https://reviews.llvm.org/D44928.


https://reviews.llvm.org/D45960

Files:
  include/llvm/MC/MCAsmBackend.h
  include/llvm/MC/MCCodePadder.h
  include/llvm/MC/MCFragment.h
  include/llvm/MC/MCObjectStreamer.h
  include/llvm/MC/MCStreamer.h
  lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  lib/MC/MCAsmBackend.cpp
  lib/MC/MCCodePadder.cpp
  lib/MC/MCObjectStreamer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45960.143551.patch
Type: text/x-patch
Size: 10269 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180423/3e338df8/attachment.bin>


More information about the llvm-commits mailing list