This is an archive of the discontinued LLVM Phabricator instance.

[mips] Add Triple::getABIVariant() to form a triple variant accordingly to the ABI
AbandonedPublic

Authored by atanasyan on Oct 11 2017, 7:33 AM.

Details

Summary

LLVM tools like llc and llvm-mc accept (via command line arguments) both target triple / architecture's name and ABI's name. To merge this information and form a new target triple this change introduces new Triple class member function getABIVariant(). This routine changes a target triple accordingly to the provided ABI's name. For example, accepting mips-linux-gnu as a target triple and n32 as an ABI's name it forms mips64-linux-gnuabin32.

This patch depends on D38799.

Diff Detail

Repository
rL LLVM

Event Timeline

atanasyan created this revision.Oct 11 2017, 7:33 AM
rengolin added inline comments.Oct 23 2017, 1:57 PM
include/llvm/ADT/Triple.h
750

If this is Mips specific it should bear the name, like the ARM stuff.

atanasyan abandoned this revision.Jul 4 2018, 7:29 AM