Re: [Mesa-dev] [PATCH] clover: Fix build against LLVM 3.8 SVN >= r255078
On 15.12.2015 09:17, Ilia Mirkin wrote: > On Wed, Dec 9, 2015 at 5:30 AM, Francisco Jerez wrote: >> Michel Dänzer writes: >> >>> From: Michel Dänzer >>> >>> Signed-off-by: Michel Dänzer >> >> Looks OK to me, >> Reviewed-by: Francisco Jerez >> >>> --- >>> src/gallium/state_trackers/clover/llvm/invocation.cpp | 4 >>> 1 file changed, 4 insertions(+) >>> >>> diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp >>> b/src/gallium/state_trackers/clover/llvm/invocation.cpp >>> index 3b37f08..4d11c24 100644 >>> --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp >>> +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp >>> @@ -661,7 +661,11 @@ namespace { >>> >>>if (dump_asm) { >>> LLVMSetTargetMachineAsmVerbosity(tm, true); >>> +#if HAVE_LLVM >= 0x0308 >>> + LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod).release()); >>> +#else >>> LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod)); >>> +#endif >>> emit_code(tm, debug_mod, LLVMAssemblyFile, &out_buffer, r_log); >>> buffer_size = LLVMGetBufferSize(out_buffer); >>> buffer_data = LLVMGetBufferStart(out_buffer); > > Emil, consider cherry-picking this into 11.1 and perhaps even 11.0 to > save people from unnecessary compilation trouble. This is commit > b4a03e7f8f upstream. FWIW, I still think that's a bad idea at this point: Supporting unreleased snapshots of LLVM simply isn't feasible on stable Mesa branches — the next similar breakage can appear in LLVM SVN anytime. To help people running into this, maybe stable Mesa branches could get a change to configure.ac which aborts with a descriptive error message when trying to build against a version of LLVM which isn't supported on that stable Mesa branch yet. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH] clover: Fix build against LLVM 3.8 SVN >= r255078
On Wed, Dec 9, 2015 at 5:30 AM, Francisco Jerez wrote: > Michel Dänzer writes: > >> From: Michel Dänzer >> >> Signed-off-by: Michel Dänzer > > Looks OK to me, > Reviewed-by: Francisco Jerez > >> --- >> src/gallium/state_trackers/clover/llvm/invocation.cpp | 4 >> 1 file changed, 4 insertions(+) >> >> diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp >> b/src/gallium/state_trackers/clover/llvm/invocation.cpp >> index 3b37f08..4d11c24 100644 >> --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp >> +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp >> @@ -661,7 +661,11 @@ namespace { >> >>if (dump_asm) { >> LLVMSetTargetMachineAsmVerbosity(tm, true); >> +#if HAVE_LLVM >= 0x0308 >> + LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod).release()); >> +#else >> LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod)); >> +#endif >> emit_code(tm, debug_mod, LLVMAssemblyFile, &out_buffer, r_log); >> buffer_size = LLVMGetBufferSize(out_buffer); >> buffer_data = LLVMGetBufferStart(out_buffer); Emil, consider cherry-picking this into 11.1 and perhaps even 11.0 to save people from unnecessary compilation trouble. This is commit b4a03e7f8f upstream. Cheers, -ilia ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH] clover: Fix build against LLVM 3.8 SVN >= r255078
Michel Dänzer writes: > From: Michel Dänzer > > Signed-off-by: Michel Dänzer Looks OK to me, Reviewed-by: Francisco Jerez > --- > src/gallium/state_trackers/clover/llvm/invocation.cpp | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp > b/src/gallium/state_trackers/clover/llvm/invocation.cpp > index 3b37f08..4d11c24 100644 > --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp > +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp > @@ -661,7 +661,11 @@ namespace { > >if (dump_asm) { > LLVMSetTargetMachineAsmVerbosity(tm, true); > +#if HAVE_LLVM >= 0x0308 > + LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod).release()); > +#else > LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod)); > +#endif > emit_code(tm, debug_mod, LLVMAssemblyFile, &out_buffer, r_log); > buffer_size = LLVMGetBufferSize(out_buffer); > buffer_data = LLVMGetBufferStart(out_buffer); > -- > 2.6.2 > > ___ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/mesa-dev signature.asc Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev
[Mesa-dev] [PATCH] clover: Fix build against LLVM 3.8 SVN >= r255078
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/gallium/state_trackers/clover/llvm/invocation.cpp | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/state_trackers/clover/llvm/invocation.cpp b/src/gallium/state_trackers/clover/llvm/invocation.cpp index 3b37f08..4d11c24 100644 --- a/src/gallium/state_trackers/clover/llvm/invocation.cpp +++ b/src/gallium/state_trackers/clover/llvm/invocation.cpp @@ -661,7 +661,11 @@ namespace { if (dump_asm) { LLVMSetTargetMachineAsmVerbosity(tm, true); +#if HAVE_LLVM >= 0x0308 + LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod).release()); +#else LLVMModuleRef debug_mod = wrap(llvm::CloneModule(mod)); +#endif emit_code(tm, debug_mod, LLVMAssemblyFile, &out_buffer, r_log); buffer_size = LLVMGetBufferSize(out_buffer); buffer_data = LLVMGetBufferStart(out_buffer); -- 2.6.2 ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev