Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
I think it's too early to drop the LLVMPointerType functions. These are useful for frontends that still support LLVM 14 and for that reason still generate typed IR (which is automatically converted to opaque IR). For rustc the need for this will go away in about 6 months.
Of course it's possible for the frontend to call one or the other depending on version, but I don't think there's any benefit to that at this point.
my motivation for this is to prevent people from being able to add code to our repo that relies on typed pointers. just removing LLVMPointerTypeIsOpaque and the pointer branch in LLVMGetElementType should achieve that, does that sound ok?
That would be fine I think. Though possible just dropping the branch from LLVMGetElementType is enough?