Guest User

Untitled

a guest
Jan 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. sil_stage canonical
  2.  
  3. import Builtin
  4. import Swift
  5. import SwiftShims
  6.  
  7. func x()
  8.  
  9. // main
  10. sil @main : $@convention(c) (Int32, UnsafeMutablePointer<Optional<UnsafeMutablePointer<Int8>>>) -> Int32 {
  11. bb0(%0 : $Int32, %1 : $UnsafeMutablePointer<Optional<UnsafeMutablePointer<Int8>>>):
  12. %2 = integer_literal $Builtin.Int32, 0 // user: %3
  13. %3 = struct $Int32 (%2 : $Builtin.Int32) // user: %4
  14. return %3 : $Int32 // id: %4
  15. } // end sil function 'main'
  16.  
  17. // x()
  18. sil hidden @$s4main1xyyF : $@convention(thin) () -> () {
  19. bb0:
  20. %0 = alloc_stack $Float16, var, name "x" // users: %3, %4
  21. %1 = float_literal $Builtin.FPIEEE16, 0x3C00 // 1 // user: %2
  22. %2 = struct $Float16 (%1 : $Builtin.FPIEEE16) // user: %3
  23. store %2 to %0 : $*Float16 // id: %3
  24. dealloc_stack %0 : $*Float16 // id: %4
  25. %5 = tuple () // user: %6
  26. return %5 : $() // id: %6
  27. } // end sil function '$s4main1xyyF'
  28.  
  29. // Float16.init(_builtinFloatLiteral:)
  30. sil public_external [transparent] [serialized] @$ss7Float16V20_builtinFloatLiteralABBf80__tcfC : $@convention(method) (Builtin.FPIEEE80, @thin Float16.Type) -> Float16 {
  31. // %0 // user: %2
  32. bb0(%0 : $Builtin.FPIEEE80, %1 : $@thin Float16.Type):
  33. %2 = builtin "fptrunc_FPIEEE80_FPIEEE32"(%0 : $Builtin.FPIEEE80) : $Builtin.FPIEEE32 // user: %3
  34. %3 = builtin "fptrunc_FPIEEE32_FPIEEE16"(%2 : $Builtin.FPIEEE32) : $Builtin.FPIEEE16 // user: %4
  35. %4 = struct $Float16 (%3 : $Builtin.FPIEEE16) // user: %5
  36. return %4 : $Float16 // id: %5
  37. } // end sil function '$ss7Float16V20_builtinFloatLiteralABBf80__tcfC'
Add Comment
Please, Sign In to add comment