This is an archive of the discontinued LLVM Phabricator instance.

[mips] Replace MipsABIEnum with a MipsABIInfo class.
ClosedPublic

Authored by dsanders on Apr 10 2014, 6:16 AM.

Details

Summary

No functional change yet, it's just an object replacement for an enum.
It will allow us to gather ABI information in a single place so that we can
start testing for properties of the ABI's instead of the ABI itself.

For example we will eventually be able to use:

ABI.MinStackAlignmentInBytes()

instead of:

(isABI_N32() || isABI_N64()) ? 16 : 8

which is clearer and more maintainable.

Diff Detail

Event Timeline

dsanders updated this revision to Diff 12765.Aug 21 2014, 6:39 AM
dsanders edited edge metadata.

Rebased

dsanders updated this revision to Diff 15393.Oct 24 2014, 3:25 AM
dsanders edited edge metadata.

Refresh before commit.

dsanders closed this revision.Oct 24 2014, 9:25 AM