diff options
author | Hal Finkel <hfinkel@anl.gov> | 2011-10-17 18:23:13 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2011-10-17 18:23:13 +0000 |
commit | 442bf7a64d9a514c7df46505a0b2ee09fd4b8692 (patch) | |
tree | fa2b0f42c6383032a469367d293b29fa0345f2aa /include | |
parent | 728662f9e869251ff9b5a847b0cb0daa99d1d250 (diff) | |
download | external_llvm-442bf7a64d9a514c7df46505a0b2ee09fd4b8692.zip external_llvm-442bf7a64d9a514c7df46505a0b2ee09fd4b8692.tar.gz external_llvm-442bf7a64d9a514c7df46505a0b2ee09fd4b8692.tar.bz2 |
Add comments to TargetLowering.h indicating that the set*Alignment functions take arguments in log2(bytes)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142213 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index d2cdc5b..dca78a3 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -1138,26 +1138,28 @@ protected: JumpBufAlignment = Align; } - /// setMinFunctionAlignment - Set the target's minimum function alignment. + /// setMinFunctionAlignment - Set the target's minimum function alignment (in + /// log2(bytes)) void setMinFunctionAlignment(unsigned Align) { MinFunctionAlignment = Align; } /// setPrefFunctionAlignment - Set the target's preferred function alignment. /// This should be set if there is a performance benefit to - /// higher-than-minimum alignment + /// higher-than-minimum alignment (in log2(bytes)) void setPrefFunctionAlignment(unsigned Align) { PrefFunctionAlignment = Align; } /// setPrefLoopAlignment - Set the target's preferred loop alignment. Default /// alignment is zero, it means the target does not care about loop alignment. + /// The alignment is specified in log2(bytes). void setPrefLoopAlignment(unsigned Align) { PrefLoopAlignment = Align; } /// setMinStackArgumentAlignment - Set the minimum stack alignment of an - /// argument. + /// argument (in log2(bytes)). void setMinStackArgumentAlignment(unsigned Align) { MinStackArgumentAlignment = Align; } |