builtin_insts.carbon 1.9 KB

123456789101112131415161718192021222324252627282930313233
  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. // ARGS: compile --phase=check --dump-raw-sem-ir --builtin-sem-ir %s
  6. //
  7. // AUTOUPDATE
  8. // CHECK:STDOUT: ---
  9. // CHECK:STDOUT: filename: builtin_insts.carbon
  10. // CHECK:STDOUT: sem_ir:
  11. // CHECK:STDOUT: cross_ref_irs_size: 1
  12. // CHECK:STDOUT: functions: {}
  13. // CHECK:STDOUT: classes: {}
  14. // CHECK:STDOUT: types:
  15. // CHECK:STDOUT: type0: {inst: instNamespaceType, value_rep: {kind: copy, type: type0}}
  16. // CHECK:STDOUT: type_blocks: {}
  17. // CHECK:STDOUT: insts:
  18. // CHECK:STDOUT: instTypeType: {kind: CrossRef, arg0: ir0, arg1: instTypeType, type: typeTypeType}
  19. // CHECK:STDOUT: instError: {kind: CrossRef, arg0: ir0, arg1: instError, type: typeError}
  20. // CHECK:STDOUT: instBoolType: {kind: CrossRef, arg0: ir0, arg1: instBoolType, type: typeTypeType}
  21. // CHECK:STDOUT: instIntType: {kind: CrossRef, arg0: ir0, arg1: instIntType, type: typeTypeType}
  22. // CHECK:STDOUT: instFloatType: {kind: CrossRef, arg0: ir0, arg1: instFloatType, type: typeTypeType}
  23. // CHECK:STDOUT: instStringType: {kind: CrossRef, arg0: ir0, arg1: instStringType, type: typeTypeType}
  24. // CHECK:STDOUT: instFunctionType: {kind: CrossRef, arg0: ir0, arg1: instFunctionType, type: typeTypeType}
  25. // CHECK:STDOUT: instBoundMethodType: {kind: CrossRef, arg0: ir0, arg1: instBoundMethodType, type: typeTypeType}
  26. // CHECK:STDOUT: instNamespaceType: {kind: CrossRef, arg0: ir0, arg1: instNamespaceType, type: typeTypeType}
  27. // CHECK:STDOUT: inst+0: {kind: Namespace, arg0: name_scope0, type: type0}
  28. // CHECK:STDOUT: inst_blocks:
  29. // CHECK:STDOUT: block0: {}
  30. // CHECK:STDOUT: block1:
  31. // CHECK:STDOUT: 0: inst+0
  32. // CHECK:STDOUT: ...