[llvm-commits] [parallel] CVS: llvm/test/Regression/Transforms/Parallel/20040422-ImplicitPbr.c
Misha Brukman
brukman at cs.uiuc.edu
Fri Apr 23 11:55:02 PDT 2004
Changes in directory llvm/test/Regression/Transforms/Parallel:
20040422-ImplicitPbr.c added (r1.1.2.1)
---
Log message:
Test case to convert implicit parallelism (in C) to use pbr.
---
Diffs of the changes: (+16 -0)
Index: llvm/test/Regression/Transforms/Parallel/20040422-ImplicitPbr.c
diff -c /dev/null llvm/test/Regression/Transforms/Parallel/20040422-ImplicitPbr.c:1.1.2.1
*** /dev/null Fri Apr 23 11:54:51 2004
--- llvm/test/Regression/Transforms/Parallel/20040422-ImplicitPbr.c Fri Apr 23 11:54:41 2004
***************
*** 0 ****
--- 1,16 ----
+ void* __llvm_pbr(void);
+ void __llvm_join(void*);
+
+ void bar(void);
+ void quux(void);
+
+ void foo() {
+ void* p = __llvm_pbr();
+ if (p)
+ bar();
+ else
+ quux();
+
+ __llvm_join(p);
+
+ }
More information about the llvm-commits
mailing list