[Statepoint] Determine return type from elementtype attribute
authorNikita Popov <npopov@redhat.com>
Fri, 4 Feb 2022 13:37:02 +0000 (14:37 +0100)
committerNikita Popov <npopov@redhat.com>
Fri, 4 Feb 2022 13:40:27 +0000 (14:40 +0100)
commitf62a400cdf114ff97fee99d74234c889142a34e7
tree8e1d693c04fdfd9ce4200193a79b7ce40f8a63d2
parent8f8e13056a42cf6946ec3bc873e09751a00d2e7a
[Statepoint] Determine return type from elementtype attribute

Based on the LangRef change in D117890, this uses the elementtype
attribute rather than the pointer element type to determine the
statepoint callee function type, making statepoints compatible
with opaque pointers.
llvm/include/llvm/IR/Statepoint.h
llvm/test/CodeGen/X86/statepoint-call-lowering.ll