diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-05-23 15:43:11 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-05-23 15:43:11 +0000 |
commit | a32218a7eca458e55217f5a0674c23351a9472ac (patch) | |
tree | 835dadcad1cdccab0209ccdd776aa9fca4500051 | |
parent | 879b071bf539163f90a5ef449d3e6a9ec73faa2f (diff) | |
download | external_llvm-a32218a7eca458e55217f5a0674c23351a9472ac.zip external_llvm-a32218a7eca458e55217f5a0674c23351a9472ac.tar.gz external_llvm-a32218a7eca458e55217f5a0674c23351a9472ac.tar.bz2 |
Hexagon: Make helper functions static.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182588 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/Hexagon/HexagonCopyToCombine.cpp | 5 | ||||
-rw-r--r-- | lib/Target/Hexagon/HexagonVLIWPacketizer.cpp | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/Target/Hexagon/HexagonCopyToCombine.cpp b/lib/Target/Hexagon/HexagonCopyToCombine.cpp index dd63523..9f75ecb 100644 --- a/lib/Target/Hexagon/HexagonCopyToCombine.cpp +++ b/lib/Target/Hexagon/HexagonCopyToCombine.cpp @@ -219,8 +219,9 @@ static void removeKillInfo(MachineInstr *MI, unsigned RegNotKilled) { /// isUnsafeToMoveAccross - Returns true if it is unsafe to move a copy /// instruction from \p UseReg to \p DestReg over the instruction \p I. -bool isUnsafeToMoveAccross(MachineInstr *I, unsigned UseReg, unsigned DestReg, - const TargetRegisterInfo *TRI) { +static bool isUnsafeToMoveAccross(MachineInstr *I, unsigned UseReg, + unsigned DestReg, + const TargetRegisterInfo *TRI) { return (UseReg && (I->modifiesRegister(UseReg, TRI))) || I->modifiesRegister(DestReg, TRI) || I->readsRegister(DestReg, TRI) || diff --git a/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp b/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp index 59b4fab..41e382d 100644 --- a/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp +++ b/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp @@ -838,7 +838,8 @@ bool HexagonPacketizerList::RestrictingDepExistInPacket (MachineInstr* MI, /// Gets the predicate register of a predicated instruction. -unsigned getPredicatedRegister(MachineInstr *MI, const HexagonInstrInfo *QII) { +static unsigned getPredicatedRegister(MachineInstr *MI, + const HexagonInstrInfo *QII) { /// We use the following rule: The first predicate register that is a use is /// the predicate register of a predicated instruction. |