OSDN Git Service

android-x86/external-llvm.git
8 years agoam df45c6fa: Merge "Add platform support for building LLVMgold.so in LLVM."
Than McIntosh [Wed, 9 Sep 2015 15:18:42 +0000 (15:18 +0000)]
am df45c6fa: Merge "Add platform support for building LLVMgold.so in LLVM."

* commit 'df45c6fab528be810ce98a41d6c3005f43ca0d2d':
  Add platform support for building LLVMgold.so in LLVM.

8 years agoMerge "Add platform support for building LLVMgold.so in LLVM."
Than McIntosh [Wed, 9 Sep 2015 15:11:26 +0000 (15:11 +0000)]
Merge "Add platform support for building LLVMgold.so in LLVM."

8 years agoam d933a4ab: Merge "Switch one other location from i386 -> x86_64 by default."
Stephen Hines [Wed, 9 Sep 2015 14:52:49 +0000 (14:52 +0000)]
am d933a4ab: Merge "Switch one other location from i386 -> x86_64 by default."

* commit 'd933a4abfc2d09cc2ef98c0c2d7d2522dd0ee602':
  Switch one other location from i386 -> x86_64 by default.

8 years agoMerge "Switch one other location from i386 -> x86_64 by default."
Stephen Hines [Wed, 9 Sep 2015 14:45:49 +0000 (14:45 +0000)]
Merge "Switch one other location from i386 -> x86_64 by default."

8 years agoSwitch one other location from i386 -> x86_64 by default.
Stephen Hines [Wed, 9 Sep 2015 14:36:32 +0000 (07:36 -0700)]
Switch one other location from i386 -> x86_64 by default.

We have both config.h and llvm-config.h defining this same default
triple, but I only updated one of them in my previous change. This CL
updates the host llvm-config.h as well, so that no warnings are
generated for the mismatch.

Change-Id: I0fc30d97aca8d8ab3c66614c42733a9c0bd83373

8 years agoam 710367e4: Merge "Switch to x86_64 instead of i386 for default host compilation."
Stephen Hines [Wed, 9 Sep 2015 14:36:16 +0000 (14:36 +0000)]
am 710367e4: Merge "Switch to x86_64 instead of i386 for default host compilation."

* commit '710367e4409b4a333c76858d7ad19689dc8fa89b':
  Switch to x86_64 instead of i386 for default host compilation.

8 years agoMerge "Switch to x86_64 instead of i386 for default host compilation."
Stephen Hines [Wed, 9 Sep 2015 14:31:04 +0000 (14:31 +0000)]
Merge "Switch to x86_64 instead of i386 for default host compilation."

8 years agoAdd platform support for building LLVMgold.so in LLVM.
Than McIntosh [Mon, 24 Aug 2015 15:59:33 +0000 (11:59 -0400)]
Add platform support for building LLVMgold.so in LLVM.

Also includes:
- tweak to libLTO.so makefile to fix unresolved llvm symbols

Bug: 21616856
Change-Id: I8be690ee2da3aeff6804d818ed933d72b3ceba75

8 years agoam a7ecc42b: Merge "Remove last HOST_OS check"
Dan Willemsen [Fri, 4 Sep 2015 19:45:26 +0000 (19:45 +0000)]
am a7ecc42b: Merge "Remove last HOST_OS check"

* commit 'a7ecc42b0c7c8e94514189c00877f1ef061ce162':
  Remove last HOST_OS check

8 years agoMerge "Remove last HOST_OS check"
Dan Willemsen [Fri, 4 Sep 2015 19:34:46 +0000 (19:34 +0000)]
Merge "Remove last HOST_OS check"

8 years agoRemove last HOST_OS check
Dan Willemsen [Wed, 2 Sep 2015 20:38:35 +0000 (13:38 -0700)]
Remove last HOST_OS check

LOCAL_MODULE_HOST_OS is now enforced.

Bug: 23566667
Change-Id: Ib5de02bb9ecb305da1ea9ff09ff6fa062b7f8339

8 years agoam dbb064a7: Merge "Stop checking HOST_OS, whitelist windows modules"
Dan Willemsen [Thu, 3 Sep 2015 00:32:18 +0000 (00:32 +0000)]
am dbb064a7: Merge "Stop checking HOST_OS, whitelist windows modules"

* commit 'dbb064a76edb1699f0a10dd1924f9af864bc1134':
  Stop checking HOST_OS, whitelist windows modules

8 years agoMerge "Stop checking HOST_OS, whitelist windows modules"
Dan Willemsen [Wed, 2 Sep 2015 22:50:19 +0000 (22:50 +0000)]
Merge "Stop checking HOST_OS, whitelist windows modules"

8 years agoStop checking HOST_OS, whitelist windows modules
Dan Willemsen [Wed, 19 Aug 2015 00:14:59 +0000 (17:14 -0700)]
Stop checking HOST_OS, whitelist windows modules

Bug: 23566667
Change-Id: If7a149c047ccd36c7789eda3c29d6cc8977ca6d6

8 years agoSwitch to x86_64 instead of i386 for default host compilation.
Stephen Hines [Mon, 24 Aug 2015 16:43:25 +0000 (09:43 -0700)]
Switch to x86_64 instead of i386 for default host compilation.

Change-Id: Icccf656bdf93b604d47ff2fc0d613ae53a79f222

8 years agoam 800f6f4d: Merge "Use _WIN32 rather than WIN32."
Elliott Hughes [Thu, 20 Aug 2015 21:55:04 +0000 (21:55 +0000)]
am 800f6f4d: Merge "Use _WIN32 rather than WIN32."

* commit '800f6f4dcb8ddcbc4ef4ce119892abf07852b233':
  Use _WIN32 rather than WIN32.

8 years agoMerge "Use _WIN32 rather than WIN32."
Elliott Hughes [Thu, 20 Aug 2015 21:21:01 +0000 (21:21 +0000)]
Merge "Use _WIN32 rather than WIN32."

8 years agoUse _WIN32 rather than WIN32.
Elliott Hughes [Thu, 20 Aug 2015 21:05:14 +0000 (14:05 -0700)]
Use _WIN32 rather than WIN32.

The latter should only exist if you #include <ole.h>.

Change-Id: I0fcaaddb79e1f7ae721d5c6d6eb5c67e2a41fd14

8 years agoam 1c66361b: Merge "Add Android.mk for libLLVMFuzzer."
Dan Albert [Mon, 17 Aug 2015 22:50:27 +0000 (22:50 +0000)]
am 1c66361b: Merge "Add Android.mk for libLLVMFuzzer."

* commit '1c66361bd83651042366a8e95ffc1d0f7f808eac':
  Add Android.mk for libLLVMFuzzer.

8 years agoMerge "Add Android.mk for libLLVMFuzzer."
Dan Albert [Mon, 17 Aug 2015 22:32:58 +0000 (22:32 +0000)]
Merge "Add Android.mk for libLLVMFuzzer."

8 years agoAdd Android.mk for libLLVMFuzzer.
Dan Albert [Thu, 30 Jul 2015 20:13:38 +0000 (13:13 -0700)]
Add Android.mk for libLLVMFuzzer.

Bug: http://b/22850550
Change-Id: Icb531452b369ad1922112f677a4a302b282c8116

8 years agoam 613b4a60: Merge "The windows build now needs to link libole32.dll as well."
Stephen Hines [Sat, 15 Aug 2015 04:10:17 +0000 (04:10 +0000)]
am 613b4a60: Merge "The windows build now needs to link libole32.dll as well."

* commit '613b4a60f877f3a81a052b0aaa2e62ece2d43ee2':
  The windows build now needs to link libole32.dll as well.

8 years agoMerge "The windows build now needs to link libole32.dll as well."
Stephen Hines [Sat, 15 Aug 2015 04:00:32 +0000 (04:00 +0000)]
Merge "The windows build now needs to link libole32.dll as well."

8 years agoThe windows build now needs to link libole32.dll as well.
Stephen Hines [Sat, 15 Aug 2015 03:58:51 +0000 (20:58 -0700)]
The windows build now needs to link libole32.dll as well.

Change-Id: I9eb59c99e6825458f4e608787e10459fe9c6ee00

8 years agoam a10bdf76: Merge "Update aosp/master LLVM for rebase to r239765"
Stephen Hines [Sat, 15 Aug 2015 02:22:55 +0000 (02:22 +0000)]
am a10bdf76: Merge "Update aosp/master LLVM for rebase to r239765"

* commit 'a10bdf76dd3a57cf21057d6c8f70e459c2942a45':
  Update aosp/master LLVM for rebase to r239765

8 years agoMerge "Update aosp/master LLVM for rebase to r239765"
Stephen Hines [Sat, 15 Aug 2015 02:04:57 +0000 (02:04 +0000)]
Merge "Update aosp/master LLVM for rebase to r239765"

8 years agoam c106219c: Merge "Just bundle everything for building libLTO."
Stephen Hines [Tue, 4 Aug 2015 22:54:39 +0000 (22:54 +0000)]
am c106219c: Merge "Just bundle everything for building libLTO."

* commit 'c106219c8fc9da44c62082f70635f911ed0eac4b':
  Just bundle everything for building libLTO.

8 years agoMerge "Just bundle everything for building libLTO."
Stephen Hines [Tue, 4 Aug 2015 22:36:09 +0000 (22:36 +0000)]
Merge "Just bundle everything for building libLTO."

8 years agoJust bundle everything for building libLTO.
Stephen Hines [Tue, 4 Aug 2015 22:29:52 +0000 (15:29 -0700)]
Just bundle everything for building libLTO.

This fixes the Mac build breakage.

Change-Id: I63c561d029e34cbd2a34b24f80c999875ae8c24f

8 years agoam f2bd4beb: Merge "Add support for building libLTO.so in LLVM."
Stephen Hines [Mon, 3 Aug 2015 21:08:30 +0000 (21:08 +0000)]
am f2bd4beb: Merge "Add support for building libLTO.so in LLVM."

* commit 'f2bd4beb60382d5219e3fa6901a9a29468a67f5c':
  Add support for building libLTO.so in LLVM.

8 years agoMerge "Add support for building libLTO.so in LLVM."
Stephen Hines [Mon, 3 Aug 2015 20:51:07 +0000 (20:51 +0000)]
Merge "Add support for building libLTO.so in LLVM."

8 years agoAdd support for building libLTO.so in LLVM.
Stephen Hines [Thu, 30 Jul 2015 07:42:26 +0000 (00:42 -0700)]
Add support for building libLTO.so in LLVM.

Bug: 21616856
Change-Id: Id6b9e5b91fb1b9e1ff73a096a4286b443bad0382

8 years agoam bc133f4e: Merge "Remove unnecessary patches/ directory."
Stephen Hines [Tue, 14 Jul 2015 23:11:46 +0000 (23:11 +0000)]
am bc133f4e: Merge "Remove unnecessary patches/ directory."

* commit 'bc133f4e8b95c10e067329152c3d7f968187bbfe':
  Remove unnecessary patches/ directory.

8 years agoMerge "Remove unnecessary patches/ directory."
Stephen Hines [Tue, 14 Jul 2015 22:42:51 +0000 (22:42 +0000)]
Merge "Remove unnecessary patches/ directory."

8 years agoRemove unnecessary patches/ directory.
Stephen Hines [Tue, 14 Jul 2015 02:30:37 +0000 (19:30 -0700)]
Remove unnecessary patches/ directory.

We don't use these patches, and all of the history is available directly
via git.

Change-Id: I064de1f73d426288431c3ea46a483f7e37619f63

8 years agoUpdate aosp/master LLVM for rebase to r239765
Pirama Arumuga Nainar [Wed, 1 Jul 2015 19:23:51 +0000 (12:23 -0700)]
Update aosp/master LLVM for rebase to r239765

Bug: 20140355: This rebase pulls the upstream fix for the spurious
warnings mentioned in the bug.

Change-Id: I7fd24253c50f4d48d900875dcf43ce3f1721a3da

8 years agoam 8ccad4af: Merge "Prepare for the removal of HAVE_MALLOC_H from AndroidConfig.h."
Elliott Hughes [Wed, 8 Jul 2015 18:00:27 +0000 (18:00 +0000)]
am 8ccad4af: Merge "Prepare for the removal of HAVE_MALLOC_H from AndroidConfig.h."

* commit '8ccad4af261ebfe705e9ec7f67d72410e6bc092c':
  Prepare for the removal of HAVE_MALLOC_H from AndroidConfig.h.

8 years agoMerge "Prepare for the removal of HAVE_MALLOC_H from AndroidConfig.h."
Elliott Hughes [Wed, 8 Jul 2015 17:32:50 +0000 (17:32 +0000)]
Merge "Prepare for the removal of HAVE_MALLOC_H from AndroidConfig.h."

8 years agoPrepare for the removal of HAVE_MALLOC_H from AndroidConfig.h.
Elliott Hughes [Wed, 8 Jul 2015 04:00:59 +0000 (21:00 -0700)]
Prepare for the removal of HAVE_MALLOC_H from AndroidConfig.h.

The device config.h is a good cleanup; the host side doesn't work
as well because of Mac OS, but it's no worse than the existing Mac OS
hacks.

Change-Id: I7a9dc089f03ae992c7463866a8b6c383ba0437e3

8 years agoam c3b07329: Merge "Replace LLVM_ENABLE_ASSERTION with FORCE_BUILD_LLVM_DISABLE_NDEBU...
David Gross [Fri, 19 Jun 2015 18:09:12 +0000 (18:09 +0000)]
am c3b07329: Merge "Replace LLVM_ENABLE_ASSERTION with FORCE_BUILD_LLVM_DISABLE_NDEBUG, and add FORCE_BUILD_LLVM_DEBUG."

* commit 'c3b0732900953dc4d8f68ce41da35f4760933bb3':
  Replace LLVM_ENABLE_ASSERTION with FORCE_BUILD_LLVM_DISABLE_NDEBUG, and add FORCE_BUILD_LLVM_DEBUG.

8 years agoMerge "Replace LLVM_ENABLE_ASSERTION with FORCE_BUILD_LLVM_DISABLE_NDEBUG, and add...
David Gross [Fri, 19 Jun 2015 17:45:02 +0000 (17:45 +0000)]
Merge "Replace LLVM_ENABLE_ASSERTION with FORCE_BUILD_LLVM_DISABLE_NDEBUG, and add FORCE_BUILD_LLVM_DEBUG."

8 years agoReplace LLVM_ENABLE_ASSERTION with FORCE_BUILD_LLVM_DISABLE_NDEBUG, and add FORCE_BUI...
David Gross [Fri, 12 Jun 2015 21:26:26 +0000 (14:26 -0700)]
Replace LLVM_ENABLE_ASSERTION with FORCE_BUILD_LLVM_DISABLE_NDEBUG, and add FORCE_BUILD_LLVM_DEBUG.

FORCE_BUILD_LLVM_DISABLE_NDEBUG and FORCE_BUILD_LLVM_DEBUG are
environment variables analogous to FORCE_BUILD_LLVM_COMPONENTS.

FORCE_BUILD_LLVM_DISABLE_NDEBUG compiles with -D_DEBUG -UNDEBUG.  This
has the effect of enabling assert() and certain internal behaviors
(e.g., various LLVM sanity checks).  FORCE_BUILD_LLVM_DISABLE_NDEBUG
must be set consistently during builds of llvm, clang, libbcc, and
slang to avoid undefined behavior.

FORCE_BUILD_LLVM_DEBUG compiles host code (but not device code) with -O0 -g.

Depends on similar changes in clang, libbcc, and slang.

Change-Id: Ic7cbfeb5fd97061c82a007324fb851eda2117f19

8 years agoam 93cc1f2b: Update llvm device version number to 3.6.
Stephen Hines [Wed, 17 Jun 2015 21:53:36 +0000 (21:53 +0000)]
am 93cc1f2b: Update llvm device version number to 3.6.

* commit '93cc1f2bebee328f8aceb8d9e07862fe44d6f346':
  Update llvm device version number to 3.6.

8 years agoUpdate llvm device version number to 3.6.
Stephen Hines [Thu, 21 May 2015 16:28:54 +0000 (09:28 -0700)]
Update llvm device version number to 3.6.

Bug: 20894851
Change-Id: Ic6deb626e2bad98d7420046e47b92556868dfe05
(cherry picked from commit e1977d0f8ca591f43fc0d3cba7e6a2b5ca7e22ff)

8 years agoam cc2bd110: Fix Android.mk files for plugins on darwin.
Stephen Hines [Mon, 8 Jun 2015 21:29:00 +0000 (21:29 +0000)]
am cc2bd110: Fix Android.mk files for plugins on darwin.

* commit 'cc2bd110643265cd06ab749ad2b3da58b4de66a3':
  Fix Android.mk files for plugins on darwin.

8 years agoam 05e0751a: Merge "Fix build break due to missing aarch64 components for x86."
Stephen Hines [Mon, 8 Jun 2015 21:13:32 +0000 (21:13 +0000)]
am 05e0751a: Merge "Fix build break due to missing aarch64 components for x86."

* commit '05e0751afbdfba48e492b81c5e4b2bcbae54ceeb':
  Fix build break due to missing aarch64 components for x86.

8 years agoFix Android.mk files for plugins on darwin.
Stephen Hines [Thu, 14 May 2015 18:11:09 +0000 (11:11 -0700)]
Fix Android.mk files for plugins on darwin.

Darwin uses a few different flags for this than Linux, and we missed this
when we updated the test builds recently.

Change-Id: I8a0e8bc18ef698a0ed933f96b2bce0653f4307e5
(cherry picked from commit 651de8d5ac0b28b10ad0259efc75cf6152dc13dc)

8 years agoMerge "Fix build break due to missing aarch64 components for x86."
Stephen Hines [Mon, 8 Jun 2015 20:48:20 +0000 (20:48 +0000)]
Merge "Fix build break due to missing aarch64 components for x86."

8 years agoFix build break due to missing aarch64 components for x86.
Stephen Hines [Mon, 8 Jun 2015 20:31:57 +0000 (13:31 -0700)]
Fix build break due to missing aarch64 components for x86.

Bug: 21702374

Intel's recent patches for AArch64 support on Intel devices broke fugu,
because they are using the same FORCE_BUILD_ARM define for both 32-bit
and 64-bit.

Change-Id: I4a37e719c9ad8773a653ec4114937eb13b1a0773

8 years agoam 690f94a7: Merge "add aarch64 codegen for x86_64 LLVM if specified"
Stephen Hines [Mon, 8 Jun 2015 20:08:06 +0000 (20:08 +0000)]
am 690f94a7: Merge "add aarch64 codegen for x86_64 LLVM if specified"

* commit '690f94a77cf19c6cc65b64e93490a3f49bc3197b':
  add aarch64 codegen for x86_64 LLVM if specified

8 years agoMerge "add aarch64 codegen for x86_64 LLVM if specified"
Stephen Hines [Mon, 8 Jun 2015 18:30:36 +0000 (18:30 +0000)]
Merge "add aarch64 codegen for x86_64 LLVM if specified"

8 years agoam 560a17f4: Update aosp/master LLVM with patches for fp16
Pirama Arumuga Nainar [Fri, 29 May 2015 00:28:46 +0000 (00:28 +0000)]
am 560a17f4: Update aosp/master LLVM with patches for fp16

* commit '560a17f4e3f8019a108abb7848a4735c59a43be0':
  Update aosp/master LLVM with patches for fp16

8 years agoam 2bffbbd0: Merge "Update aosp/master LLVM with patches for fp16"
Pirama Arumuga Nainar [Thu, 28 May 2015 20:16:18 +0000 (20:16 +0000)]
am 2bffbbd0: Merge "Update aosp/master LLVM with patches for fp16"

* commit '2bffbbd0ae47490a01529a5d9670067ae139b018':
  Update aosp/master LLVM with patches for fp16

8 years agoMerge "Update aosp/master LLVM with patches for fp16"
Pirama Arumuga Nainar [Thu, 28 May 2015 16:26:55 +0000 (16:26 +0000)]
Merge "Update aosp/master LLVM with patches for fp16"

8 years agoUpdate aosp/master LLVM with patches for fp16
Pirama Arumuga Nainar [Wed, 20 May 2015 19:55:36 +0000 (12:55 -0700)]
Update aosp/master LLVM with patches for fp16

Cherry-pick LLVM revisions r235191, r235215, r235220, r235341, r235363,
r235530, r235609, r235610, r237004

r235191 has a required bug-fix and the rest are all related to fp16.

Change-Id: I7fe8da5ffd8f2c06150885a54769abd18c3a04c6
(cherry picked from commit a18e6af1712fd41c4a705a19ad71f6e9ac7a4e68)

8 years agoam a4da2b64: Merge "Update llvm device version number to 3.6."
Stephen Hines [Thu, 21 May 2015 20:58:01 +0000 (20:58 +0000)]
am a4da2b64: Merge "Update llvm device version number to 3.6."

* commit 'a4da2b649346c6c98d17975366f8bc0bf50c9de5':
  Update llvm device version number to 3.6.

8 years agoMerge "Update llvm device version number to 3.6."
Stephen Hines [Thu, 21 May 2015 20:36:56 +0000 (20:36 +0000)]
Merge "Update llvm device version number to 3.6."

8 years agoUpdate llvm device version number to 3.6.
Stephen Hines [Thu, 21 May 2015 16:28:54 +0000 (09:28 -0700)]
Update llvm device version number to 3.6.

Bug: 20894851
Change-Id: Ic6deb626e2bad98d7420046e47b92556868dfe05

8 years agoUpdate aosp/master LLVM with patches for fp16
Pirama Arumuga Nainar [Wed, 20 May 2015 19:55:36 +0000 (12:55 -0700)]
Update aosp/master LLVM with patches for fp16

Cherry-pick LLVM revisions r235191, r235215, r235220, r235341, r235363,
r235530, r235609, r235610, r237004

r235191 has a required bug-fix and the rest are all related to fp16.

Change-Id: I7fe8da5ffd8f2c06150885a54769abd18c3a04c6

9 years agoam 2c3e0051: Update aosp/master LLVM for rebase to r235153
Pirama Arumuga Nainar [Wed, 20 May 2015 00:24:54 +0000 (00:24 +0000)]
am 2c3e0051: Update aosp/master LLVM for rebase to r235153

* commit '2c3e0051c31c3f5b2328b447eadf1cf9c4427442':
  Update aosp/master LLVM for rebase to r235153

9 years agoUpdate aosp/master LLVM for rebase to r235153
Pirama Arumuga Nainar [Wed, 6 May 2015 18:46:36 +0000 (11:46 -0700)]
Update aosp/master LLVM for rebase to r235153

Change-Id: I9bf53792f9fc30570e81a8d80d296c681d005ea7
(cherry picked from commit 0c7f116bb6950ef819323d855415b2f2b0aad987)

9 years agoam bf527ca3: Merge "Update aosp/master LLVM for rebase to r235153"
Pirama Arumuga Nainar [Fri, 15 May 2015 19:01:47 +0000 (19:01 +0000)]
am bf527ca3: Merge "Update aosp/master LLVM for rebase to r235153"

* commit 'bf527ca3741986130145a7219b208495424e788b':
  Update aosp/master LLVM for rebase to r235153

9 years agoMerge "Update aosp/master LLVM for rebase to r235153"
Pirama Arumuga Nainar [Fri, 15 May 2015 18:41:06 +0000 (18:41 +0000)]
Merge "Update aosp/master LLVM for rebase to r235153"

9 years agoam dd008e6a: Merge "Fix Android.mk files for plugins on darwin."
Stephen Hines [Thu, 14 May 2015 23:31:07 +0000 (23:31 +0000)]
am dd008e6a: Merge "Fix Android.mk files for plugins on darwin."

* commit 'dd008e6a93534ab13e6e54a30417c1e369e3e7cc':
  Fix Android.mk files for plugins on darwin.

9 years agoMerge "Fix Android.mk files for plugins on darwin."
Stephen Hines [Thu, 14 May 2015 22:47:35 +0000 (22:47 +0000)]
Merge "Fix Android.mk files for plugins on darwin."

9 years agoUpdate aosp/master LLVM for rebase to r235153
Pirama Arumuga Nainar [Wed, 6 May 2015 18:46:36 +0000 (11:46 -0700)]
Update aosp/master LLVM for rebase to r235153

Change-Id: I9bf53792f9fc30570e81a8d80d296c681d005ea7

9 years agoFix Android.mk files for plugins on darwin.
Stephen Hines [Thu, 14 May 2015 18:11:09 +0000 (11:11 -0700)]
Fix Android.mk files for plugins on darwin.

Darwin uses a few different flags for this than Linux, and we missed this
when we updated the test builds recently.

Change-Id: I8a0e8bc18ef698a0ed933f96b2bce0653f4307e5

9 years agoam e1bc1458: Export all dynamic symbols for opt and bugpoint
Pirama Arumuga Nainar [Fri, 1 May 2015 19:00:17 +0000 (19:00 +0000)]
am e1bc1458: Export all dynamic symbols for opt and bugpoint

* commit 'e1bc145815f4334641be19f1c45ecf85d25b6e5a':
  Export all dynamic symbols for opt and bugpoint

9 years agoam b928ea3b: Add makefile for tools/bugpoint-passes
Pirama Arumuga Nainar [Fri, 1 May 2015 19:00:16 +0000 (19:00 +0000)]
am b928ea3b: Add makefile for tools/bugpoint-passes

* commit 'b928ea3b96fd7bb0945799da90b7b122968ddc53':
  Add makefile for tools/bugpoint-passes

9 years agoExport all dynamic symbols for opt and bugpoint
Pirama Arumuga Nainar [Thu, 23 Apr 2015 18:06:58 +0000 (11:06 -0700)]
Export all dynamic symbols for opt and bugpoint

bug 15433215

Command line options from an LLVM module are registered and stored in a
static global object in libLLVMSupport.  Linking the Hello module with
its own copy of libLLVMSupport meant this module's option was not
registered correctly.  This patch updates Hello's build rules to not
link with libLLVMSupport and libLLVMCore.

Given the above change, the Hello module still needs to find LLVM
symbols that it used to pull directly.  The second half of this patch
adds linker flag --export-dynamic to tools/opt and tools/bugpoint so
loaded modules can find LLVM symbols.

Other  notes:
- The linker flag is not added to the device build of opt.  No one
  should be running opt on the device, AFAIK.
- Other tools that load modules, such as llc, lli and even clang, would
  need this linker flag if they were to load modules correctly.  Now
  that we know how to fix the incorrect module loads, they can be fixed
  if the need arises.
- Remove a duplicate from opt's llvm_opt_STATIC_LIBRARIES.

All supported tests pass!

Cherry pick of https://android-review.googlesource.com/#/c/148017/ from
AOSP

Change-Id: Ib76507ccfeae37a368718c5a1fb69da337f4f964

9 years agoAdd makefile for tools/bugpoint-passes
Pirama Arumuga Nainar [Thu, 23 Apr 2015 18:06:25 +0000 (11:06 -0700)]
Add makefile for tools/bugpoint-passes

bug 15433215

Build BugpointPasses module for the host.  It is loaded by some bugpoint
tests.

Cherry pick https://android-review.googlesource.com/#/c/148016/ from
AOSP

Change-Id: I1c0450a63d5eb25cb9da9f07baaaceefd454def5

9 years agoam 259a44d7: Merge "Export all dynamic symbols for opt and bugpoint"
Pirama Arumuga Nainar [Thu, 30 Apr 2015 16:25:10 +0000 (16:25 +0000)]
am 259a44d7: Merge "Export all dynamic symbols for opt and bugpoint"

* commit '259a44d7b69e96ce69ba571a3ab8335e2c7d52b7':
  Export all dynamic symbols for opt and bugpoint

9 years agoam 4fca40d2: Merge "Add makefile for tools/bugpoint-passes"
Pirama Arumuga Nainar [Thu, 30 Apr 2015 16:25:09 +0000 (16:25 +0000)]
am 4fca40d2: Merge "Add makefile for tools/bugpoint-passes"

* commit '4fca40d2a283a132ddcef776c62ff334e4546f51':
  Add makefile for tools/bugpoint-passes

9 years agoMerge "Export all dynamic symbols for opt and bugpoint"
Pirama Arumuga Nainar [Thu, 30 Apr 2015 16:01:26 +0000 (16:01 +0000)]
Merge "Export all dynamic symbols for opt and bugpoint"

9 years agoMerge "Add makefile for tools/bugpoint-passes"
Pirama Arumuga Nainar [Thu, 30 Apr 2015 16:00:01 +0000 (16:00 +0000)]
Merge "Add makefile for tools/bugpoint-passes"

9 years agoam 7b4cd9c6: Merge "Fix mips vs. mips64 build issues."
Stephen Hines [Sat, 25 Apr 2015 03:58:57 +0000 (03:58 +0000)]
am 7b4cd9c6: Merge "Fix mips vs. mips64 build issues."

* commit '7b4cd9c62b527e0759ab76e4938a98415d5bc1ce':
  Fix mips vs. mips64 build issues.

9 years agoMerge "Fix mips vs. mips64 build issues."
Stephen Hines [Sat, 25 Apr 2015 03:17:35 +0000 (03:17 +0000)]
Merge "Fix mips vs. mips64 build issues."

9 years agoFix mips vs. mips64 build issues.
Stephen Hines [Sat, 25 Apr 2015 02:16:52 +0000 (19:16 -0700)]
Fix mips vs. mips64 build issues.

Change-Id: I55b16d8c0e597079c036ceeefd8c04bfb394367b

9 years agoExport all dynamic symbols for opt and bugpoint
Pirama Arumuga Nainar [Thu, 23 Apr 2015 18:06:58 +0000 (11:06 -0700)]
Export all dynamic symbols for opt and bugpoint

bug 15433215

Command line options from an LLVM module are registered and stored in a
static global object in libLLVMSupport.  Linking the Hello module with
its own copy of libLLVMSupport meant this module's option was not
registered correctly.  This patch updates Hello's build rules to not
link with libLLVMSupport and libLLVMCore.

Given the above change, the Hello module still needs to find LLVM
symbols that it used to pull directly.  The second half of this patch
adds linker flag --export-dynamic to tools/opt and tools/bugpoint so
loaded modules can find LLVM symbols.

Other  notes:
- The linker flag is not added to the device build of opt.  No one
  should be running opt on the device, AFAIK.
- Other tools that load modules, such as llc, lli and even clang, would
  need this linker flag if they were to load modules correctly.  Now
  that we know how to fix the incorrect module loads, they can be fixed
  if the need arises.
- Remove a duplicate from opt's llvm_opt_STATIC_LIBRARIES.

All supported tests pass!

Change-Id: Ib76507ccfeae37a368718c5a1fb69da337f4f964

9 years agoAdd makefile for tools/bugpoint-passes
Pirama Arumuga Nainar [Thu, 23 Apr 2015 18:06:25 +0000 (11:06 -0700)]
Add makefile for tools/bugpoint-passes

bug 15433215

Build BugpointPasses module for the host.  It is loaded by some bugpoint
tests.

Change-Id: I1c0450a63d5eb25cb9da9f07baaaceefd454def5

9 years agoam 53b3699b: Merge "Remove any stale BuildVariables.inc files in the source tree."
Stephen Hines [Thu, 16 Apr 2015 01:00:06 +0000 (01:00 +0000)]
am 53b3699b: Merge "Remove any stale BuildVariables.inc files in the source tree."

* commit '53b3699b0d46b0bb7c8bf5e4a481b91f5e7aae87':
  Remove any stale BuildVariables.inc files in the source tree.

9 years agoMerge "Remove any stale BuildVariables.inc files in the source tree."
Stephen Hines [Thu, 16 Apr 2015 00:25:28 +0000 (00:25 +0000)]
Merge "Remove any stale BuildVariables.inc files in the source tree."

9 years agoRemove any stale BuildVariables.inc files in the source tree.
Stephen Hines [Thu, 16 Apr 2015 00:21:28 +0000 (17:21 -0700)]
Remove any stale BuildVariables.inc files in the source tree.

We previously had a bug that generated this file in the source tree instead
of in the actual build output directory.

Change-Id: Ie942750f91b37327c4f9cc8d83e0040b6e06ce2a

9 years agoam 3d7a0abc: Merge "Remove duplicate."
Ying Wang [Mon, 13 Apr 2015 23:58:40 +0000 (23:58 +0000)]
am 3d7a0abc: Merge "Remove duplicate."

* commit '3d7a0abcefb3c5bc742fb522eb1f5f06e85d7d55':
  Remove duplicate.

9 years agoMerge "Remove duplicate."
Ying Wang [Mon, 13 Apr 2015 23:02:18 +0000 (23:02 +0000)]
Merge "Remove duplicate."

9 years agoRemove duplicate.
Ying Wang [Mon, 13 Apr 2015 22:38:57 +0000 (15:38 -0700)]
Remove duplicate.

This fixes build warnings:
build/core/binary.mk:494: target
`out/host/linux-x86/obj/STATIC_LIBRARIES/libLLVMARMCodeGen_intermediates/ARMGenCodeEmitter.inc'
given more than once in the same rule.
build/core/binary.mk:494: target
`out/target/product/shamu/obj/STATIC_LIBRARIES/libLLVMARMCodeGen_intermediates/ARMGenCodeEmitter.inc'
given more than once in the same rule.

Change-Id: I4691fe616c1e13a4cc18ceaf3b64a3f2b9a5cd87

9 years agoam 31195f0b: Merge "Update aosp/master llvm for rebase to r233350"
Pirama Arumuga Nainar [Fri, 10 Apr 2015 22:08:18 +0000 (22:08 +0000)]
am 31195f0b: Merge "Update aosp/master llvm for rebase to r233350"

* commit '31195f0bdca6ee2a5e72d07edf13e1d81206d949':
  Update aosp/master llvm for rebase to r233350

9 years agoMerge "Update aosp/master llvm for rebase to r233350"
Pirama Arumuga Nainar [Fri, 10 Apr 2015 21:22:52 +0000 (21:22 +0000)]
Merge "Update aosp/master llvm for rebase to r233350"

9 years agoUpdate aosp/master llvm for rebase to r233350
Pirama Arumuga Nainar [Wed, 8 Apr 2015 15:55:49 +0000 (08:55 -0700)]
Update aosp/master llvm for rebase to r233350

Change-Id: I07d935f8793ee8ec6b7da003f6483046594bca49

9 years agoam c75239e6: Merge "Take HOST_PREFER_32_BIT into account"
Colin Cross [Thu, 9 Apr 2015 01:15:16 +0000 (01:15 +0000)]
am c75239e6: Merge "Take HOST_PREFER_32_BIT into account"

* commit 'c75239e6119d0f9a74c57099d91cbc9bde56bf33':
  Take HOST_PREFER_32_BIT into account

9 years agoam 55a4283a: Merge "Set LOCAL_MULTLIB := first for all LLVM host builds"
Colin Cross [Wed, 8 Apr 2015 22:12:29 +0000 (22:12 +0000)]
am 55a4283a: Merge "Set LOCAL_MULTLIB := first for all LLVM host builds"

* commit '55a4283a8567819d70c7e196f68dff5ae12fdc8f':
  Set LOCAL_MULTLIB := first for all LLVM host builds

9 years agoMerge "Take HOST_PREFER_32_BIT into account"
Colin Cross [Wed, 8 Apr 2015 22:04:47 +0000 (22:04 +0000)]
Merge "Take HOST_PREFER_32_BIT into account"

9 years agoTake HOST_PREFER_32_BIT into account
Colin Cross [Wed, 8 Apr 2015 21:50:08 +0000 (14:50 -0700)]
Take HOST_PREFER_32_BIT into account

LLVM modules should compile for 64-bit for the host, except when
HOST_PREFER_32_BIT is set.

Change-Id: I8179df10b929ce1cc655e097814fa50ca0c3c43e

9 years agoMerge "Set LOCAL_MULTLIB := first for all LLVM host builds"
Colin Cross [Wed, 8 Apr 2015 18:09:14 +0000 (18:09 +0000)]
Merge "Set LOCAL_MULTLIB := first for all LLVM host builds"

9 years agoSet LOCAL_MULTLIB := first for all LLVM host builds
Colin Cross [Tue, 7 Apr 2015 22:05:50 +0000 (15:05 -0700)]
Set LOCAL_MULTLIB := first for all LLVM host builds

The default multlib setting for host libraries is going to change from
"both" to "first".  This breaks LLVM host compiles on 64-bit when
FORCE_BUILD_LLVM_COMPONENTS, because LLVMHello tries to compile for
both 64-bit and 32-bit, the 32-bit version tries to link against
32-bit libLLVM, but prebuilts/sdk/tools/* only provides a 64-bit
version of libLLVM.so.

When compiling for a 32-bit host we always set
FORCE_BUILD_LLVM_COMPONENTS=true, so the easy fix is to force 64-bit
host builds to only build LLVM components for 64-bit by setting
LOCAL_MULTILIB := first in llvm-host-build.mk.

Change-Id: Ia17c045649b59b90bdc06d4cbe03f2542bf42371

9 years agoam 6f4fa452: Merge "Update lit.site.cfg to be able to run LLVM tests properly again."
Stephen Hines [Fri, 3 Apr 2015 14:52:21 +0000 (14:52 +0000)]
am 6f4fa452: Merge "Update lit.site.cfg to be able to run LLVM tests properly again."

* commit '6f4fa452db89a32b9dfc8ed8ab61834dcdca07ad':
  Update lit.site.cfg to be able to run LLVM tests properly again.

9 years agoMerge "Update lit.site.cfg to be able to run LLVM tests properly again."
Stephen Hines [Thu, 2 Apr 2015 23:27:30 +0000 (23:27 +0000)]
Merge "Update lit.site.cfg to be able to run LLVM tests properly again."

9 years agoUpdate lit.site.cfg to be able to run LLVM tests properly again.
Stephen Hines [Thu, 2 Apr 2015 02:21:59 +0000 (19:21 -0700)]
Update lit.site.cfg to be able to run LLVM tests properly again.

Bug: 15433215

Add support for building llvm-dsymutil.
Add support for building llvm-pdbdump.

We still have 4 unexpected failures to track down with the Android build/run
of these tests. These are all related to module loading support.

Change-Id: Ibd39cbd2c0ee232a0df23a414d491420493ea94a

9 years agoam 3fa16bd6: Merge "Update aosp/master LLVM for rebase to r230699."
Stephen Hines [Wed, 1 Apr 2015 22:08:43 +0000 (22:08 +0000)]
am 3fa16bd6: Merge "Update aosp/master LLVM for rebase to r230699."

* commit '3fa16bd6062e23bcdb82ed4dd965674792e6b761':
  Update aosp/master LLVM for rebase to r230699.

9 years agoMerge "Update aosp/master LLVM for rebase to r230699."
Stephen Hines [Wed, 1 Apr 2015 18:49:24 +0000 (18:49 +0000)]
Merge "Update aosp/master LLVM for rebase to r230699."