[PATCH] D82934: [Alignment][NFC] Migrate MachineFrameInfo::CreateSpillStackObject to Align
Guillaume Chatelet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 1 02:08:00 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG7f37d8830635: [Alignment][NFC] Migrate MachineFrameInfo::CreateSpillStackObject to Align (authored by gchatelet).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82934/new/
https://reviews.llvm.org/D82934
Files:
llvm/include/llvm/CodeGen/MachineFrameInfo.h
llvm/lib/CodeGen/FixupStatepointCallerSaved.cpp
Index: llvm/lib/CodeGen/FixupStatepointCallerSaved.cpp
===================================================================
--- llvm/lib/CodeGen/FixupStatepointCallerSaved.cpp
+++ llvm/lib/CodeGen/FixupStatepointCallerSaved.cpp
@@ -132,7 +132,7 @@
}
return FI;
}
- int FI = MFI.CreateSpillStackObject(Size, Size);
+ int FI = MFI.CreateSpillStackObject(Size, Align(Size));
NumSpillSlotsAllocated++;
Line.Slots.push_back(FI);
++Line.Index;
Index: llvm/include/llvm/CodeGen/MachineFrameInfo.h
===================================================================
--- llvm/include/llvm/CodeGen/MachineFrameInfo.h
+++ llvm/include/llvm/CodeGen/MachineFrameInfo.h
@@ -768,8 +768,9 @@
/// Create a new statically sized stack object that represents a spill slot,
/// returning a nonnegative identifier to represent it.
int CreateSpillStackObject(uint64_t Size, Align Alignment);
- /// FIXME: Remove this function when transition to Align is over.
- inline int CreateSpillStackObject(uint64_t Size, unsigned Alignment) {
+ LLVM_ATTRIBUTE_DEPRECATED(
+ inline int CreateSpillStackObject(uint64_t Size, unsigned Alignment),
+ "Use CreateSpillStackObject that takes an Align instead") {
return CreateSpillStackObject(Size, assumeAligned(Alignment));
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82934.274725.patch
Type: text/x-patch
Size: 1309 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200701/b6a33e62/attachment.bin>
More information about the llvm-commits
mailing list