Lines Matching defs:arg
907 SpvId SPIRVCodeGenerator::vectorize(const Expression& arg, int vectorSize, OutputStream& out) {
909 const Type& argType = arg.type();
910 SpvId raw = this->writeExpression(arg, out);
942 for (const auto& arg : args) {
943 result.push_back(this->vectorize(*arg, vectorSize, out));
980 for (const std::unique_ptr<Expression>& arg : arguments) {
981 argumentIds.push_back(this->writeExpression(*arg, out));
1199 SpvId SPIRVCodeGenerator::writeFunctionCallArgument(const Expression& arg,
1210 std::unique_ptr<LValue> lv = this->getLValue(arg, out);
1221 tmpVar = this->nextId(&arg.type());
1222 tempVars->push_back(TempVar{tmpVar, &arg.type(), std::move(lv)});
1225 tmpValueId = this->writeExpression(arg, out);
1229 this->getPointerType(arg.type(), SpvStorageClassFunction),
1606 for (const std::unique_ptr<Expression>& arg : c.arguments()) {
1607 arguments.push_back(this->writeExpression(*arg, out));
1678 SpvId arg = this->writeExpression(*c.arguments()[i], out);
1687 componentId, arg, j / 2, j % 2, out);
1697 componentId, arg, j, out);
1701 arguments.push_back(arg);
1744 for (const std::unique_ptr<Expression>& arg : ctorArgs) {
1745 arguments.push_back(this->writeExpression(*arg, out));