Lines Matching defs:EV
394 const RSExportVar *EV = *I;
395 if (!EV->getInit().isUninit()) {
396 genInitExportVariable(EV->getType(), EV->getName(), EV->getInit());
397 } else if (EV->getArraySize()) {
399 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = new "
400 << GetTypeName(EV->getType(), false) << "["
401 << EV->getArraySize() << "];\n";
402 size_t NumInits = EV->getNumInits();
404 static_cast<const RSExportConstantArrayType *>(EV->getType());
408 Name << EV->getName() << "[" << i << "]";
409 genInitExportVariable(ET, Name.str(), EV->getInitArray(i));
413 genTypeInstance(EV->getType());
415 genFieldPackerInstance(EV->getType());
578 void RSReflectionJava::genExportVariable(const RSExportVar *EV) {
579 const RSExportType *ET = EV->getType();
582 << EV->getName() << " = " << getNextExportVarSlot() << ";\n";
586 genPrimitiveTypeExportVariable(EV);
590 genPointerTypeExportVariable(EV);
594 genVectorTypeExportVariable(EV);
598 genMatrixTypeExportVariable(EV);
602 genConstantArrayTypeExportVariable(EV);
606 genRecordTypeExportVariable(EV);
936 void RSReflectionJava::genPrimitiveTypeExportVariable(const RSExportVar *EV) {
938 (EV->getType()->getClass() == RSExportType::ExportClassPrimitive) &&
942 static_cast<const RSExportPrimitiveType *>(EV->getType());
944 std::string VarName = EV->getName();
946 genPrivateExportVariable(TypeName, EV->getName());
948 if (EV->isConst()) {
951 const clang::APValue &Val = EV->getInit();
960 if ((EPT->getSize() < 4) || EV->isUnsigned()) {
1042 void RSReflectionJava::genPointerTypeExportVariable(const RSExportVar *EV) {
1043 const RSExportType *ET = EV->getType();
1051 std::string VarName = EV->getName();
1076 void RSReflectionJava::genVectorTypeExportVariable(const RSExportVar *EV) {
1077 slangAssert((EV->getType()->getClass() == RSExportType::ExportClassVector) &&
1080 std::string TypeName = GetTypeName(EV->getType());
1081 std::string VarName = EV->getName();
1084 genSetExportVariable(TypeName, EV);
1089 void RSReflectionJava::genMatrixTypeExportVariable(const RSExportVar *EV) {
1090 slangAssert((EV->getType()->getClass() == RSExportType::ExportClassMatrix) &&
1093 const RSExportType *ET = EV->getType();
1095 std::string VarName = EV->getName();
1100 if (!EV->isConst()) {
1119 RSReflectionJava::genConstantArrayTypeExportVariable(const RSExportVar *EV) {
1121 (EV->getType()->getClass() == RSExportType::ExportClassConstantArray) &&
1124 std::string TypeName = GetTypeName(EV->getType());
1125 std::string VarName = EV->getName();
1128 genSetExportVariable(TypeName, EV);
1133 void RSReflectionJava::genRecordTypeExportVariable(const RSExportVar *EV) {
1134 slangAssert((EV->getType()->getClass() == RSExportType::ExportClassRecord) &&
1137 std::string TypeName = GetTypeName(EV->getType());
1138 std::string VarName = EV->getName();
1141 genSetExportVariable(TypeName, EV);
1153 const RSExportVar *EV) {
1154 if (!EV->isConst()) {
1156 std::string VarName = EV->getName();
1157 const RSExportType *ET = EV->getType();