[PATCH] D12293: Rework of the interface to enable shrink wrapping

Kit Barton via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 24 11:10:35 PDT 2015


kbarton created this revision.
kbarton added reviewers: hfinkel, qcolombet.
kbarton added subscribers: llvm-commits, wschmidt.

Based on comments from Hal (http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20150810/292978.html), I've changed the interface to add a callback mechanism to the TargetFrameLowering class to query whether the specific target supports shrink wrapping.  By default, shrink wrapping is disabled by default. Each target can override the default behaviour using the TargetFrameLowering::targetSupportsShrinkWrapping() method. Shrink wrapping can still be explicitly enabled or disabled from the command line, using the existing -enable-shrink-wrap=<true|false> option.

http://reviews.llvm.org/D12293

Files:
  include/llvm/CodeGen/Passes.h
  include/llvm/Target/TargetFrameLowering.h
  lib/CodeGen/Passes.cpp
  lib/CodeGen/ShrinkWrap.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12293.32980.patch
Type: text/x-patch
Size: 5423 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150824/118fe055/attachment.bin>


More information about the llvm-commits mailing list