| {{- /* |
| -------------------------------------------------------------------------------- |
| Template file for use with tools/src/cmd/gen to generate intrinsics.h |
| |
| To update the generated file, run: |
| ./tools/run gen |
| |
| See: |
| * tools/src/cmd/gen for structures used by this template |
| * https://golang.org/pkg/text/template/ for documentation on the template syntax |
| -------------------------------------------------------------------------------- |
| */ -}} |
| |
| {{- $I := LoadIntrinsics "src/tint/lang/spirv/spirv.def" -}} |
| {{- Import "src/tint/utils/templates/enums.tmpl.inc" -}} |
| {{- $enum := ($I.Sem.Enum "intrinsic") -}} |
| |
| #ifndef SRC_TINT_LANG_SPIRV_IR_INTRINSIC_H_ |
| #define SRC_TINT_LANG_SPIRV_IR_INTRINSIC_H_ |
| |
| #include <cstdint> |
| #include <string> |
| |
| #include "src/tint/utils/traits/traits.h" |
| |
| namespace tint::spirv::ir { |
| |
| /// Intrinsic |
| {{ Eval "DeclareEnum" $enum }} |
| |
| } // namespace tint::spirv::ir |
| |
| #endif // SRC_TINT_LANG_SPIRV_IR_INTRINSIC_H_ |
| |