mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 12:02:58 +02:00
Add comments to TargetLowering.h indicating that the set*Alignment functions take arguments in log2(bytes)
llvm-svn: 142213
This commit is contained in:
parent
2ee7de36b8
commit
e8091aad04
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user