aboutsummaryrefslogtreecommitdiffstats
path: root/slang_rs_export_element.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace the NULL macro with nullptr literal.Chris Wailes2014-08-201-8/+8
| | | | Change-Id: I33609969cd0d7aa55eaa83fb2c65f5faa6d55fa0
* Update slang for LLVM rebase to r212749.Stephen Hines2014-07-151-1/+1
| | | | Change-Id: I5819f9df3212ffcfa8f34c11d3cea29f1fd04878
* Remove useless "return;" statements.Jean-Luc Brouillet2014-05-271-1/+0
| | | | | | More cleanups to follow... Change-Id: Ib8348255273771c1e9ff07e79bd7fbc8f2795a5b
* Replace macros with equivalent inline functions.Jean-Luc Brouillet2014-05-231-1/+1
| | | | Change-Id: Ibb9db8ffe20513ca1ec56403c632e10e82a4fe86
* Move DataType enum out of RSExportPrimitiveDataType.Jean-Luc Brouillet2014-05-151-10/+9
| | | | | It applies to more than just Primitives and should not have been in there. Change-Id: If2b6a9d2a87a05176a74bcf7212f65cf1cdf67fe
* Remove rs_spec_gen and associated macros.Jean-Luc Brouillet2014-04-301-16/+30
| | | | | | | | | | | | | | | | | | | 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
* Support reflection of enums.Stephen Hines2013-12-061-2/+1
| | | | | | | Prior versions would just crash when attempting to reflect an enum type. This patch maps enums to integers for reflection in Java. Change-Id: I5b278d670564ceb606a6b96804f76a798bedc89c
* Revert "Generate an error for exporting rs_objects in structs/arrays."Stephen Hines2012-04-041-2/+2
| | | This reverts commit f5abb503e67587ad89bcec99ed925d4a75448dcd
* Generate an error for exporting rs_objects in structs/arrays.Stephen Hines2012-04-031-2/+2
| | | | | | | | | BUG=6009244 This is only an error in pre-JB builds that can't support proper ref-counting within a FieldPacker. Change-Id: Ib96b5ec2befa48ec44890391e518ad557e9a9117
* Removing DataKind completely from llvm-rs-cc.Stephen Hines2012-03-091-4/+1
| | | | | | BUG=5972398 Change-Id: I76fdb98fa60bd70468d088f9034acf00e443d6c8
* Apply API changes to migrate to CLANG upstream.Shih-wei Liao2011-06-221-1/+1
| | | | Change-Id: I376a8a24c238c4e27d37c4f846b93e2f6e38d79c
* Forbid RS objects from being contained in unions.Stephen Hines2011-04-251-1/+2
| | | | | | | This change also refactors variable validation in general for RS. BUG=4283858 Change-Id: I4527986a07c9cf2babdc5b855cdb1f00e3535d5b
* Apply changes to migrate to LLVM Mar 6th 2011.Logan2011-03-091-1/+1
| | | | | | | | | | | | | | | | | | | - 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.
* Add support for assertions in llvm-rs-cc.Stephen Hines2011-02-071-9/+10
| | | | | Bug: 3430674 Change-Id: I3400238652449cde84275cc2a770f405332d9544
* Arrays of width 3 vector types cannot be exported.Stephen Hines2010-12-101-1/+1
| | | | | Bug: 3171195 Change-Id: I7deab4ab9c7f8650bce7c597fae2a0dc013f6f71
* Improved error messages for structs.Stephen Hines2010-12-061-1/+1
| | | | | | | | This change also adds two new tests for anonymous structures (both with and without an associated typedef). I have also updated test.py to support a more verbose output for dumping the actual test commands that are executed. Change-Id: Ic1edc8d4e98c2017611430eb581c335146ccc927
* Improve code style.Stephen Hines2010-11-101-4/+6
| | | | Change-Id: I26e043849bce2a4b41ae132fbe0c882f4a6f112f
* Unify type spec by creating rs-spec-gen.Zonr Chang2010-10-171-18/+16
| | | | | | | | | | | 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.
* Prepend legal announcement in all files.Zonr Chang2010-10-121-0/+16
| | | | Release libslang/llvm-rs-cc/llvm-rs-link under Apache 2.0 license.
* Rewrite the RSExportConstantArrayType to better support reflectingZonr Chang2010-10-061-4/+0
| | | | constant-sized array variable.
* Create RSExportMatrixType which is a subclass of RSExportTypeZonr Chang2010-10-061-33/+1
| | | | to support rs_matrix{2x2,3x3,4x4} explicitly.
* More coding style fixing to improve the readability. No actual semanticszonr2010-10-051-19/+13
| | | | changed. This also makes cpplint happy.
* 1. Reorder DataTypeBoolean, DataTypeRSMatrix2x2, DataTypeRSMatrix3x3, and ↵Shih-wei Liao2010-10-031-6/+4
| | | | | | | | DataTypeRSMatrix4x4 in RSExportPrimitiveType::DataType. 2. Refine the RSExportPrimitiveType::DataKind. Change-Id: Ida0849e68b00571e0f055089ccc5a46d26760390
* The Mother-of-All code review:Shih-wei Liao2010-10-031-143/+164
| | | | | | | | | | | 1. Fix AllowRSPrefix bug 2. Remove member mRS*Pragma in class RSContext 3. No longer only support 2x2, 3x3, 4x4 arrays 4. Fix Export All code for victorhsieh 5. Improve readability and maintainability 6. size_t -> int in calculating padding Change-Id: I772aebd1440af66a89e2d2e688b193e500f38d69
* Handle ConstantArray Type.Shih-wei Liao2010-08-241-15/+47
| | | | Change-Id: Id3677e818693d6f95445d67116db3d6766d1fbd6
* Initialize slang and Android.mk.Shih-wei Liao2010-06-041-0/+143
Change-Id: If74da8e54d45511c8c9bb236bcfeec508f4f2439