summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Hexagon/HexagonInstrInfo.h
diff options
context:
space:
mode:
authorBrendon Cahoon <bcahoon@codeaurora.org>2015-04-27 14:16:43 +0000
committerBrendon Cahoon <bcahoon@codeaurora.org>2015-04-27 14:16:43 +0000
commit55bdeb7bc783a48c9970a48949de10fb802cba96 (patch)
tree588ea647197736699d58e3687197ccc933c3119a /llvm/lib/Target/Hexagon/HexagonInstrInfo.h
parentd9d344b48584727c2690cce89f320ad0a09f659c (diff)
downloadbcm5719-llvm-55bdeb7bc783a48c9970a48949de10fb802cba96.tar.gz
bcm5719-llvm-55bdeb7bc783a48c9970a48949de10fb802cba96.zip
[Hexagon] Use constant extenders to fix up hardware loops
Use a loop instruction with a constant extender for a hardware loop instruction that is too far away from the start of the loop. This is cheaper than changing the SA register value. Differential Revision: http://reviews.llvm.org/D9262 llvm-svn: 235882
Diffstat (limited to 'llvm/lib/Target/Hexagon/HexagonInstrInfo.h')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonInstrInfo.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonInstrInfo.h b/llvm/lib/Target/Hexagon/HexagonInstrInfo.h
index ac88ea6e0a4..047f87fc295 100644
--- a/llvm/lib/Target/Hexagon/HexagonInstrInfo.h
+++ b/llvm/lib/Target/Hexagon/HexagonInstrInfo.h
@@ -1,3 +1,4 @@
+
//===- HexagonInstrInfo.h - Hexagon Instruction Information -----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
@@ -203,7 +204,8 @@ public:
void immediateExtend(MachineInstr *MI) const;
- bool isConstExtended(MachineInstr *MI) const;
+ bool isConstExtended(const MachineInstr *MI) const;
+ unsigned getSize(const MachineInstr *MI) const;
int getDotNewPredJumpOp(MachineInstr *MI,
const MachineBranchProbabilityInfo *MBPI) const;
unsigned getAddrMode(const MachineInstr* MI) const;
OpenPOWER on IntegriCloud