diff --git a/llvm/include/llvm/CodeGen/MachineFrameInfo.h b/llvm/include/llvm/CodeGen/MachineFrameInfo.h --- a/llvm/include/llvm/CodeGen/MachineFrameInfo.h +++ b/llvm/include/llvm/CodeGen/MachineFrameInfo.h @@ -461,12 +461,6 @@ Objects[ObjectIdx+NumFixedObjects].Size = Size; } - LLVM_ATTRIBUTE_DEPRECATED(inline unsigned getObjectAlignment(int ObjectIdx) - const, - "Use getObjectAlign instead") { - return getObjectAlign(ObjectIdx).value(); - } - /// Return the alignment of the specified stack object. Align getObjectAlign(int ObjectIdx) const { assert(unsigned(ObjectIdx + NumFixedObjects) < Objects.size() && @@ -485,12 +479,6 @@ ensureMaxAlignment(Alignment); } - LLVM_ATTRIBUTE_DEPRECATED(inline void setObjectAlignment(int ObjectIdx, - unsigned Align), - "Use the version that takes Align instead") { - setObjectAlignment(ObjectIdx, assumeAligned(Align)); - } - /// Return the underlying Alloca of the specified /// stack object if it exists. Returns 0 if none exists. const AllocaInst* getObjectAllocation(int ObjectIdx) const { @@ -574,12 +562,6 @@ /// Set the correction for frame offsets. void setOffsetAdjustment(int Adj) { OffsetAdjustment = Adj; } - /// Return the alignment in bytes that this function must be aligned to, - /// which is greater than the default stack alignment provided by the target. - LLVM_ATTRIBUTE_DEPRECATED(unsigned getMaxAlignment() const, - "Use getMaxAlign instead") { - return MaxAlignment.value(); - } /// Return the alignment in bytes that this function must be aligned to, /// which is greater than the default stack alignment provided by the target. Align getMaxAlign() const { return MaxAlignment; } @@ -587,11 +569,6 @@ /// Make sure the function is at least Align bytes aligned. void ensureMaxAlignment(Align Alignment); - LLVM_ATTRIBUTE_DEPRECATED(inline void ensureMaxAlignment(unsigned Align), - "Use the version that uses Align instead") { - ensureMaxAlignment(assumeAligned(Align)); - } - /// Return true if this function adjusts the stack -- e.g., /// when calling another function. This is only valid during and after /// prolog/epilog code insertion. @@ -756,24 +733,10 @@ /// a nonnegative identifier to represent it. int CreateStackObject(uint64_t Size, Align Alignment, bool isSpillSlot, const AllocaInst *Alloca = nullptr, uint8_t ID = 0); - LLVM_ATTRIBUTE_DEPRECATED( - inline int CreateStackObject(uint64_t Size, unsigned Alignment, - bool isSpillSlot, - const AllocaInst *Alloca = nullptr, - uint8_t ID = 0), - "Use CreateStackObject that takes an Align instead") { - return CreateStackObject(Size, assumeAligned(Alignment), isSpillSlot, - Alloca, ID); - } /// 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); - LLVM_ATTRIBUTE_DEPRECATED( - inline int CreateSpillStackObject(uint64_t Size, unsigned Alignment), - "Use CreateSpillStackObject that takes an Align instead") { - return CreateSpillStackObject(Size, assumeAligned(Alignment)); - } /// Remove or mark dead a statically sized stack object. void RemoveStackObject(int ObjectIdx) { @@ -785,12 +748,6 @@ /// created. This must be created whenever a variable sized object is /// created, whether or not the index returned is actually used. int CreateVariableSizedObject(Align Alignment, const AllocaInst *Alloca); - /// FIXME: Remove this function when transition to Align is over. - LLVM_ATTRIBUTE_DEPRECATED(int CreateVariableSizedObject( - unsigned Alignment, const AllocaInst *Alloca), - "Use the version that takes an Align instead") { - return CreateVariableSizedObject(assumeAligned(Alignment), Alloca); - } /// Returns a reference to call saved info vector for the current function. const std::vector &getCalleeSavedInfo() const { diff --git a/llvm/include/llvm/CodeGen/MachineMemOperand.h b/llvm/include/llvm/CodeGen/MachineMemOperand.h --- a/llvm/include/llvm/CodeGen/MachineMemOperand.h +++ b/llvm/include/llvm/CodeGen/MachineMemOperand.h @@ -223,18 +223,10 @@ /// Return the size in bits of the memory reference. uint64_t getSizeInBits() const { return Size * 8; } - LLVM_ATTRIBUTE_DEPRECATED(uint64_t getAlignment() const, - "Use getAlign instead"); - /// Return the minimum known alignment in bytes of the actual memory /// reference. Align getAlign() const; - LLVM_ATTRIBUTE_DEPRECATED(uint64_t getBaseAlignment() const, - "Use getBaseAlign instead") { - return BaseAlign.value(); - } - /// Return the minimum known alignment in bytes of the base address, without /// the offset. Align getBaseAlign() const { return BaseAlign; } @@ -276,7 +268,7 @@ /// Returns true if this memory operation doesn't have any ordering /// constraints other than normal aliasing. Volatile and (ordered) atomic - /// memory operations can't be reordered. + /// memory operations can't be reordered. bool isUnordered() const { return (getOrdering() == AtomicOrdering::NotAtomic || getOrdering() == AtomicOrdering::Unordered) && diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h --- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1262,10 +1262,6 @@ /// Returns alignment and volatility of the memory access Align getOriginalAlign() const { return MMO->getBaseAlign(); } Align getAlign() const { return MMO->getAlign(); } - LLVM_ATTRIBUTE_DEPRECATED(unsigned getOriginalAlignment() const, - "Use getOriginalAlign() instead") { - return MMO->getBaseAlign().value(); - } // FIXME: Remove once transition to getAlign is over. unsigned getAlignment() const { return MMO->getAlign().value(); } diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp --- a/llvm/lib/CodeGen/MachineOperand.cpp +++ b/llvm/lib/CodeGen/MachineOperand.cpp @@ -1060,10 +1060,6 @@ } } -/// getAlignment - Return the minimum known alignment in bytes of the -/// actual memory reference. -uint64_t MachineMemOperand::getAlignment() const { return getAlign().value(); } - /// getAlign - Return the minimum known alignment in bytes of the /// actual memory reference. Align MachineMemOperand::getAlign() const {