| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
s/getLinkage/getFormalLinkage
Path.h -> PathV1.h
Fix test output diagnostics related to pragma location
Change-Id: I7ab5372e848494ac40f1284eb6f9accc18092ad7
|
|
|
|
|
|
|
| |
python 2.4 is not available any more on my Gubuntu system. I also do not
see a reason why to enforce python 2.4.
Change-Id: I8ab6cd38ba0f163ef53eb64d52d833923c5070c2
|
|
|
|
|
|
|
|
|
| |
Bug: 9022067
This is not the same as standard Clang, and I would prefer to deprecate the
old way (with space), but the SDK build system will need some time to adapt.
Change-Id: I872afe8db3db6745b5507176007c012d0c4da117
|
|
|
|
|
|
|
|
|
| |
Bug: 7342914
This language option catches all the terrible implicit vector casts (but not
the explicit vector casts) that we are trying to forbid.
Change-Id: I7cd75326fc72e0c7c74b635c81d7263a257330dd
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug: 7342914
Vector types are aggregates (just like structs), and casting of any type
results in bitcasts being generated. This misbehaves when converting between
things like float and int. Even more troublesome than explicit casts are
implicit casts, which can arise from accidental arithmetic operations between
two different vector types.
Change-Id: If27a0f70d1da5f1773261a38e6b4572aeb976701
|
|
|
|
| |
Change-Id: I490c9f5cd1043055a7f3c8a22c3262f8e47ecdfd
|
|
|
|
| |
Change-Id: I0070d0f96093490c664545cd61a42137e374798f
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug: 7949301
This change fixes the destructor issue for rs_matrix types. We need to skip
creating a destructor if there are no reference-counted RS object types in
the struct. We still need to zero-init all RS object types (ref-counted or
not, as is the case for rs_matrix*). I also fix another issue where a missing
struct definition could cause an early parser crash (i.e. before the standard
clang errors kick in and notice that you are using an undefined struct).
Change-Id: If2009d96f35a8cb693431aaeae3cb4b5642695fa
|
|
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| | |
Change-Id: Ib35780001929655c21a24c4a0c78ef1a5eb27137
|
|/
|
|
|
| |
Bug: 7688011
Change-Id: If03084a9ece76478e0ed0847b75f09c41b89a500
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This fixes issues with the following areas:
1) usrData arguments to kernels.
2) set vs. bind for export variables.
3) improved argument handling for kernels/invoke.
Bug: 5972398
Change-Id: I09a7b9198c45ab6e2d10b2abae1727ee0e559736
|
|\ \
| |/
|/|
| |
| | |
* commit 'af35c8e6ad053bc5f2323ebbda3c347cb7d79414':
Fix overly strict check for float3 in structures.
|
| |
| |
| |
| |
| |
| |
| |
| | |
We were accidentally being too strict and generating an error for float3
in structures, even when they were not exported. This change restores the
original functionality.
Change-Id: I8f0b5881d670c37a23ca2efc575440a083befcbe
|
|/
|
|
| |
Change-Id: I58a819e8b3640836011bd10640735070248b3fb5
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
This previously caused a segmentation fault in llvm-rs-cc. We were
improperly using the DiagnosticsEngine after we had reset() everything.
Bug: 7202787
Change-Id: Ic8522566ef257e70f16caf34b89f6a8e012908c5
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change allows the JB-mr1+ target API to declare compute kernels
using "__attribute__((kernel))". This disables the use of pointers in the
function signature and forces any output to be explicitly returned and
input to be passed only by value. We still allow the user to add x, y
coordinates if they want them.
Bug: 7166741
Change-Id: I1407fceefb11c7d6c17221ca156cfce443c2b218
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=5609007
BUG=34600 (http://code.google.com/p/android/issues/detail?id=34600)
We forbid the use of things like float3 in exported structures for older
target APIs, because it results in a runtime exception every time. This is
due to not padding the elements appropriately on the driver-side, while the
LLVM representation is padded.
Change-Id: I297af3418e733f0ab3996999be4a8f746f24da40
|
|
|
|
|
|
| |
BUG=6902660
Change-Id: I31f0f2b51026edf450e920a5dd49810f4b191eb0
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Usage:
llvm-rs-cc -rs-package-name=android.renderscript ...
or
llvm-rs-cc -rs-package-name android.renderscript ...
This allows us to reflect a different import path for our base RS classes.
The default value is "android.renderscript", resulting in a reflection that
produces "import android.renderscript.*;".
Change-Id: Icf7e83b963ba70c803899697f49b41fdfb9586e7
|
|
|
|
|
|
| |
BUG=6902660
Change-Id: Ie4766fd6fe51eb4f6b195c91d44f27c3f6b83458
|
|
|
|
| |
Change-Id: I30e4212d7a5553534fae49be451d335de79bfcf3
|
|
|
|
| |
Change-Id: I533d26827fa650a481df65b2e20ac6dbc3559244
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
BUG=6009244
Note that this error triggers when the following conditions are met:
1) We are running with a pre-JB target API.
2) We detect an RS object type inside another composite (struct/array) type.
3) The variable is going to be exported (i.e. non-static).
4) The variable must also be of a non-pointer type, since pointers only
reflect a bind() routine that does not use FieldPacker.
Change-Id: Id7ca47a4affed2a8774d1c9644e11d4ab02ff27f
|
|
|
| |
This reverts commit f5abb503e67587ad89bcec99ed925d4a75448dcd
|
|
|
|
|
|
|
|
|
| |
BUG=6009244
This is only an error in pre-JB builds that can't support proper ref-counting
within a FieldPacker.
Change-Id: Ib96b5ec2befa48ec44890391e518ad557e9a9117
|
|
|
|
| |
Change-Id: I35c544cd493dcea057f99c5bb6c5afd80861cfb1
|
|
|
|
|
|
|
|
|
|
| |
BUG=4540719
This change allows us to handle pragmas with only keys (no values), like our
new rs_fp_relaxed/rs_fp_imprecise. It also cleans up some diagnostic issues
with pragmas in llvm-rs-cc.
Change-Id: Ide54208db96f1cea71c5db6b3729ac4d241deda4
|
|
|
|
|
|
|
|
|
|
| |
BUG=5972398
1) Remove non-USER export kinds.
2) Removing some DataKind references.
3) More name refactoring to use getRSReflectionType().
Change-Id: I008aeb37820df37acea0db9300ff9594a40cb086
|
|
|
|
|
|
| |
BUG=6000538
Change-Id: Ib3ed249916d36acf68ab32e9216804ae1da5e991
|
|
|
|
|
|
|
|
| |
BUG=6000538
This change also updates expected diagnostics for our existing tests.
Change-Id: I98e12625d121ae20fcb6dcaacf0852c0f239c604
|
|
|
|
|
|
| |
Also update the date on the copyright notice for reflected files.
Change-Id: I58f12a8e2aeda16bd7384bb88bb7e7028774c5da
|
|\ |
|
| |
| |
| |
| |
| |
| | |
BUG=6000538
Change-Id: I29096556dff2072a8757e0dfd3321006cd60bb27
|
| |
| |
| |
| |
| |
| | |
BUG=5901034
Change-Id: Ibdc74323080518223bbf79caef0c91030c501f17
|
| |
| |
| |
| | |
This reverts commit dc8853ace563c3a7e1976d570bf8fe96cfb11446.
|
|/
|
|
|
|
| |
BUG=5901034
Change-Id: I61fba1cdf54a5e3289da01730e8bc3d0d2e72050
|
|
|
|
|
|
|
| |
We reflect it in the containing class as follows:
public final static TYPE const_NAME = INIT;
Change-Id: I478a6ba75715cfe3ddf1196794153721b793b287
|
|
|
|
|
|
|
|
| |
Running test.py with "-u" will trigger an update of the checked-in CTS test
files (.bc and reflected .java classes). Tests to be checked-in are denoted
by the presence of a file with the name "IN_CTS" in their subdirectory.
Change-Id: I3273200bd93404a3229aad73a80ae70c83a18c54
|
|
|
|
|
|
|
|
|
|
|
| |
An upstream Clang change caused F_struct_array_copy to start failing with the
latest downstreaming work. I noticed that the change makes the diagnostic more
clear, but can be confusing for the StartLoc (for the variable). This change
updates the test to use the new source location (for the actual assignment
operator), while making sure that StartLoc points to the LHS variable in the
assignment.
Change-Id: Ie58b602ad4ce69d80b82fc03475fbd5d4beb17c7
|
|
|
|
| |
Change-Id: I8415450504f95cc3ad35866ed884fafc7ee24c90
|
|
|
|
|
|
| |
BUG=5714569
Change-Id: I96567325df605c5eb0f0bf2f2371a1cea9718a5b
|
|
|
|
| |
Change-Id: Ic5d9069d61e40223854801db41f4fe5a7dac2caa
|
|
|
|
| |
Change-Id: I3d28525e49b7a47bba07df463dcc373fe8928b52
|
|
|
|
| |
Change-Id: I5a3cbe8de21075ab39a952d80d7fa0aa87d03e10
|
|\
| |
| |
| | |
Change-Id: If31e6d49af2571458500f42f8cc2310758dfaa26
|
| |
| |
| |
| |
| |
| | |
BUG=5521638
Change-Id: Ic1f3c071562c687a98125c2151e306313c5405b8
|