| -------------------------------------------------------------------------------- |
| Template file for use with tools/src/cmd/gen to generate builtin_bench.cc |
| To update the generated file, run: |
| * tools/src/cmd/gen for structures used by this template |
| * https://golang.org/pkg/text/template/ for documentation on the template syntax |
| -------------------------------------------------------------------------------- |
| {{- Import "src/tint/templates/enums.tmpl.inc" -}} |
| {{- $enum := (Sem.Enum "builtin_type") -}} |
| {{- Eval "OverrideEnumName" "Enum" $enum "Name" "Builtin" -}} |
| #include "src/tint/builtin/builtin.h" |
| #include "benchmark/benchmark.h" |
| namespace tint::builtin { |
| {{ Eval "BenchmarkParseEnum" $enum }} |
| } // namespace tint::builtin |