This is an archive of the discontinued LLVM Phabricator instance.

Adding simple disassembler.
ClosedPublic

Authored by colinl on Oct 16 2014, 9:26 AM.

Details

Summary

Adding a basic disassembler to use for testing instruction encoding bits.

Diff Detail

Event Timeline

colinl updated this revision to Diff 15023.Oct 16 2014, 9:26 AM
colinl retitled this revision from to Adding simple disassembler..
colinl updated this object.
colinl edited the test plan for this revision. (Show Details)
colinl added reviewers: sidneym, adasgupt, mcrosier.
colinl set the repository for this revision to rL LLVM.
colinl added subscribers: Unknown Object (MLST), rafael.
mcrosier added inline comments.Oct 16 2014, 9:45 AM
lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp
72

Is Address used?

83

Same.

94

Same.

colinl updated this revision to Diff 15033.Oct 16 2014, 11:52 AM

Removing unused parameter names.

lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp
72

Hmm I guess not. Removed the parameter name.

shankarke accepted this revision.Oct 16 2014, 8:04 PM
shankarke added a reviewer: shankarke.
This revision is now accepted and ready to land.Oct 16 2014, 8:04 PM
sidneym added inline comments.Oct 17 2014, 6:41 AM
lib/Target/Hexagon/HexagonInstrInfoV4.td
2133 ↗(On Diff #15033)

The above could be removed and be submitted in another patch.

colinl updated this revision to Diff 15083.Oct 17 2014, 8:58 AM
colinl edited edge metadata.

Removing .td file for later inclusion.

Thanks a lot for working on this!

lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp
39

Don't repeat the name int the comment.

46

Don't repeat the name in the comment.

49

Missing override.

71

Start function names in lowercase.

colinl updated this revision to Diff 15141.Oct 20 2014, 9:08 AM

Fixing up comments and adding override keyword.
Decode<Name>RegisterClass function names seem to be picked by tablegen.

rafael accepted this revision.Oct 20 2014, 9:59 AM
rafael added a reviewer: rafael.

This is fine by me with a nit.

lib/Target/Hexagon/Disassembler/HexagonDisassembler.cpp
44

Why is this needed? MCDisassembler's destructor is virtual, so you should be able to just omit this.

colinl updated this revision to Diff 15152.Oct 20 2014, 1:49 PM
colinl edited edge metadata.

Removing redundant virtual destructor.

mcrosier closed this revision.Oct 22 2014, 10:29 AM
mcrosier edited edge metadata.

Committed in r220393. Minor fixup in r220396.