[PATCH] D102805: [M68k] Allow user to preserve certain registers

Min-Yih Hsu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed May 19 13:51:11 PDT 2021


myhsu created this revision.
myhsu added reviewers: nickdesaulniers, simoncook.
Herald added subscribers: dang, s.egerton, hiraditya.
myhsu requested review of this revision.
Herald added projects: clang, LLVM.
Herald added subscribers: llvm-commits, cfe-commits.

Add `-ffixed-a[0-6]` and `-ffixed-d[0-7]` driver flags and the corresponding subtarget features to prevent certain register from being allocated.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102805

Files:
  clang/include/clang/Driver/Options.td
  clang/lib/Driver/ToolChains/Arch/M68k.cpp
  clang/test/Driver/m68k-fixed-register.c
  llvm/lib/Target/M68k/M68k.td
  llvm/lib/Target/M68k/M68kRegisterInfo.cpp
  llvm/lib/Target/M68k/M68kSubtarget.cpp
  llvm/lib/Target/M68k/M68kSubtarget.h
  llvm/test/CodeGen/M68k/reserved-regs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102805.346549.patch
Type: text/x-patch
Size: 11964 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210519/b110c8d0/attachment-0001.bin>


More information about the cfe-commits mailing list