================
@@ -374,7 +374,10 @@ bool
SPIRVCallLowering::lowerFormalArguments(MachineIRBuilder &MIRBuilder,
buildOpDecorate(VRegs[i][0], MIRBuilder,
SPIRV::Decoration::FuncParamAttr, {Attr});
}
- if (Arg.hasAttribute(Attribute::ByVal)) {
+ if (Arg.hasAttribute(Attribute::ByVal) ||
----------------
maarquitos14 wrote:
Can we add a comment here explaining why you need this for AMD, so that people
can easily understand when reading this code? I fear people might don't
understand, or simply think it's wrong, to lower `ByRef` to `ByVal`.
https://github.com/llvm/llvm-project/pull/169865
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits