[PATCH] D45959: [MC] Move bundling and MCSubtargetInfo to MCEncodedFragment [NFC]
Peter Smith via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 23 07:08:32 PDT 2018
peter.smith created this revision.
peter.smith added reviewers: eli.friedman, phosek, asb, echristo.
Herald added a reviewer: javed.absar.
Herald added a subscriber: kristof.beyls.
Instruction bundling is only supported on descendants of the MCEncodedFragment type. By moving the bundling functionality and MCSubtargetInfo to this class it makes it easier to set and extract the MCSubtargetInfo when nops need to be written.
This is part 1 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/D45959
Files:
include/llvm/MC/MCAssembler.h
include/llvm/MC/MCFragment.h
lib/MC/MCAssembler.cpp
lib/MC/MCELFStreamer.cpp
lib/MC/MCFragment.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45959.143549.patch
Type: text/x-patch
Size: 15470 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180423/40bb9f4a/attachment.bin>
More information about the llvm-commits
mailing list