summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvandro Menezes <e.menezes@samsung.com>2018-11-06 22:17:14 +0000
committerEvandro Menezes <e.menezes@samsung.com>2018-11-06 22:17:14 +0000
commitf1a0d93b1d0d884deecd1810aeb00cc64f90e288 (patch)
treeb59c0a8ec4d8a3c173931eeef9ea37914ce10915
parent24994d77b8178f4c65dd4ef9c82748d337a48f2f (diff)
downloadbcm5719-llvm-f1a0d93b1d0d884deecd1810aeb00cc64f90e288.tar.gz
bcm5719-llvm-f1a0d93b1d0d884deecd1810aeb00cc64f90e288.zip
[PATCH] [AArch64] Refactor helper functions (NFC)
Refactor helper functions in AArch64InstrInfo to be static methods. llvm-svn: 346273
-rw-r--r--llvm/lib/Target/AArch64/AArch64InstrInfo.cpp8
-rw-r--r--llvm/lib/Target/AArch64/AArch64InstrInfo.h8
2 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
index c168184beb9..7b4e0512805 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
@@ -758,7 +758,7 @@ bool AArch64InstrInfo::isAsCheapAsAMove(const MachineInstr &MI) const {
llvm_unreachable("Unknown opcode to check as cheap as a move!");
}
-bool AArch64InstrInfo::isExynosResetFast(const MachineInstr &MI) const {
+bool AArch64InstrInfo::isExynosResetFast(const MachineInstr &MI) {
unsigned Reg, Imm, Shift;
switch (MI.getOpcode()) {
@@ -829,7 +829,7 @@ bool AArch64InstrInfo::isExynosResetFast(const MachineInstr &MI) const {
}
}
-bool AArch64InstrInfo::isExynosLdStExtFast(const MachineInstr &MI) const {
+bool AArch64InstrInfo::isExynosLdStExtFast(const MachineInstr &MI) {
unsigned Imm;
AArch64_AM::ShiftExtendType Ext;
@@ -894,7 +894,7 @@ bool AArch64InstrInfo::isExynosLdStExtFast(const MachineInstr &MI) const {
}
}
-bool AArch64InstrInfo::isExynosShiftExtFast(const MachineInstr &MI) const {
+bool AArch64InstrInfo::isExynosShiftExtFast(const MachineInstr &MI) {
unsigned Imm, Shift;
AArch64_AM::ShiftExtendType Ext;
@@ -963,7 +963,7 @@ bool AArch64InstrInfo::isExynosShiftExtFast(const MachineInstr &MI) const {
}
}
-bool AArch64InstrInfo::isFalkorShiftExtFast(const MachineInstr &MI) const {
+bool AArch64InstrInfo::isFalkorShiftExtFast(const MachineInstr &MI) {
switch (MI.getOpcode()) {
default:
return false;
diff --git a/llvm/lib/Target/AArch64/AArch64InstrInfo.h b/llvm/lib/Target/AArch64/AArch64InstrInfo.h
index c156df57127..43011dd4c3e 100644
--- a/llvm/lib/Target/AArch64/AArch64InstrInfo.h
+++ b/llvm/lib/Target/AArch64/AArch64InstrInfo.h
@@ -256,16 +256,16 @@ public:
bool shouldOutlineFromFunctionByDefault(MachineFunction &MF) const override;
/// Returns true if the instruction sets a constant value that can be
/// executed more efficiently.
- bool isExynosResetFast(const MachineInstr &MI) const;
+ static bool isExynosResetFast(const MachineInstr &MI);
/// Returns true if the load or store has an extension that can be executed
/// more efficiently.
- bool isExynosLdStExtFast(const MachineInstr &MI) const;
+ static bool isExynosLdStExtFast(const MachineInstr &MI);
/// Returns true if the instruction has a constant shift left or extension
/// that can be executed more efficiently.
- bool isExynosShiftExtFast(const MachineInstr &MI) const;
+ static bool isExynosShiftExtFast(const MachineInstr &MI);
/// Returns true if the instruction has a shift by immediate that can be
/// executed in one cycle less.
- bool isFalkorShiftExtFast(const MachineInstr &MI) const;
+ static bool isFalkorShiftExtFast(const MachineInstr &MI);
/// Return true if the instructions is a SEH instruciton used for unwinding
/// on Windows.
static bool isSEHInstruction(const MachineInstr &MI);
OpenPOWER on IntegriCloud