aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PIC16
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
commit25a8ae3f10965b47ecaa9eda5e997f16fe1d9414 (patch)
tree5542e5d0c5b1b7e34d9e5edf1f6ba4a2ce853dca /lib/Target/PIC16
parentbab5da1290d6e8f19a4a291acff93c58ff5966a4 (diff)
downloadexternal_llvm-25a8ae3f10965b47ecaa9eda5e997f16fe1d9414.zip
external_llvm-25a8ae3f10965b47ecaa9eda5e997f16fe1d9414.tar.gz
external_llvm-25a8ae3f10965b47ecaa9eda5e997f16fe1d9414.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PIC16')
-rw-r--r--lib/Target/PIC16/PIC16ISelLowering.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Target/PIC16/PIC16ISelLowering.h b/lib/Target/PIC16/PIC16ISelLowering.h
index ca9650d..d5008c3 100644
--- a/lib/Target/PIC16/PIC16ISelLowering.h
+++ b/lib/Target/PIC16/PIC16ISelLowering.h
@@ -145,6 +145,11 @@ namespace llvm {
unsigned GetTmpSize() { return TmpSize; }
void SetTmpSize(unsigned Size) { TmpSize = Size; }
+ /// getFunctionAlignment - Return the function alignment.
+ virtual unsigned getFunctionAlignment(const Function *) const {
+ // FIXME: The function never seems to be aligned.
+ return 1;
+ }
private:
// If the Node is a BUILD_PAIR representing a direct Address,
// then this function will return true.