summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2017-07-26 14:11:23 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2017-07-26 14:11:23 +0000
commite02fcee53699370b2d4a93d870ce34a40be64ad1 (patch)
tree3af696202b775fc143a10a3245b847b1e1c5b4fb /llvm
parent727c21e309d91331334d6059e4623509d75bba69 (diff)
downloadbcm5719-llvm-e02fcee53699370b2d4a93d870ce34a40be64ad1.tar.gz
bcm5719-llvm-e02fcee53699370b2d4a93d870ce34a40be64ad1.zip
[docs] change a few code-blocks to llvm from text
llvm-svn: 309117
Diffstat (limited to 'llvm')
-rw-r--r--llvm/docs/GetElementPtr.rst2
-rw-r--r--llvm/docs/Statepoints.rst12
2 files changed, 7 insertions, 7 deletions
diff --git a/llvm/docs/GetElementPtr.rst b/llvm/docs/GetElementPtr.rst
index b593871695f..c2da640fe06 100644
--- a/llvm/docs/GetElementPtr.rst
+++ b/llvm/docs/GetElementPtr.rst
@@ -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
diff --git a/llvm/docs/Statepoints.rst b/llvm/docs/Statepoints.rst
index 73e09ae8b62..6ed4e46b73b 100644
--- a/llvm/docs/Statepoints.rst
+++ b/llvm/docs/Statepoints.rst
@@ -172,7 +172,7 @@ SSA value ``%obj.relocated`` which represents the potentially changed value of
``%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 unimaginatively named "hypothetical-gc"
--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 ones.
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 following:
This pass would produce the following IR:
-.. code-block:: text
+.. code-block:: llvm
define void @test() gc "statepoint-example" {
call void @do_safepoint()
OpenPOWER on IntegriCloud