builtin_function_kind.def 1.1 KB

1234567891011121314151617181920212223242526272829
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. //
  5. // This is an X-macro header. It does not use `#include` guards, and instead is
  6. // designed to be `#include`ed after the x-macro is defined in order for its
  7. // inclusion to expand to the desired output. Macro definitions are cleaned up
  8. // at the end of this file.
  9. //
  10. // Supported x-macro is:
  11. // - CARBON_SEM_IR_BUILTIN_FUNCTION_KIND(Name)
  12. // Defines a builtin function type.
  13. #if !defined(CARBON_SEM_IR_BUILTIN_FUNCTION_KIND)
  14. #error \
  15. "Must define CARBON_SEM_IR_BUILTIN_FUNCTION_KIND x-macro to use this file."
  16. #endif
  17. CARBON_SEM_IR_BUILTIN_FUNCTION_KIND(None)
  18. CARBON_SEM_IR_BUILTIN_FUNCTION_KIND(IntNegate)
  19. CARBON_SEM_IR_BUILTIN_FUNCTION_KIND(IntAdd)
  20. CARBON_SEM_IR_BUILTIN_FUNCTION_KIND(IntSub)
  21. CARBON_SEM_IR_BUILTIN_FUNCTION_KIND(IntMul)
  22. CARBON_SEM_IR_BUILTIN_FUNCTION_KIND(IntDiv)
  23. CARBON_SEM_IR_BUILTIN_FUNCTION_KIND(IntMod)
  24. CARBON_SEM_IR_BUILTIN_FUNCTION_KIND(IntEq)
  25. CARBON_SEM_IR_BUILTIN_FUNCTION_KIND(IntNeq)
  26. #undef CARBON_SEM_IR_BUILTIN_FUNCTION_KIND