diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-22 19:43:28 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-22 19:43:28 +0000 |
commit | b5630dbadf9a2a06754194387d6b0fd9962a67f1 (patch) | |
tree | 3fe1e2bc0dc2823ab21f06959fbb3eaca317ea29 /docs | |
parent | 7af96fb3afd6725a2824a0a5ca5dad34e5e0b056 (diff) |
Diffstat (limited to 'docs')
-rw-r--r-- | docs/CMake.rst | 4 | ||||
-rw-r--r-- | docs/GetElementPtr.rst | 12 | ||||
-rw-r--r-- | docs/LangRef.rst | 6 |
3 files changed, 12 insertions, 10 deletions
diff --git a/docs/CMake.rst b/docs/CMake.rst index 0a32d3957a53..2deae9361874 100644 --- a/docs/CMake.rst +++ b/docs/CMake.rst @@ -186,8 +186,8 @@ CMake manual, or execute ``cmake --help-variable VARIABLE_NAME``. Sets the build type for ``make``-based generators. Possible values are Release, Debug, RelWithDebInfo and MinSizeRel. If you are using an IDE such as Visual Studio, you should use the IDE settings to set the build type. - Be aware that Release and RelWithDebInfo are not using the same optimization - level on most platform. + Be aware that Release and RelWithDebInfo use different optimization levels on + most platforms. **CMAKE_INSTALL_PREFIX**:PATH Path where LLVM will be installed if "make install" is invoked or the diff --git a/docs/GetElementPtr.rst b/docs/GetElementPtr.rst index f39f1d9207a2..d13479dabca8 100644 --- a/docs/GetElementPtr.rst +++ b/docs/GetElementPtr.rst @@ -9,10 +9,11 @@ Introduction ============ This document seeks to dispel the mystery and confusion surrounding LLVM's -`GetElementPtr <LangRef.html#i_getelementptr>`_ (GEP) instruction. Questions -about the wily GEP instruction are probably the most frequently occurring -questions once a developer gets down to coding with LLVM. Here we lay out the -sources of confusion and show that the GEP instruction is really quite simple. +`GetElementPtr <LangRef.html#getelementptr-instruction>`_ (GEP) instruction. +Questions about the wily GEP instruction are probably the most frequently +occurring questions once a developer gets down to coding with LLVM. Here we lay +out the sources of confusion and show that the GEP instruction is really quite +simple. Address Computation =================== @@ -429,7 +430,8 @@ because LLVM has no restrictions on mixing types in addressing, loads or stores. LLVM's type-based alias analysis pass uses metadata to describe a different type system (such as the C type system), and performs type-based aliasing on top of -that. Further details are in the `language reference <LangRef.html#tbaa>`_. +that. Further details are in the +`language reference <LangRef.html#tbaa-metadata>`_. What happens if a GEP computation overflows? -------------------------------------------- diff --git a/docs/LangRef.rst b/docs/LangRef.rst index 9ff47e8366dc..b205cae9b118 100644 --- a/docs/LangRef.rst +++ b/docs/LangRef.rst @@ -161,7 +161,7 @@ symbol table entries. Here is an example of the "hello world" module: ; Definition of main function define i32 @main() { ; i32()* - ; Convert [13 x i8]* to i8 *... + ; Convert [13 x i8]* to i8*... %cast210 = getelementptr [13 x i8], [13 x i8]* @.str, i64 0, i64 0 ; Call puts function to write out the string to stdout. @@ -9548,7 +9548,7 @@ Syntax: :: - declare i8 *@llvm.returnaddress(i32 <level>) + declare i8* @llvm.returnaddress(i32 <level>) Overview: """"""""" @@ -9586,7 +9586,7 @@ Syntax: :: - declare i8 *@llvm.addressofreturnaddress() + declare i8* @llvm.addressofreturnaddress() Overview: """"""""" |