================
@@ -4688,10 +4670,25 @@ mlir::LogicalResult
CIRToLLVMMemChrOpLowering::matchAndRewrite(
/*isVarArg=*/false);
llvm::StringRef fnName = "memchr";
createLLVMFuncOpIfNotExist(rewriter, op, fnName, fnTy);
- rewriter.replaceOpWithNewOp<mlir::LLVM::CallOp>(
+
+ mlir::Builder b(rewriter.getContext());
+ auto noundefAttr = b.getNamedAttr("llvm.noundef", b.getUnitAttr());
----------------
andykaylor wrote:
Don't use `auto` in most of these cases.
https://github.com/llvm/llvm-project/pull/191457
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits