diff options
author | Reid Kleckner <rnk@google.com> | 2016-09-08 15:45:27 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-09-08 15:45:27 +0000 |
commit | 1361c0c6efc08e4808b67cab6e22d0a7a5f81fc7 (patch) | |
tree | ba9c436738388e37a5a58902c43bea8bf53c220a /llvm/docs/LangRef.rst | |
parent | cb5c98b14a301613c453ffcfa19bffebd4a4e820 (diff) | |
download | bcm5719-llvm-1361c0c6efc08e4808b67cab6e22d0a7a5f81fc7.tar.gz bcm5719-llvm-1361c0c6efc08e4808b67cab6e22d0a7a5f81fc7.zip |
Remove restriction that 'sret' must be on the first parameter
On Windows, it is often applied to the second parameter, and the x86
backend is prepared to deal with sret appearing on any parameter.
Other backends assume it only appears on parameter zero, but those are
target-specific requirements, and not an IR-level rule.
llvm-svn: 280951
Diffstat (limited to 'llvm/docs/LangRef.rst')
-rw-r--r-- | llvm/docs/LangRef.rst | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 4bbd0634427..b2ac11b5ee1 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -1029,10 +1029,9 @@ Currently, only the following parameter attributes are defined: This indicates that the pointer parameter specifies the address of a structure that is the return value of the function in the source program. This pointer must be guaranteed by the caller to be valid: - loads and stores to the structure may be assumed by the callee - not to trap and to be properly aligned. This may only be applied to - the first parameter. This is not a valid attribute for return - values. + loads and stores to the structure may be assumed by the callee not + to trap and to be properly aligned. This is not a valid attribute + for return values. ``align <n>`` This indicates that the pointer value may be assumed by the optimizer to |