[llvm] [llvm][IR] Deprecate IRBuilderBase::getInt8PtrTy (PR #74096)
Youngsuk Kim via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 1 08:22:21 PST 2023
https://github.com/JOE1994 updated https://github.com/llvm/llvm-project/pull/74096
>From 9e1f2d7f378e15c3edcdbc3d2a4fe01701d97ed0 Mon Sep 17 00:00:00 2001
From: Youngsuk Kim <youngsuk.kim at hpe.com>
Date: Fri, 1 Dec 2023 10:08:51 -0600
Subject: [PATCH 1/2] [llvm][IR] Deprecate IRBuilderBase::getInt8PtrTy
---
llvm/include/llvm/IR/IRBuilder.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h
index 2cd9a665e9e5d05..f68dfc37ce9f01c 100644
--- a/llvm/include/llvm/IR/IRBuilder.h
+++ b/llvm/include/llvm/IR/IRBuilder.h
@@ -565,6 +565,7 @@ class IRBuilderBase {
}
/// Fetch the type representing a pointer to an 8-bit integer value.
+ [[deprecated("Pointers no longer have element types. Use getPtrTy instead.")]]
PointerType *getInt8PtrTy(unsigned AddrSpace = 0) {
return getPtrTy(AddrSpace);
}
>From 03ebdcbfbe65272b2ba9b7b64c8fe1762f15b40b Mon Sep 17 00:00:00 2001
From: Youngsuk Kim <youngsuk.kim at hpe.com>
Date: Fri, 1 Dec 2023 10:22:00 -0600
Subject: [PATCH 2/2] Remove method IRBuilderBase::getInt8PtrTy
---
llvm/include/llvm/IR/IRBuilder.h | 6 ------
1 file changed, 6 deletions(-)
diff --git a/llvm/include/llvm/IR/IRBuilder.h b/llvm/include/llvm/IR/IRBuilder.h
index f68dfc37ce9f01c..8863ca8eba47efe 100644
--- a/llvm/include/llvm/IR/IRBuilder.h
+++ b/llvm/include/llvm/IR/IRBuilder.h
@@ -564,12 +564,6 @@ class IRBuilderBase {
return PointerType::get(Context, AddrSpace);
}
- /// Fetch the type representing a pointer to an 8-bit integer value.
- [[deprecated("Pointers no longer have element types. Use getPtrTy instead.")]]
- PointerType *getInt8PtrTy(unsigned AddrSpace = 0) {
- return getPtrTy(AddrSpace);
- }
-
/// Fetch the type of an integer with size at least as big as that of a
/// pointer in the given address space.
IntegerType *getIntPtrTy(const DataLayout &DL, unsigned AddrSpace = 0) {
More information about the llvm-commits
mailing list