aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringBase.cpp
diff options
context:
space:
mode:
authorNicholas Guy <nicholas.guy@arm.com>2021-12-01 10:51:31 +0000
committerNicholas Guy <nicholas.guy@arm.com>2022-01-05 12:54:30 +0000
commit73d92faa2fc00bff240a22a51974771cd03ed86a (patch)
tree656719ab326e588d91b98824e1dded33d3013942 /llvm/lib/CodeGen/TargetLoweringBase.cpp
parent5109737c924d68323b1982949a3e28ef26bc289e (diff)
downloadllvm-73d92faa2fc00bff240a22a51974771cd03ed86a.zip
llvm-73d92faa2fc00bff240a22a51974771cd03ed86a.tar.gz
llvm-73d92faa2fc00bff240a22a51974771cd03ed86a.tar.bz2
[CodeGen] Emit alignment "Max Skip" operand
The current AsmPrinter has support to emit the "Max Skip" operand (the 3rd of .p2align), however has no support for it to actually be specified. Adding MaxBytesForAlignment to MachineBasicBlock provides this capability on a per-block basis. Leaving the value as default (0) causes no observable differences in behaviour. Differential Revision: https://reviews.llvm.org/D114590
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringBase.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringBase.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp
index 6fc6881..f4cfe4f 100644
--- a/llvm/lib/CodeGen/TargetLoweringBase.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp
@@ -2040,6 +2040,11 @@ Align TargetLoweringBase::getPrefLoopAlignment(MachineLoop *ML) const {
return PrefLoopAlignment;
}
+unsigned TargetLoweringBase::getMaxPermittedBytesForAlignment(
+ MachineBasicBlock *MBB) const {
+ return MaxBytesForAlignment;
+}
+
//===----------------------------------------------------------------------===//
// Reciprocal Estimates
//===----------------------------------------------------------------------===//