[llvm] r309117 - [docs] change a few code-blocks to llvm from text
Nuno Lopes via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 26 07:11:23 PDT 2017
Author: nlopes
Date: Wed Jul 26 07:11:23 2017
New Revision: 309117
URL: http://llvm.org/viewvc/llvm-project?rev=309117&view=rev
Log:
[docs] change a few code-blocks to llvm from text
Modified:
llvm/trunk/docs/GetElementPtr.rst
llvm/trunk/docs/Statepoints.rst
Modified: llvm/trunk/docs/GetElementPtr.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/GetElementPtr.rst?rev=309117&r1=309116&r2=309117&view=diff
==============================================================================
--- llvm/trunk/docs/GetElementPtr.rst (original)
+++ llvm/trunk/docs/GetElementPtr.rst Wed Jul 26 07:11:23 2017
@@ -196,7 +196,7 @@ illegal.
In order to access the 18th integer in the array, you would need to do the
following:
-.. code-block:: text
+.. code-block:: llvm
%idx = getelementptr { [40 x i32]* }, { [40 x i32]* }* %, i64 0, i32 0
%arr = load [40 x i32]** %idx
Modified: llvm/trunk/docs/Statepoints.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/Statepoints.rst?rev=309117&r1=309116&r2=309117&view=diff
==============================================================================
--- llvm/trunk/docs/Statepoints.rst (original)
+++ llvm/trunk/docs/Statepoints.rst Wed Jul 26 07:11:23 2017
@@ -172,7 +172,7 @@ SSA value ``%obj.relocated`` which repre
``%obj`` after the safepoint and update any following uses appropriately. The
resulting relocation sequence is:
-.. code-block:: text
+.. code-block:: llvm
define i8 addrspace(1)* @test1(i8 addrspace(1)* %obj)
gc "statepoint-example" {
@@ -273,7 +273,7 @@ afterwards.
If we extend our previous example to include a pointless derived pointer,
we get:
-.. code-block:: text
+.. code-block:: llvm
define i8 addrspace(1)* @test1(i8 addrspace(1)* %obj)
gc "statepoint-example" {
@@ -319,7 +319,7 @@ Let's assume a hypothetical GC--somewhat
--that requires that a TLS variable must be written to before and after a call
to unmanaged code. The resulting relocation sequence is:
-.. code-block:: text
+.. code-block:: llvm
@flag = thread_local global i32 0, align 4
@@ -702,7 +702,7 @@ whitelist or use one of the predefined o
As an example, given this code:
-.. code-block:: text
+.. code-block:: llvm
define i8 addrspace(1)* @test1(i8 addrspace(1)* %obj)
gc "statepoint-example" {
@@ -712,7 +712,7 @@ As an example, given this code:
The pass would produce this IR:
-.. code-block:: text
+.. code-block:: llvm
define i8 addrspace(1)* @test1(i8 addrspace(1)* %obj)
gc "statepoint-example" {
@@ -789,7 +789,7 @@ As an example, given input IR of the fol
This pass would produce the following IR:
-.. code-block:: text
+.. code-block:: llvm
define void @test() gc "statepoint-example" {
call void @do_safepoint()
More information about the llvm-commits
mailing list