Lines Matching refs:fIRGenerator
71 fIRGenerator = new IRGenerator(fContext.get(), symbols, *this); in Compiler()
213 fIRGenerator->fSymbolTable->add(skCapsName, std::unique_ptr<Symbol>(skCaps)); in Compiler()
218 fIRGenerator->fSymbolTable->add(skArgsName, std::unique_ptr<Symbol>(skArgs)); in Compiler()
221 fIRGenerator->convertProgram(Program::kFragment_Kind, SKSL_INCLUDE, strlen(SKSL_INCLUDE), in Compiler()
223 fIRGenerator->fSymbolTable->markAllFunctionsBuiltin(); in Compiler()
230 fIRGenerator->start(&settings, nullptr); in Compiler()
231 fIRGenerator->convertProgram(Program::kFragment_Kind, SKSL_VERT_INCLUDE, in Compiler()
233 fIRGenerator->fSymbolTable->markAllFunctionsBuiltin(); in Compiler()
234 fVertexSymbolTable = fIRGenerator->fSymbolTable; in Compiler()
236 fIRGenerator->start(&settings, nullptr); in Compiler()
237 fIRGenerator->convertProgram(Program::kVertex_Kind, SKSL_FRAG_INCLUDE, in Compiler()
239 fIRGenerator->fSymbolTable->markAllFunctionsBuiltin(); in Compiler()
240 fFragmentSymbolTable = fIRGenerator->fSymbolTable; in Compiler()
242 fIRGenerator->start(&settings, nullptr); in Compiler()
243 fIRGenerator->convertProgram(Program::kGeometry_Kind, SKSL_GEOM_INCLUDE, in Compiler()
245 fIRGenerator->fSymbolTable->markAllFunctionsBuiltin(); in Compiler()
246 fGeometrySymbolTable = fIRGenerator->fSymbolTable; in Compiler()
250 delete fIRGenerator; in ~Compiler()
702 std::unique_ptr<Expression> optimized = expr->constantPropagate(*fIRGenerator, definitions); in simplifyExpression()
1243 fIRGenerator->fSymbolTable = fVertexSymbolTable; in convertProgram()
1244 fIRGenerator->start(&settings, inherited); in convertProgram()
1248 fIRGenerator->fSymbolTable = fFragmentSymbolTable; in convertProgram()
1249 fIRGenerator->start(&settings, inherited); in convertProgram()
1253 fIRGenerator->fSymbolTable = fGeometrySymbolTable; in convertProgram()
1254 fIRGenerator->start(&settings, inherited); in convertProgram()
1258 fIRGenerator->start(&settings, nullptr); in convertProgram()
1259 fIRGenerator->convertProgram(kind, SKSL_FP_INCLUDE, strlen(SKSL_FP_INCLUDE), *fTypes, in convertProgram()
1261 fIRGenerator->fSymbolTable->markAllFunctionsBuiltin(); in convertProgram()
1265 fIRGenerator->start(&settings, nullptr); in convertProgram()
1266 fIRGenerator->convertProgram(kind, SKSL_PIPELINE_STAGE_INCLUDE, in convertProgram()
1268 fIRGenerator->fSymbolTable->markAllFunctionsBuiltin(); in convertProgram()
1278 fIRGenerator->convertProgram(kind, textPtr->c_str(), textPtr->size(), *fTypes, &elements); in convertProgram()
1285 fIRGenerator->fSymbolTable, in convertProgram()
1286 fIRGenerator->fInputs)); in convertProgram()
1297 fIRGenerator->fKind = program.fKind; in optimize()
1298 fIRGenerator->fSettings = &program.fSettings; in optimize()