[llvm] [IR] Remove getDestAlignment and getSourceAlignment (PR #151282)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 23:22:49 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-ir

Author: Kazu Hirata (kazutakahirata)

<details>
<summary>Changes</summary>

This patch removes getDestAlignment and getSourceAlignment as they
have been deprecated for more than two years since:

  commit 135f23d67bf5397745be1897afd0a3a50119089f
  Author: Guillaume Chatelet <gchatelet@<!-- -->google.com>
  Date:   Mon Jan 16 12:34:40 2023 +0000

I'm not aware of any downstream users AFAIK.


---
Full diff: https://github.com/llvm/llvm-project/pull/151282.diff


1 Files Affected:

- (modified) llvm/include/llvm/IR/IntrinsicInst.h (-17) 


``````````diff
diff --git a/llvm/include/llvm/IR/IntrinsicInst.h b/llvm/include/llvm/IR/IntrinsicInst.h
index 0318427bf8a1c..2e1389633d7e4 100644
--- a/llvm/include/llvm/IR/IntrinsicInst.h
+++ b/llvm/include/llvm/IR/IntrinsicInst.h
@@ -996,14 +996,6 @@ template <typename Derived> class MemIntrinsicBase : public IntrinsicInst {
     return cast<PointerType>(getRawDest()->getType())->getAddressSpace();
   }
 
-  /// FIXME: Remove this function once transition to Align is over.
-  /// Use getDestAlign() instead.
-  LLVM_DEPRECATED("Use getDestAlign() instead", "getDestAlign")
-  unsigned getDestAlignment() const {
-    if (auto MA = getParamAlign(ARG_DEST))
-      return MA->value();
-    return 0;
-  }
   MaybeAlign getDestAlign() const { return getParamAlign(ARG_DEST); }
 
   /// Set the specified arguments of the instruction.
@@ -1057,15 +1049,6 @@ template <class BaseCL> class MemTransferBase : public BaseCL {
     return cast<PointerType>(getRawSource()->getType())->getAddressSpace();
   }
 
-  /// FIXME: Remove this function once transition to Align is over.
-  /// Use getSourceAlign() instead.
-  LLVM_DEPRECATED("Use getSourceAlign() instead", "getSourceAlign")
-  unsigned getSourceAlignment() const {
-    if (auto MA = BaseCL::getParamAlign(ARG_SOURCE))
-      return MA->value();
-    return 0;
-  }
-
   MaybeAlign getSourceAlign() const {
     return BaseCL::getParamAlign(ARG_SOURCE);
   }

``````````

</details>


https://github.com/llvm/llvm-project/pull/151282


More information about the llvm-commits mailing list