[PATCH] D64743: [mips] Implement .cplocal directive

Simon Atanasyan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 07:39:07 PDT 2019


atanasyan created this revision.
atanasyan added a reviewer: Petar.Avramovic.
Herald added subscribers: jrtc27, hiraditya, arichardson, sdardis.
Herald added a project: LLVM.

This directive forces to use an alternate register for context pointer.

For example, this code:

  .cplocal $4
  jal foo

expands to:

  ld    $25, %call16(foo)($4)
  jalr  $25


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64743

Files:
  llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
  llvm/lib/Target/Mips/MCTargetDesc/MipsTargetStreamer.cpp
  llvm/lib/Target/Mips/MipsTargetStreamer.h
  llvm/test/MC/Mips/cplocal-bad.s
  llvm/test/MC/Mips/cplocal.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64743.209855.patch
Type: text/x-patch
Size: 16589 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190715/ae7036e9/attachment.bin>


More information about the llvm-commits mailing list