| 539 | // KernelSignature |
| 540 | |
| 541 | KernelSignature::KernelSignature(std::vector<InputType> in_types, OutputType out_type, |
| 542 | bool is_varargs, |
| 543 | std::shared_ptr<MatchConstraint> constraint) |
| 544 | : in_types_(std::move(in_types)), |
| 545 | out_type_(std::move(out_type)), |
| 546 | is_varargs_(is_varargs), |
| 547 | constraint_(std::move(constraint)), |
| 548 | hash_code_(0) { |
| 549 | DCHECK(!is_varargs || (is_varargs && (in_types_.size() >= 1))); |
| 550 | } |
| 551 | |
| 552 | std::shared_ptr<KernelSignature> KernelSignature::Make( |
| 553 | std::vector<InputType> in_types, OutputType out_type, bool is_varargs, |