[PATCH] D28291: [ARM] Create SubtargetFeatures from build attributes

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 4 05:53:19 PST 2017


samparker created this revision.
samparker added a subscriber: llvm-commits.
Herald added subscribers: rengolin, aemerson.

Currently, ELFObjectFile is used to build a SubtargetFeatures object for MIPS. I've moved the MIPS specific code into its own function and then also created an ARM specific function which builds the features from quering the build attributes. Together with https://reviews.llvm.org/D28281 it enables llvm-objdump to automatically create an accurate target.


https://reviews.llvm.org/D28291

Files:
  include/llvm/Object/ELFObjectFile.h
  include/llvm/Object/ObjectFile.h
  include/llvm/Support/ARMAttributeParser.h
  lib/Object/ELFObjectFile.cpp
  test/tools/llvm-objdump/ARM/v6-subfeatures.s
  test/tools/llvm-objdump/ARM/v7a-subfeature.s
  test/tools/llvm-objdump/ARM/v7m-subfeatures.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28291.83040.patch
Type: text/x-patch
Size: 9669 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170104/bca6583f/attachment.bin>


More information about the llvm-commits mailing list