<div dir="ltr"><div><div>Hi,</div><div><br></div><div>I'm an update about external/llvm status</div><div><br></div><div>android-n-preview-2 switched to llvm 3.8.0, the following branch has AMDGPU patches,</div><div>even if named after marshamallow, changes were made on top llvm 3.8.0, after aosp switched with android-n-preview2:</div><div><br></div><div><a href="https://github.com/maurossi/llvm/tree/marshmallow-x86_llvm380_WIP2" target="_blank">https://github.com/maurossi/llvm/tree/marshmallow-x86_llvm380_WIP2</a></div><div><br></div><div>NOTE: the latest branch is untested because I could not complete build with marshmallow and I did not dare to try building master,</div><div>before Chih-Wei porting.</div><div><br></div><div>The important thing is that between n-preview-1 and n-preview-2  (and AOSP master before N-preview2) moved to llvm 3.8.0,<br></div></div><div>but I found in three distinct trials (master, n-preview-1, n-preview-2) that llvm3.8.0 would break marshmallow-x86 build,</div><div>I have record of the build errors if needed.</div><div><br></div><div>As a final note I would recommend not to use the same llvm version for different Android versions, <br></div><div>we tried that in the past and there were several build breakages, </div><div>so lollipop-x86 requires llvm 3.5.0, marshmallow-x86 requires 3.7.0 and android-n will require 3.8.0</div><div><br></div><div>Mauro</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-04-30 22:31 GMT+02:00 Paulo Sergio <span dir="ltr"><<a href="mailto:pstglia@gmail.com" target="_blank">pstglia@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> > I'm on AOSP master which probably means a different LLVM version.<br>
> > First, I had to enable several LLVM libs to build for the target and<br>
> > not just the host. In mesa, I had to set the LLVM version to 3.7 from<br>
> > 3.5, add libLLVMExecutionEngine to libmesa_nir and use libLLVM shared<br>
> > lib instead of r600 static libraries. I'm surprised similar changes<br>
> > aren't needed.<br>
> ><br>
> From memory Android-x86 (and/or Mauro) did have some LLVM and mesa (?)<br>
> changes to get LLVM and radeon(s) working. I think that most/all of<br>
> this work is over at github - <a href="https://github.com/maurossi" rel="noreferrer" target="_blank">https://github.com/maurossi</a><br>
<br>
</span>When we were working to enable radeonsi on Android, we basically added<br>
lib/Target/R600/ target on Android.mk files and it's dependencies, as<br>
these were not included by AOSP by default<br>
See [1]<br>
<br>
<br>
[1] - <a href="https://github.com/maurossi/llvm/commit/571b37049a813fdb02631a20246ee3a4bc99760b" rel="noreferrer" target="_blank">https://github.com/maurossi/llvm/commit/571b37049a813fdb02631a20246ee3a4bc99760b</a><br>
</blockquote></div><br></div>