[PowerPC] Add predicted forms of branches
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 24 Jun 2013 16:52:04 +0000 (16:52 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 24 Jun 2013 16:52:04 +0000 (16:52 +0000)
commit86247b6e27c37a8693d4d63789a9b2659b181b10
treee554641003d6ddf1a4ede05f9121847d7b43e729
parenta466b9aeb9138cff95bf06889b2d6d31d6b986cf
[PowerPC] Add predicted forms of branches

This adds support for the predicted forms of branches (+/-).
There are three cases to consider:
- Branches using a PPC::Predicate code
  For these, I've added new PPC::Predicate codes corresponding
  to the BO values for predicted branch forms, and updated insn
  printing to print them correctly.  I've also added new aliases
  for the asm parser matching the new forms.
- bt/bf
  I've added new aliases matching to gBC etc.
- bd(n)z variants
  I've added new instruction patterns for the predicted forms.

In all cases, the new patterns are used for the asm parser only.
(The new infrastructure ought to be sufficient to allow use by
the compiler too at some point.)

llvm-svn: 184754
llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
llvm/lib/Target/PowerPC/InstPrinter/PPCInstPrinter.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCPredicates.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h
llvm/lib/Target/PowerPC/PPCInstr64Bit.td
llvm/lib/Target/PowerPC/PPCInstrInfo.td
llvm/test/MC/PowerPC/ppc64-encoding-ext.s