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

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 07:33:23 PDT 2017


atanasyan created this revision.
Herald added a subscriber: arichardson.

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 https://reviews.llvm.org/D38799.


Repository:
  rL LLVM

https://reviews.llvm.org/D38800

Files:
  include/llvm/ADT/Triple.h
  lib/Support/Triple.cpp
  test/CodeGen/Mips/compactbranches/no-beqzc-bnezc.ll
  test/MC/Mips/expansion-jal-sym-pic.s
  test/MC/Mips/macro-li.d.s
  test/MC/Mips/macro-li.s.s
  tools/llc/llc.cpp
  tools/llvm-mc/llvm-mc.cpp
  unittests/ADT/TripleTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38800.118615.patch
Type: text/x-patch
Size: 11335 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171011/a268caa9/attachment.bin>


More information about the llvm-commits mailing list