[PATCH] D31658: [LLD][ELF] Introduce Thunk reuse compatibility

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 04:03:45 PDT 2017


peter.smith created this revision.
Herald added subscribers: rengolin, aemerson.

On ARM the interworking thunks are only produced for branch instructions that can't be changed into a blx instruction so only Thumb callers would call Thumb thunks and only ARM callers would call ARM thunks. With range extension thunks branch and link instructions may need a Thunk. These instructions can be rewritten as a blx and can use either ARM or Thumb thunks.

We introduce a compatibleWith() function so that a caller can check if an existing Thunk is compatible before reusing it.


https://reviews.llvm.org/D31658

Files:
  ELF/Relocations.cpp
  ELF/Thunks.cpp
  ELF/Thunks.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31658.94037.patch
Type: text/x-patch
Size: 4397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170404/005e9997/attachment.bin>


More information about the llvm-commits mailing list