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 | e79beacb32ddc1e791fa81357ee15cc2ff2f8ec3 (patch) | |
| tree | 36fe010a9d9ae7de6c76bc399afb6b2835c0bf48 /llvm/lib/Target/Hexagon | |
| parent | 635e368e334de6075da8c7ac6727ea4a812797ff (diff) | |
| download | bcm5719-llvm-e79beacb32ddc1e791fa81357ee15cc2ff2f8ec3.tar.gz bcm5719-llvm-e79beacb32ddc1e791fa81357ee15cc2ff2f8ec3.zip | |
Hexagon: Make helper functions static.
llvm-svn: 182588
Diffstat (limited to 'llvm/lib/Target/Hexagon')
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp | 5 | ||||
| -rw-r--r-- | llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp b/llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp index dd635232912..9f75ecb4c46 100644 --- a/llvm/lib/Target/Hexagon/HexagonCopyToCombine.cpp +++ b/llvm/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/llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp b/llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp index 59b4fabe01d..41e382dc072 100644 --- a/llvm/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp +++ b/llvm/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. |

