History log of /frameworks/compile/slang/slang_rs_reflect_utils.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
3eb819ad8beec566a73b288204f9b75c2bb1d4e6 25-Nov-2014 Stephen Hines <srhines@google.com> Update slang for LLVM rebase to r222494.

Change-Id: I19e441e193637ddb39b3afb3bc95579755ac0a90
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
5abbe0e9ca2508260b627ffef2bf01e2554e8357 13-Aug-2014 Chris Wailes <chriswailes@google.com> Replace the NULL macro with nullptr literal.

Change-Id: I33609969cd0d7aa55eaa83fb2c65f5faa6d55fa0
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
c83b790079083da626cb64e37c38221bac1c8e8a 26-Jul-2014 Jean-Luc Brouillet <jeanluc@google.com> Add comments to the generated file.

These comments are help our users understand how to use the reflected code.
I'll add these to the Java reflection too after we settle the details for
the C++ version.

Change-Id: I887dbd78c52218cafe907973829458340efbf388
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
9ae18b2bbee0b08afd400542e863dd665ff76059 11-Jun-2014 Stephen Hines <srhines@google.com> Add an option to emit 32-bit and 64-bit bitcode.

Bug: 16031597

Change-Id: Ifb3c4eca5e7ae16106260c2b5f5da6854c021a3a
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
fc4f78b9c7941132fb048a83f0e4ba528c3b4fd0 11-Jun-2014 Stephen Hines <srhines@google.com> Add -v (-verbose/--verbose) option to llvm-rs-cc.

This change also suppresses the display of "Generating Script*." output by
default.

Change-Id: I034a3ba20acf64e1eb9ecc02133edb03b643d559
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
f33e1561dc390cf2be7a81e9f818b269d458ec7e 04-Jun-2014 Jean-Luc Brouillet <jeanluc@google.com> Use GeneratedFile in Java reflection

Change-Id: Ib52a82b7649c9247e0b4de56267eba7f6cf2e25e
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
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/slang_rs_reflect_utils.cpp
129fd8228cd04592a20c3d5009805a23585f2479 29-May-2014 Jean-Luc Brouillet <jeanluc@google.com> Add a GeneratedFile class for Java and C++ file generation.

This CL changes the generation of the BitCode file. Next CLs will change the generation of the Java and C++ files.

Change-Id: I59f9f4f46ecd35022ecf3293c1ad76a02e8db574
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
2ce118e843fcbd53488b503933136bb4fdbdfbc1 28-May-2014 Jean-Luc Brouillet <jeanluc@google.com> Reformat the reflection code using clang-format

Change-Id: I3bec395fdcff8c848025e7e63fc4ac8517154454
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
4c8b659edc8dca50ffb9c172258412fc1e02b80d 23-May-2014 Stephen Hines <srhines@google.com> Generate calls to getBitCode32() for new constructor type.

Change-Id: Iec41e3f325ec045362608ee52b0f78c55eb87bed
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
44d495d2ad8c350a8f586502c9ee8e97a513646a 23-May-2014 Stephen Hines <srhines@google.com> Clean up embedded bitcode path for Java.

Change-Id: I79cc65778173c7eeab028dedfc4adcb59bef44c2
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
e67239de8d94975e7e2216ee6860ae2e6cb8b15a 25-Feb-2012 Stephen Hines <srhines@google.com> Style violation cleanup.

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

Change-Id: I26b5eeea7ddc8cc4984745daa52635ea95ad7c66
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
8d5a2f6ab321615bfb3a46f68aff0b643a71caa0 08-Feb-2011 Raphael <raphael@google.com> Support Windows paths in slang.

Change-Id: I5240164d1d83f7816973a0e6ee9c26e337e605b1
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
e639eb5caa2c386b4a60659a4929e8a6141a2cbe 09-Nov-2010 Stephen Hines <srhines@google.com> Improve code style.

Change-Id: I26e043849bce2a4b41ae132fbe0c882f4a6f112f
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
c383a500aa59423264811be3874461bf8adbfea0 11-Oct-2010 Zonr Chang <zonr@google.com> Prepend legal announcement in all files.

Release libslang/llvm-rs-cc/llvm-rs-link under Apache 2.0 license.
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
8c6d9b2d36ed2d6d811279fd9bddc05fffe16803 07-Oct-2010 Zonr Chang <zonr@google.com> Use llvm::sys::Path to implement "mkdir -p".

Change-Id: I3bb36e1a8050bbd9744fd02935b6186d2f285015
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
dba3111408b307d8454830107ff61089ab7c5d6d 08-Oct-2010 Ying Wang <wangying@google.com> The dep file uses the .rs stem, instead of the .bc stem.

The .bc file stem could be transformed over the source .rs file name by slang.
The build system needs to know the dep file name before slang is run, so we'd like to
take the source .rs file name, which is known before slang is run.

Change-Id: I54c18880582fcc0f177a289b7a6a0f92a5a7806c
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
24f9b09fbb55725a6952b942418ac7902007a7f2 06-Oct-2010 Stephen Hines <srhines@google.com> Remove warnings from slang build.

Change-Id: I6c3f3e9aae24b612a6d32b4fc5ba53a2ef7f3944
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
6315f76e3cc6ff2d012d1183a0b030d4ff0dc808 05-Oct-2010 zonr <zonr@google.com> More coding style fixing to improve the readability. No actual semantics
changed. This also makes cpplint happy.
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
d41764036b098cc192aa8b7c9f0a1bb72f35f96c 17-Sep-2010 Stephen Hines <srhines@google.com> Change rules for RS name reflection.

We now keep any alphanumeric or underscore characters unchanged for
the classname. Nonmatching characters (like hyphens) get stripped
out (as they were previously). We no longer camel-case the reflected
names. Resource names are converted to lowercase, since that is a
system requirement.

Change-Id: Idf7a7c3f9442bb58789769d58088c2038a074455
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
0877f0557e5c406fc8ff33c928a8ae969a5f4905 10-Sep-2010 Ying Wang <wangying@google.com> Handle big bitcode files.

Split the bitcode file into segments due to Java method size limitation.

Change-Id: I4c171c40a45067da63098deb2408449dab38b041
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
b1980a2eedc56df92786afc291e00f26659a60ad 08-Sep-2010 Mike Lockwood <lockwood@android.com> Add #include <cstring> to fix the build.

Change-Id: I2e7f74bfa29d341447a5f7a2aff8c68fef8d968c
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/compile/slang/slang_rs_reflect_utils.cpp
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/slang_rs_reflect_utils.cpp