[PATCH] D81362: [Alignment][NFC] Deprecate dead code from CallingConvLower.h
Guillaume Chatelet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 8 08:14:15 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG54076610dc45: [Alignment][NFC] Deprecate dead code from CallingConvLower.h (authored by gchatelet).
Changed prior to commit:
https://reviews.llvm.org/D81362?vs=269171&id=269240#toc
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81362/new/
https://reviews.llvm.org/D81362
Files:
llvm/include/llvm/CodeGen/CallingConvLower.h
llvm/lib/CodeGen/CallingConvLower.cpp
Index: llvm/lib/CodeGen/CallingConvLower.cpp
===================================================================
--- llvm/lib/CodeGen/CallingConvLower.cpp
+++ llvm/lib/CodeGen/CallingConvLower.cpp
@@ -52,7 +52,7 @@
ensureMaxAlignment(Alignment);
MF.getSubtarget().getTargetLowering()->HandleByVal(this, Size, Alignment);
Size = unsigned(alignTo(Size, MinAlign));
- unsigned Offset = AllocateStack(Size, Alignment.value());
+ unsigned Offset = AllocateStack(Size, Alignment);
addLoc(CCValAssign::getMem(ValNo, ValVT, Offset, LocVT, LocInfo));
}
Index: llvm/include/llvm/CodeGen/CallingConvLower.h
===================================================================
--- llvm/include/llvm/CodeGen/CallingConvLower.h
+++ llvm/include/llvm/CodeGen/CallingConvLower.h
@@ -434,7 +434,9 @@
}
// FIXME: Deprecate this function when transition to Align is over.
- unsigned AllocateStack(unsigned Size, unsigned Alignment) {
+ LLVM_ATTRIBUTE_DEPRECATED(unsigned AllocateStack(unsigned Size,
+ unsigned Alignment),
+ "Use the version that takes Align instead.") {
return AllocateStack(Size, Align(Alignment));
}
@@ -444,7 +446,10 @@
}
/// Version of AllocateStack with extra register to be shadowed.
- unsigned AllocateStack(unsigned Size, unsigned Align, unsigned ShadowReg) {
+ LLVM_ATTRIBUTE_DEPRECATED(unsigned AllocateStack(unsigned Size,
+ unsigned Align,
+ unsigned ShadowReg),
+ "Use the version that takes Align instead.") {
MarkAllocated(ShadowReg);
return AllocateStack(Size, Align);
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81362.269240.patch
Type: text/x-patch
Size: 1749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200608/2024b0df/attachment.bin>
More information about the llvm-commits
mailing list