[PATCH] D78062: Adding Comment Annotations to Outlined Functions

Andrew Litteken via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 13 16:20:05 PDT 2020


AndrewLitteken created this revision.
AndrewLitteken added a reviewer: paquette.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

To help explain how a function was outlined the way it was, function annotations are adde in the comments of the output assembly to explain the results.  This is done by added Metadata to the function, and, when in verbose mode, when the name of the function is put in the comments near the label for the function, how it was outlined is explained next to the name.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78062

Files:
  llvm/include/llvm/CodeGen/MachineOutliner.h
  llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  llvm/lib/CodeGen/MachineOutliner.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/lib/Target/X86/X86InstrInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78062.257136.patch
Type: text/x-patch
Size: 13256 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200413/96b3da0f/attachment.bin>


More information about the llvm-commits mailing list