This is an archive of the discontinued LLVM Phabricator instance.

[BOLT][NFC] Use X86 mnemonic tables
ClosedPublic

Authored by Amir on Mar 13 2022, 11:05 PM.

Details

Summary

Remove tables from X86MCPlusBuilder, make use of llvm::X86 mnemonic tables.

Diff Detail

Event Timeline

Amir created this revision.Mar 13 2022, 11:05 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Amir published this revision for review.Mar 13 2022, 11:12 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2022, 11:12 PM
rafauler accepted this revision.Mar 14 2022, 5:13 AM

Nice!

This revision is now accepted and ready to land.Mar 14 2022, 5:13 AM
craig.topper added inline comments.
bolt/lib/Target/X86/X86MCPlusBuilder.cpp
77

Was it important that the _DB instructions were in here before. They don't have mnemonics so the new patch won't have them as adds.

Amir added inline comments.Mar 14 2022, 1:09 PM
bolt/lib/Target/X86/X86MCPlusBuilder.cpp
77

My understanding is that _DB instructions can only be lowered into, but can't be produced by a disassembler, so no, it shouldn't matter for BOLT that these are left out.

Amir marked an inline comment as done.Mar 14 2022, 2:37 PM
This revision was landed with ongoing or failed builds.Mar 18 2022, 1:52 AM
This revision was automatically updated to reflect the committed changes.