Lines Matching refs:irGenerator
54 std::unique_ptr<Expression> VariableReference::copy_constant(const IRGenerator& irGenerator, in copy_constant() argument
59 return std::unique_ptr<Expression>(new IntLiteral(irGenerator.fContext, in copy_constant()
64 irGenerator.fContext, in copy_constant()
68 return std::unique_ptr<Expression>(new BoolLiteral(irGenerator.fContext, in copy_constant()
75 args.push_back(copy_constant(irGenerator, arg.get())); in copy_constant()
83 copy_constant(irGenerator, in copy_constant()
91 std::unique_ptr<Expression> VariableReference::constantPropagate(const IRGenerator& irGenerator, in constantPropagate() argument
96 if (irGenerator.fKind == Program::kPipelineStage_Kind && in constantPropagate()
99 return irGenerator.getArg(fOffset, fVariable.fName); in constantPropagate()
103 return copy_constant(irGenerator, fVariable.fInitialValue); in constantPropagate()
108 return copy_constant(irGenerator, exprIter->second->get()); in constantPropagate()