[all-commits] [llvm/llvm-project] 8f6620: [MSP430] Update register names

Anatoly Trosinenko via All-commits all-commits at lists.llvm.org
Mon Jun 22 03:24:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f6620f663031da2bb35b788239f4b607271af84
      https://github.com/llvm/llvm-project/commit/8f6620f663031da2bb35b788239f4b607271af84
  Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
  Date:   2020-06-22 (Mon, 22 Jun 2020)

  Changed paths:
    M clang/lib/Basic/Targets/MSP430.h
    A clang/test/CodeGen/msp430-register-names.c
    M llvm/lib/Target/MSP430/AsmParser/MSP430AsmParser.cpp
    M llvm/lib/Target/MSP430/Disassembler/MSP430Disassembler.cpp
    M llvm/lib/Target/MSP430/MSP430FrameLowering.cpp
    M llvm/lib/Target/MSP430/MSP430ISelLowering.cpp
    M llvm/lib/Target/MSP430/MSP430RegisterInfo.cpp
    M llvm/lib/Target/MSP430/MSP430RegisterInfo.td
    M llvm/test/CodeGen/MSP430/asm-clobbers.ll
    A llvm/test/CodeGen/MSP430/inline-asm-register-names.ll

  Log Message:
  -----------
  [MSP430] Update register names

When writing a unit test on replacing standard epilogue sequences with `BR __mspabi_func_epilog_<N>`, by manually asm-clobbering `rN` - `r10` for N = 4..10, everything worked well except for seeming inability to clobber r4.

The problem was that MSP430 code generator of LLVM used an obsolete name FP for that register. Things were worse because when `llc` read an unknown register name, it silently ignored it.

Differential Revision: https://reviews.llvm.org/D82184




More information about the All-commits mailing list