Move PPC getSwappedPredicate for reuse
authorHal Finkel <hfinkel@anl.gov>
Sat, 20 Apr 2013 05:16:26 +0000 (05:16 +0000)
committerHal Finkel <hfinkel@anl.gov>
Sat, 20 Apr 2013 05:16:26 +0000 (05:16 +0000)
commitabe64dc6f7363c7e6170568e382fb06d81d62f51
tree476ca3e25085fe35bdb7a3ac5387a3d028bb0f38
parent456ca048af35163b9f52187e92a23ee0a9f059e8
Move PPC getSwappedPredicate for reuse

The getSwappedPredicate function can be used in other places (such as in
improvements to the PPCCTRLoops pass). Instead of trapping it as a static
function in PPCInstrInfo, move it into PPCPredicates with other
predicate-related things.

No functionality change intended.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179926 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/MCTargetDesc/PPCPredicates.cpp
lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h
lib/Target/PowerPC/PPCInstrInfo.cpp