[llvm] [llvm-c] Provide LLVMGetGEPResultElementType (PR #95693)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 08:12:17 PDT 2024
nikic wrote:
> > The result element type is redundant information implied by the source element type and the GEP arguments
>
> True, but then shouldn't `getIndexedType` be available for use in the C-API?. Without it, someone using the C-API would need to reimplement it to compute the result element type (as far as I can tell, please correct me if there's some way to compute it already).
My primary point is that you shouldn't need any of these at all. Can you please explain in more detail how you are going to use this API?
https://github.com/llvm/llvm-project/pull/95693
More information about the llvm-commits
mailing list