From c333e4f0cb760455e4f474ba5481a94b8031d09c Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Mon, 22 Oct 2007 06:35:07 +0000 Subject: Add downloadable code samples. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43219 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/tutorial/JITTutorial1.html | 12 ++++++++++++ docs/tutorial/Tutorial1.tar.bz2 | Bin 0 -> 1159 bytes docs/tutorial/Tutorial1.zip | Bin 0 -> 1089 bytes 3 files changed, 12 insertions(+) create mode 100644 docs/tutorial/Tutorial1.tar.bz2 create mode 100644 docs/tutorial/Tutorial1.zip (limited to 'docs/tutorial') diff --git a/docs/tutorial/JITTutorial1.html b/docs/tutorial/JITTutorial1.html index 1de1a9d806..978187f996 100644 --- a/docs/tutorial/JITTutorial1.html +++ b/docs/tutorial/JITTutorial1.html @@ -19,6 +19,18 @@

Written by Owen Anderson

+ +
Code Samples
+ + +
+All the code in this example can be downloaded at Tutorial1.tar.bz2 or Tutorial1.zip. +
+ + +
A First Function
+ +

For starters, lets consider a relatively straightforward function that takes three integer parameters and returns an arithmetic combination of them. This is nice and simple, especially since it involves no control flow:

diff --git a/docs/tutorial/Tutorial1.tar.bz2 b/docs/tutorial/Tutorial1.tar.bz2 new file mode 100644 index 0000000000..c2594d12cb Binary files /dev/null and b/docs/tutorial/Tutorial1.tar.bz2 differ diff --git a/docs/tutorial/Tutorial1.zip b/docs/tutorial/Tutorial1.zip new file mode 100644 index 0000000000..0726a229a5 Binary files /dev/null and b/docs/tutorial/Tutorial1.zip differ -- cgit v1.2.3-70-g09d2