builtin_insts.carbon 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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: import_irs_size: 1
  12. // CHECK:STDOUT: name_scopes:
  13. // CHECK:STDOUT: name_scope0: {inst: inst+0, enclosing_scope: name_scope<invalid>, has_error: false, extended_scopes: [], names: {}}
  14. // CHECK:STDOUT: bind_names: {}
  15. // CHECK:STDOUT: functions: {}
  16. // CHECK:STDOUT: classes: {}
  17. // CHECK:STDOUT: types:
  18. // CHECK:STDOUT: type0: {constant: template instNamespaceType, value_rep: {kind: copy, type: type0}}
  19. // CHECK:STDOUT: type_blocks: {}
  20. // CHECK:STDOUT: insts:
  21. // CHECK:STDOUT: instTypeType: {kind: ImportRefUsed, arg0: ir0, arg1: instTypeType, type: typeTypeType}
  22. // CHECK:STDOUT: instError: {kind: ImportRefUsed, arg0: ir0, arg1: instError, type: typeError}
  23. // CHECK:STDOUT: instBoolType: {kind: ImportRefUsed, arg0: ir0, arg1: instBoolType, type: typeTypeType}
  24. // CHECK:STDOUT: instIntType: {kind: ImportRefUsed, arg0: ir0, arg1: instIntType, type: typeTypeType}
  25. // CHECK:STDOUT: instFloatType: {kind: ImportRefUsed, arg0: ir0, arg1: instFloatType, type: typeTypeType}
  26. // CHECK:STDOUT: instStringType: {kind: ImportRefUsed, arg0: ir0, arg1: instStringType, type: typeTypeType}
  27. // CHECK:STDOUT: instFunctionType: {kind: ImportRefUsed, arg0: ir0, arg1: instFunctionType, type: typeTypeType}
  28. // CHECK:STDOUT: instBoundMethodType: {kind: ImportRefUsed, arg0: ir0, arg1: instBoundMethodType, type: typeTypeType}
  29. // CHECK:STDOUT: instNamespaceType: {kind: ImportRefUsed, arg0: ir0, arg1: instNamespaceType, type: typeTypeType}
  30. // CHECK:STDOUT: instWitnessType: {kind: ImportRefUsed, arg0: ir0, arg1: instWitnessType, type: typeTypeType}
  31. // CHECK:STDOUT: inst+0: {kind: Namespace, arg0: name_scope0, arg1: inst<invalid>, type: type0}
  32. // CHECK:STDOUT: constant_values:
  33. // CHECK:STDOUT: instTypeType: template instTypeType
  34. // CHECK:STDOUT: instError: template instError
  35. // CHECK:STDOUT: instBoolType: template instBoolType
  36. // CHECK:STDOUT: instIntType: template instIntType
  37. // CHECK:STDOUT: instFloatType: template instFloatType
  38. // CHECK:STDOUT: instStringType: template instStringType
  39. // CHECK:STDOUT: instFunctionType: template instFunctionType
  40. // CHECK:STDOUT: instBoundMethodType: template instBoundMethodType
  41. // CHECK:STDOUT: instNamespaceType: template instNamespaceType
  42. // CHECK:STDOUT: instWitnessType: template instWitnessType
  43. // CHECK:STDOUT: inst+0: template inst+0
  44. // CHECK:STDOUT: inst_blocks:
  45. // CHECK:STDOUT: empty: {}
  46. // CHECK:STDOUT: exports: {}
  47. // CHECK:STDOUT: global_init: {}
  48. // CHECK:STDOUT: block3:
  49. // CHECK:STDOUT: 0: inst+0
  50. // CHECK:STDOUT: ...