[PATCH] D71629: [SystemZ] Recognize mrecord-mcount in backend

Jonas Paulsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 17 14:07:00 PST 2019


jonpa created this revision.
jonpa added a reviewer: uweigand.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

Emit the __mcount_loc_ section with all __fentry__calls.

This is done using just raw text like gcc does it (see gcc at 06477d3). Is this acceptable?

A check in SystemZDAGToDAGISel::runOnMachineFunction() just like for mnop-mcount to make sure this is only used together with -mfentry.


https://reviews.llvm.org/D71629

Files:
  llvm/lib/Target/SystemZ/SystemZAsmPrinter.cpp
  llvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
  llvm/test/CodeGen/SystemZ/mrecord-mcount-01.ll
  llvm/test/CodeGen/SystemZ/mrecord-mcount-02.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71629.234385.patch
Type: text/x-patch
Size: 3790 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191217/965439d0/attachment.bin>


More information about the llvm-commits mailing list