| Commit message (Collapse) | Author | Age | Files | Lines |
|\ |
|
| |\ |
|
| | |\ |
|
| | | |\ |
|
| | | | |\ |
|
| | | | | |\ |
|
| | | | | | |\ |
|
| | | | | | | |\ |
|
| | | | | | | | |\
| | | | | | | | |/
| | | | | | | |/| |
|
|/ / / / / / / /
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
min(float2/3/4, float) and max(float2/3/4, float) were defined in our
headers in K. In L, they were removed by mistake. This continued to
work however because a float would be auto converted by the compiler to
a float4.
In M, we started validating for unexpected external references, which
_Z3minDv4_ff is. This can prevent programs compiled with K from running
on M.
This CL adds the missing APIs to the tests.
Bug:23389429
Change-Id: Idfece91a9e3ca6a53ac2e40e35f5d539c12b699a
(cherry picked from commit 617d0d964299920793f5d0ab47ad3a08d3e464d0)
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Change the reserved name for the new rs_context parameter to be "context".
Since there can be only one rs_context parameter, report an error if the
name is incorrect.
Also use "special parameter" consistently in the error messages to help
our developers distinguish between regular and special parameters.
Finally, some refactoring to make the code more understandable.
b/21647353
Change-Id: I6f23dc5a8ba3659714ad1f7ba41836ff8b92d9ec
|
|/ / / / / /
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Bug: 22098789
Change-Id: If2a8f58737b3ef2f46dd8d3487493dedb60869ab
(cherry picked from commit 19879e8d83307e8238c889671b2c17132cb992bd)
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Bug: 22179874
This change updates the compiler version, as well as marks the new APIs
usable by Android M.
Change-Id: I2a943274a701e6301b6c41ac3bb4302e0a66b9d0
(cherry picked from commit bd0a7ddceac6c135ea975cefbac73877a1f9dae7)
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
bug:21934603
Change-Id: I7c69b64739d0ce8b2fadfeb32307ec17ae06b382
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Test to verify that all functions can be referred to, for each version.
This can be useful to cross-verify the generator and to validate the
white list.
b/19425238
Change-Id: I002b9e0f1b9c53b966cb34c1b8be05a4b7fdff24
(cherry picked from commit 8bfe4144673101b8a0218d98888a7443cc8aa4ca)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Bug: 21597073
We must use dyn_cast_or_null<> instead of dyn_cast<>, because we aren't
guaranteed to always be passed a NamedDecl.
Change-Id: I7b00eacc639a688f8e2fdbeea80b87a01372e232
(cherry picked from commit 33ea573b6df7b7fe48d2b68d4c479f33082e3c0d)
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Bug: 21597073
This fixes an issue where a function argument is not checked for
compatibility until the reflected code generation (at which point the
message is far more cryptic). We do this by checking parameters for
externally-visible functions and externally-visible globals in our
ValidateType() routine.
Change-Id: I5ab9db1a11ed0e395c7623f1c9997632da057269
(cherry picked from commit ab94bccca64c9b126cbd1b732aa5e681d8639b99)
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
- Fixed a bug that prevented llvm_rs_cc from emitting many warnings.
- Add support so that we can do Wno-error (needed to avoid deprecation warnings
from breaking the build).
- Add test to verify deprecated warning works.
- Simplified slang top level to clean up handling of 32/64 bit compilation handling.
b/21443340
Change-Id: Ibacfa7d3d9708cb39a33b71da9621aee2718f758
(cherry picked from commit 5309b0cbeda2c75eedf6627e06f4471c77f98f83)
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Bug: 21764905
This got missed during 64-bit bringup last year. These functions are
safe to sidestep, since RenderScript does not use C++ modules. We still
have to declare/define them because of Clang's interface here. The other
-Wno* warning suppressions were unused, so I am removing those as well.
Change-Id: I9dba84f124fad3eade5f0a3f3025a9fb2bba1f7c
(cherry picked from commit 383f0b86d773723fb86f00a5f12622fa5a4d7d42)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Bug: 19545955
- Mark global or local RS objects as 'Used' when inserting calls to
rsrClearObject.
- Mark an integer variable created by ClearRSArrayObject for iteration
as 'used'.
- Pass a valid DeclarationNameInfo while creating a MemberExpr.
Change-Id: I591b98a7840f0d9117a751daef97df16aeba8206
(cherry picked from commit cc4d93488b344cbdb0d65c3af076f02dbf2ceb00)
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug: 7342860
- Enable NativeHalfType and HalfArgsAndReturns for Langopts for API >=
23
- Add half and its vector variants to the list of reflected types
- Use addF16 as the FieldPacker method for setting Float16 values.
- Add tests that HalfArgumentsAndReturns is not enabled on API < 23.
This should serve as an indirect test that NativeHalfType is also
disabled.
Change-Id: I164ff6f8a3ed206326b904afa5430230b97d41c8
(cherry picked from commit e4dd17d7b2a292a600756da7680beecd78f74033)
|
|
|
|
|
|
|
|
|
|
| |
- Include a tiny fix to an upstream bug
(https://llvm.org/bugs/show_bug.cgi?id=23436)
- Use BufferOutputStream instead of FormattedOutputStream in
slang_backend
Change-Id: I9c53b6bbbcccc95513b45d8f0374ced35f7baccd
(cherry picked from commit 21cc01860b95cad7ae60c686e511e8f4ae034e39)
|
|
|
|
|
|
|
|
| |
Instead of copy&paste code, use instead the functions provided by llvm.
Also added a test to check that the flag "warning as errors" works.
Change-Id: I8c00d8385bcfb4ad9d0bc559cdb6343aac780406
(cherry picked from commit c247363f17b7b2c80a787941069d6e25fe5c0770)
|
|
|
|
|
| |
Change-Id: I56698cd677be62e48b4e010e8dc0630233cf0e83
(cherry picked from commit ff5abc6892aedb25215689bd679eb7cc1588a8e3)
|
|
|
|
|
| |
Change-Id: I4721f92c10ec14a886923778595289f96d3a8de5
(cherry picked from commit 8024ed54c23c08534434da14d3be99c3efcc5754)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a flag SLANG_ENABLE_ASSERTIONS to the build file. Enabling this
flag enables assertions by undefining NDEBUG and defining _DEBUG. Set
this flag in conjunction with similar flags in LLVM and Clang to get
usable assertion-enabled executions of the Renderscript compiler
toolchain.
We need this because enabling LLVM assertions introduces changes in its
header files and its public interface. Class AssertingVH in
llvm/include/IR/ValueHandle.h is an egregious example. If assertions
are enabled, AssertingVH becomes a subclass of ValueHandleBase, while
Clang/Slang when including this header think AssertingVH has a different
declaration/structure. This causes all kinds of nasty assertion
failures in llvm-rs-cc.
Cherry pick of https://android-review.googlesource.com/#/c/134500/ from
AOSP
Change-Id: Ic60a839345a629f68a66c9f53a5aa71a031392ec
|
|
|
|
|
|
|
|
|
| |
We moved graphics types to the separate rs_graphics.rsh header, so we need
to include it when we want to use rs_font, etc. in our tests. Some tests
were modified to use more relevant RS object types, since we don't want
to rely on graphics types going forward.
Change-Id: I4a85d183747f980670b377c9df8b63c2bee0e164
|
|
|
|
|
|
| |
Cherry-picked from AOSP
Change-Id: Ide905bd4ab904c8c8f1b3bec11c2add88b47c74f
|
|
|
|
|
|
|
|
| |
b/20671381
Produce .ll file instead of .bc.
Change-Id: I26749e0e64f313b77e9a08fe4579803382795dc5
|
|\
| |
| |
| |
| |
| |
| | |
to r233350."
* commit '008e1c2ed4d41a5c624da3902a90efd571e89dba':
Update slang for LLVM rebase to r233350.
|
| |\
| | |
| | |
| | |
| | | |
* commit 'e74f311edda0f0593edbbd71c249f2eaac964ddd':
Update slang for LLVM rebase to r233350.
|
| | |\
| | | |
| | | |
| | | |
| | | | |
* commit '748d67a4daf97dd2f41b90114e23341052291b60':
Update slang for LLVM rebase to r233350.
|
| | | |\ |
|
| | | |/
| | | |
| | | |
| | | | |
Change-Id: I1883757eb9987e45892ae6efde80f825fc9b5367
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
.rsh files"
* commit 'c75575227d4358adbb213d46510b3a05d4b39daa':
Change the list of recognized .rsh files
|
| |\| |
| | | |
| | | |
| | | |
| | | | |
* commit '937cf0a81a304173843792413c7c08260793ee7b':
Change the list of recognized .rsh files
|
| | |\|
| | | |
| | | |
| | | |
| | | | |
* commit '91eae4ae72f5f8ed251c270082abb0d18a2922c5':
Change the list of recognized .rsh files
|
| | | |\ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The goal is to group together functions that are easier explained
together. This CL changes the validator found in the compiler.
Change-Id: I837a2cdcf7b47ce3b53e4ad3dfdae20776c1926b
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
no output and no input."
* commit 'd9e0ee21190d02bf8559798553ceb51ee38b7c01':
Support new-style kernels with no output and no input.
|
| |\| | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
and no input."
* commit 'f8594739fcfbce7e35d3705f8df1577abb00d516':
Support new-style kernels with no output and no input.
|
| | |\| |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit 'de68eb690fd276be775088372a9b80edac2f52f1':
Support new-style kernels with no output and no input.
|
| | | |\ \ |
|
| | | |/ /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Such kernels get the definition of their iteration space solely through LaunchOptions.
No runtime testing of no-allocation kernels yet.
Bug 19950069
Change-Id: I452f948967d52e0ce8998628d554ab188cae9116
|
|\| | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
to r230699."
* commit 'b672a467222657528b4ec9943d780e9c65ce5f86':
Update slang for LLVM rebase to r230699.
|
| |\| | |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit 'b518fbbb082e2c154e757b3d2d18c50e53325eb6':
Update slang for LLVM rebase to r230699.
|
| | |\| |
| | | | |
| | | | |
| | | | |
| | | | | |
* commit '2133b9d55fa99617126c7ddb31df0f821a1156ff':
Update slang for LLVM rebase to r230699.
|
| | | |\ \ |
|
| | | | |/
| | | | |
| | | | |
| | | | | |
Change-Id: I6fa2c59b1445735e2eb95deb4ac503cb9ed369ee
|