This patch adds a WriteOnly attribute.
I am working to mark the math functions that write errno as WriteOnly in the backend to enable some optimizations. Currently I plan to use this attribute in SemaDecl to mark the math functions that may set errno when we care about errno. Then to add the llvm WriteOnly attribute in CGCall when a function adds this attribute.
Any feedback would be appreciated!
What subjects should this attribute appertain to?