~ryan-rmarcus/pocl/pocl

« back to all changes in this revision

Viewing changes to tests/barriers1_input.ll

  • Committer: Carlos Sánchez de La Lama
  • Date: 2011-12-12 04:35:55 UTC
  • mto: This revision was merged to the branch mainline in revision 109.
  • Revision ID: carlos.delalama@urjc.es-20111212043555-ct245z61erk23htj
Using intrinsic (sort of) for barriers, working & tests updates.
New class ParallelRegion & Barrier (still unused).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
declare void @barrier(i32 %flags)
 
1
declare void @pocl.barrier()
2
2
 
3
3
declare void @foo()
4
4
 
5
5
define void @barrier1() {
6
6
barrier:
7
7
  call void @foo()
8
 
  call void @barrier(i32 0)
 
8
  call void @pocl.barrier()
9
9
  call void @foo()
10
10
  ret void
11
11
}