================ @@ -5985,10 +5985,14 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID, llvm::Value *Block = Builder.CreatePointerCast(Info.BlockArg, GenericVoidPtrTy); - AttrBuilder B(Builder.getContext()); - B.addByValAttr(NDRangeL.getAddress().getElementType()); - llvm::AttributeList ByValAttrSet = - llvm::AttributeList::get(CGM.getModule().getContext(), 3U, B); + llvm::AttributeList ByValAttrSet; + // AMDGPU doesn't use byval for struct argument. ---------------- shiltian wrote:
In fact, the other `__enqueue_kernel*` functions don't have this at all. I removed the code directly to align with others. It might be quite complicated to try to get `ABIArgInfo` here. https://github.com/llvm/llvm-project/pull/116435 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits