[PATCH] D38530: [AArch64] Add support for dllimport of values and functions

Martin Storsjö via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 4 01:18:10 PDT 2017


mstorsjo created this revision.
Herald added subscribers: kristof.beyls, javed.absar, aemerson.

Previously, the dllimport attribute did the right thing in terms of treating it as a pointer to a value, but this makes sure the names get mangled properly, and calls to such functions load the function from the __imp_ pointer.

This is based on SVN r212431 and r212430 where the same was implemented for ARM.


https://reviews.llvm.org/D38530

Files:
  lib/Target/AArch64/AArch64ISelLowering.cpp
  lib/Target/AArch64/AArch64ISelLowering.h
  lib/Target/AArch64/AArch64MCInstLower.cpp
  lib/Target/AArch64/Utils/AArch64BaseInfo.h
  test/CodeGen/AArch64/dllimport.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38530.117632.patch
Type: text/x-patch
Size: 9721 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171004/7955d047/attachment.bin>


More information about the llvm-commits mailing list