[llvm] 899b840 - [IR] Remove deprecated typed pointer convenience methods in Type

Bjorn Pettersson via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 11 16:10:49 PDT 2023


Author: Bjorn Pettersson
Date: 2023-08-12T01:09:37+02:00
New Revision: 899b840ff2f3d9b278b26fe5d196072c9124d121

URL: https://github.com/llvm/llvm-project/commit/899b840ff2f3d9b278b26fe5d196072c9124d121
DIFF: https://github.com/llvm/llvm-project/commit/899b840ff2f3d9b278b26fe5d196072c9124d121.diff

LOG: [IR] Remove deprecated typed pointer convenience methods in Type

An earlier commit ad52c9cabbf41fd, that marked convenience methods
for creating typed pointers as deprecated also happened to break
the API by no longer declaring those helpers as static. This patch
will just remove the no longer used methods instead.

Added: 
    

Modified: 
    llvm/include/llvm/IR/Type.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/Type.h b/llvm/include/llvm/IR/Type.h
index d9e1c34275e701..118f53b2ba16ab 100644
--- a/llvm/include/llvm/IR/Type.h
+++ b/llvm/include/llvm/IR/Type.h
@@ -484,65 +484,9 @@ class Type {
   // Convenience methods for getting pointer types.
   //
 
-  // TODO: After opaque pointer transition these can be replaced by simply
+  // TODO: After opaque pointer transition this can be replaced by simply
   //       calling PointerType::get(C, AS).
   static PointerType *getInt8PtrTy(LLVMContext &C, unsigned AS = 0);
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getHalfPtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getBFloatPtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getFloatPtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getDoublePtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getX86_FP80PtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getFP128PtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getPPC_FP128PtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getX86_MMXPtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getX86_AMXPtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getIntNPtrTy(LLVMContext &C, unsigned N, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getInt1PtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getInt16PtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getInt32PtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
-  [[deprecated("Pointers no longer have element types")]]
-  inline PointerType *getInt64PtrTy(LLVMContext &C, unsigned AS = 0) {
-    return getInt8PtrTy(C, AS);
-  }
 
   static Type *getWasm_ExternrefTy(LLVMContext &C);
   static Type *getWasm_FuncrefTy(LLVMContext &C);


        


More information about the llvm-commits mailing list