[all-commits] [llvm/llvm-project] f5ac23: [ArgPromotion][TTI] Pass types to ABI compatibilit...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Dec 22 00:38:10 PST 2021
Author: Nikita Popov <npopov at redhat.com>
Date: 2021-12-22 (Wed, 22 Dec 2021)
[ArgPromotion][TTI] Pass types to ABI compatibility hook
The areFunctionArgsABICompatible() hook currently accepts a list of
pointer arguments, though what we're actually interested in is the
ABI compatibility after these pointer arguments have been converted
into value arguments.
This means that a) the current API is incompatible with opaque
pointers (because it requires inspection of pointee types) and
b) it can only be used in the specific context of ArgPromotion.
I would like to reuse the API when inspecting calls during inlining.
This patch converts it into an areTypesABICompatible() hook, which
accepts a list of types. This makes the method more generally usable,
and compatible with opaque pointers from an API perspective (the
actual usage in ArgPromotion/Attributor is still incompatible,
I'll follow up on that in separate patches).
Differential Revision: https://reviews.llvm.org/D116031
More information about the All-commits