This is an archive of the discontinued LLVM Phabricator instance.

[Mips][llvm-exegesis] Add a Mips target
ClosedPublic

Authored by mstojanovic on Oct 8 2019, 8:15 AM.

Details

Summary

The target does just enough to be able to run llvm-exegesis in latency mode for at least some opcodes.

Diff Detail

Event Timeline

mstojanovic created this revision.Oct 8 2019, 8:15 AM

Thanks for the contribution. I only have cosmetic comments.

unittests/tools/llvm-exegesis/Mips/TargetTest.cpp
28

You don't need these. I guess this is a copy-paste from the X86 tests: these are remains from a time when we were not in namespace llvm. (Fixed in rL374143).

57

ditto: remove llvm::

58

Don't you want to test the actual instruction ?

atanasyan added inline comments.Oct 9 2019, 2:47 AM
tools/llvm-exegesis/lib/Assembler.cpp
233–234

clang-format this line. it's too long.

Removed obsolete llvm:: and includes, ran clang-format. Added direct testing of the instruction.

atanasyan accepted this revision.Oct 9 2019, 11:54 AM

LGTM
Do you have commit access?

This revision is now accepted and ready to land.Oct 9 2019, 11:54 AM
courbet accepted this revision.Oct 10 2019, 1:41 AM

Thank you for the reviews. I don't have commit access. @petarj usually commits the patches.

This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptOct 11 2019, 1:25 PM