Lines Matching refs:EV
363 const RSExportVar *EV = *I; in genScriptClassConstructor() local
364 if (!EV->getInit().isUninit()) { in genScriptClassConstructor()
365 genInitExportVariable(C, EV->getType(), EV->getName(), EV->getInit()); in genScriptClassConstructor()
366 } else if (EV->getArraySize()) { in genScriptClassConstructor()
368 C.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = new " in genScriptClassConstructor()
369 << GetTypeName(EV->getType(), false) << "[" in genScriptClassConstructor()
370 << EV->getArraySize() << "];" << std::endl; in genScriptClassConstructor()
371 size_t NumInits = EV->getNumInits(); in genScriptClassConstructor()
373 static_cast<const RSExportConstantArrayType*>(EV->getType()); in genScriptClassConstructor()
377 Name << EV->getName() << "[" << i << "]"; in genScriptClassConstructor()
378 genInitExportVariable(C, ET, Name.str(), EV->getInitArray(i)); in genScriptClassConstructor()
382 genTypeInstance(C, EV->getType()); in genScriptClassConstructor()
384 genFieldPackerInstance(C, EV->getType()); in genScriptClassConstructor()
561 void RSReflection::genExportVariable(Context &C, const RSExportVar *EV) { in genExportVariable() argument
562 const RSExportType *ET = EV->getType(); in genExportVariable()
565 << EV->getName() << " = " << C.getNextExportVarSlot() << ";" in genExportVariable()
570 genPrimitiveTypeExportVariable(C, EV); in genExportVariable()
574 genPointerTypeExportVariable(C, EV); in genExportVariable()
578 genVectorTypeExportVariable(C, EV); in genExportVariable()
582 genMatrixTypeExportVariable(C, EV); in genExportVariable()
586 genConstantArrayTypeExportVariable(C, EV); in genExportVariable()
590 genRecordTypeExportVariable(C, EV); in genExportVariable()
895 const RSExportVar *EV) { in genPrimitiveTypeExportVariable() argument
896 slangAssert((EV->getType()->getClass() == RSExportType::ExportClassPrimitive) in genPrimitiveTypeExportVariable()
900 static_cast<const RSExportPrimitiveType*>(EV->getType()); in genPrimitiveTypeExportVariable()
902 std::string VarName = EV->getName(); in genPrimitiveTypeExportVariable()
904 genPrivateExportVariable(C, TypeName, EV->getName()); in genPrimitiveTypeExportVariable()
906 if (EV->isConst()) { in genPrimitiveTypeExportVariable()
909 const clang::APValue &Val = EV->getInit(); in genPrimitiveTypeExportVariable()
922 if ((EPT->getSize() < 4) || EV->isUnsigned()) { in genPrimitiveTypeExportVariable()
964 const RSExportVar *EV) { in genPointerTypeExportVariable() argument
965 const RSExportType *ET = EV->getType(); in genPointerTypeExportVariable()
973 std::string VarName = EV->getName(); in genPointerTypeExportVariable()
1004 const RSExportVar *EV) { in genVectorTypeExportVariable() argument
1005 slangAssert((EV->getType()->getClass() == RSExportType::ExportClassVector) && in genVectorTypeExportVariable()
1008 std::string TypeName = GetTypeName(EV->getType()); in genVectorTypeExportVariable()
1009 std::string VarName = EV->getName(); in genVectorTypeExportVariable()
1012 genSetExportVariable(C, TypeName, EV); in genVectorTypeExportVariable()
1019 const RSExportVar *EV) { in genMatrixTypeExportVariable() argument
1020 slangAssert((EV->getType()->getClass() == RSExportType::ExportClassMatrix) && in genMatrixTypeExportVariable()
1023 const RSExportType *ET = EV->getType(); in genMatrixTypeExportVariable()
1025 std::string VarName = EV->getName(); in genMatrixTypeExportVariable()
1030 if (!EV->isConst()) { in genMatrixTypeExportVariable()
1055 const RSExportVar *EV) { in genConstantArrayTypeExportVariable() argument
1056 slangAssert((EV->getType()->getClass() == in genConstantArrayTypeExportVariable()
1060 std::string TypeName = GetTypeName(EV->getType()); in genConstantArrayTypeExportVariable()
1061 std::string VarName = EV->getName(); in genConstantArrayTypeExportVariable()
1064 genSetExportVariable(C, TypeName, EV); in genConstantArrayTypeExportVariable()
1071 const RSExportVar *EV) { in genRecordTypeExportVariable() argument
1072 slangAssert((EV->getType()->getClass() == RSExportType::ExportClassRecord) && in genRecordTypeExportVariable()
1075 std::string TypeName = GetTypeName(EV->getType()); in genRecordTypeExportVariable()
1076 std::string VarName = EV->getName(); in genRecordTypeExportVariable()
1079 genSetExportVariable(C, TypeName, EV); in genRecordTypeExportVariable()
1095 const RSExportVar *EV) { in genSetExportVariable() argument
1096 if (!EV->isConst()) { in genSetExportVariable()
1098 std::string VarName = EV->getName(); in genSetExportVariable()
1099 const RSExportType *ET = EV->getType(); in genSetExportVariable()