Home | History | Annotate | Download | only in slang

Lines Matching defs:EV

508     const RSExportVar *EV = *I;
509 if (!EV->getInit().isUninit()) {
510 genInitExportVariable(EV->getType(), EV->getName(), EV->getInit());
511 } else if (EV->getArraySize()) {
513 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = new "
514 << GetTypeName(EV->getType(), TypeNameDefault & ~TypeNameWithConstantArrayBrackets) << "["
515 << EV->getArraySize() << "];\n";
516 size_t NumInits = EV->getNumInits();
518 static_cast<const RSExportConstantArrayType *>(EV->getType());
522 Name << EV->getName() << "[" << i << "]";
523 genInitExportVariable(ET, Name.str(), EV->getInitArray(i));
527 genTypeInstance(EV->getType());
529 genFieldPackerInstance(EV->getType());
722 void RSReflectionJava::genExportVariable(const RSExportVar *EV) {
723 const RSExportType *ET = EV->getType();
726 << EV->getName() << " = " << getNextExportVarSlot() << ";\n";
730 genPrimitiveTypeExportVariable(EV);
734 genPointerTypeExportVariable(EV);
738 genVectorTypeExportVariable(EV);
742 genMatrixTypeExportVariable(EV);
746 genConstantArrayTypeExportVariable(EV);
750 genRecordTypeExportVariable(EV);
1650 void RSReflectionJava::genPrimitiveTypeExportVariable(const RSExportVar *EV) {
1652 (EV->getType()->getClass() == RSExportType::ExportClassPrimitive) &&
1656 static_cast<const RSExportPrimitiveType *>(EV->getType());
1658 std::string VarName = EV->getName();
1660 genPrivateExportVariable(TypeName, EV->getName());
1662 if (EV->isConst()) {
1665 const clang::APValue &Val = EV->getInit();
1674 if ((EPT->getElementSizeInBytes() < 4) || EV->isUnsigned()) {
1756 void RSReflectionJava::genPointerTypeExportVariable(const RSExportVar *EV) {
1757 const RSExportType *ET = EV->getType();
1765 std::string VarName = EV->getName();
1790 void RSReflectionJava::genVectorTypeExportVariable(const RSExportVar *EV) {
1791 slangAssert((EV->getType()->getClass() == RSExportType::ExportClassVector) &&
1794 std::string TypeName = GetTypeName(EV->getType());
1795 std::string VarName = EV->getName();
1798 genSetExportVariable(TypeName, EV, 1);
1803 void RSReflectionJava::genMatrixTypeExportVariable(const RSExportVar *EV) {
1804 slangAssert((EV->getType()->getClass() == RSExportType::ExportClassMatrix) &&
1807 const RSExportType *ET = EV->getType();
1809 std::string VarName = EV->getName();
1814 if (!EV->isConst()) {
1833 RSReflectionJava::genConstantArrayTypeExportVariable(const RSExportVar *EV) {
1834 const RSExportType *const ET = EV->getType();
1839 std::string TypeName = GetTypeName(EV->getType());
1840 std::string VarName = EV->getName();
1843 genSetExportVariable(TypeName, EV, static_cast<const RSExportConstantArrayType *>(ET)->getNumElement());
1848 void RSReflectionJava::genRecordTypeExportVariable(const RSExportVar *EV) {
1849 slangAssert((EV->getType()->getClass() == RSExportType::ExportClassRecord) &&
1852 std::string TypeName = GetTypeName(EV->getType());
1853 std::string VarName = EV->getName();
1856 genSetExportVariable(TypeName, EV, 1);
1869 const RSExportVar *EV,
1871 if (!EV->isConst()) {
1873 std::string VarName = EV->getName();
1874 const RSExportType *ET = EV->getType();