[llvm-commits] CVS: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/pops.c precision.h
John Criswell
criswell at cs.uiuc.edu
Thu Feb 19 16:07:26 PST 2004
Changes in directory llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac:
pops.c updated: 1.1 -> 1.2
precision.h updated: 1.1 -> 1.2
---
Log message:
Modifications to not inline things. This gets it to compile and work
with LLVM.
---
Diffs of the changes: (+12 -2)
Index: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/pops.c
diff -u llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/pops.c:1.1 llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/pops.c:1.2
--- llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/pops.c:1.1 Thu Feb 19 15:46:33 2004
+++ llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/pops.c Thu Feb 19 15:55:12 2004
@@ -265,7 +265,8 @@
#endif
}
-#ifndef __GNUC__ /* inline in header file */
+/* LLVM - No inlining */
+//#ifndef __GNUC__ /* inline in header file */
/*
* We cannot allow this to be a macro because of the probability that it's
* argument will be a function (e.g. utop(2))
@@ -314,7 +315,8 @@
#endif
return v;
}
-#endif
+/* LLVM - No Inlining */
+//#endif
#if 0 /* original assignment code */
precision pset(up, v)
Index: llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/precision.h
diff -u llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/precision.h:1.1 llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/precision.h:1.2
--- llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/precision.h:1.1 Thu Feb 19 15:46:33 2004
+++ llvm/test/Programs/MultiSource/Benchmarks/MallocBench/cfrac/precision.h Thu Feb 19 15:55:12 2004
@@ -56,6 +56,9 @@
* All are side-effect safe except for pparm and presult.
* -DDEBUG will enable argument checking for pset and pparm
*/
+
+/* LLVM - Disable all of the inlining */
+#if 0
#ifdef __GNUC__ /* inline is NOT ansii! Sigh. */
#ifndef BWGC
extern inline precision pnew(precision u) { (* (prefc *) u)++; return u; }
@@ -98,6 +101,11 @@
#define pparmq(u) (u)
#define pvoid(u) pdestroyf(u)
#endif
+#endif
+#else
+#define pdestroy(u) (void) ((u)!=pUndef&&--(*(prefc *)(u))==0&&pfree(u))
+#define pparmq(u) ((u) != pUndef && (* (prefc *) (u))++, (u))
+#define pvoid(u) pdestroyf(u)
#endif
More information about the llvm-commits
mailing list