[Mlir-commits] [llvm] [mlir] [InferAttrs] Mark errnomem-setting libcalls as such (PR #124742)

Eli Friedman llvmlistbot at llvm.org
Wed Feb 12 14:45:14 PST 2025


================
@@ -596,6 +643,7 @@ bool llvm::inferNonMandatoryLibFuncAttrs(Function &F,
     // May throw; "read" is a valid pthread cancellation point.
     Changed |= setRetAndArgsNoUndef(F);
     Changed |= setDoesNotCapture(F, 1);
+    Changed |= setOnlyAccessesArgMemOrErrnoMem(F);
----------------
efriedma-quic wrote:

read also modifies the file descriptor

https://github.com/llvm/llvm-project/pull/124742


More information about the Mlir-commits mailing list