History log of /frameworks/compile/slang/Android.mk
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
94ca20429c0e0ecd2d82e9d1d1637a0207244ac9 01-Aug-2014 Ying Wang <wangying@google.co> LOCAL_PATH should be set outside the ifeq block.

Change-Id: Ifdb411936c61c62623ea9afcbe93e959d2e764e9
(cherry picked from commit 4f7050f3ef5da175b199a714e750e0b4a6b833cf)
/frameworks/compile/slang/Android.mk
231f578e0b0c2467e1b71e3ba5cd035caf1a9d88 26-May-2014 Logan Chien <tzuhsiang.chien@gmail.com> Use gcc instead of clang when building Windows SDK.

Also, we should use the libstdc++ from GCC toolchain
instead of libc++ since gcc does not support _Atomic
type yet.

Change-Id: Ib901811278ed5cac2c5a64ef2d2cbdfa7c3a1081
/frameworks/compile/slang/Android.mk
8b5c5c6566078d49c4dcd8d8c7a6364c33c09037 07-Jun-2014 Stephen Hines <srhines@google.com> Separate out option processing from llvm-rs-cc.cpp.

Change-Id: I8abcc6d91820d8e6963f6579a5c6bbb95d6e2c7c
/frameworks/compile/slang/Android.mk
0e3f8c70bb16eaae98d68828ffffca36788570ca 04-Jun-2014 Tim Murray <timmurray@google.com> Fix build break.

Change-Id: I1848b3bab625db591c98c487712de0dbb1bfe2cb
/frameworks/compile/slang/Android.mk
efcff1017f5f1e120a8ffb67125e412343479f94 04-Jun-2014 Jean-Luc Brouillet <jeanluc@google.com> Remove ReflectionBase.

Some of the methods of this base class only applies to the C++ reflection.
Other methods better belong in reflection_utils.

Change-Id: Ib539eb3b31cdc2230a5a7dd925642b5a697a899a
/frameworks/compile/slang/Android.mk
69d8c283fffa6911ff522c503e2d898468456301 23-May-2014 Jean-Luc Brouillet <jeanluc@google.com> Merge "Enable asserts in userdebug for slang"
b2fbefed138a600514d7735c0014f16825ec8c36 21-May-2014 Stephen Hines <srhines@google.com> Remove unused/stale slang-data files.

These files were used years ago for host/device library management.
They are out-of-date and completely unused today.

Change-Id: If02572a1659e8cbe17c806c5e6f48713bf7afb5f
/frameworks/compile/slang/Android.mk
432439488464171534f16c1fe013927373e3c579 23-May-2014 Jean-Luc Brouillet <jeanluc@google.com> Enable asserts in userdebug for slang

Change-Id: I8852eaddb33fdae67f328160263a7a2a1911a247
/frameworks/compile/slang/Android.mk
d1e54f507e6d27924f8aa4024648309819df7435 21-May-2014 Ying Wang <wangying@google.com> Fix host multilib build.

Bug: 13751317
Change-Id: I138b85cfb8bf1f2baf2c7b41a0c2d44e73d3a1d9
/frameworks/compile/slang/Android.mk
0f3e398e8d278a7696f968feec83e2d26196cbd8 17-May-2014 Stephen Hines <srhines@google.com> Merge "Use clang for llvm-related project"
483f47c87b2f69a766b5a33845091f7c800846b0 14-May-2014 Stephen Hines <srhines@google.com> Separate out rs_version.mk for reusable definition of the TOT compiler.

You can add the following lines to any Android.mk to use the properly
computed value for RS_VERSION:

include frameworks/compile/slang/rs_version.mk
LOCAL_CFLAGS += $(RS_VERSION_DEFINE)

Change-Id: I68fb5c59d1f1f6a9944eaf3c6c99a0355824600f
/frameworks/compile/slang/Android.mk
19bb5f5a3fd5146956de28127b88089f3538a4cd 08-May-2014 Andrew Hsieh <andrewhsieh@google.com> Use clang for llvm-related project

clang/llvm 3.5 depends on libcxx's <atomic> which uses _Atomic
not available in gcc until 4.9. Even then, the _Atomic support
is in C11 mode, not C++11 mode.

Change-Id: I211afa5a7ebaa4de88cbedcd44e70bf9e2bac879
/frameworks/compile/slang/Android.mk
474655a402e70cb329e1bcd4ebbe00bdc5be4206 29-Apr-2014 Jean-Luc Brouillet <jeanluc@google.com> Remove rs_spec_gen and associated macros.

Also, enable new data types to be defined, out of order.
More CLs are coming to continue refactoring the code and removing
duplication.

modified: Android.mk
deleted: RSSpec.mk
modified: slang_rs_export_element.cpp
modified: slang_rs_export_type.cpp
modified: slang_rs_export_type.h
modified: slang_rs_metadata_spec_encoder.cpp
modified: slang_rs_object_ref_count.cpp
modified: slang_rs_object_ref_count.h
deleted: slang_rs_spec_table.cpp
modified: slang_rs_type_spec.h

Change-Id: I3eb3e4357bbe9af26011df714795de8e495fec68
/frameworks/compile/slang/Android.mk
ee4016d1247d3fbe50822de279d3da273d8aef4c 11-Apr-2014 Tim Murray <timmurray@google.com> Update Slang for Clang/LLVM 3.5a.

Change-Id: Icd59efa1197098076555c505c31939866e504a83
/frameworks/compile/slang/Android.mk
4fda85844b116ecc9f156f1fb1dbc007cec85691 26-Mar-2014 Narayan Kamath <narayan@google.com> Add -wno-return-type for slang.

Works around an error in the clang sources.
clang::HeaderSearchOptions::Entry::operator= is defined
incorrectly.

Change-Id: I992eef816efcbea1ad5ac021b9dc03dd03f08bf9
/frameworks/compile/slang/Android.mk
552d872e5cdc883d9f8e76d8c67d3a82e3ece488 18-Dec-2013 Stephen Hines <srhines@google.com> Strip unknown/unsupported attributes (like readnone/readonly for parameters).

Bug: 12135682

Jellybean's LLVM version didn't support readnone/readonly as anything
other than function attributes, so it will fail verification otherwise.
Since we never ran the verifier in Jellybean, it ends up with potential
crashes deeper in CodeGen.

Change-Id: I0a93a548b427f610fa9ca0a1ae0b432e6fa39e11
/frameworks/compile/slang/Android.mk
a1f95ee8df425089100148a42954cf61dc285015 09-Aug-2013 Stephen Hines <srhines@google.com> Update slang for LLVM merge up to r187914.

Move OptParser.td dependency to use LLVM's version.
Switch to llvm::sys::fs::F_* enums.
Switch to LLVM Option handling library (not in Clang any more).
Add new ALIASARGS field to OPTION macro.
Switch to clang::getLastArgIntValue() helper function.
Use llvm::sys::fs::OpenFlags as enum and not unsigned int.
Remove unused DisableSimplifyLibCalls().
Switch to llvm::sys::fs::create_directories().

Change-Id: I9b12e18b759536c762ea0dd43356907ee53dbddb
/frameworks/compile/slang/Android.mk
c908b90b45448af6c39ce407b607f46b0e0461d6 21-Jun-2013 Tobias Grosser <grosser@google.com> Add llvm-rs-as tool.

This tool takes an .ll file as input and generates bitcode from it.
The -bitcode-version flags allows to specify the version of the
bitcode that should be emitted.

Change-Id: I08b4f1fd0d7b218613e217249e648c9ca4393e38
/frameworks/compile/slang/Android.mk
0da7f6c8201b27938d3b9f048d71fd784cd1df9a 06-Mar-2013 Stephen Hines <srhines@google.com> Updates for LLVM merge to r176139.

Change-Id: I0d0d32893b4638eef298c99ac8c862c9a9bca1a6
/frameworks/compile/slang/Android.mk
bfe3e9729efcd5db389cc0e46fff662fd0c1f8b5 27-Feb-2013 Stephen Hines <srhines@google.com> Make llvm-rs-cc build with libclang.so/libLLVM.so.

Change-Id: Iecba3947abf5c129e667b130de247f886e3795e3
/frameworks/compile/slang/Android.mk
bfc6d48209582d649c59511e97ebf07c1d44f080 26-Jan-2013 Stephen Hines <srhines@google.com> Remove the unused llvm-rs-link binary.

This hasn't been used or maintained for quite some time, and it serves no
purpose for Renderscript today.

Change-Id: I5a4148159c96256a9231ff4e5ce8ba86ab4c114a
/frameworks/compile/slang/Android.mk
23c4358f12bd9d0ba7166eceebd683db95a41b3f 10-Jan-2013 Stephen Hines <srhines@google.com> Updates for LLVM merge to r171906 on 20130108.

Change-Id: I4cf3718041d8876d4a23a412b6b4fa4226ec3b50
/frameworks/compile/slang/Android.mk
d711dec946b6408791ca59eb98e363ef04bbd4aa 09-Jan-2013 Stephen Hines <srhines@google.com> Add BitWriter_3_2 for JB+ target API.

This change switches llvm-rs-cc to use a single format for JB+ target API
LLVM bitcode. This simplifies upstream rebases, considering the divergent
compressed bitcode format that will be present in LLVM 3.3. We may move
back to using the upstream BitWriter again at some point in the future, but
for now, it seems like the best choice is to stick with the 3.2 format.

Change-Id: I8cfc54d7da7c7168f8f0d5f8fc24c2598b81aff8
/frameworks/compile/slang/Android.mk
9221935c8a5cb48a53d7d316bbe0d860baf4a22e 13-Dec-2012 Stephen Hines <srhines@google.com> Switch back to the old mechanism for API version.

It turns out that the API version was recently bumped in build/, but a
clean build of slang was needed to recognize it (actually just
slang_version.h).

Change-Id: I0e453c86bc700bb9659e23f37bde0d0c8a16f6b6
/frameworks/compile/slang/Android.mk
3474fb64fbefec9a61ceef6370734b8549dd1ec6 13-Dec-2012 Stephen Hines <srhines@google.com> Update API (RS_VERSION) to 18.

Doing version numbering based on the platform build is unstable and still
prone to breakage. This way, we can always update the tests immediately,
instead of just seeing them fail some random day when someone bumps the
platform version.

Change-Id: Ifde36eb63cbb546c0fed691ea573f2360b1dff40
/frameworks/compile/slang/Android.mk
140efb3e1e7f1ac5ee9da452329f9f5e6c4eed11 12-Oct-2012 Stephen Hines <srhines@google.com> am 5336159e: am 11274a73: Validate FS (and RS) ASTs.

* commit '5336159ece383e1542e5ca6425309d2e1c28d917':
Validate FS (and RS) ASTs.
11274a7324b478ec13e1d10a1b81350b34a65ab1 27-Sep-2012 Stephen Hines <srhines@google.com> Validate FS (and RS) ASTs.

This change adds a new RSCheckAST class that is used to handle validation
of the final AST. The checks include existing RS checks (for accepted types)
and new checks for Filterscript (like disallowing pointers, unions and
> 32 bit types completely). The refactoring also fixes a subtle union bug
that existed in prior versions of llvm-rs-cc. We also add an implicit
pragma for "rs_fp_relaxed" by default on Filterscript.

Bug: 7166741

Change-Id: Ia077783b4caba0bbd89df2ab3827e9f4d1009eea
/frameworks/compile/slang/Android.mk
881abe9f9491361f6980077f0457c7ddfbd42201 28-Sep-2012 Tim Murray <timmurray@google.com> Enable -O0 for Slang eng builds.

Change-Id: Ia9a9879b333403acfa100f32d78cec6f1a69f42d
/frameworks/compile/slang/Android.mk
376dc03c6bb42050ddd8a56d1a3e3c6f5d6f6e1d 23-Aug-2012 Stephen Hines <srhines@google.com> Fix up slang for LLVM upstream merge to r162314.

Change-Id: Id3471daa7eee87c19c46dab8ffd972d52183440a
/frameworks/compile/slang/Android.mk
43730fe3c839af391efe6bdf56b0479860121924 03-Aug-2012 Shih-wei Liao <sliao@google.com> Apply changes to migrate to CLANG-160673-20120724.

Change-Id: I666df2ff91532318883dd48ea1249178b2ebda81
/frameworks/compile/slang/Android.mk
e2597ac5a8ba7a45a1d5f342973cd43a3a1932cf 24-Mar-2012 Shih-wei Liao <sliao@google.com> Migrate to upstream-153220-20120321.

Change-Id: I877797e8cc284ef3147b52f40406559340ac1243
/frameworks/compile/slang/Android.mk
1b6a0883cd6984e11e59b0c847fb334df1f41afc 12-Mar-2012 Jason Sams <jsams@google.com> start cpp reflection

BUG=5972398

Change-Id: Iede58fde457d16293345e741f80109f89e653ad5
/frameworks/compile/slang/Android.mk
2b8fb64be3047df940a219872b331eb11de2758d 09-Mar-2012 Stephen Hines <srhines@google.com> Removing DataKind completely from llvm-rs-cc.

BUG=5972398

Change-Id: I76fdb98fa60bd70468d088f9034acf00e443d6c8
/frameworks/compile/slang/Android.mk
0444de0c0e7cfc8d8f8fed6f64cd97812bdd6a41 03-Mar-2012 Stephen Hines <srhines@google.com> Adapt to upstream Clang/LLVM changes.

Change-Id: Ib81ad97246dbee060341e2690fb7f27e9e0298f4
/frameworks/compile/slang/Android.mk
9b044ec938fd56355012851890c63974c8042c9f 24-Nov-2011 Stephen Hines <srhines@google.com> Add support for BitWriter_2_9_func bitcode writing.

This allows us to generate Bitcode for pre-3.0 LLVM using the old opcode for
TYPE_CODE_FUNCTION (renamed to TYPE_CODE_FUNCTION_OLD).

Change-Id: I5b88bff6224658f3e50940bb6f46aa13ca40c080
/frameworks/compile/slang/Android.mk
5e6d0d5a911fff0b7b4bce216a213a4cf8a811f5 23-Nov-2011 Stephen Hines <srhines@google.com> Add support for generating a bitcode wrapper to llvm-rs-cc.

BUG=5425905

Change-Id: I42c49666c434d33f000b57db159677179ab75ca0
/frameworks/compile/slang/Android.mk
f612c7a8b96793e0161a54f449ceb0551b5c14a5 28-Oct-2011 Logan Chien <loganchien@google.com> Fix build rule dependency.

RSCCOptions.inc should depend on $(CLANG_TBLGEN) instead
of $(TBLGEN) since clang related code has been splitted
from (llvm-) tblgen to clang-tblgen.

Change-Id: I84bd9ada3c8dea4fcb90762cf1a99b384df5840b
/frameworks/compile/slang/Android.mk
9207a2e495c8363606861e4f034504ec5c153dab 21-Oct-2011 Logan Chien <loganchien@google.com> Apply changes to migrate to LLVM upstream Oct 20th 2011.

- StructType::isAnonymous is renamed to StructType::isLiteral.

- PassManagerBuilder has been moved from
llvm/Support/PassManagerBuilder.h to
llvm/Transforms/IPO/PassManagerBuilder.h

- Include llvm/Transforms/IPO.h for llvm::createInternalizePass.

- clang::DiagClient has be renamed to clang::DiagnosticConsumer.
Besides, we have to implement one additional pure virtual method
'clone' for create a clone of slang::DiagnosticBuffer.

- llvm::Linker::LinkModules comes with one additional parameter.
Passing llvm::Linker::DestroySource should be equivalent to
the old code we were using.

- slang::Slang is now derived from clang::ModuleLoader and implemented
loadModule pure virtual method (though we will always return NULL.)

- clang::Preprocessor is taking one additional parameter for
clang::ModuleLoader.

- clang::Diagnostic has been changed. A lot of the method has been
moved to clang::DiagnosticsEngine, and we can no longer 'Report' a
diagnostic from clang::Diagnostic. We have to use
clang::DiagnosticEngine instead.

- llvm::setCodeModel has been removed.

Change-Id: I1f2a4cbeaf61a8ed1d0d635a5a0e1baa90d99d07
/frameworks/compile/slang/Android.mk
ba7c6dc08e1ab8486ccaf842e8ae87dc5c99d8cf 08-Sep-2011 Stephen Hines <srhines@google.com> Fix -version information for llvm-rs-cc.

Change-Id: I30caa96c139308c71d912f19df2119e31025ffe3
/frameworks/compile/slang/Android.mk
b7d1269f983f28d9fe625a96439fa88b39dc96f6 03-Sep-2011 Stephen Hines <srhines@google.com> Remove obsolete/confusing options and fix strings.

Change-Id: I26b5eeea7ddc8cc4984745daa52635ea95ad7c66
/frameworks/compile/slang/Android.mk
4cc499d6e5ec602309501873449c938af61170b2 25-Aug-2011 Stephen Hines <srhines@google.com> Start basic support for LLVM 2.9 bitcode writer.

Change-Id: I6a54158a32e485f506f0b991f89125b8a0e60267
/frameworks/compile/slang/Android.mk
4ccf75e55fe460a8daa49247d7e5a797329c71a6 17-Aug-2011 Stephen Hines <srhines@google.com> Fix up parsing of root() function arguments.

BUG=5076887

Change-Id: I6ef41ebd237c864e46beee26f5952879d3712819
/frameworks/compile/slang/Android.mk
2e35b136cc2434080fcd682d2f95e53a87675dd4 22-Jul-2011 Stephen Hines <srhines@google.com> Add support for -target-api <n> to llvm-rs-cc.

Change-Id: Ieaef83fae55f84e87a9301b377633ac658a724b6
/frameworks/compile/slang/Android.mk
6b201eb3306b9609a991728a52ce948974bd4aed 21-Jul-2011 Stephen Hines <srhines@google.com> Define RS_VERSION as the SDK version.

Change-Id: Iaee48b397923e7f6af33b6dfd4a03f52bdd34f93
/frameworks/compile/slang/Android.mk
7c67e578c760408dba0c2f64da6e074dd8b56fd9 19-Jul-2011 Shih-wei Liao <sliao@google.com> Apply changes to migrate to upstream API.

Change-Id: Ibe6060a0d1c42b9725524de7f4cb95551b711717
/frameworks/compile/slang/Android.mk
593a894650e81be54173106ec266f0311cebebd3 11-May-2011 Stephen Hines <srhines@google.com> Simple support for reflecting rsForEach().

BUG=4203264

Change-Id: Idf722ee3fb07c8e46ac0c4628e753ff2fa6840cf
/frameworks/compile/slang/Android.mk
5baf6324a97430016026419deaef246ad75430fc 26-Apr-2011 Stephen Hines <srhines@google.com> Check RS functions (esp. init/root) for validity.

Change-Id: Ice65c8b691550e2d11caf621e0f88c822316601b
/frameworks/compile/slang/Android.mk
a20a2fdbf5baedc7fac36707e1e052e1697f52a1 30-Mar-2011 Ying Wang <wangying@google.com> Use the prebuilt llvm-rs-* if we are doing apps-only build.

This can fix the build error "MODULE.HOST.EXECUTABLES.llvm-rs-cc already
defined by frameworks/compile/slang. Stop." when you run "tapas" in
full source tree.

Change-Id: I59052d1d4c9c559a739c51d21b623758c41eab17
/frameworks/compile/slang/Android.mk
292e00a0259ac28cac1055cb6077cf6fc7c6743c 19-Mar-2011 Stephen Hines <srhines@google.com> Add support for RSASTReplace for ref-counting.

BUG=3092382

Change-Id: Ia17d40753952e4a021b39549a082cc4b3f20916c
/frameworks/compile/slang/Android.mk
9be9360d8e02b52ed669afbd69f9becb575c3f0d 18-Mar-2011 Alex Sakhartchouk <alexst@google.com> Re-enable warnings as errors in Slang.

Change-Id: Id926a089c6e8c4ae5d11ce692105bc6d383636a9
/frameworks/compile/slang/Android.mk
187975bd37f380c3a08bdba8f5a7d57304557bdd 15-Mar-2011 Stephen Hines <srhines@google.com> Revert "All warnings should be enabled/errors in Slang."

This reverts commit be9e677c0e874e940fb54d1e3644261fb0f53845.
/frameworks/compile/slang/Android.mk
be9e677c0e874e940fb54d1e3644261fb0f53845 11-Mar-2011 Stephen Hines <srhines@google.com> All warnings should be enabled/errors in Slang.

Change-Id: I5623de8de92b650b11389e733fa9f896066a5dfa
/frameworks/compile/slang/Android.mk
be27482cdeaf08576bc39b72a15d35d13014a636 16-Feb-2011 Logan <tzuhsiang.chien@gmail.com> Apply changes to migrate to LLVM Mar 6th 2011.

- API for name mangling. (Changing from non-public APIs to the
public one)

- API changes for clang::Diagnostic::getNumErrors ->
clang::Diagnostic::hasErrorOccurred

- API changes for clang::CharUnits and Quantity type.

- API changes libLLVMSystem -> libLLVMSupport.

- Change clang::Token::eom -> clang::Token::eod.

- Remove SourceRange parameter for DeclRefExpr::Create and
MemberExpr::Create.

- Add const qualifier for several unsafe type cast.
/frameworks/compile/slang/Android.mk
df5bcce1582d839eead432a5e24435236c90fb05 01-Mar-2011 Shih-wei Liao <sliao@google.com> NOTICE file and logn:
Apply changes to migrate to LLVM 2010 Nov 10th:

Change-Id: Ib8d3675b4701957f299f249ac72e8a43c2a6bc4c
/frameworks/compile/slang/Android.mk
92fee195ce66e32514aa7171bf88359f349f2767 08-Feb-2011 Stephen Hines <srhines@google.com> resolved conflicts for merge of 6e6578a3 to master

Change-Id: Ief6b71bcbe3dda653858bf26d129114c68b49fb5
6e6578a360497f78a181e63d7783422a9c9bfb15 08-Feb-2011 Stephen Hines <srhines@google.com> Add support for assertions in llvm-rs-cc.

Bug: 3430674
Change-Id: I3400238652449cde84275cc2a770f405332d9544
/frameworks/compile/slang/Android.mk
000c307d2115160200c4efa849d3e36c0267cd7a 28-Jan-2011 Ying Wang <wangying@google.com> Don't repack the llvm/clang static libraries into libslang

It would take a few minutes to extract obj files out from the whole
static libraries and repack them into libslang.

Change-Id: I632765acd428b43e0f1c3f1378e441faa8eab20a
/frameworks/compile/slang/Android.mk
6fed67043e929679e1d6fa0cd13c636c1fd220c5 14-Jan-2011 Raphael <raphael@google.com> Merge "Support for building/using llvm-rs-cc for Windows SDK." into honeycomb
11e2b93b206dbb401077d1fa39b1bcdc6de4d986 14-Jan-2011 Raphael <raphael@google.com> Support for building/using llvm-rs-cc for Windows SDK.

Change-Id: I39fc84dc2b1037fb4124a2416a9c279fb3dd4298
/frameworks/compile/slang/Android.mk
5dee956d928e5fdf4ab1ad4b83460d00bc885a6e 13-Jan-2011 Shih-wei Liao <sliao@google.com> STATIC_LIBRARIES.

Change-Id: I5bf21027e6f57559453d537078a1e750014306d5
/frameworks/compile/slang/Android.mk
99230217c5ef626487610b4b387d62158c06ae7b 13-Jan-2011 Shih-wei Liao <sliao@google.com> On-device linking should use SHARED_LIBRARIES class. STATIC_LIBRARIES
LOCAL_MODULE_CLASS may not get into the final .so.

Change-Id: Ia139860848f769b2e2e8a6af3d5a423d973544a3
/frameworks/compile/slang/Android.mk
9901f89f9dc9648c3837711d6e9234bd3a985151 13-Jan-2011 Shih-wei Liao <sliao@google.com> On-device linking: Packing work

Change-Id: I491aaee0803d7dd8a42dd0ea144cf583a4d6da18
/frameworks/compile/slang/Android.mk
e2201c0362dd68c316cec670e1607b1d3d77c5c5 12-Jan-2011 Ying Wang <wangying@google.com> Link statically against libslang.

Change-Id: Ief59d0770eca509d7ad069f66e1333a4d15f6057
/frameworks/compile/slang/Android.mk
4b32ffdfc1ac766f8932e7effbcdf7484e804a8e 06-Nov-2010 Stephen Hines <srhines@google.com> Factor out RSObjectRefCount for destructor work.

Change-Id: Ibdacc9e9f15401680bc54747664e187a05f62e25
/frameworks/compile/slang/Android.mk
b1771ef128b10c4d4575634828006bfba20b1d9c 22-Oct-2010 Zonr Chang <zonr@google.com> Exclude rs_matrixNxN from being RS object type.

rs_matrix{2x2, 3x3, 4x4} (RS matrix type) is very different than RS
object type like rs_allocation. This commit teaches llvm-rs-cc to learn
it.

NOTE: Currenrly RS matrix type + RS object type = RS specific type.
/frameworks/compile/slang/Android.mk
66a1a5abf5f2f771d33d6b70a84a1efd7fb22f23 22-Oct-2010 Zonr Chang <zonr@google.com> Define RS metadata spec and implement the encoder.

However, it's not enabled in any code currently since decoder doen't implement.
/frameworks/compile/slang/Android.mk
a65ec168e41e3ee9c6e8ac04cde694bbbfc2590a 16-Oct-2010 Zonr Chang <zonr@google.com> Unify type spec by creating rs-spec-gen.

rs-spec-gen (slang_rs_spec_table.cpp) will help llvm-rs-cc to share
the RS spec it used across the other projects. This will makes code
cleaner and therefore easier to add new spec/synchronize the spec
between other project (e.g., libbcc and libRS).

This CL is the first part. It eliminated the needs of
slang_rs_export_element_support.inc and
slang_rs_export_type_support.inc.
/frameworks/compile/slang/Android.mk
8785d056b8912325b7e2c9c6c7adbd13b90964c4 13-Oct-2010 Zonr Chang <zonr@google.com> Revert "embed .rsh in llvm-rs-cc".
/frameworks/compile/slang/Android.mk
e86245a09bb8b9e72f5dc68083444ec938865798 12-Oct-2010 Zonr Chang <zonr@google.com> Fix potential memory corruption in checkODR().
/frameworks/compile/slang/Android.mk
641558f02fe6ce0ee3ae5076eb366c25e2ad5903 12-Oct-2010 Zonr Chang <zonr@google.com> Implement one-definition-rule (ODR) feature.

When compiling multiple RS files, we say two RS files A and B break ODR
iff:

1. They have at least one common struct named [S] and [S] will be reflected
to ScriptField_[S].java, and
2. [S] defined in A is not *exactly the same* (number of fields, field
type and field name) as the one defined in B.

This CL detects such error.
/frameworks/compile/slang/Android.mk
cf6af6abc1de499920571308b14a27e19cf57097 11-Oct-2010 Zonr Chang <zonr@google.com> Refine the SlangRS::compile() API.

This makes compile() methods in SlangRS more reasonable. And this is
part of commits for ODR. The SlangRS::compile() now compiles "a group of
RS files" instead of one by one individually.
/frameworks/compile/slang/Android.mk
65df4023999f3f3d56cae835a9c6e8cc1fd1233e 11-Oct-2010 Ying Wang <wangying@google.com> llvm-rs-cc does not depend on llvm-rs-link

llvm-rs-link is called outside llvm-rs-cc now.

Change-Id: Icc25a8b9dfc579f6295c688f6812409c8c6f6d47
/frameworks/compile/slang/Android.mk
a02010cd90184a9c1be7b451fe32e114ffb1810f 11-Oct-2010 Zonr Chang <zonr@google.com> Rewrite llvm-rs-link.

1. Default linked library: rslib.bc (using slangdata trick);
2. llvm-rs-link [-nostdlib]
[-L <additional lib.bc #X>]*
<unlinked.bc #1> <unlinked.bc #2> ... <unlinked.bc #N>
will does:
for (i := 1 to #N) {
M := LoadBitcode(<unlinked.bc #i>);
if (no -nostdlib specified)
M := Link(M, rslib.bc);
for (x in X)
M := Link(M, <additional lib.bc #x>);
// Overwrite the input .bc
SaveBitcode(M, <unlinked.bc #i>)
}
/frameworks/compile/slang/Android.mk
ffa58bb392b79944a1cc23b0d41cbef9a34f8c2e 10-Oct-2010 Shih-wei Liao <sliao@google.com> Revert "Revert "Improve RSCCOptions.td""

This reverts commit a89771a1c938abb64ce6c8ebac90bb6e617482c9.
/frameworks/compile/slang/Android.mk
b81c6a4cbd9c08e0b20ea4fbc615b416ac1bc9ec 10-Oct-2010 Shih-wei Liao <sliao@google.com> Revert "Revert "New implementation of llvm-rs-cc (replacement of slang_driver).""

This reverts commit a6d60672695f1438a63acdbf85eae7f97ce2b50d.
/frameworks/compile/slang/Android.mk
69481cc23715663bc0fe2effbf22ffb011d7284e 10-Oct-2010 Shih-wei Liao <sliao@google.com> Revert "Fix P1S0 bug."

This reverts commit cab231c46b3727e1fa206d2b1157828474afeabb.
/frameworks/compile/slang/Android.mk
cab231c46b3727e1fa206d2b1157828474afeabb 10-Oct-2010 Shih-wei Liao <sliao@google.com> Fix P1S0 bug.

Change-Id: Ie44c428ca6c7ee5d56e7619fd35f83e78d2ee985
/frameworks/compile/slang/Android.mk
a6d60672695f1438a63acdbf85eae7f97ce2b50d 10-Oct-2010 Shih-wei Liao <sliao@google.com> Revert "New implementation of llvm-rs-cc (replacement of slang_driver)."

This reverts commit 6791df284557f4173a9715b3634f4f4901a6bb8a.
/frameworks/compile/slang/Android.mk
a89771a1c938abb64ce6c8ebac90bb6e617482c9 10-Oct-2010 Shih-wei Liao <sliao@google.com> Revert "Improve RSCCOptions.td"

This reverts commit 2f8b0a4764f7b5d8fea66f9a4a4c9afd07416124.
/frameworks/compile/slang/Android.mk
2f8b0a4764f7b5d8fea66f9a4a4c9afd07416124 10-Oct-2010 Shih-wei Liao <sliao@google.com> Improve RSCCOptions.td

Change-Id: Ib99b585e024443dcc9bf46d777feca2f58d51102
/frameworks/compile/slang/Android.mk
6791df284557f4173a9715b3634f4f4901a6bb8a 09-Oct-2010 Shih-wei Liao <sliao@google.com> New implementation of llvm-rs-cc (replacement of slang_driver).

Change-Id: I1b8b6cf3dad8ef8fe2f4d24d4df604099f45ff37
/frameworks/compile/slang/Android.mk
b257301a1c711ba81458a4f8bf3c99c91c91a047 07-Oct-2010 Zonr Chang <zonr@google.com> Don't include rs_graphics.rsh by default.
Fix the Externalize in slang_driver.cpp.

Change-Id: Idce037b0150af3ea9968e39b7bce63a0e1b6d9a5
/frameworks/compile/slang/Android.mk
08df36e5c0a990306d958c9f6d59a5de23b748f6 07-Oct-2010 Zonr Chang <zonr@google.com> Factor out shared library libslang.so from slang.

libslang.so can be regarded as a lightweight Clang compiler. Only C-like
language compilation is supported in libslang.so currently. Both llvm-rs-link
and slang now link to this library.

Change-Id: Ib8f8dc8568640bc36c2b1fe8dba1212c4c8a56c8
/frameworks/compile/slang/Android.mk
8c6d9b2d36ed2d6d811279fd9bddc05fffe16803 07-Oct-2010 Zonr Chang <zonr@google.com> Use llvm::sys::Path to implement "mkdir -p".

Change-Id: I3bb36e1a8050bbd9744fd02935b6186d2f285015
/frameworks/compile/slang/Android.mk
3c250c5d6cbf4123e959a3466990fda9fa50987a 06-Oct-2010 Zonr Chang <zonr@google.com> Better way to include default RS headers (*.rsh).

Change-Id: If1435ff983fc4f9b36dc4c3d70348e033957db49
/frameworks/compile/slang/Android.mk
cc0efad052e944f64bb71cfdaa8a825e30192e78 05-Oct-2010 Stephen Hines <srhines@google.com> Add "-M" dependency generation to Slang.

Change-Id: I26d1daf1005de7b3ad297fba5ad0d85a1aab1e45
/frameworks/compile/slang/Android.mk
3a9ca1f0d6bd8f12c2bb2adea51f95c255996180 06-Oct-2010 Zonr Chang <zonr@google.com> Provide better abstraction of class Slang.

1. Remove the Slang C APIs support (not used by any other programs.)
2. All RS relatives are now in slang_rs_*.cpp.
/frameworks/compile/slang/Android.mk
92b344a51c6c4934e96882bd401e4b13d6d03db8 05-Oct-2010 Zonr Chang <zonr@google.com> Create RSExportMatrixType which is a subclass of RSExportType
to support rs_matrix{2x2,3x3,4x4} explicitly.
/frameworks/compile/slang/Android.mk
cecd11d2af5d45d8ba322bed61fb48a99c305528 21-Sep-2010 Shih-wei Liao <sliao@google.com> Fix warnings. Bug fix.

Change-Id: I80934814ae64d11f0edebfa3b131164207f1aca0
/frameworks/compile/slang/Android.mk
f52a620440fa62257dfdcf2583f0f9df5b855c76 11-Sep-2010 Shih-wei Liao <sliao@google.com> Apply changes on slang such that it can work with LLVM/Clang upstream r112364/r112367.

Change-Id: If38da28502a6111b855105c2fceb23fdb0caefa4
/frameworks/compile/slang/Android.mk
12f4d68fe6311dfef038b8c5fb2ed1f8b9474d12 08-Sep-2010 Ying Wang <wangying@google.com> Include clang config separately.

Because now llvm.mk does not include clang.mk.

Change-Id: I8c559037307348e1949cd81225cdf21d58976cdf
/frameworks/compile/slang/Android.mk
3f8b44dba57685b437cecc208f2a20a4ed93ed36 04-Sep-2010 Ying Wang <wangying@google.com> Encode the bitcode binary files into Java source files.

So that the apps don't need to have the bc files as resources.
The bitcode java files will be put at the same dir as the reflected java files.
The bitcode java file name will be <ClassName>BitCode.java.
The bitcode is represented as byte array and you can reference it as:
byte[] bitcode = <ClassName>BitCode.getBitCode();

To enable this feature, pass "-s jc" to the command line.

The class name <ClassName> is converted from the .rs file name, for example:
foo.rs -> FooBitCode.java
foo_bar.rs -> FooBarBitCode.java
fooBar.rs -> FooBarBitCode.java
foobar.rs -> FoobarBitCode.java

i.e., any non-alnum characters in the rs file name are filtered
and the rest are converted to camel case.

The above method is also applied to the reflected java classes now.

Change-Id: Idf234d4c017e33740a13d6cd68bc3e14710ec149
/frameworks/compile/slang/Android.mk
1933298ca1798f9e4831018a2620383f955bf21a 08-Sep-2010 Shih-wei Liao <sliao@google.com> Update the LLVM_ROOT_PATH from external/llvm/llvm to external/llvm.

Change-Id: I75181265d03802939aeed7e5e873656d651d7606
/frameworks/compile/slang/Android.mk
22c0bf48a11e081f16c6dc8cc633ceee8cb592bc 20-Aug-2010 Ying Wang <wangying@google.com> Fix sim build.

Note that this only makes the sim build green, but the built images won't work for sure:
No libbcc.so, which depends on something else that can not build in sim mode.
No x86 bitcode is generated as well, I believe.

Change-Id: Idca8378427196622ac77cd56a38c6a160f03ba22
/frameworks/compile/slang/Android.mk
8fd54b3d3918b276103cf5395510460fbf8ba9a2 07-Aug-2010 Shih-wei Liao <sliao@google.com> Add LOCAL_REQUIRED_MODULES.

Change-Id: I95bd7bafe509216445f757c98679f8fae3595e8b
/frameworks/compile/slang/Android.mk
41e9d7d515dd02b407f6376ade6a035e5bb66577 06-Aug-2010 Shih-wei Liao <sliao@google.com> Add missing LOCAL_REQUIRED_MODULE.

Change-Id: Ic06fc052467b995a778b0ba9e06a766ae97ff715
/frameworks/compile/slang/Android.mk
835a7b773631261b9ea2fb448a4c8a7a8cacfaab 06-Aug-2010 Shih-wei Liao <sliao@google.com> 1. Retire Ying's LOCAL_REQUIRED_MODULE change (I02184368)
2. Integrate Nick's slang_finalize change (Ib4be2a84)
3. Remove the redundant not-internalizing.

Change-Id: Ica104a12dbb14165c57e2618edab82f1c62a69ac
/frameworks/compile/slang/Android.mk
8e85d661c3543c4361d8947c1d085e97dd1393bd 06-Aug-2010 Ying Wang <wangying@android.com> Fix dependency.

Change-Id: I02184368874524d16e126c4321decf2ca436b879
/frameworks/compile/slang/Android.mk
b0cadb303cf93b04b4b228fecd5f9ef4109acf80 21-Jul-2010 Kirk Stewart <kstewart@google.com> Disallow implicit discarding of type qualifiers. Note that this
does not prevent qualifiers from being discarded by explicit casts.

Change-Id: I2ebbef25a21461fbf058c1fca905be02f7b31777
/frameworks/compile/slang/Android.mk
0d80b28b26094cb026ca3aef46b4d22640282388 20-Jul-2010 Shih-wei Liao <sliao@google.com> Fix Simulator build.

Change-Id: I8ead00268ab5629738da7e920844d9dc07f6894a
/frameworks/compile/slang/Android.mk
1880571185bb191bb8835a576d44cb7cef230452 20-Jul-2010 Shih-wei Liao <sliao@google.com> Try Simulator build.

Change-Id: I42da60ee5ca226c6895044ef6c3136c4dc84fb1b
/frameworks/compile/slang/Android.mk
976baad93b7361812b14885b06be8157d15924d8 08-Jun-2010 Shih-wei Liao <sliao@google.com> Fix simulator build.

Change-Id: Ib7ddcb19cc45ee8db754223d986e4de16a00548f
/frameworks/compile/slang/Android.mk
546e817abe85c85ac23b68d0fecd5b3ccf7eb392 06-Jun-2010 Shih-wei Liao <sliao@google.com> Fix Android.mk

Change-Id: I3cec464ab6673cc4b23360830f17be69c9008719
/frameworks/compile/slang/Android.mk
bdd788877b3f18980836a3ed0d46627169483653 06-Jun-2010 Shih-wei Liao <sliao@google.com> Set LOCAL_MODULE_CLASS in slang to EXECUTABLES.
Use invoke() (invokeData() and invokeV() are deprecated) for reflecting function.

Change-Id: I25db106c8e162b87b38db1a5c740d913327186d3
/frameworks/compile/slang/Android.mk
462aefd62cc646d2ff753c1d003ef3cd7bbea262 05-Jun-2010 Shih-wei Liao <sliao@google.com> Initialize slang and Android.mk.

Change-Id: If74da8e54d45511c8c9bb236bcfeec508f4f2439
/frameworks/compile/slang/Android.mk