Add support mips64(el)-linux-gnuabin32 triples, and set them to N32.
Debian architecture name mipsn32/mipsn32el are also added.
Set UseIntegratedAssembler for N32 if we can detect it.
Paths
| Differential D51408
llvm: Fix MIPS N32 triples support ClosedPublic Authored by wzssyqa on Aug 29 2018, 2:13 AM.
Details Summary Add support mips64(el)-linux-gnuabin32 triples, and set them to N32. Set UseIntegratedAssembler for N32 if we can detect it.
Diff Detail
Event TimelineHerald added subscribers: dexonsmith, jrtc27, arichardson, sdardis. · View Herald TranscriptAug 29 2018, 2:13 AM
wzssyqa retitled this revision from Fix MIPS N32 triples support to llvm: Fix MIPS N32 triples support.Aug 29 2018, 9:36 AM This revision is now accepted and ready to land.Sep 1 2018, 12:05 AM Closed by commit rL342416: [mips] Fix MIPS N32 ABI triples support (authored by atanasyan). · Explain WhySep 17 2018, 2:24 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 163029 include/llvm/ADT/Triple.h
lib/Support/Triple.cpp
lib/Target/Mips/MCTargetDesc/MipsABIInfo.cpp
lib/Target/Mips/MCTargetDesc/MipsAsmBackend.cpplib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
test/MC/Mips/elf-N32.s
unittests/ADT/TripleTest.cpp
|
In general, this change is good. But it highlights a problem - there is two entities hold ABI info. The first one is Option.ABIName, the second one is getEnvironment. Both options should be consistent. Is it possible to set ABIName to n32 always if getEnvironment is GNUABIN32 and check just ABIName here?