~ryan-rmarcus/pocl/pocl

« back to all changes in this revision

Viewing changes to tests/barriers2_golden.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
1
; ModuleID = 'barriers2_input.ll'
2
2
 
3
 
declare void @barrier(i32)
 
3
declare void @pocl.barrier()
4
4
 
5
5
define void @forbarrier2() {
6
6
a.loopbarrier.prebarrier:
7
7
  br label %a.loopbarrier
8
8
 
9
9
a.loopbarrier:                                    ; preds = %a.loopbarrier.prebarrier
10
 
  call void @barrier(i32 0)
 
10
  call void @pocl.barrier()
11
11
  br label %b.loopbarrier.prebarrier
12
12
 
13
13
b.loopbarrier.prebarrier:                         ; preds = %c.latchbarrier.postbarrier, %a.loopbarrier
14
14
  br label %b.loopbarrier
15
15
 
16
16
b.loopbarrier:                                    ; preds = %b.loopbarrier.prebarrier
17
 
  call void @barrier(i32 0)
 
17
  call void @pocl.barrier()
18
18
  br label %barrier.prebarrier
19
19
 
20
20
barrier.prebarrier:                               ; preds = %barrier.postbarrier, %b.loopbarrier
21
21
  br label %barrier
22
22
 
23
23
barrier:                                          ; preds = %barrier.prebarrier
24
 
  call void @barrier(i32 0)
 
24
  call void @pocl.barrier()
25
25
  br label %barrier.postbarrier
26
26
 
27
27
barrier.postbarrier:                              ; preds = %barrier
31
31
  br label %c.latchbarrier
32
32
 
33
33
c.latchbarrier:                                   ; preds = %c.latchbarrier.prebarrier
34
 
  call void @barrier(i32 0)
 
34
  call void @pocl.barrier()
35
35
  br label %c.latchbarrier.postbarrier
36
36
 
37
37
c.latchbarrier.postbarrier:                       ; preds = %c.latchbarrier