diff options
| author | Eli Bendersky <eliben@google.com> | 2013-04-18 16:11:44 +0000 |
|---|---|---|
| committer | Eli Bendersky <eliben@google.com> | 2013-04-18 16:11:44 +0000 |
| commit | 97ad9245f1d3d3301b60c1d019f2f41347755e8a (patch) | |
| tree | 04ce5ec9bd8122c76317131892e5177cc1d7418a /llvm | |
| parent | 384823dc3275acba0384afb6ae3cccb07f2d3aee (diff) | |
| download | bcm5719-llvm-97ad9245f1d3d3301b60c1d019f2f41347755e8a.tar.gz bcm5719-llvm-97ad9245f1d3d3301b60c1d019f2f41347755e8a.zip | |
Fixes to LangRef.rst: incorrect attributes syntax and misplaced 'nobuiltin'
Patch by Stephen Lin
llvm-svn: 179763
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/docs/LangRef.rst | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/llvm/docs/LangRef.rst b/llvm/docs/LangRef.rst index 120242688ac..905053fef0b 100644 --- a/llvm/docs/LangRef.rst +++ b/llvm/docs/LangRef.rst @@ -720,11 +720,6 @@ Currently, only the following parameter attributes are defined: This indicates that the pointer parameter can be excised using the :ref:`trampoline intrinsics <int_trampoline>`. This is not a valid attribute for return values. -``nobuiltin`` - This indicates that the callee function at a call site is not - recognized as a built-in function. LLVM will retain the original call - and not replace it with equivalent code based on the semantics of the - built-in function. .. _gc: @@ -764,10 +759,10 @@ inlined, has a stack alignment of 4, and which shouldn't use SSE instructions: .. code-block:: llvm ; Target-independent attributes: - #0 = attributes { alwaysinline alignstack=4 } + attributes #0 = { alwaysinline alignstack=4 } ; Target-dependent attributes: - #1 = attributes { "no-sse" } + attributes #1 = { "no-sse" } ; Function @f has attributes: alwaysinline, alignstack=4, and "no-sse". define void @f() #0 #1 { ... } @@ -814,6 +809,12 @@ example: ``naked`` This attribute disables prologue / epilogue emission for the function. This can have very system-specific consequences. +``nobuiltin`` + This indicates that the callee function at a call site is not + recognized as a built-in function. LLVM will retain the original call + and not replace it with equivalent code based on the semantics of the + built-in function. This is only valid at call sites, not on function + declarations or definitions. ``noduplicate`` This attribute indicates that calls to the function cannot be duplicated. A call to a ``noduplicate`` function may be moved |

