cf5afcb229806de1b62dee5a7cc0c7ba6a69f482 |
|
20-Mar-2017 |
David Gross <dgross@google.com> |
Make bitcode wrapper info available to MetadataExtractor. Copy bitcode wrapper information (compiler version, optimization level) from bitcode wrapper to Module metadata, where it can be found by MetadataExtractor instantiated from Module. Previously, such a MetadataExtractor ignored the information in the bitcode wrapper; instead, it - nonsensically set compiler version to RS_VERSION, which is an API level rather than a slang version; and - set optimization level to 3. Remove unused MetadataExtractor::getTargetAPI(): - Old behavior: - For user bitcode, got actual targetAPI. - For libclcore, got 0. - For linked bitcode (user bitcode + libclcore), got uninitialized/garbage value. - It's not clear what a sensible value would be for libclcore or for linked bitcode (or perhaps it should be an error to query the targetAPI in those cases). What a sensible value would be depends on how we intend to use it. This change enables a forthcoming libbcc change that needs to know the slang version. Bug: http://b/29154200 Bug: http://b/28070272 Test: full_fugu-eng Tried ( modified slang, modified bcc) and (unmodified slang, modified bcc): - libbcc/tests/run_lit_tests.sh; RsTest; cts -m RenderscriptTest - confirmed that our driver is loaded rather than libPVRRS.so - By instrumenting modified bcc and running RsTest, confirmed that: - MetadataExtractor properly obtains slang version from Module. "Modified slang" is a forthcoming slang change that changes the slang version. Change-Id: Ifc9c1348c96a88bf7ddb344721f67f89359a4fe6
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
110b1c1e87fe4a6a25f9ddc89ac4685779329b9d |
|
03-Mar-2017 |
Miao Wang <miaowang@google.com> |
Make libbcc, libbcinfo, bcc no longer depend on libcutils and libutils. Bug: 34396220 Test: mm and CTS tests pass Change-Id: I9a5e608dfc2a92e411da5c7cff2406209052715d
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
d5c690148285e5c3a396ff0a48a3c20bdd833dd5 |
|
10-Jan-2017 |
Mark Salyzyn <salyzyn@google.com> |
liblog: use log/log.h when utilizing ALOG macros Test: compile Bug: 30465923 Change-Id: I5dcef0e7708f018d3dea2a8184115b7aeb941686
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
d389fdd75cab6b3ad25a499599761726e3840bcb |
|
19-Oct-2016 |
Luis Lozano <llozano@google.com> |
libbcc: fix memory leak warnings. Found by clang-tidy. Test: RS CTS + libbcc/tests/run-lit-tests.sh Change-Id: I552a0dd0a4bb37423ca0190027fa48a7cf2fc6f0
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
b5517abca2dc8bbc49a4bebeb618c7c657ba8cd7 |
|
29-Sep-2016 |
Mark Salyzyn <salyzyn@google.com> |
libbcc: Replace cutils/log.h with android/log.h Should use android/log.h instead. Test: compile Bug: 26552300 Bug: 31289077 Change-Id: I932dcd8b71d0e2d3a4c908ee96e00afdda7713c6
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
a48ea364652efcf947dd33c8a6ba893e9c00dd6a |
|
02-Jun-2016 |
David Gross <dgross@google.com> |
Delete simple reduction implementation. Bug: 27298560 Change-Id: Id826426fc81458ad66118bf7b2059a7a6f02a047
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
8e9089377848628813a697b972773e969b942c3b |
|
07-Mar-2016 |
Pirama Arumuga Nainar <pirama@google.com> |
Update libbcc for LLVM rebase to r256229 http://b/26987366 (cherry picked from commit f229c40f0d2da19985e68955aef1a06ce4121e63) Change-Id: I3d89bb15d0c3e7d64f74656365ed1d472e7de4c7
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
8d7fe847327eeb07c5a4770c31235dc28d570c97 |
|
18-Feb-2016 |
David Gross <dgross@google.com> |
Metadata extractor must tolerate missing accumulator function. Looking up a general reduction accumulator function by name can fail, just as looking up a foreach kernel function by name can fail: One of the uses of MetadataExtractor is as part of the RSEmbedInfoPass, which bcc_compat runs sufficiently late in the phase order that RSKernelExpandPass has already run and the original (UNexpanded) accumulator function may have been deleted as having no references (if it has been inlined into the expanded accumulator function and is otherwise unreferenced). Bug: 23535724 (cherry picked from commit 34383a2fcec623b8696308d36e9522afb0c5b23d) Change-Id: If9eba2bfca4c591de7bd5a464cf76e45007b3295
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
9197d612935852c05a641bc3418f79edaf402932 |
|
03-Feb-2016 |
David Gross <dgross@google.com> |
Rename #rs_export_reduce_new to #rs_export_reduce. This brings general reduction metadata into conformance with the specification and removes simple reduction metadata, thereby disabling simple reduction. More work will be done later to fully remove the simple reduction implementation. Requires a corresponding change in frameworks/compile/slang. Bug: 23535724 Change-Id: I7effa0ab1cd4ecd75f32e0c8509a737cfbb52dbd
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
fff398dc41bb579c7ad668387eebf9e3e972aeca |
|
25-Nov-2015 |
Dean De Leo <dean@codeplay.com> |
Deduce whether the module contains debug info. Add functionality to the MetadataExtractor to deduce whether the module contains debug info. This method will be used to deduce whether we should link with a special runtime library with debug information. Change-Id: I8ebe8c465c785adfb2b24864714e654f49c12c6d
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
79e1a05f704ada1bb12749fe3f8b9b69309be9e5 |
|
11-Jan-2016 |
David Gross <dgross@google.com> |
Metadata support for general reduction. Needs corresponding change in frameworks/rs: The driver and bcinfo need to remain precisely in sync with regard to metadata format in order for RenderScript to work at all. Also fixed memory leak in MetadataExtractor. Bug: 23535724 Change-Id: I6857f605c79139bdce362a7aeef73c91fc502ff6
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
fe0de789385f766e2dacbcfdb05fa57509db874e |
|
13-Aug-2015 |
Elliott Hughes <enh@google.com> |
Lose HAVE_ANDROID_OS from frameworks/compile/libbcc. Change-Id: I445c64c3a3e571380d2efff39829a8d6cf48b329
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
1895ac12bda8ebb1097dd3336e0919e2f08cbc4a |
|
17-Jul-2015 |
Matt Wala <wala@google.com> |
libbcc: Add support for reduce kernel metadata. Bug: 22631253 This change implements recognizing the #rs_export_reduce metadata node for reduce-style kernels in libbcc and bcinfo. Change-Id: I5323f607f7ac474d0f7b79486a2bbe900680e330
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
fb81ec1a875d13d9750006313b9123903336101d |
|
19-May-2015 |
Stephen Hines <srhines@google.com> |
Provide additional information about global variables. Bug: 20306487 This patch extends our global information pass to include details about the type of a global variable, whether or not it is static, constant, or a pointer. It also refactors code that deals with conversion between RenderScript's internal data types and LLVM's type system. A subtle bug has also been fixed with respect to the RSInvokeHelperPass. The previous version could ignore an rs_* object that did not have a numeric suffix. The new helper function properly addresses cases like this. Change-Id: If9c933a885bf6a9063b7edec3f0873e1b144188d
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
e1c7d298e3e38ffff294ce57c37ab43827a67ee5 |
|
15-Apr-2015 |
Stephen Hines <srhines@google.com> |
Make better use of getStringOperand() for MetadataExtractor. This change also cleans up some of the code from a prior rebase. It also captures two additional broken metadata cases (from corrupt object slot and/or pragma metadata). Change-Id: I61e161d2b0e211349683e36160d564493d802a12
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
0947923cf0ae67d85e068877bd13aa4a6c9d6dd4 |
|
02-Apr-2015 |
Stephen Hines <srhines@google.com> |
Add MetadataExtractor::getTargetAPI(). This information was previously only available to the wrapper/translator, but would also be useful to provide to the driver/runtime. Change-Id: Ia3f1331730b526488632d05091917d1540be125d
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
1bd9f627fa0affb457507e86b0b6684c695fe726 |
|
18-Mar-2015 |
Stephen Hines <srhines@google.com> |
Update libbcc for LLVM rebase to r230699. Change-Id: If6717d2df5cc74e7daa493a4be7ac891f8e4928f
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
3b43c366c17620e35c6a4395a13b41ca3e977596 |
|
10-Mar-2015 |
David Gross <dgross@google.com> |
Merge "Backend support for new special kernel params ctxt and z."
|
33cda5cf335afc6aa2dbe02062bc9e6649e1f87c |
|
30-Jan-2015 |
David Gross <dgross@google.com> |
Backend support for new special kernel params ctxt and z. Also: - Modify bcinfo dump to show signature metadata in hex instead of dec. - Teach LLVM pass manager about (existing) "foreachexp" pass. - Create MetadataSignatureBitval symbolic names for use by libbcc and slang. Bug: 18964628 Change-Id: I1737ee0476b2005ec87f30473bbfa35aed5ded38
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
51ee77bd31e7d8ca6c89e37b5806c8fc2afcf0dc |
|
20-Feb-2015 |
Pirama Arumuga Nainar <pirama@google.com> |
Add a -build-checksum flag to bcc bug 19216507 Add a flag to bcc to pass a build checksum. The checksum is passed to RSEmbedInfo pass via LLVM metadata. The old checksum path is tied to RSInfo. Removing this path can be done along with RSInfo removal. Change-Id: I3f21c96ddcfe42c16754fbb7749a72595f90964d
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
9fe081b8bae8a95d903f8fa8dc0a7590ae706606 |
|
27-Jan-2015 |
Pirama Arumuga Nainar <pirama@google.com> |
Mark whether a script is threadable bug 19095896 Add a pass to check for calls to non-threadable functions. We add a metadata flag to store the result. RSEmbedInfo also adds this information to .rs.info. Change-Id: Iba9a41b338d21a3529a1092656a51be985910fca
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
579361346abc6696c805e3904a18178ebce4e4a3 |
|
26-Nov-2014 |
Stephen Hines <srhines@google.com> |
Update libbcc for LLVM rebase to r222494. Change-Id: Idebd60a98bbe62007086386e5497d1df7d901e3d
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
900c6c1f08f7c572125d7d39abe0f0f9eafbfa14 |
|
14-Aug-2014 |
Chris Wailes <chriswailes@google.com> |
Replace NULL macros with nullptr literals. Change-Id: Id2311cda59dd42c74b3ed54d3ff6cfd509012738
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
dab475081c6e43342782980b87ab584d5412c1f1 |
|
25-Jul-2014 |
Stephen Hines <srhines@google.com> |
Merge "Add support for extracting input counts from bitcode files."
|
4566d155a7e7ae122986c8e11f40dd1c43fea312 |
|
24-Jul-2014 |
Stephen Hines <srhines@google.com> |
Merge "Update libbcc for LLVM rebase to r212749."
|
d0993af5b1337f8186dd9aedea2e138a919e02e9 |
|
16-Jul-2014 |
Stephen Hines <srhines@google.com> |
Update libbcc for LLVM rebase to r212749. Change-Id: I40304090ada740c2451d32e01c7deed4f4c8c409
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
a668182c61d2f3079416317b6c2914428a6a4c7a |
|
12-Jul-2014 |
Chris Wailes <chriswailes@google.com> |
Add support for extracting input counts from bitcode files. This patch adds functionality to the MetadataExtractor to calculate the number of inputs that a kernel expects and store them in the mExportForEachInputcountList member variable, accessable through getExportForEachInputCountList(). Change-Id: I10516d15595cdc1f2301059619c29e62a05f3638
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
5f2e6b9bc70956fc30a9a6d1679f587e4a729884 |
|
08-Jul-2014 |
Jean-Luc Brouillet <jeanluc@google.com> |
Deprecate rs_fp_imprecise. If rs_fp_imprecise is specified, issue a warning and use rs_fp_relaxed instead. Change-Id: I054fa32128bda60a6d22a0a6a590cd9f3575a2ca
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
e109434cfd2bc24d324506238483c1ecd587e228 |
|
14-May-2014 |
Stephen Hines <srhines@google.com> |
Switch to use rs_version.mk for consistency. Change-Id: Ia19bb2f56653b10741d8b508c3dc3f93ce1c1495
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
c2074caf075818abb6d3689ad924ca09f4a5ba1f |
|
09-Apr-2014 |
Tim Murray <timmurray@google.com> |
Update libbcc for 64-bit support. Change-Id: I369a82eb6730a33c46b6700408952fe34020ca51
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
11de13e48f18daf77a64c3a627359e283b54cd15 |
|
07-Jun-2013 |
Stephen Hines <srhines@google.com> |
Only generate fake root signature for ancient compilers. In the case where we actually have a non-zero compiler version, the metadata provided will have the proper information about root(). The bug here is that sometimes a graphics root() function will end up looking like a compute root() function (specified with attribute kernel). Change-Id: I49eb1d555a41552e1345badd5c2001807feeea9b
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
85d9571c9bd327aebd0cdd2255a1ef4fa4b27df1 |
|
22-May-2013 |
Nick Kralevich <nnk@google.com> |
bcinfo: Don't call property_get on host Accessing system properties only makes sense on the target, not on the host. This change is needed to remove host support for properties. Change-Id: I41080ec330da4d7df632cd55d3eff0528bb5b58d
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
b730e239619a546d93e5926ea92d698ab77ec7f6 |
|
10-Jan-2013 |
Stephen Hines <srhines@google.com> |
Updates for LLVM merge to r171906 on 20130108. Change-Id: I096cb90103b19e3110ea562d60e5eb8ad48d9b67
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
ac2874efbe6df4cc7b67340c57410ea9369c8fc2 |
|
07-Jun-2012 |
Stephen Hines <srhines@google.com> |
am e52f0466: am 3e4cac48: Fix mac build breakage. * commit 'e52f0466fddc264f14de64bf80003f2efffdac4f': Fix mac build breakage.
|
3e4cac486bc5a48640c4e65596a0be1ad05192e1 |
|
07-Jun-2012 |
Stephen Hines <srhines@google.com> |
Fix mac build breakage. Change-Id: Iea3d587d6975200c3680af2cc2ba53965ad249b3
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
6649e6b10d92f850e9a50c5fa639ad80a2b0d071 |
|
07-Jun-2012 |
Stephen Hines <srhines@google.com> |
Fix subtle bug with legacy bitcode files + forEach signatures. BUG=6620727 Change-Id: Id0cae36722a71cb89126c0cc6009c772ea90df1e
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
109be674a4ad2042f58f486042dded8c954e5300 |
|
07-Jun-2012 |
Stephen Hines <srhines@google.com> |
Fix subtle bug with legacy bitcode files + forEach signatures. BUG=6620727 Change-Id: Id0cae36722a71cb89126c0cc6009c772ea90df1e
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
32c56ecf42ad3d99d40e9bf1ac2a097d27f12744 |
|
02-Jun-2012 |
Stephen Hines <srhines@google.com> |
Add a property for overriding FP precision. adb shell setprop debug.rs.precision rs_fp_full adb shell setprop debug.rs.precision rs_fp_relaxed adb shell setprop debug.rs.precision rs_fp_imprecise Change-Id: Ic7dcba631aeab1046ce928fe8b09122747939870
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
e708ffe612f4566bea20334d2c9dac34db508e6e |
|
04-May-2012 |
Stephen Hines <srhines@google.com> |
Update to new llvm::MemoryBuffer::getMemBuffer() interface. The latest version of this function checks whether the incoming buffer is NULL-terminated. In the case of bitcode, this is not true, so we need to pass additional arguments to the function to ensure that the assert doesn't trip. Change-Id: Iaab9bdea67387dfaa88dde1f408cfcf654a741af
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
98abb2d77b6519a43c98427141ba1ded42441b8a |
|
07-Apr-2012 |
Stephen Hines <srhines@google.com> |
Fix missing initializer in MetadataExtractor constructor. BUG=4540719 Change-Id: I21472c51134b14c55b2408bb0ab3a4e9707a48e4
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
a7e5c8f85434e9b8cb0637da302135ba2e2976f5 |
|
28-Mar-2012 |
Stephen Hines <srhines@google.com> |
resolved conflicts for merge of f46fa664 to master Change-Id: I073ac3c0f95b3da9567e54c1fc8e8b1b0d69e33f
|
e1fd804a58c0ed67c75566c784d0b20d81e97ada |
|
27-Mar-2012 |
Stephen Hines <srhines@google.com> |
Parse pragmas for floating point precision requirements. BUG=4540719 Change-Id: Ice57a87f2f2cce3a641a4183b5f0bd8dc1ac0585
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
b67c9e7a28cb734c1d62d835c33dedbe45074356 |
|
22-Mar-2012 |
Stephen Hines <srhines@google.com> |
Switch optimization level from metadata to bitcode wrapper. Change-Id: Ieb547d38f2ad1c84af30717da9172d0ac928e52d
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
569986da116ed602c752395f9563260db38f6945 |
|
10-Mar-2012 |
Stephen Hines <srhines@google.com> |
Switch libbcc to start using MetadataExtractor. BUG=6051742 This reduces code duplication, and makes us a client of our own helper library. It also helps to fix a potential issue that can come up with older bitcode containing only ForEach signatures and not names (something that was fixed in MetadataExtractor, but not libbcc). We no longer look at metadata nodes at all from libbcc. Change-Id: I5cdacec82e4cd164f1aec5aa28a5e82feb9cfc15
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
e0918ac3cd6070c084b76d737af055e88a7679db |
|
02-Mar-2012 |
Stephen Hines <srhines@google.com> |
resolved conflicts for merge of 7c75d915 to master Change-Id: I25c1dc90af679e2463abffd33ee8838b4727396f
|
094881f513ab366f7ffd0b2c7778ab50281ca59e |
|
14-Dec-2011 |
Daniel Malea <daniel.malea@intel.com> |
Enable debugging of RS code under GDB - Add/integrate GDBJITRegistrar support class for interfacing with GDB -- Once the GDBJITRegistrar is merged into LLVM trunk (and AOSP upgrades LLVM) all files GDB* should be removed, and replaced with appropriate includes - Basic [host|target]-side integration tests -- host-tests: use bcc driver and clang to verify gdb output -- target-tests: run skeleton apk on target and verify gdb output - Add support for optimization_level metadata in bcinfo, libbcc -- Disabled some LTO passes when optimization_level = 0 -- move register allocator registration after metadata inspection - Initial version of android-commands.py GDB plugin (for test infrastructure) -- relevant commands: load-android-app, run-android-app, start-android-app -- tested versions: gdb (7.2, 7.3), python (2.6, 2.7) - build 'bcc' driver tool by default in eng builds Change-Id: I99e0c11c8591c6d911632c1dcc82dd8fbe1244a8
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
cc366e573e31f43a6101fd6e04b90c6afdc3b7a7 |
|
22-Feb-2012 |
Stephen Hines <srhines@google.com> |
Support ForEachExpand on non-root functions. BUG=6000538 Change-Id: I36e78ced0715b060af0938f1480df240cf6ba707
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
10c1412e6cb35cfc90abb5e36ba1340a8c55f44e |
|
08-Jan-2012 |
Steve Block <steveblock@google.com> |
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE See https://android-git.corp.google.com/g/#/c/157220 Bug: 5449033 Change-Id: Ic34de235eb1cd094af555d7299da643a626ca092
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
0231bb069417690bb4f513b80a9c0238112744f7 |
|
11-Oct-2011 |
Stephen Hines <srhines@google.com> |
Handle legacy RS root functions. We generate a fake signature for a potential root function in this case. Change-Id: I685d7299d99eb6b5cb02a89d60c5b90e78009e07
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
33f8fe2bfafe00ad2c74e4590ffdd0bcfc5eb31d |
|
17-Aug-2011 |
Stephen Hines <srhines@google.com> |
Support ForEach info in MetadataExtractor. BUG=5076887 Change-Id: Icfe1aebbc620df750279af19d10a624c4c760430
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|
932bc6e35bcef7adff05d890a9dcc7212426fb6a |
|
28-Jul-2011 |
Stephen Hines <srhines@google.com> |
Provide legacy bitcode translation mechanism. BUG=4942491 Change-Id: I73e96ef7f27bbaa8740cad70a4b93a1e5137e87b
/frameworks/compile/libbcc/bcinfo/MetadataExtractor.cpp
|