summaryrefslogtreecommitdiffstats
path: root/tools/bcc
AgeCommit message (Collapse)AuthorFilesLines
2014-09-04Set x86 SSE features explicitly in bccJian Li1-0/+24
Signed-off-by: Yong Chen <yong.a.chen@intel.com> (cherry picked from commit 602ce0336c0ff5109923cee9b4426e913e718605) Change-Id: Id6fcf75221874f4ffcd80cfdcd99a118dc591db7
2014-07-25Update libbcc for LLVM rebase to r212749.Stephen Hines1-8/+5
Change-Id: I40304090ada740c2451d32e01c7deed4f4c8c409
2014-06-26Use build fingerprint and compile command for caching.Jean-Luc Brouillet1-3/+4
If either of those have changed, we need to invalidate the compiled bit code. Change-Id: I9b5cdc19e29237dc7fb2ec1627a167f3f8987702
2014-06-19Change cache dependency tracking.Jean-Luc Brouillet1-9/+7
Remove the fix dependencies and make it depend only on the source hash. More changes coming soon to add dependencies on the Android build fingerprint and the command line used to compile. Change-Id: I8964044affccf52326ce286f879307eca79d0b24
2014-06-05Remove unnecessary stlport dependency.Stephen Hines1-2/+1
Change-Id: Ie0ae94c514ab63fae52d3c66a93fde9bdba30757
2014-05-30Update libbcc for LLVM 3.5 rebase (r209713).Stephen Hines1-1/+1
Change-Id: I0e882c84176d462958db05e4c9c10bfe995b8ed1
2014-05-16Remove unnecessary inheritance for CompilerConfig, as we switch to offline bcc.Stephen Hines1-1/+0
Change-Id: Id4a5be7b2b4627bfa7ef6279eb3b5b8e75915a7d
2014-05-15Fix some minor issues picked up by valgrind.Stephen Hines1-4/+2
Standalone bcc was leaking memory due to misuse of OwningPtr. RSInfo was not clearing a buffer before using only part of it. The whole buffer was being written out in the resulting file, however. Change-Id: Icd455748f81a06d022f1e5ed83a2ab1cae3fef09
2014-05-06Add options to device bcc for specifying the target architecture.Stephen Hines1-8/+0
Bug: 14474874 Change-Id: Id7342ef4f3be62aded142a27beb8632ea2854383
2014-05-05Remove Makefile->Header code generation from libbcc.Stephen Hines1-3/+1
These variables/defines are not often used and they complicate the use of target information in other Android libraries. Change-Id: I93dc71e17ae8ece1be46a3a609639ec8380cdaf9
2014-04-30Improve standalone bcc for on-device compilation.Stephen Hines1-0/+22
Bug: 7342767 This adds functionality for driver-writers to dynamically load plugins. If such a plugin is loaded, we then execute any function called rsCompilerDriverInit() from it. This function can initialize any other state the driver-writer wants. Change-Id: I733a6a3fc59c429a542cfcaf59a57ad231a19d01
2014-04-23Update libbcc for 64-bit support.Tim Murray2-3/+1
Change-Id: I369a82eb6730a33c46b6700408952fe34020ca51
2014-04-07Add DISABLE_LLVM_DEVICE_BUILDS to libbcc.Tim Murray1-0/+2
Change-Id: Iaad7b2ea8eea6c89c1c1a3d0e145bbb7bf60c6b9
2014-03-25Remove unused static function in tools/bcc/MainNarayan Kamath1-23/+0
Fixes self-hosted clang compile error. Change-Id: I58b7d0327ef30ab8dc8c6898ca0e2aac9390e6bc
2014-03-13Don't compile libbcc on ARM64 targets yet (need ARM64 librsloader).Tim Murray1-0/+3
bug 13280327 Change-Id: I5484d104086d6c86ec7c9dd777c7fbaecdaf7fbb
2013-08-09Update libbcc for LLVM merge to r187914.Stephen Hines1-2/+0
Switch over to new llvm::sys::path implementation. Remove unused Source::CreateFromFd(). F_Binary is now in llvm::sys::fs. Change-Id: Ib0ebb8a1d8ea04e5cf36c8082cf31dab2e144554
2013-06-28Fix up a few minor issues with bcc standalone executable.Stephen Hines1-9/+14
1) Default to -O3. This is to match the behavior of the integrated compiler in libbcc today. 2) Actually run the config() step on the RSCompilerDriver. I previously removed the invocation here, since it wasn't doing what we actually wanted by default. This change restores the use of config(). 3) In running the config() step mentioned in 2), we actually now respect the -mtriple compiler flag when run on the host. Device-side compiles will always use the target architecture. This makes it easier to generate multiple resulting object files for different architectures. Change-Id: I623ee8eec3d6c42375973e7b7e27f0800ea8ca48
2013-06-20bcc: Add option -emit-llvmTobias Grosser1-1/+5
Change-Id: I98470c6573b216518f77d338f4659d5b9fbcc3d3
2013-06-18Make bcc produce RS-compatible ELF objects.Stephen Hines2-139/+33
Bug: 7342767 Change-Id: I48e6d459adc477fcb6f3f1d8e4eb8ff7b40c546d
2013-06-13Update libbcc for LLVM merge to r183849.Stephen Hines1-121/+1
Remove unused param to readBytes(). Path.h -> PathV1.h Remove ability to load/run files from bcc tool. Change-Id: I07d735fb86638412f01c4f8285d56f45ca35b672
2013-02-28Build with libLLVM.so instead of static libraries.Stephen Hines1-2/+4
Change-Id: I20f94f3930aea01fda96999b5b829b1a47f4bded
2013-02-07Switch to use libcompiler_rt for compiler runtimes.Shih-wei Liao1-3/+3
Change-Id: I64b3d4ba80343bc592fa0df72242b33b2d2ae0ed
2012-08-17am 837cea4b: fix bad mergeJoe Onorato1-0/+1
* commit '837cea4bd73a38f4688091fc5767d7e2b7ec832b': fix bad merge
2012-08-17fix bad mergeJoe Onorato1-0/+1
Change-Id: Iaa1316076e0bb0307e7c2085fa919101fc52ceb0
2012-08-17resolved conflicts for merge of fcd0ce39 to masterJoe Onorato1-2/+9
Change-Id: I9f316440c2ca1f5d34847b5935015eb0ce72df65
2012-08-17resolved conflicts for merge of 5836d3b3 to jb-mr1-devJoe Onorato1-3/+9
Change-Id: I9e55eac53acf84e7fe5fddf860b4c5c267ef7b28
2012-08-16host modules don't need LOCAL_MODULE_TAGSJoe Onorato1-2/+0
Change-Id: Ic3da302ac6a3e5ac854c5186d09a22ab85050731
2012-08-15host modules don't need LOCAL_MODULE_TAGSJoe Onorato1-2/+0
Change-Id: Ia060c80e3292b3746ac3baf38f04a7c5d92bae91
2012-07-23Expose LLVM and MCLinker APIs currently.Shih-wei Liao1-3/+0
And fix various errors discovered by WHOLE_STATIC_LIBRARY. Change-Id: Iaf718cb4902a89e2593cf6f8672503c07e811306
2012-07-23Add kTruncate in FileBase. BUG=6841435.Shih-wei Liao1-1/+1
And remove O_TRUNC from the default flags to OutputFile. Change-Id: Id2ff6d5bac319d8be498e438eb3ef84e85573218
2012-07-12Rewrite the command line tool "bcc."Shih-wei Liao3-387/+442
Get rid of deprecated BCC C APIs using in bcc command. For the usage, see "/system/bin/bcc -help" for detail. Change-Id: I26dccd63034624509cb7311c72a45b908fc6d92c
2012-07-12Refine the makefiles.Zonr Chang2-20/+10
* Introduce libbcc.mk which defines the path for makefiles and libbcc configuration. * Introduce libbcc-{device,host}-build.mk which defines the build flags for building libbcc itself and/or for building module using libbcc. * Add header guard for generated ConfigFromMk.h. Change-Id: I892f6d3637f628ea6aa0116d92ebc54770ce3a47
2012-07-12Switch to use RSCompilerDriver.Zonr Chang1-13/+4
This commit is large. It does: 1. Clean-up RSScript. ScriptCached and ScriptCompiled are removed. 2. Switch to use CompilerConfig. 3. Switch to use RSInfo. MCCacheReader and MCCacheWriter are removed. 4. Update C API implementation of libbcc (i.e., bcc.cpp). Note that it'll be completely removed once there's no clients relying on it. Change-Id: I9cbe9f9441f73b7c0b3b84793cb35810dd3a9f4c
2012-05-03am 4a68b1cb: Revert "Switch to use RSCompilerDriver."Stephen Hines1-4/+13
* commit '4a68b1cb89df9507584a51c3444aff99347afb74': Revert "Switch to use RSCompilerDriver."
2012-05-03Merge commit 'b8ef6908' into manualmergeStephen Hines2-11/+20
Conflicts: tools/bcc/Android.mk Change-Id: I634049e64416dba665ea6839337555f662b439fe
2012-05-03am 3fb139a6: Revert "Rewrite the command line tool "bcc.""Stephen Hines3-442/+387
* commit '3fb139a6da99499f227e4f21fe966b509e509ca4': Revert "Rewrite the command line tool "bcc.""
2012-05-03Revert "Switch to use RSCompilerDriver."Stephen Hines1-4/+13
This reverts commit fef9a1b0b772034b4f0894d1e2b29d1115617be0. Conflicts: lib/ExecutionEngine/RSCompiler.cpp Change-Id: Ic6f3a3643e286a20799e1c7f03dee5d6c3683fef
2012-05-03Revert "Refine the makefiles."Stephen Hines2-12/+20
This reverts commit fa52e2083927dd4ea543528c557d52ab578ad34c.
2012-05-03Revert "Rewrite the command line tool "bcc.""Stephen Hines3-442/+387
This reverts commit a7b5a26a5487851706ddd6c33c1bb88137333df4.
2012-05-03Turn on the bcc build on Mac.Shih-wei Liao1-5/+3
libLLVMSupport is required for bcc on host build. Change-Id: I4aad8ed30fb5cf975798a9c370644b6366977f81
2012-04-25Fix Mac build. Don't build bcc on Mac for now.Shih-wei Liao1-0/+5
Change-Id: I5681b3b9512e445a6761b5b300206aacbe39955e
2012-04-25Fix Mac build. Don't build bcc on Mac for now.Shih-wei Liao1-0/+5
Change-Id: I5681b3b9512e445a6761b5b300206aacbe39955e
2012-04-25Rewrite the command line tool "bcc."Shih-wei Liao3-387/+442
Get rid of deprecated BCC C APIs using in bcc command. For the usage, see "/system/bin/bcc -help" for detail. Change-Id: Ie6da4779098af368c01900d54e618ee17220594e
2012-04-25Refine the makefiles.Zonr Chang2-20/+12
* Introduce libbcc.mk which defines the path for makefiles and libbcc configuration. * Introduce libbcc-{device,host}-build.mk which defines the build flags for building libbcc itself and/or for building module using libbcc. * Add header guard for generated ConfigFromMk.h.
2012-04-25Switch to use RSCompilerDriver.Zonr Chang1-13/+4
This commit is large. It does: 1. Clean-up RSScript. ScriptCached and ScriptCompiled are removed. 2. Switch to use CompilerConfig. 3. Switch to use RSInfo. MCCacheReader and MCCacheWriter are removed. 4. Update C API implementation of libbcc (i.e., bcc.cpp). Note that it'll be completely removed once there's no clients relying on it.
2012-04-02Fixed Mac compilation errorAndrew Hsieh1-1/+1
Initialize errMsg to silence warnning on uninitialized var which treated as error. Change-Id: I2507f88b444dc71e30652cca902d6da845b4de98
2012-04-02Fix unused variable bug.Logan Chien2-10/+3
Change-Id: I44c1c087159c9c0725186ee9705fa4f647c9ca8a
2012-03-06Fix a bug of -C in bcc command.Shih-wei Liao1-1/+1
Value for triple option (-C) should be in the arg[1] instead of arg[0]. Change-Id: I0e35ec757cd8e247daf0b42389e879ee2857b25b
2012-03-05Fix spelling, grammar, and formatting issues.Stephen Hines1-27/+31
Change-Id: Ie433486c36a75699e55427fa8be496f7bfbf7f1d
2012-03-03Add -or option to bcc command.Shih-wei Liao1-4/+33
It enables user to specify the path to output the intermediate relocatable file when performs linking (-shared.) Change-Id: Ice9d7bb3629abaf777ba36cf210f9a28f9c46745