[IR] Deprecate GetElementPtrInst::CreateInBounds without element type
authorNikita Popov <nikita.ppv@gmail.com>
Sun, 4 Jul 2021 14:30:18 +0000 (16:30 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Sun, 4 Jul 2021 14:49:30 +0000 (16:49 +0200)
commita213f735d8113de5428bd23cf97153dcda0e2e71
treec533d9733a923f1725ef824cd7a10f4e6412d80a
parent287d39dd5adbb3c6fd8a2c5007596ecdbe91eb38
[IR] Deprecate GetElementPtrInst::CreateInBounds without element type

This API is not compatible with opaque pointers, the method
accepting an explicit pointer element type should be used instead.

Thankfully there were few in-tree users. The BPF case still ends
up using the pointer element type for now and needs something like
D105407 to avoid doing so.
llvm/include/llvm/IR/Instructions.h
llvm/lib/Target/BPF/BPFAbstractMemberAccess.cpp
llvm/lib/Transforms/Vectorize/VectorCombine.cpp