[PATCH] D18714: Add writeonly IR attribute

Nicolai Hähnle via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 12 06:50:01 PDT 2016


nhaehnle added inline comments.

================
Comment at: llvm/trunk/include/llvm/IR/Intrinsics.td:367
@@ -360,3 +366,3 @@
                              llvm_i32_ty, llvm_i1_ty],
-                            [IntrArgMemOnly, NoCapture<0>]>;
+                            [IntrArgMemOnly, NoCapture<0>, WriteOnly<0>]>;
 
----------------
filcab wrote:
> Shouldn't memset be `WriteOnly<1>`?
> 
This is an attribute on a function argument, the number is the number of the function argument. See also the various NoCapture attributes.


Repository:
  rL LLVM

http://reviews.llvm.org/D18714





More information about the llvm-commits mailing list