~ryan-rmarcus/pocl/pocl

« back to all changes in this revision

Viewing changes to lib/llvmopencl/WorkitemReplication.h

  • Committer: Carlos Sánchez de La Lama
  • Date: 2011-12-16 19:22:28 UTC
  • mfrom: (101.1.11 pocl.parallelregion)
  • Revision ID: carlos.delalama@urjc.es-20111216192228-q04bggvsavdpb2nm
Merge.
Correct handling of barriered for loops with PHI nodes.
Bug #900379 fixed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "llvm/Analysis/LoopInfo.h"
26
26
#include "llvm/Function.h"
27
27
#include "llvm/Pass.h"
 
28
#include "llvm/Transforms/Utils/ValueMapper.h"
28
29
#include <map>
29
30
#include <vector>
30
31
 
57
58
    // always processed from dominator to function end, making last
58
59
    // added reference the correct one, thus no need for more
59
60
    // complex bookeeping.
60
 
    ValueValueMap *ReferenceMap;
 
61
    llvm::ValueToValueMapTy *ReferenceMap;
61
62
 
62
63
    int LocalSizeX, LocalSizeY, LocalSizeZ;
63
64
    llvm::GlobalVariable *LocalX, *LocalY, *LocalZ;