[StackMaps] Allow the target to pre-process the live-out mask
authorHal Finkel <hfinkel@anl.gov>
Tue, 13 Jan 2015 17:47:59 +0000 (17:47 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 13 Jan 2015 17:47:59 +0000 (17:47 +0000)
commit5e508855d671d5fdc49116d440cd3e543aa0a203
tree301c0f08e7b3623b4c7d78c8fbc642f386656a09
parenta82e676bac986efb8467c0cfc05ed61f03a874e2
[StackMaps] Allow the target to pre-process the live-out mask

Some targets, PowerPC for example, have pseudo-registers (such as that used to
represent the rounding mode), that don't have DWARF register numbers or a
register class. These are used only for internal dependency tracking, and
should not appear in the recorded live-outs. This adds a callback allowing the
target to pre-process the live-out mask in order to remove these kinds of
registers so that the StackMaps code does not complain about them and/or
attempt to include them in the output.

This will be used by the PowerPC target in a future commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225805 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetRegisterInfo.h
lib/CodeGen/StackMapLivenessAnalysis.cpp