Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 658794
Collapse All | Expand All

(-)Beignet-1.3.2-Source.orig/backend/src/llvm/llvm_to_gen.cpp (+4 lines)
Lines 322-328 namespace gbe Link Here
322
    DataLayout DL(&mod);
322
    DataLayout DL(&mod);
323
    
323
    
324
    gbeDiagnosticContext dc;
324
    gbeDiagnosticContext dc;
325
#if LLVM_VERSION_MAJOR >= 6
326
    mod.getContext().setDiagnosticHandlerCallBack(&gbeDiagnosticHandler,&dc);
327
#else
325
    mod.getContext().setDiagnosticHandler(&gbeDiagnosticHandler,&dc);
328
    mod.getContext().setDiagnosticHandler(&gbeDiagnosticHandler,&dc);
329
#endif
326
330
327
#if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 37
331
#if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 37
328
    mod.setDataLayout(DL);
332
    mod.setDataLayout(DL);
(-)Beignet-1.3.2-Source.orig/backend/src/llvm/llvm_unroll.cpp (-1 / +3 lines)
Lines 205-211 namespace gbe { Link Here
205
          if (parentTripCount != 0 && currTripCount * parentTripCount > 32) {
205
          if (parentTripCount != 0 && currTripCount * parentTripCount > 32) {
206
            //Don't change the unrollID if doesn't force unroll.
206
            //Don't change the unrollID if doesn't force unroll.
207
            //setUnrollID(parentL, false);
207
            //setUnrollID(parentL, false);
208
#if LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 38
208
#if LLVM_VERSION_MAJOR >= 6
209
            loopInfo.erase(parentL);
210
#elif LLVM_VERSION_MAJOR * 10 + LLVM_VERSION_MINOR >= 38
209
            loopInfo.markAsRemoved(parentL);
211
            loopInfo.markAsRemoved(parentL);
210
#else
212
#else
211
            LPM.deleteLoopFromQueue(parentL);
213
            LPM.deleteLoopFromQueue(parentL);

Return to bug 658794