IR: Make getRetAlign check callee function attributes
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 4 Jan 2022 22:53:52 +0000 (17:53 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 12 Jan 2022 23:21:02 +0000 (18:21 -0500)
commit3d2d208f6a0a421b23937c39b9d371183a5913a3
treedd7ec4baec97af91660af7d240d1d9805db44460
parent07ddfa95e3b5ea8464e90545f592624221b854ae
IR: Make getRetAlign check callee function attributes

The attribute queries semi-consistently check the attribute set, and
then fallback to checking the callee's attributes.
llvm/include/llvm/IR/InstrTypes.h
llvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-assert-align.ll