summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Mips/MipsISelLowering.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-06-30 22:38:32 +0000
committerBill Wendling <isanbard@gmail.com>2009-06-30 22:38:32 +0000
commit31ceb1bcba994e1774a5638f0b3819277a1c9211 (patch)
treec7e6872113a8598ea99667541a54704993cde0ac /llvm/lib/Target/Mips/MipsISelLowering.h
parenta727cb98a46a1289ea8a9bfd5b1b1e802330edf6 (diff)
downloadbcm5719-llvm-31ceb1bcba994e1774a5638f0b3819277a1c9211.tar.gz
bcm5719-llvm-31ceb1bcba994e1774a5638f0b3819277a1c9211.zip
Add an "alignment" field to the MachineFunction object. It makes more sense to
have the alignment be calculated up front, and have the back-ends obey whatever alignment is decided upon. This allows for future work that would allow for precise no-op placement and the like. llvm-svn: 74564
Diffstat (limited to 'llvm/lib/Target/Mips/MipsISelLowering.h')
-rw-r--r--llvm/lib/Target/Mips/MipsISelLowering.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsISelLowering.h b/llvm/lib/Target/Mips/MipsISelLowering.h
index 55cd6eadd09..daef0ad6077 100644
--- a/llvm/lib/Target/Mips/MipsISelLowering.h
+++ b/llvm/lib/Target/Mips/MipsISelLowering.h
@@ -84,6 +84,8 @@ namespace llvm {
/// getSetCCResultType - get the ISD::SETCC result ValueType
MVT getSetCCResultType(MVT VT) const;
+ /// getFunctionAlignment - Return the function alignment.
+ virtual unsigned getFunctionAlignment(const Function *F) const;
private:
// Subtarget Info
const MipsSubtarget *Subtarget;
OpenPOWER on IntegriCloud