[llvm] r179690 - PowerPC: Mark some more patterns as isCodeGenOnly.

Ulrich Weigand ulrich.weigand at de.ibm.com
Wed Apr 17 10:19:05 PDT 2013


Author: uweigand
Date: Wed Apr 17 12:19:05 2013
New Revision: 179690

URL: http://llvm.org/viewvc/llvm-project?rev=179690&view=rev
Log:

PowerPC: Mark some more patterns as isCodeGenOnly.

A couple of recently introduced conditional branch patterns
also need to be marked as isCodeGenOnly since they cannot
be handled by the asm parser.

No change in generated code.


Modified:
    llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td
    llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td

Modified: llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td?rev=179690&r1=179689&r2=179690&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstr64Bit.td Wed Apr 17 12:19:05 2013
@@ -72,6 +72,7 @@ let isTerminator = 1, isBarrier = 1, PPC
     def BCTR8 : XLForm_2_ext<19, 528, 20, 0, 0, (outs), (ins), "bctr", BrB, []>,
         Requires<[In64BitMode]>;
 
+    let isCodeGenOnly = 1 in
     def BCCTR8 : XLForm_2_br<19, 528, 0, (outs), (ins pred:$cond),
                              "b${cond:cc}ctr ${cond:reg}", BrB, []>,
         Requires<[In64BitMode]>;
@@ -131,6 +132,8 @@ let isCall = 1, PPC970_Unit = 7, Defs =
     def BCTRL8 : XLForm_2_ext<19, 528, 20, 0, 1, (outs), (ins),
                               "bctrl", BrB, [(PPCbctrl)]>,
                  Requires<[In64BitMode]>;
+
+    let isCodeGenOnly = 1 in
     def BCCTRL8 : XLForm_2_br<19, 528, 1, (outs), (ins pred:$cond),
                               "b${cond:cc}ctrl ${cond:reg}", BrB, []>,
         Requires<[In64BitMode]>;

Modified: llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td?rev=179690&r1=179689&r2=179690&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCInstrInfo.td Wed Apr 17 12:19:05 2013
@@ -725,6 +725,7 @@ let isTerminator = 1, isBarrier = 1, PPC
   let isBranch = 1, isIndirectBranch = 1, Uses = [CTR] in {
     def BCTR : XLForm_2_ext<19, 528, 20, 0, 0, (outs), (ins), "bctr", BrB, []>;
 
+    let isCodeGenOnly = 1 in
     def BCCTR : XLForm_2_br<19, 528, 0, (outs), (ins pred:$cond),
                             "b${cond:cc}ctr ${cond:reg}", BrB, []>;
   }
@@ -788,6 +789,8 @@ let isCall = 1, PPC970_Unit = 7, Defs =
     def BCTRL : XLForm_2_ext<19, 528, 20, 0, 1, (outs), (ins),
                              "bctrl", BrB, [(PPCbctrl)]>,
                 Requires<[In32BitMode]>;
+
+    let isCodeGenOnly = 1 in
     def BCCTRL : XLForm_2_br<19, 528, 1, (outs), (ins pred:$cond),
                              "b${cond:cc}ctrl ${cond:reg}", BrB, []>;
   }





More information about the llvm-commits mailing list