metadata-2.ll 5.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ; RUN: llvm-as < %s | llvm-dis -disable-output
  2. ; RUN: verify-uselistorder < %s
  3. %0 = type { %object.ModuleInfo.__vtbl*, i8*, %"byte[]", %1, %"ClassInfo[]", i32, void ()*, void ()*, void ()*, i8*, void ()* } ; type %0
  4. %1 = type { i64, %object.ModuleInfo* } ; type %1
  5. %2 = type { i32, void ()* } ; type %2
  6. %"ClassInfo[]" = type { i64, %object.ClassInfo** }
  7. %"Interface[]" = type { i64, %object.Interface* }
  8. %"ModuleInfo[]" = type { i64, %object.ModuleInfo** }
  9. %ModuleReference = type { %ModuleReference*, %object.ModuleInfo* }
  10. %"OffsetTypeInfo[]" = type { i64, %object.OffsetTypeInfo* }
  11. %"byte[]" = type { i64, i8* }
  12. %object.ClassInfo = type { %object.ClassInfo.__vtbl*, i8*, %"byte[]", %"byte[]", %"void*[]", %"Interface[]", %object.ClassInfo*, i8*, i8*, i32, i8*, %"OffsetTypeInfo[]", i8*, %object.TypeInfo* }
  13. %object.ClassInfo.__vtbl = type { %object.ClassInfo*, %"byte[]" (%object.Object*)*, i64 (%object.Object*)*, i32 (%object.Object*, %object.Object*)*, i32 (%object.Object*, %object.Object*)*, %object.Object* (%object.ClassInfo*)* }
  14. %object.Interface = type { %object.ClassInfo*, %"void*[]", i64 }
  15. %object.ModuleInfo = type { %object.ModuleInfo.__vtbl*, i8*, %"byte[]", %"ModuleInfo[]", %"ClassInfo[]", i32, void ()*, void ()*, void ()*, i8*, void ()* }
  16. %object.ModuleInfo.__vtbl = type { %object.ClassInfo*, %"byte[]" (%object.Object*)*, i64 (%object.Object*)*, i32 (%object.Object*, %object.Object*)*, i32 (%object.Object*, %object.Object*)* }
  17. %object.Object = type { %object.ModuleInfo.__vtbl*, i8* }
  18. %object.OffsetTypeInfo = type { i64, %object.TypeInfo* }
  19. %object.TypeInfo = type { %object.TypeInfo.__vtbl*, i8* }
  20. %object.TypeInfo.__vtbl = type { %object.ClassInfo*, %"byte[]" (%object.Object*)*, i64 (%object.Object*)*, i32 (%object.Object*, %object.Object*)*, i32 (%object.Object*, %object.Object*)*, i64 (%object.TypeInfo*, i8*)*, i32 (%object.TypeInfo*, i8*, i8*)*, i32 (%object.TypeInfo*, i8*, i8*)*, i64 (%object.TypeInfo*)*, void (%object.TypeInfo*, i8*, i8*)*, %object.TypeInfo* (%object.TypeInfo*)*, %"byte[]" (%object.TypeInfo*)*, i32 (%object.TypeInfo*)*, %"OffsetTypeInfo[]" (%object.TypeInfo*)* }
  21. %"void*[]" = type { i64, i8** }
  22. @_D10ModuleInfo6__vtblZ = external constant %object.ModuleInfo.__vtbl ; <%object.ModuleInfo.__vtbl*> [#uses=1]
  23. @.str = internal constant [20 x i8] c"tango.core.BitManip\00" ; <[20 x i8]*> [#uses=1]
  24. @_D5tango4core8BitManip8__ModuleZ = global %0 { %object.ModuleInfo.__vtbl* @_D10ModuleInfo6__vtblZ, i8* null, %"byte[]" { i64 19, i8* getelementptr ([20 x i8], [20 x i8]* @.str, i32 0, i32 0) }, %1 zeroinitializer, %"ClassInfo[]" zeroinitializer, i32 4, void ()* null, void ()* null, void ()* null, i8* null, void ()* null } ; <%0*> [#uses=1]
  25. @_D5tango4core8BitManip11__moduleRefZ = internal global %ModuleReference { %ModuleReference* null, %object.ModuleInfo* bitcast (%0* @_D5tango4core8BitManip8__ModuleZ to %object.ModuleInfo*) } ; <%ModuleReference*> [#uses=2]
  26. @_Dmodule_ref = external global %ModuleReference* ; <%ModuleReference**> [#uses=2]
  27. @llvm.global_ctors = appending constant [1 x %2] [%2 { i32 65535, void ()* @_D5tango4core8BitManip16__moduleinfoCtorZ }] ; <[1 x %2]*> [#uses=0]
  28. define fastcc i32 @_D5tango4core8BitManip6popcntFkZi(i32 %x_arg) nounwind readnone {
  29. entry:
  30. %tmp1 = lshr i32 %x_arg, 1 ; <i32> [#uses=1]
  31. %tmp2 = and i32 %tmp1, 1431655765 ; <i32> [#uses=1]
  32. %tmp4 = sub i32 %x_arg, %tmp2 ; <i32> [#uses=2]
  33. %tmp6 = lshr i32 %tmp4, 2 ; <i32> [#uses=1]
  34. %tmp7 = and i32 %tmp6, 858993459 ; <i32> [#uses=1]
  35. %tmp9 = and i32 %tmp4, 858993459 ; <i32> [#uses=1]
  36. %tmp10 = add i32 %tmp7, %tmp9 ; <i32> [#uses=2]
  37. %tmp12 = lshr i32 %tmp10, 4 ; <i32> [#uses=1]
  38. %tmp14 = add i32 %tmp12, %tmp10 ; <i32> [#uses=1]
  39. %tmp16 = and i32 %tmp14, 252645135 ; <i32> [#uses=2]
  40. %tmp18 = lshr i32 %tmp16, 8 ; <i32> [#uses=1]
  41. %tmp20 = add i32 %tmp18, %tmp16 ; <i32> [#uses=1]
  42. %tmp22 = and i32 %tmp20, 16711935 ; <i32> [#uses=2]
  43. %tmp24 = lshr i32 %tmp22, 16 ; <i32> [#uses=1]
  44. %tmp26 = add i32 %tmp24, %tmp22 ; <i32> [#uses=1]
  45. %tmp28 = and i32 %tmp26, 65535 ; <i32> [#uses=1]
  46. ret i32 %tmp28
  47. }
  48. define fastcc i32 @_D5tango4core8BitManip7bitswapFkZk(i32 %x_arg) nounwind readnone {
  49. entry:
  50. %tmp1 = lshr i32 %x_arg, 1 ; <i32> [#uses=1]
  51. %tmp2 = and i32 %tmp1, 1431655765 ; <i32> [#uses=1]
  52. %tmp4 = shl i32 %x_arg, 1 ; <i32> [#uses=1]
  53. %tmp5 = and i32 %tmp4, -1431655766 ; <i32> [#uses=1]
  54. %tmp6 = or i32 %tmp2, %tmp5 ; <i32> [#uses=2]
  55. %tmp8 = lshr i32 %tmp6, 2 ; <i32> [#uses=1]
  56. %tmp9 = and i32 %tmp8, 858993459 ; <i32> [#uses=1]
  57. %tmp11 = shl i32 %tmp6, 2 ; <i32> [#uses=1]
  58. %tmp12 = and i32 %tmp11, -858993460 ; <i32> [#uses=1]
  59. %tmp13 = or i32 %tmp9, %tmp12 ; <i32> [#uses=2]
  60. %tmp15 = lshr i32 %tmp13, 4 ; <i32> [#uses=1]
  61. %tmp16 = and i32 %tmp15, 252645135 ; <i32> [#uses=1]
  62. %tmp18 = shl i32 %tmp13, 4 ; <i32> [#uses=1]
  63. %tmp19 = and i32 %tmp18, -252645136 ; <i32> [#uses=1]
  64. %tmp20 = or i32 %tmp16, %tmp19 ; <i32> [#uses=2]
  65. %tmp22 = lshr i32 %tmp20, 8 ; <i32> [#uses=1]
  66. %tmp23 = and i32 %tmp22, 16711935 ; <i32> [#uses=1]
  67. %tmp25 = shl i32 %tmp20, 8 ; <i32> [#uses=1]
  68. %tmp26 = and i32 %tmp25, -16711936 ; <i32> [#uses=1]
  69. %tmp27 = or i32 %tmp23, %tmp26 ; <i32> [#uses=2]
  70. %tmp29 = lshr i32 %tmp27, 16 ; <i32> [#uses=1]
  71. %tmp31 = shl i32 %tmp27, 16 ; <i32> [#uses=1]
  72. %tmp32 = or i32 %tmp29, %tmp31 ; <i32> [#uses=1]
  73. ret i32 %tmp32
  74. }
  75. define internal void @_D5tango4core8BitManip16__moduleinfoCtorZ() nounwind {
  76. moduleinfoCtorEntry:
  77. %current = load %ModuleReference*, %ModuleReference** @_Dmodule_ref ; <%ModuleReference*> [#uses=1]
  78. store %ModuleReference* %current, %ModuleReference** getelementptr (%ModuleReference, %ModuleReference* @_D5tango4core8BitManip11__moduleRefZ, i32 0, i32 0)
  79. store %ModuleReference* @_D5tango4core8BitManip11__moduleRefZ, %ModuleReference** @_Dmodule_ref
  80. ret void
  81. }
  82. !llvm.ldc.classinfo._D6Object7__ClassZ = !{!0}
  83. !llvm.ldc.classinfo._D10ModuleInfo7__ClassZ = !{!1}
  84. !0 = !{%object.Object undef, i1 false, i1 false}
  85. !1 = !{%object.ModuleInfo undef, i1 false, i1 false}