Those files are generated by the llvm_tblgen modules in external/llvm/Android.bp. You'll find their outputs at: out/soong/.intermediates/external/llvm/llvm-gen-attributes/gen/llvm/IR/Attributes.inc out/soong/.intermediates/external/llvm/llvm-gen-intrinsics/gen/llvm/IR/Intrinsics.gen
As a hack you could copy those files to the places where the Android.mk files create them, just be aware they will not be updated if you make changes to the source files and rebuild. You could also try reverting the change that removed generating those files in Make: commit 7ebb1e3516ebd630aa3fe94f9b4cca2c2dbb09ae Author: Dan Willemsen <[email protected]> Date: Thu Nov 1 00:16:34 2018 -0700 Disable tblgen in Make The last user of these have been removed. simpleperf is still using LLVM_HOST_BUILD_MK and LLVM_DEVICE_BUILD_MK, so these can't all be removed yet. Test: treehugger Change-Id: I0b3966fa5630e9795a1e7d7b9658f9a2bcad5271 You'll likely have better success building opt, llvm-link and llc using Android.bp files than trying to get the old Android.mk files to work though. On Mon, Mar 2, 2020 at 12:49 PM Paschalis Mpeis <[email protected]> wrote: > Hi there, > > I am building some tools from *external/llvm*, specifically *opt*, > *llvm-link*, and* llc*. > For this, I revived the relevant Android.mk from previous commits > (for each of the tools, and a relevant portion at > external/llvm/Android.mk). > They are normally picked up by the soong build system, and I can for > example call: `m opt`. > > However, these tools depend on *two intermediates*: > > - > > target/product/<DEVICE>/gen/EXECUTABLES/opt_intermediates/llvm/IR/Attributes.inc > - > > target/product/<DEVICE>/gen/EXECUTABLES/opt_intermediates/llvm/IR/Intrinsics.gen > > I have enabled FORCE_BUILD_LLVM_COMPONENTS (see here > <https://cs.android.com/android/platform/superproject/+/android10-release:external/llvm/Android.bp;l=159> > ) > and I can see there are relevant entries for what I want at lines: 148 > <https://cs.android.com/android/platform/superproject/+/android10-release:external/llvm/Android.bp;l=148> > and 154 > <https://cs.android.com/android/platform/superproject/+/android10-release:external/llvm/Android.bp;l=154> > . > > So, is my question is: is there a way to generate those 2 intermediate > files using the existing Android.bp setup on android10-release branch > <https://cs.android.com/android/platform/superproject/+/android10-release:external/llvm/> > ? > > Cheers, > Paschalis > > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Android Building" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/android-building/6e937488-80cb-42c8-b15c-087cafb7c400%40googlegroups.com > <https://groups.google.com/d/msgid/android-building/6e937488-80cb-42c8-b15c-087cafb7c400%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/android-building/CAMbhsRT279w0e%2BT%2B3o2zEQBc0JFEo6gEjfgrJjiLq%3DSXpZ25MQ%40mail.gmail.com.
