Lines Matching refs:ET
162 static std::string GetTypeName(const RSExportType *ET, bool Brackets = true) {
163 switch (ET->getClass()) {
166 static_cast<const RSExportPrimitiveType*>(ET))->java_name;
170 static_cast<const RSExportPointerType*>(ET)->getPointeeType();
179 static_cast<const RSExportVectorType*>(ET);
186 return GetMatrixTypeName(static_cast<const RSExportMatrixType*>(ET));
190 static_cast<const RSExportConstantArrayType*>(ET);
198 return ET->getElementName() + "."RS_TYPE_ITEM_CLASS_NAME;
208 static const char *GetTypeNullValue(const RSExportType *ET) {
209 switch (ET->getClass()) {
212 static_cast<const RSExportPrimitiveType*>(ET);
236 static std::string GetBuiltinElementConstruct(const RSExportType *ET) {
237 if (ET->getClass() == RSExportType::ExportClassPrimitive) {
238 return std::string("Element.") + ET->getElementName();
239 } else if (ET->getClass() == RSExportType::ExportClassVector) {
240 const RSExportVectorType *EVT = static_cast<const RSExportVectorType*>(ET);
252 } else if (ET->getClass() == RSExportType::ExportClassMatrix) {
253 const RSExportMatrixType *EMT = static_cast<const RSExportMatrixType *>(ET);
374 const RSExportType *ET = ECAT->getElementType();
378 genInitExportVariable(C, ET, Name.str(), EV->getInitArray(i));
452 const RSExportType *ET,
457 switch (ET->getClass()) {
460 static_cast<const RSExportPrimitiveType*>(ET);
476 static_cast<const RSExportVectorType*>(ET);
526 static_cast<const RSExportRecordType*>(ET);
562 const RSExportType *ET = EV->getType();
568 switch (ET->getClass()) {
798 const RSExportType *ET) {
799 if (ET->getClass() == RSExportType::ExportClassPointer) {
802 static_cast<const RSExportPointerType*>(ET);
806 genTypeInstance(C, ET);
811 const RSExportType *ET) {
812 switch (ET->getClass()) {
816 std::string TypeName = ET->getElementName();
825 std::string ClassName = ET->getElementName();
839 const RSExportType *ET) {
840 switch (ET->getClass()) {
845 std::string TypeName = ET->getElementName();
856 const RSExportType *ET,
860 if (ET->getClass() == RSExportType::ExportClassPointer) {
862 static_cast<const RSExportPointerType*>(ET);
863 ET = EPT->getPointeeType();
868 switch (ET->getClass()) {
872 TypeName = ET->getElementName();
965 const RSExportType *ET = EV->getType();
968 slangAssert((ET->getClass() == RSExportType::ExportClassPointer) &&
971 ET)->getPointeeType();
972 std::string TypeName = GetTypeName(ET);
1023 const RSExportType *ET = EV->getType();
1024 std::string TypeName = GetTypeName(ET);
1040 if (genCreateFieldPacker(C, ET, FieldPackerName))
1041 genPackVarOfType(C, ET, "v", FieldPackerName);
1099 const RSExportType *ET = EV->getType();
1108 if (genCreateFieldPacker(C, ET, FieldPackerName))
1109 genPackVarOfType(C, ET, "v", FieldPackerName);
1119 C.indent() << "__dimArr[0] = " << ET->getSize() << ";" << std::endl;
1122 << ET->getElementName() << ", __dimArr);" << std::endl;
1163 const RSExportType *ET,
1165 size_t AllocSize = RSExportType::GetTypeAllocSize(ET);
1175 const RSExportType *ET,
1178 switch (ET->getClass()) {
1183 static_cast<const RSExportPrimitiveType*>(ET))
1190 static_cast<const RSExportPointerType*>(ET)->getPointeeType();
1207 static_cast<const RSExportConstantArrayType *>(ET);
1239 static_cast<const RSExportRecordType*>(ET);
1863 const RSExportType *ET,
1868 std::string ElementConstruct = GetBuiltinElementConstruct(ET);
1873 if ((ET->getClass() == RSExportType::ExportClassPrimitive) ||
1874 (ET
1876 static_cast<const RSExportPrimitiveType*>(ET);
1879 int Size = (ET->getClass() == RSExportType::ExportClassVector) ?
1880 static_cast<const RSExportVectorType*>(ET)->getNumElement() :
1889 slangAssert((ET->getClass() == RSExportType::ExportClassVector) &&
1897 } else if (ET->getClass() == RSExportType::ExportClassPointer) {
1901 } else if (ET->getClass() == RSExportType::ExportClassMatrix) {
1906 } else if (ET->getClass() == RSExportType::ExportClassConstantArray) {
1908 static_cast<const RSExportConstantArrayType *>(ET);
1930 } else if (ET->getClass() == RSExportType::ExportClassRecord) {
1936 static_cast<const RSExportRecordType*>(ET);
2089 const RSExportType *ET = TI->getValue();
2091 if (ET->getClass() == RSExportType::ExportClassRecord) {
2093 static_cast<const RSExportRecordType*>(ET);