aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* merge in mnc-release history after reset to mnc-devHEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004replicant-6.0-0003replicant-6.0-0002replicant-6.0-0001stable/cm-13.0-ZNH5Ystable/cm-13.0-ZNH2KBstable/cm-13.0-ZNH2Kstable/cm-13.0-ZNH0Ecm-13.0The Android Automerger2015-08-220-0/+0
|\
| * merge in mnc-release history after reset to mnc-devThe Android Automerger2015-08-120-0/+0
| |\
| | * merge in mnc-release history after reset to mnc-devThe Android Automerger2015-07-150-0/+0
| | |\
| | | * merge in mnc-release history after reset to mnc-devThe Android Automerger2015-07-140-0/+0
| | | |\
| | | | * merge in mnc-release history after reset to mnc-devThe Android Automerger2015-06-270-0/+0
| | | | |\
| | | | | * merge in mnc-release history after reset to mnc-devThe Android Automerger2015-06-230-0/+0
| | | | | |\
| | | | | | * merge in mnc-release history after reset to mnc-devThe Android Automerger2015-06-170-0/+0
| | | | | | |\
| | | | | | | * merge in mnc-release history after reset to mnc-devThe Android Automerger2015-06-160-0/+0
| | | | | | | |\
| | | | | | | | * merge in mnc-release history after reset to mnc-devThe Android Automerger2015-06-150-0/+0
| | | | | | | | |\ | | | | | | | | |/ | | | | | | | |/|
* | | | | | | / | Restore missing min and max API.Jean-Luc Brouillet2015-08-2013-8444/+8756
|/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 name for the new rs_context parameter.Jean-Luc Brouillet2015-08-1118-150/+179
|/ / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* / / / / / / Fix C++ reflection of vector types.Stephen Hines2015-07-141-3/+1
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 22098789 Change-Id: If2a8f58737b3ef2f46dd8d3487493dedb60869ab (cherry picked from commit 19879e8d83307e8238c889671b2c17132cb992bd)
* / / / / / Update llvm-rs-cc version to 23 for M.Stephen Hines2015-07-137-24/+18
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* / / / / Make llvm-rs-cc able to emit 64bit bitcode for RS C++ APIMiao Wang2015-06-251-5/+12
|/ / / / | | | | | | | | | | | | | | | | bug:21934603 Change-Id: I7c69b64739d0ce8b2fadfeb32307ec17ae06b382
* / / / Add API header testsJean-Luc Brouillet2015-06-1939-0/+56208
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | Fix potential nullptr dereference.Stephen Hines2015-06-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | Move the error for pointers in structures earlier in the compile.Stephen Hines2015-06-168-36/+75
|/ / | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | Merge "Enable warnings in llvm_rs_cc" into mnc-devJean-Luc Brouillet2015-06-1418-417/+358
|\ \
| * | Enable warnings in llvm_rs_ccJean-Luc Brouillet2015-05-2818-417/+358
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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)
* | | Fix actual errors and remove warnings suppressions.Stephen Hines2015-06-102-4/+9
| |/ |/| | | | | | | | | | | | | | | | | | | | | 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)
* | Fix a few Clang assertions thrown by llvm-rs-ccPirama Arumuga Nainar2015-06-101-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | Add Half support in slangPirama Arumuga Nainar2015-06-039-2/+28
|/ | | | | | | | | | | | | | | 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)
* Update slang for rebase to LLVM r235153Pirama Arumuga Nainar2015-05-198-81/+76
| | | | | | | | | | - 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)
* Use the llvm command line handling.Jean-Luc Brouillet2015-05-194-104/+45
| | | | | | | | 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)
* Fix problem with generated file namesJean-Luc Brouillet2015-05-191-2/+3
| | | | | Change-Id: I56698cd677be62e48b4e010e8dc0630233cf0e83 (cherry picked from commit ff5abc6892aedb25215689bd679eb7cc1588a8e3)
* Merge Slang with SlangRS, Backend with RSBackend.Jean-Luc Brouillet2015-05-1912-1343/+1080
| | | | | Change-Id: I4721f92c10ec14a886923778595289f96d3a8de5 (cherry picked from commit 8024ed54c23c08534434da14d3be99c3efcc5754)
* Add a flag to enable assertions in SlangPirama Arumuga Nainar2015-04-301-0/+5
| | | | | | | | | | | | | | | | | | | | | 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
* Fix llvm-rs-cc tests due to header changes.Stephen Hines2015-04-305-6/+8
| | | | | | | | | 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
* Enable getInvokeID in reflected codeYang Ni2015-04-301-1/+1
| | | | | | Cherry-picked from AOSP Change-Id: Ide905bd4ab904c8c8f1b3bec11c2add88b47c74f
* Fix slang option -emit-llvmYang Ni2015-04-291-1/+1
| | | | | | | | b/20671381 Produce .ll file instead of .bc. Change-Id: I26749e0e64f313b77e9a08fe4579803382795dc5
* am 008e1c2e: am e74f311e: am 748d67a4: Merge "Update slang for LLVM rebase ↵Pirama Arumuga Nainar2015-04-102-4/+5
|\ | | | | | | | | | | | | to r233350." * commit '008e1c2ed4d41a5c624da3902a90efd571e89dba': Update slang for LLVM rebase to r233350.
| * am e74f311e: am 748d67a4: Merge "Update slang for LLVM rebase to r233350."Pirama Arumuga Nainar2015-04-102-4/+5
| |\ | | | | | | | | | | | | * commit 'e74f311edda0f0593edbbd71c249f2eaac964ddd': Update slang for LLVM rebase to r233350.
| | * am 748d67a4: Merge "Update slang for LLVM rebase to r233350."Pirama Arumuga Nainar2015-04-102-4/+5
| | |\ | | | | | | | | | | | | | | | | * commit '748d67a4daf97dd2f41b90114e23341052291b60': Update slang for LLVM rebase to r233350.
| | | * Merge "Update slang for LLVM rebase to r233350."Pirama Arumuga Nainar2015-04-102-4/+5
| | | |\
| | | | * Update slang for LLVM rebase to r233350.Stephen Hines2015-04-072-4/+5
| | | |/ | | | | | | | | | | | | Change-Id: I1883757eb9987e45892ae6efde80f825fc9b5367
* | | | am c7557522: am 937cf0a8: am 91eae4ae: Merge "Change the list of recognized ↵Jean-Luc Brouillet2015-04-031-9/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | .rsh files" * commit 'c75575227d4358adbb213d46510b3a05d4b39daa': Change the list of recognized .rsh files
| * | | am 937cf0a8: am 91eae4ae: Merge "Change the list of recognized .rsh files"Jean-Luc Brouillet2015-04-021-9/+9
| |\| | | | | | | | | | | | | | | | | | * commit '937cf0a81a304173843792413c7c08260793ee7b': Change the list of recognized .rsh files
| | * | am 91eae4ae: Merge "Change the list of recognized .rsh files"Jean-Luc Brouillet2015-04-021-9/+9
| | |\| | | | | | | | | | | | | | | | | * commit '91eae4ae72f5f8ed251c270082abb0d18a2922c5': Change the list of recognized .rsh files
| | | * Merge "Change the list of recognized .rsh files"Jean-Luc Brouillet2015-04-021-9/+9
| | | |\
| | | | * Change the list of recognized .rsh filesJean-Luc Brouillet2015-03-261-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The goal is to group together functions that are easier explained together. This CL changes the validator found in the compiler. Change-Id: I837a2cdcf7b47ce3b53e4ad3dfdae20776c1926b
* | | | | am d9e0ee21: am f8594739: am de68eb69: Merge "Support new-style kernels with ↵David Gross2015-04-0210-26/+46
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | no output and no input." * commit 'd9e0ee21190d02bf8559798553ceb51ee38b7c01': Support new-style kernels with no output and no input.
| * | | | am f8594739: am de68eb69: Merge "Support new-style kernels with no output ↵David Gross2015-04-0210-26/+46
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and no input." * commit 'f8594739fcfbce7e35d3705f8df1577abb00d516': Support new-style kernels with no output and no input.
| | * | | am de68eb69: Merge "Support new-style kernels with no output and no input."David Gross2015-04-0210-26/+46
| | |\| | | | | | | | | | | | | | | | | | | | | | * commit 'de68eb690fd276be775088372a9b80edac2f52f1': Support new-style kernels with no output and no input.
| | | * | Merge "Support new-style kernels with no output and no input."David Gross2015-04-0210-26/+46
| | | |\ \
| | | | * | Support new-style kernels with no output and no input.David Gross2015-04-0210-26/+46
| | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | am b672a467: am b518fbbb: am 2133b9d5: Merge "Update slang for LLVM rebase ↵Stephen Hines2015-04-0113-1147/+1278
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to r230699." * commit 'b672a467222657528b4ec9943d780e9c65ce5f86': Update slang for LLVM rebase to r230699.
| * | | | am b518fbbb: am 2133b9d5: Merge "Update slang for LLVM rebase to r230699."Stephen Hines2015-04-0113-1147/+1278
| |\| | | | | | | | | | | | | | | | | | | | | | | * commit 'b518fbbb082e2c154e757b3d2d18c50e53325eb6': Update slang for LLVM rebase to r230699.
| | * | | am 2133b9d5: Merge "Update slang for LLVM rebase to r230699."Stephen Hines2015-04-0113-1147/+1278
| | |\| | | | | | | | | | | | | | | | | | | | | | * commit '2133b9d55fa99617126c7ddb31df0f821a1156ff': Update slang for LLVM rebase to r230699.
| | | * | Merge "Update slang for LLVM rebase to r230699."Stephen Hines2015-04-0113-1147/+1278
| | | |\ \
| | | | * | Update slang for LLVM rebase to r230699.Stephen Hines2015-03-2613-1147/+1278
| | | | |/ | | | | | | | | | | | | | | | Change-Id: I6fa2c59b1445735e2eb95deb4ac503cb9ed369ee