[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)
commitdf87f9383b6e13e9bdaf3fe5c6a7d914fcc7def6
tree5fb1a2d0e32d6427989e49bda1f9e128248d1a0d
parentf4a22c0d4805b0a8fa1f64e89ad6871a44c9bea4
[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.

llvm-svn: 225805
llvm/include/llvm/Target/TargetRegisterInfo.h
llvm/lib/CodeGen/StackMapLivenessAnalysis.cpp