[PATCH] D37581: Implement pagerando wrapper functions to initialize POT register

Stephen Crane via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 18 18:29:57 PST 2018


rinon updated this revision to Diff 130534.
rinon added a comment.

Ensure that pagerando wrapper functions are placed before binned functions

Gold assumes that the first executable section should be laid out first in the
file, but we want the normal .text section to come first and all pagerando bins
to be placed at the end of the file. To ensure that the first function emitted
will be in the normal .text section we prepend wrapper functions (which are
emitted to the normal .text) onto the Module function list.


Repository:
  rL LLVM

https://reviews.llvm.org/D37581

Files:
  docs/BitCodeFormat.rst
  docs/LangRef.rst
  include/llvm/Bitcode/LLVMBitCodes.h
  include/llvm/IR/Attributes.td
  include/llvm/IR/Function.h
  include/llvm/InitializePasses.h
  include/llvm/LinkAllPasses.h
  include/llvm/Transforms/IPO.h
  lib/AsmParser/LLLexer.cpp
  lib/AsmParser/LLParser.cpp
  lib/AsmParser/LLToken.h
  lib/Bitcode/Reader/BitcodeReader.cpp
  lib/Bitcode/Writer/BitcodeWriter.cpp
  lib/IR/Attributes.cpp
  lib/IR/Verifier.cpp
  lib/LTO/LTOBackend.cpp
  lib/Transforms/IPO/CMakeLists.txt
  lib/Transforms/IPO/IPO.cpp
  lib/Transforms/IPO/PagerandoWrappers.cpp
  lib/Transforms/Utils/CodeExtractor.cpp
  test/Transforms/PagerandoWrappers/address-taken.ll
  test/Transforms/PagerandoWrappers/calls.ll
  test/Transforms/PagerandoWrappers/varargs.ll
  test/Transforms/PagerandoWrappers/wrapper-body.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37581.130534.patch
Type: text/x-patch
Size: 27845 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180119/79402aed/attachment.bin>


More information about the llvm-commits mailing list