aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Structure/Instructions/Instrs/Parametric/Select.php
blob: 2562764f0c467834b82893c5fe2aea65321a7cec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instrs\Parametric;

use Nsfisis\Waddiwasi\WebAssembly\Structure\Instructions\Instr;
use Nsfisis\Waddiwasi\WebAssembly\Structure\Types\ValType;

final readonly class Select extends Instr
{
    /**
     * @param list<ValType> $types
     */
    protected function __construct(
        public array $types,
    ) {
    }

    public static function opName(): string
    {
        return "select";
    }
}