Home
last modified time | relevance | path

Searched refs:EV (Results 1 – 8 of 8) sorted by relevance

/frameworks/compile/slang/
Dslang_rs_reflection_cpp.cpp483 const RSExportVar *EV = *I; in writeImplementationFile() local
484 if (!EV->getInit().isUninit()) { in writeImplementationFile()
485 genInitExportVariable(EV->getType(), EV->getName(), EV->getInit()); in writeImplementationFile()
487 genZeroInitExportVariable(EV->getName()); in writeImplementationFile()
516 const RSExportVar *EV = *I; in genExportVariablesGetterAndSetter() local
517 const RSExportType *ET = EV->getType(); in genExportVariablesGetterAndSetter()
521 genGetterAndSetter(static_cast<const RSExportPrimitiveType *>(ET), EV); in genExportVariablesGetterAndSetter()
526 genPointerTypeExportVariable(EV); in genExportVariablesGetterAndSetter()
530 genGetterAndSetter(static_cast<const RSExportVectorType *>(ET), EV); in genExportVariablesGetterAndSetter()
534 genMatrixTypeExportVariable(EV); in genExportVariablesGetterAndSetter()
[all …]
Dslang_rs_reflection_cpp.h129 void genPointerTypeExportVariable(const RSExportVar *EV);
130 void genMatrixTypeExportVariable(const RSExportVar *EV);
131 void genRecordTypeExportVariable(const RSExportVar *EV);
133 void genGetterAndSetter(const RSExportPrimitiveType *EPT, const RSExportVar* EV);
134 void genGetterAndSetter(const RSExportVectorType *EVT, const RSExportVar* EV);
135 void genGetterAndSetter(const RSExportConstantArrayType *AT, const RSExportVar* EV);
136 void genGetterAndSetter(const RSExportRecordType *ERT, const RSExportVar *EV);
Dslang_rs_reflection_state.cpp949 ReflectionState::Val32 ReflectionState::declareVariable(const RSExportVar *EV) { in declareVariable() argument
957 variable.mName = EV->getName(); in declareVariable()
958 variable.mType = canon(getUniqueTypeName(EV->getType())); in declareVariable()
959 variable.mAllocSize = EV->getType()->getAllocSize(); in declareVariable()
960 variable.mIsConst = EV->isConst(); in declareVariable()
961 if (!EV->getInit().isUninit()) { in declareVariable()
964 variable.mInitializers[0] = EV->getInit(); in declareVariable()
965 } else if (EV->getArraySize()) { in declareVariable()
966 variable.mInitializerCount = EV->getNumInits(); in declareVariable()
969 variable.mInitializers[i] = EV->getInitArray(i); in declareVariable()
[all …]
Dslang_rs_reflection.cpp646 const RSExportVar *EV = *I; in genScriptClassConstructor() local
647 if (!EV->getInit().isUninit()) { in genScriptClassConstructor()
648 genInitExportVariable(EV->getType(), EV->getName(), EV->getInit()); in genScriptClassConstructor()
649 } else if (EV->getArraySize()) { in genScriptClassConstructor()
651 mOut.indent() << RS_EXPORT_VAR_PREFIX << EV->getName() << " = new " in genScriptClassConstructor()
652 … << GetTypeName(EV->getType(), TypeNameDefault & ~TypeNameWithConstantArrayBrackets) << "[" in genScriptClassConstructor()
653 << EV->getArraySize() << "];\n"; in genScriptClassConstructor()
654 size_t NumInits = EV->getNumInits(); in genScriptClassConstructor()
656 static_cast<const RSExportConstantArrayType *>(EV->getType()); in genScriptClassConstructor()
660 Name << EV->getName() << "[" << i << "]"; in genScriptClassConstructor()
[all …]
Dslang_rs_reflection.h221 void genExportVariable(const RSExportVar *EV);
222 void genPrimitiveTypeExportVariable(const RSExportVar *EV);
223 void genPointerTypeExportVariable(const RSExportVar *EV);
224 void genVectorTypeExportVariable(const RSExportVar *EV);
225 void genMatrixTypeExportVariable(const RSExportVar *EV);
226 …void genConstantArrayTypeExportVariable(const RSExportVar *EV, ReflectionState::Val32 AllocSize32);
227 void genRecordTypeExportVariable(const RSExportVar *EV, ReflectionState::Val32 AllocSize32);
230 void genSetExportVariable(const std::string &TypeName, const RSExportVar *EV, unsigned Dimension,
Dslang_rs_context.cpp87 RSExportVar *EV = new RSExportVar(this, VD, ET); in processExportVar() local
88 if (EV == nullptr) in processExportVar()
91 mExportVars.push_back(EV); in processExportVar()
Dslang_backend.cpp764 const RSExportVar *EV = *I; in dumpExportVarInfo() local
765 const RSExportType *ET = EV->getType(); in dumpExportVarInfo()
770 llvm::MDString::get(mLLVMContext, EV->getName().c_str())); in dumpExportVarInfo()
812 EV->getType()->getName().c_str())); in dumpExportVarInfo()
Dslang_rs_reflection_state.h344 Val32 declareVariable(const RSExportVar *EV);