aboutsummaryrefslogtreecommitdiffstats
path: root/projects/sample/tools
diff options
context:
space:
mode:
authorDan Gohman <djg@cray.com>2007-07-18 16:29:46 +0000
committerDan Gohman <djg@cray.com>2007-07-18 16:29:46 +0000
commitf17a25c88b892d30c2b41ba7ecdfbdfb2b4be9cc (patch)
treeebb79ea1ee5e3bc1fdf38541a811a8b804f0679a /projects/sample/tools
downloadexternal_llvm-f17a25c88b892d30c2b41ba7ecdfbdfb2b4be9cc.zip
external_llvm-f17a25c88b892d30c2b41ba7ecdfbdfb2b4be9cc.tar.gz
external_llvm-f17a25c88b892d30c2b41ba7ecdfbdfb2b4be9cc.tar.bz2
It's not necessary to do rounding for alloca operations when the requested
alignment is equal to the stack alignment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'projects/sample/tools')
-rw-r--r--projects/sample/tools/Makefile13
-rw-r--r--projects/sample/tools/sample/Makefile23
-rw-r--r--projects/sample/tools/sample/main.c14
3 files changed, 50 insertions, 0 deletions
diff --git a/projects/sample/tools/Makefile b/projects/sample/tools/Makefile
new file mode 100644
index 0000000..00ff52b
--- /dev/null
+++ b/projects/sample/tools/Makefile
@@ -0,0 +1,13 @@
+##===- projects/sample/tools/Makefile ----------------------*- Makefile -*-===##
+
+#
+# Relative path to the top of the source tree.
+#
+LEVEL=..
+
+#
+# List all of the subdirectories that we will compile.
+#
+DIRS=sample
+
+include $(LEVEL)/Makefile.common
diff --git a/projects/sample/tools/sample/Makefile b/projects/sample/tools/sample/Makefile
new file mode 100644
index 0000000..324030c
--- /dev/null
+++ b/projects/sample/tools/sample/Makefile
@@ -0,0 +1,23 @@
+##===- projects/sample/tools/sample/Makefile ---------------*- Makefile -*-===##
+
+#
+# Indicate where we are relative to the top of the source tree.
+#
+LEVEL=../..
+
+#
+# Give the name of the tool.
+#
+TOOLNAME=Sample
+
+#
+# List libraries that we'll need
+# We use LIBS because sample is a dynamic library.
+#
+USEDLIBS = sample.a
+
+#
+# Include Makefile.common so we know what to do.
+#
+include $(LEVEL)/Makefile.common
+
diff --git a/projects/sample/tools/sample/main.c b/projects/sample/tools/sample/main.c
new file mode 100644
index 0000000..2880265
--- /dev/null
+++ b/projects/sample/tools/sample/main.c
@@ -0,0 +1,14 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <unistd.h>
+
+#include "sample.h"
+
+int
+main (int argc, char ** argv)
+{
+ printf ("%d\n", compute_sample (5));
+ exit (0);
+}
+