[llvm] r174177 - Remove currently unused register decoder from AArch64.

Tim Northover Tim.Northover at arm.com
Fri Feb 1 06:55:05 PST 2013


Author: tnorthover
Date: Fri Feb  1 08:55:05 2013
New Revision: 174177

URL: http://llvm.org/viewvc/llvm-project?rev=174177&view=rev
Log:
Remove currently unused register decoder from AArch64.

This should fix a warning when building this backend.

Modified:
    llvm/trunk/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp

Modified: llvm/trunk/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp?rev=174177&r1=174176&r2=174177&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp Fri Feb  1 08:55:05 2013
@@ -79,8 +79,6 @@ static DecodeStatus DecodeFPR64RegisterC
                                          uint64_t Address, const void *Decoder);
 static DecodeStatus DecodeFPR128RegisterClass(llvm::MCInst &Inst, unsigned RegNo,
                                          uint64_t Address, const void *Decoder);
-static DecodeStatus DecodeVPR64RegisterClass(llvm::MCInst &Inst, unsigned RegNo,
-                                              uint64_t Address, const void *Decoder);
 static DecodeStatus DecodeVPR128RegisterClass(llvm::MCInst &Inst, unsigned RegNo,
                                               uint64_t Address, const void *Decoder);
 
@@ -326,18 +324,6 @@ DecodeFPR128RegisterClass(llvm::MCInst &
   return MCDisassembler::Success;
 }
 
-
-static DecodeStatus
-DecodeVPR64RegisterClass(llvm::MCInst &Inst, unsigned RegNo,
-                         uint64_t Address, const void *Decoder) {
-  if (RegNo > 31)
-    return MCDisassembler::Fail;
-
-  uint16_t Register = getReg(Decoder, AArch64::VPR64RegClassID, RegNo);
-  Inst.addOperand(MCOperand::CreateReg(Register));
-  return MCDisassembler::Success;
-}
-
 static DecodeStatus
 DecodeVPR128RegisterClass(llvm::MCInst &Inst, unsigned RegNo,
                          uint64_t Address, const void *Decoder) {





More information about the llvm-commits mailing list