This is an archive of the discontinued LLVM Phabricator instance.

[llvm-jitlink] Pass object features when creating MCSubtargetInfo
ClosedPublic

Authored by jobnoorman on Apr 29 2023, 12:08 PM.

Details

Summary

The reason for this patch is to allow the MCDisassembler used in tests
to disassemble instructions that are only available when a specific
feature is enabled.

For example, on RISC-V it's currently not possible to use
decode_operand() on a compressed instruction. This patch fixes this.

Diff Detail

Event Timeline

jobnoorman created this revision.Apr 29 2023, 12:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2023, 12:08 PM
jobnoorman requested review of this revision.Apr 29 2023, 12:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2023, 12:08 PM
lhames accepted this revision.May 11 2023, 5:26 PM

LGTM. Thanks very much @jobnoorman!

This revision is now accepted and ready to land.May 11 2023, 5:26 PM
This revision was landed with ongoing or failed builds.May 13 2023, 2:40 AM
This revision was automatically updated to reflect the committed changes.