================
@@ -290,6 +321,16 @@ mlir::ArrayAttr updateArgAttrs(mlir::MLIRContext *ctx,
dl.getTypeSize(pointeeTy).getFixedValue()));
}
newArgAttrs.push_back(attrs.getDictionary(ctx));
+ } else if (ac.kind == ArgKind::IndirectAliased) {
+ // llvm.byref(T) records the pre-rewrite arg type, as llvm.byval does.
+ mlir::NamedAttrList attrs(existing);
+ attrs.set(mlir::LLVM::LLVMDialect::getAlignAttrName(),
+ builder.getI64IntegerAttr(ac.indirectAlign.value()));
+ attrs.set(mlir::LLVM::LLVMDialect::getNoUndefAttrName(),
----------------
skc7 wrote:
I'll gate it on `enableNoundefAttrs` after rebasing on #235140.
https://github.com/llvm/llvm-project/pull/230415
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits