like this:
-.. code-block:: perl
+.. code-block:: llvm
; RUN: llvm-as < %s | llc -march=x86-64 | FileCheck %s
let's look at the rest of the .ll file (after the RUN line):
-.. code-block:: perl
+.. code-block:: llvm
define void @sub1(i32* %p, i32 %v) {
entry:
testing different architectural variants with llc. Here's a simple example:
-.. code-block:: perl
+.. code-block:: llvm
; RUN: llvm-as < %s | llc -mtriple=i686-apple-darwin9 -mattr=sse41 \
; RUN: | FileCheck %s -check-prefix=X32
example, something like this works as you'd expect:
-.. code-block:: perl
+.. code-block:: llvm
define void @t2(<2 x double>* %r, <2 x double>* %A, double %B) {
%tmp3 = load <2 x double>* %A, align 16
can be used:
-.. code-block:: perl
+.. code-block:: llvm
define i8 @coerce_offset0(i32 %V, i32* %P) {
store i32 %V, i32* %P
you to write things like this:
-.. code-block:: perl
+.. code-block:: llvm
; CHECK: movhpd {{[0-9]+}}(%esp), {{%xmm[0-7]}}
simple example:
-.. code-block:: perl
+.. code-block:: llvm
; CHECK: test5:
; CHECK: notw [[REGISTER:%[a-z]+]]
of options available, use the following command:
- .. code-block:: perl
+ .. code-block:: sh
llvm-as < /dev/null | opt -std-compile-opts -disable-output -debug-pass=Arguments
optimizations, use the **-help** and **-load** options together. For example:
- .. code-block:: perl
+ .. code-block:: sh
opt -load=plugin.so -help