[PowerPC][NFC] Clang-format on commit 4b414d
authorVictor Huang <wei.huang@ibm.com>
Wed, 5 Feb 2020 19:47:54 +0000 (13:47 -0600)
committerVictor Huang <wei.huang@ibm.com>
Wed, 5 Feb 2020 19:47:54 +0000 (13:47 -0600)
llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp

index 343c0eb..ed98852 100644 (file)
@@ -356,9 +356,10 @@ public:
   bool isS16ImmX16() const { return Kind == Expression ||
                                     (Kind == Immediate && isInt<16>(getImm()) &&
                                      (getImm() & 15) == 0); }
-  bool isS34ImmX16() const { return Kind == Expression ||
-                                    (Kind == Immediate && isInt<34>(getImm()) &&
-                                    (getImm() & 15) == 0); }
+  bool isS34ImmX16() const {
+    return Kind == Expression ||
+           (Kind == Immediate && isInt<34>(getImm()) && (getImm() & 15) == 0);
+  }
   bool isS34Imm() const {
     // Once the PC-Rel ABI is finalized, evaluate whether a 34-bit
     // ContextImmediate is needed.
index 9113592..2ff3f5d 100644 (file)
@@ -469,7 +469,7 @@ void PPCInstPrinter::printMemRegImm34PCRel(const MCInst *MI, unsigned OpNo,
                                            raw_ostream &O) {
   printS34ImmOperand(MI, OpNo, O);
   O << '(';
-  printImmZeroOperand(MI, OpNo+1, O);
+  printImmZeroOperand(MI, OpNo + 1, O);
   O << ')';
 }
 
@@ -477,7 +477,7 @@ void PPCInstPrinter::printMemRegImm34(const MCInst *MI, unsigned OpNo,
                                         raw_ostream &O) {
   printS34ImmOperand(MI, OpNo, O);
   O << '(';
-  printOperand(MI, OpNo+1, O);
+  printOperand(MI, OpNo + 1, O);
   O << ')';
 }
 
index 86c93ab..672f6e0 100644 (file)
@@ -183,9 +183,8 @@ PPCMCCodeEmitter::getMemRI34Encoding(const MCInst &MI, unsigned OpNo,
   // Encode (imm, reg) as a memri34, which has the low 34-bits as the
   // displacement and the next 5 bits as the register #.
   assert(MI.getOperand(OpNo + 1).isReg() && "Expecting a register.");
-  uint64_t RegBits =
-    getMachineOpValue(MI, MI.getOperand(OpNo + 1), Fixups, STI) << 34;
-
+  uint64_t RegBits = getMachineOpValue(MI, MI.getOperand(OpNo + 1), Fixups, STI)
+                     << 34;
   const MCOperand &MO = MI.getOperand(OpNo);
   return ((getMachineOpValue(MI, MO, Fixups, STI)) & 0x3FFFFFFFFUL) | RegBits;
 }