fpy2 0.2.3__tar.gz → 0.3.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. fpy2-0.3.0/LICENSE +202 -0
  2. fpy2-0.3.0/NOTICE +2 -0
  3. fpy2-0.3.0/PKG-INFO +191 -0
  4. fpy2-0.3.0/README.md +159 -0
  5. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/__init__.py +1 -0
  6. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/__init__.py +5 -1
  7. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/alias.py +185 -52
  8. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/array_size.py +251 -73
  9. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/context_use.py +84 -10
  10. fpy2-0.3.0/fpy2/analysis/digit_bound/__init__.py +34 -0
  11. fpy2-0.3.0/fpy2/analysis/digit_bound/infer.py +2713 -0
  12. fpy2-0.3.0/fpy2/analysis/digit_bound/solver.py +427 -0
  13. fpy2-0.3.0/fpy2/analysis/digit_bound/spaces.py +120 -0
  14. fpy2-0.3.0/fpy2/analysis/digit_bound/store.py +376 -0
  15. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/escape.py +27 -28
  16. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/format_infer/__init__.py +4 -0
  17. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/format_infer/analysis.py +1017 -293
  18. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/format_infer/format.py +22 -8
  19. fpy2-0.3.0/fpy2/analysis/hoistability.py +228 -0
  20. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/partial_eval.py +7 -7
  21. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/reaching_defs.py +15 -1
  22. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/storage_infer.py +103 -17
  23. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/type_infer.py +4 -4
  24. fpy2-0.3.0/fpy2/analysis/value_class.py +1970 -0
  25. fpy2-0.3.0/fpy2/ast/accessors.py +149 -0
  26. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/ast/fpyast.py +16 -6
  27. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/__init__.py +3 -0
  28. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/cpp/compiler.py +185 -73
  29. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/cpp/emitter.py +802 -274
  30. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/cpp/storage.py +23 -6
  31. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/cpp/target.py +58 -30
  32. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/cpp/types.py +16 -0
  33. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/cpp/unbox.py +8 -1
  34. fpy2-0.3.0/fpy2/backend/cpp/unfold_round.py +72 -0
  35. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/cpp/utils.py +4 -1
  36. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/fpc.py +2 -2
  37. fpy2-0.3.0/fpy2/backend/triton/__init__.py +47 -0
  38. fpy2-0.3.0/fpy2/backend/triton/compiler.py +167 -0
  39. fpy2-0.3.0/fpy2/backend/triton/emitter.py +2932 -0
  40. fpy2-0.3.0/fpy2/backend/triton/launcher.py +283 -0
  41. fpy2-0.3.0/fpy2/backend/triton/normalize.py +131 -0
  42. fpy2-0.3.0/fpy2/backend/triton/split_names.py +84 -0
  43. fpy2-0.3.0/fpy2/backend/triton/storage.py +196 -0
  44. fpy2-0.3.0/fpy2/backend/triton/target.py +299 -0
  45. fpy2-0.3.0/fpy2/backend/triton/types.py +92 -0
  46. fpy2-0.3.0/fpy2/backend/triton/unfold_round.py +124 -0
  47. fpy2-0.3.0/fpy2/backend/triton/vectorize.py +471 -0
  48. fpy2-0.3.0/fpy2/backend/unfold_round.py +354 -0
  49. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/decorator.py +26 -3
  50. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/interpret/byte.py +37 -2
  51. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/ops.py +54 -23
  52. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/__init__.py +26 -0
  53. fpy2-0.3.0/fpy2/strategies/assert_elim.py +55 -0
  54. fpy2-0.3.0/fpy2/strategies/exit_single.py +78 -0
  55. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/fixed_rescale.py +16 -9
  56. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/float_lower.py +21 -18
  57. fpy2-0.3.0/fpy2/strategies/if_simplify.py +78 -0
  58. fpy2-0.3.0/fpy2/strategies/invariant_hoist.py +121 -0
  59. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/iter_unfold.py +7 -2
  60. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/loop_split.py +35 -2
  61. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/loop_unroll.py +10 -1
  62. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/neg_zero_unfold.py +13 -9
  63. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/overflow_unfold.py +22 -29
  64. fpy2-0.3.0/fpy2/strategies/scale_hoist.py +117 -0
  65. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/sites.py +19 -3
  66. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/special_unfold.py +17 -15
  67. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/__init__.py +6 -0
  68. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/anf.py +12 -54
  69. fpy2-0.3.0/fpy2/transform/assert_elim.py +85 -0
  70. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/comp_to_loop.py +66 -43
  71. fpy2-0.3.0/fpy2/transform/const_fold.py +408 -0
  72. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/dead_code.py +4 -4
  73. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/float_to_fixed.py +80 -110
  74. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/for_bundling.py +4 -1
  75. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/for_unroll.py +34 -12
  76. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/func_inline.py +25 -6
  77. fpy2-0.3.0/fpy2/transform/hoist_invariant.py +581 -0
  78. fpy2-0.3.0/fpy2/transform/hoist_scale.py +477 -0
  79. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/hoistable.py +29 -182
  80. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/if_bundling.py +4 -1
  81. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/monomorphize.py +28 -26
  82. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/path.py +8 -114
  83. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/reduce_fusion.py +40 -44
  84. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/rescale_fixed.py +60 -86
  85. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/round_elim.py +39 -133
  86. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/round_insert.py +2 -2
  87. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/simplify.py +25 -11
  88. fpy2-0.3.0/fpy2/transform/simplify_if.py +502 -0
  89. fpy2-0.3.0/fpy2/transform/single_exit.py +224 -0
  90. fpy2-0.3.0/fpy2/transform/specialize.py +867 -0
  91. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/split_loop.py +107 -22
  92. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/split_round.py +1 -1
  93. fpy2-0.3.0/fpy2/transform/statement_form.py +50 -0
  94. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/unfold_iter.py +10 -11
  95. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/unfold_neg_zero.py +39 -73
  96. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/unfold_overflow.py +105 -142
  97. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/unfold_special.py +49 -80
  98. fpy2-0.3.0/fpy2/transform/unnest_context.py +187 -0
  99. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/utils.py +290 -184
  100. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/while_bundling.py +4 -1
  101. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/types.py +20 -14
  102. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/gensym.py +8 -4
  103. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/unionfind.py +2 -2
  104. fpy2-0.3.0/fpy2.egg-info/PKG-INFO +191 -0
  105. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2.egg-info/SOURCES.txt +31 -0
  106. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2.egg-info/requires.txt +4 -3
  107. {fpy2-0.2.3 → fpy2-0.3.0}/pyproject.toml +11 -5
  108. fpy2-0.2.3/LICENSE +0 -21
  109. fpy2-0.2.3/PKG-INFO +0 -121
  110. fpy2-0.2.3/README.md +0 -91
  111. fpy2-0.2.3/fpy2/analysis/value_class.py +0 -781
  112. fpy2-0.2.3/fpy2/backend/cpp/unfold_round.py +0 -389
  113. fpy2-0.2.3/fpy2/transform/const_fold.py +0 -186
  114. fpy2-0.2.3/fpy2/transform/simplify_if.py +0 -181
  115. fpy2-0.2.3/fpy2/transform/specialize.py +0 -542
  116. fpy2-0.2.3/fpy2.egg-info/PKG-INFO +0 -121
  117. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/call_graph.py +0 -0
  118. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/define_use.py +0 -0
  119. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/defs.py +0 -0
  120. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/format_infer/double_round.py +0 -0
  121. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/live_vars.py +0 -0
  122. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/purity.py +0 -0
  123. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/reachability.py +0 -0
  124. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/analysis/syntax_check.py +0 -0
  125. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/ast/__init__.py +0 -0
  126. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/ast/formatter.py +0 -0
  127. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/ast/visitor.py +0 -0
  128. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/backend.py +0 -0
  129. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/cpp/__init__.py +0 -0
  130. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/cpp/ops.py +0 -0
  131. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/backend/cpp/variables.py +0 -0
  132. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/env.py +0 -0
  133. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/fpc_context.py +0 -0
  134. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/frontend/__init__.py +0 -0
  135. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/frontend/fpc.py +0 -0
  136. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/frontend/parser.py +0 -0
  137. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/function.py +0 -0
  138. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/interpret/__init__.py +0 -0
  139. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/interpret/interpreter.py +0 -0
  140. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/interpret/value.py +0 -0
  141. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/libraries/__init__.py +0 -0
  142. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/libraries/base.py +0 -0
  143. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/libraries/core.py +0 -0
  144. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/libraries/eft.py +0 -0
  145. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/libraries/matrix.py +0 -0
  146. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/libraries/metrics.py +0 -0
  147. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/libraries/vector.py +0 -0
  148. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/module.py +0 -0
  149. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/__init__.py +0 -0
  150. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/__init__.py +0 -0
  151. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/context.py +0 -0
  152. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/efloat.py +0 -0
  153. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/exponential.py +0 -0
  154. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/fixed.py +0 -0
  155. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/format.py +0 -0
  156. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/ieee754.py +0 -0
  157. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/mp_fixed.py +0 -0
  158. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/mp_float.py +0 -0
  159. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/mpb_fixed.py +0 -0
  160. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/mpb_float.py +0 -0
  161. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/mps_float.py +0 -0
  162. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/real.py +0 -0
  163. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/context/sm_fixed.py +0 -0
  164. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/engine/__init__.py +0 -0
  165. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/engine/engine.py +0 -0
  166. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/engine/gmp.py +0 -0
  167. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/engine/real.py +0 -0
  168. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/format.py +0 -0
  169. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/globals.py +0 -0
  170. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/gmputils.py +0 -0
  171. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/native.py +0 -0
  172. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/number/__init__.py +0 -0
  173. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/number/flags.py +0 -0
  174. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/number/floats.py +0 -0
  175. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/number/reals.py +0 -0
  176. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/number/round.py +0 -0
  177. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/primitive.py +0 -0
  178. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/rewrite/__init__.py +0 -0
  179. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/rewrite/applier.py +0 -0
  180. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/rewrite/matcher.py +0 -0
  181. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/rewrite/pattern.py +0 -0
  182. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/rewrite/rewrite.py +0 -0
  183. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/rewrite/search.py +0 -0
  184. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/rewrite/subst.py +0 -0
  185. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/runner.py +0 -0
  186. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/anf.py +0 -0
  187. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/comp_lower.py +0 -0
  188. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/context_lift.py +0 -0
  189. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/free_var.py +0 -0
  190. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/func_inline.py +0 -0
  191. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/hoistable.py +0 -0
  192. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/iter_elim.py +0 -0
  193. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/mono.py +0 -0
  194. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/reduce_fusion.py +0 -0
  195. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/round_elim.py +0 -0
  196. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/round_insert.py +0 -0
  197. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/round_split.py +0 -0
  198. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/strategies/simple.py +0 -0
  199. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/copy_propagate.py +0 -0
  200. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/cursor.py +0 -0
  201. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/enumerate_elim.py +0 -0
  202. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/error.py +0 -0
  203. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/for_unpack.py +0 -0
  204. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/free_var_elim.py +0 -0
  205. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/iter_elim.py +0 -0
  206. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/lift_context.py +0 -0
  207. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/rename_target.py +0 -0
  208. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/subst_var.py +0 -0
  209. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/while_unroll.py +0 -0
  210. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/transform/zip_elim.py +0 -0
  211. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/__init__.py +0 -0
  212. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/bits.py +0 -0
  213. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/compare.py +0 -0
  214. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/decorator.py +0 -0
  215. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/default.py +0 -0
  216. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/float_params.py +0 -0
  217. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/fractions.py +0 -0
  218. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/identifier.py +0 -0
  219. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/inspect.py +0 -0
  220. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/iterator.py +0 -0
  221. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/loader.py +0 -0
  222. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/location.py +0 -0
  223. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/ordering.py +0 -0
  224. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/string.py +0 -0
  225. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2/utils/uninit.py +0 -0
  226. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2.egg-info/dependency_links.txt +0 -0
  227. {fpy2-0.2.3 → fpy2-0.3.0}/fpy2.egg-info/top_level.txt +0 -0
  228. {fpy2-0.2.3 → fpy2-0.3.0}/setup.cfg +0 -0
fpy2-0.3.0/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
fpy2-0.3.0/NOTICE ADDED
@@ -0,0 +1,2 @@
1
+ FPy
2
+ Copyright 2025-2026 Brett Saiki
fpy2-0.3.0/PKG-INFO ADDED
@@ -0,0 +1,191 @@
1
+ Metadata-Version: 2.4
2
+ Name: fpy2
3
+ Version: 0.3.0
4
+ Summary: An embedded DSL for numerical computing
5
+ Author-email: Brett Saiki <bsaiki@cs.washington.edu>
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/bksaiki/fpy
8
+ Project-URL: Issues, https://github.com/bksaiki/fpy/issues
9
+ Project-URL: Documentation, https://fpy.readthedocs.io/
10
+ Classifier: Programming Language :: Python :: 3
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.11
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ License-File: NOTICE
16
+ Requires-Dist: titanfp==0.1.2
17
+ Requires-Dist: gmpy2==2.3.1
18
+ Requires-Dist: numpy
19
+ Requires-Dist: z3-solver>=4.13
20
+ Provides-Extra: dev
21
+ Requires-Dist: pytest; extra == "dev"
22
+ Requires-Dist: pytest-xdist; extra == "dev"
23
+ Requires-Dist: hypothesis==6.135; extra == "dev"
24
+ Requires-Dist: mypy; extra == "dev"
25
+ Requires-Dist: ruff; extra == "dev"
26
+ Requires-Dist: build; extra == "dev"
27
+ Requires-Dist: twine; extra == "dev"
28
+ Requires-Dist: sphinx; extra == "dev"
29
+ Requires-Dist: sphinx-rtd-theme; extra == "dev"
30
+ Requires-Dist: sphinx-pyproject; extra == "dev"
31
+ Dynamic: license-file
32
+
33
+ # FPy
34
+
35
+ An embedded Python DSL for specifying and simulating numerical algorithms.
36
+
37
+ Important links:
38
+ - PyPI package: [fpy2](https://pypi.org/project/fpy2/)
39
+ - Documentation: [fpy.readthedocs.io](https://fpy.readthedocs.io/)
40
+ - GitHub: [fpy](https://github.com/bksaiki/fpy)
41
+ - Guide: [USAGE.md](docs/USAGE.md)
42
+
43
+ ## Example
44
+
45
+ FPy is Python with explicit control of both the mathematics and
46
+ rounding: every operation is correctly rounded by the *rounding context*
47
+ it appears in, and contexts are ordinary values you can pass around —
48
+ including `fp.REAL`, which never rounds. Here is a blocked dot product:
49
+ the products are exact, each block of `K` elements is summed in a narrow
50
+ format, and the running total is `float32`.
51
+
52
+ ```python
53
+ import fpy2 as fp
54
+
55
+ @fp.fpy(ctx=fp.REAL)
56
+ def dot(xs: list[fp.Real], ys: list[fp.Real], K: int, block: fp.Context) -> fp.Real:
57
+ """A blocked dot product: exact products, blocks of `K` summed in `block`.
58
+ The length of `xs` must be a multiple of `K`."""
59
+ assert len(xs) == len(ys)
60
+ acc = 0
61
+ for start in range(0, len(xs), K):
62
+ with block:
63
+ inner_acc = 0
64
+ for x, y in zip(xs[start:start + K], ys[start:start + K]):
65
+ with fp.REAL:
66
+ p = x * y # every product is exact ...
67
+ inner_acc += p # ... but block sums round to `block`
68
+ with fp.FP32:
69
+ acc += inner_acc # one fp32 addition per block
70
+ return acc
71
+
72
+ @fp.fpy(ctx=fp.REAL)
73
+ def dot_ref(xs: list[fp.Real], ys: list[fp.Real]) -> fp.Real:
74
+ """The same dot product, with no rounding anywhere."""
75
+ return sum([x * y for x, y in zip(xs, ys)])
76
+
77
+ xs = ys = [0.1] * 4096
78
+ exact = dot_ref(xs, ys).as_rational() # the true value, as a Fraction
79
+
80
+ print(f'{"block":>6} {"format":>9} {"result":>11} {"rel. error":>11}')
81
+ for K, name, ctx in [(4096, 'float16', fp.FP16), (32, 'float16', fp.FP16),
82
+ (4096, 'bfloat16', fp.BF16), (32, 'bfloat16', fp.BF16),
83
+ (32, 'float32', fp.FP32)]:
84
+ r = dot(xs, ys, K, ctx)
85
+ err = abs(r.as_rational() - exact) / exact
86
+ print(f'{K:>6} {name:>9} {float(r):>11.6f} {float(err):>11.3%}')
87
+ ```
88
+
89
+ which prints
90
+
91
+ ```
92
+ block format result rel. error
93
+ 4096 float16 32.000000 21.875%
94
+ 32 float16 40.968750 0.021%
95
+ 4096 bfloat16 4.000000 90.234%
96
+ 32 bfloat16 40.250000 1.733%
97
+ 32 float32 40.959972 0.000%
98
+ ```
99
+
100
+ A flat `float16` accumulator stalls out once the running total dwarfs
101
+ the product being added to it; summing 32 elements at a time keeps the
102
+ error three orders of magnitude smaller.
103
+
104
+ See the [usage guide](docs/USAGE.md) for the language and the
105
+ [examples page](https://fpy.readthedocs.io/en/latest/example.html) for
106
+ more.
107
+
108
+ ## Installation
109
+
110
+ FPy can be installed from PyPI with either `uv` or `pip`, or built from
111
+ source for development. The following instructions assume a `bash`-like
112
+ shell.
113
+
114
+ ### Installing from PyPI
115
+
116
+ Requirements:
117
+ - Python 3.11 or later
118
+
119
+ To install the latest stable release of FPy, run:
120
+ ```bash
121
+ uv pip install fpy2
122
+ ```
123
+ or, with `pip`:
124
+ ```bash
125
+ pip install fpy2
126
+ ```
127
+ The Triton backend also needs PyTorch, Triton and a GPU: install `fpy2[triton]`.
128
+
129
+ ### Installing from source
130
+
131
+ Requirements:
132
+ - Python 3.11 or later
133
+ - `make`
134
+
135
+ #### With `uv` (preferred)
136
+
137
+ [uv](https://docs.astral.sh/uv/) is the recommended development
138
+ workflow — it handles the virtual environment and dependency
139
+ installation in a single step:
140
+ ```bash
141
+ uv sync
142
+ ```
143
+ This creates `.venv/` and installs FPy in editable mode along with the
144
+ `dev` dependency group, pinned by `uv.lock`. Rerun it to reset `.venv/` to
145
+ the lockfile; it removes anything installed by hand. Activate the
146
+ environment with
147
+ ```bash
148
+ source .venv/bin/activate
149
+ ```
150
+ or prefix individual commands with `uv run` (e.g. `uv run pytest tests/unit`).
151
+
152
+ #### With `pip` (legacy)
153
+
154
+ This path is preserved for compatibility with existing tooling; new
155
+ contributors should prefer `uv` above.
156
+
157
+ If you do not have a Python virtual environment,
158
+ create one using
159
+ ```bash
160
+ python3 -m venv .venv/
161
+ ```
162
+ and activate it using
163
+ ```bash
164
+ source .venv/bin/activate
165
+ ```
166
+ To install an instance of FPy for development, run:
167
+ ```bash
168
+ pip install -e .[dev]
169
+ ```
170
+
171
+ To uninstall FPy, run:
172
+ ```bash
173
+ pip uninstall fpy2
174
+ ```
175
+
176
+ ### Testing
177
+
178
+ There are a number of tests that can be run through
179
+ the `Makefile` including
180
+ ```bash
181
+ make lint
182
+ ```
183
+ to ensure formatting and type safety;
184
+ ```bash
185
+ make unittest
186
+ ```
187
+ to run the unit tests;
188
+ ```bash
189
+ make infratest
190
+ ```
191
+ to run the infrastructure tests.
fpy2-0.3.0/README.md ADDED
@@ -0,0 +1,159 @@
1
+ # FPy
2
+
3
+ An embedded Python DSL for specifying and simulating numerical algorithms.
4
+
5
+ Important links:
6
+ - PyPI package: [fpy2](https://pypi.org/project/fpy2/)
7
+ - Documentation: [fpy.readthedocs.io](https://fpy.readthedocs.io/)
8
+ - GitHub: [fpy](https://github.com/bksaiki/fpy)
9
+ - Guide: [USAGE.md](docs/USAGE.md)
10
+
11
+ ## Example
12
+
13
+ FPy is Python with explicit control of both the mathematics and
14
+ rounding: every operation is correctly rounded by the *rounding context*
15
+ it appears in, and contexts are ordinary values you can pass around —
16
+ including `fp.REAL`, which never rounds. Here is a blocked dot product:
17
+ the products are exact, each block of `K` elements is summed in a narrow
18
+ format, and the running total is `float32`.
19
+
20
+ ```python
21
+ import fpy2 as fp
22
+
23
+ @fp.fpy(ctx=fp.REAL)
24
+ def dot(xs: list[fp.Real], ys: list[fp.Real], K: int, block: fp.Context) -> fp.Real:
25
+ """A blocked dot product: exact products, blocks of `K` summed in `block`.
26
+ The length of `xs` must be a multiple of `K`."""
27
+ assert len(xs) == len(ys)
28
+ acc = 0
29
+ for start in range(0, len(xs), K):
30
+ with block:
31
+ inner_acc = 0
32
+ for x, y in zip(xs[start:start + K], ys[start:start + K]):
33
+ with fp.REAL:
34
+ p = x * y # every product is exact ...
35
+ inner_acc += p # ... but block sums round to `block`
36
+ with fp.FP32:
37
+ acc += inner_acc # one fp32 addition per block
38
+ return acc
39
+
40
+ @fp.fpy(ctx=fp.REAL)
41
+ def dot_ref(xs: list[fp.Real], ys: list[fp.Real]) -> fp.Real:
42
+ """The same dot product, with no rounding anywhere."""
43
+ return sum([x * y for x, y in zip(xs, ys)])
44
+
45
+ xs = ys = [0.1] * 4096
46
+ exact = dot_ref(xs, ys).as_rational() # the true value, as a Fraction
47
+
48
+ print(f'{"block":>6} {"format":>9} {"result":>11} {"rel. error":>11}')
49
+ for K, name, ctx in [(4096, 'float16', fp.FP16), (32, 'float16', fp.FP16),
50
+ (4096, 'bfloat16', fp.BF16), (32, 'bfloat16', fp.BF16),
51
+ (32, 'float32', fp.FP32)]:
52
+ r = dot(xs, ys, K, ctx)
53
+ err = abs(r.as_rational() - exact) / exact
54
+ print(f'{K:>6} {name:>9} {float(r):>11.6f} {float(err):>11.3%}')
55
+ ```
56
+
57
+ which prints
58
+
59
+ ```
60
+ block format result rel. error
61
+ 4096 float16 32.000000 21.875%
62
+ 32 float16 40.968750 0.021%
63
+ 4096 bfloat16 4.000000 90.234%
64
+ 32 bfloat16 40.250000 1.733%
65
+ 32 float32 40.959972 0.000%
66
+ ```
67
+
68
+ A flat `float16` accumulator stalls out once the running total dwarfs
69
+ the product being added to it; summing 32 elements at a time keeps the
70
+ error three orders of magnitude smaller.
71
+
72
+ See the [usage guide](docs/USAGE.md) for the language and the
73
+ [examples page](https://fpy.readthedocs.io/en/latest/example.html) for
74
+ more.
75
+
76
+ ## Installation
77
+
78
+ FPy can be installed from PyPI with either `uv` or `pip`, or built from
79
+ source for development. The following instructions assume a `bash`-like
80
+ shell.
81
+
82
+ ### Installing from PyPI
83
+
84
+ Requirements:
85
+ - Python 3.11 or later
86
+
87
+ To install the latest stable release of FPy, run:
88
+ ```bash
89
+ uv pip install fpy2
90
+ ```
91
+ or, with `pip`:
92
+ ```bash
93
+ pip install fpy2
94
+ ```
95
+ The Triton backend also needs PyTorch, Triton and a GPU: install `fpy2[triton]`.
96
+
97
+ ### Installing from source
98
+
99
+ Requirements:
100
+ - Python 3.11 or later
101
+ - `make`
102
+
103
+ #### With `uv` (preferred)
104
+
105
+ [uv](https://docs.astral.sh/uv/) is the recommended development
106
+ workflow — it handles the virtual environment and dependency
107
+ installation in a single step:
108
+ ```bash
109
+ uv sync
110
+ ```
111
+ This creates `.venv/` and installs FPy in editable mode along with the
112
+ `dev` dependency group, pinned by `uv.lock`. Rerun it to reset `.venv/` to
113
+ the lockfile; it removes anything installed by hand. Activate the
114
+ environment with
115
+ ```bash
116
+ source .venv/bin/activate
117
+ ```
118
+ or prefix individual commands with `uv run` (e.g. `uv run pytest tests/unit`).
119
+
120
+ #### With `pip` (legacy)
121
+
122
+ This path is preserved for compatibility with existing tooling; new
123
+ contributors should prefer `uv` above.
124
+
125
+ If you do not have a Python virtual environment,
126
+ create one using
127
+ ```bash
128
+ python3 -m venv .venv/
129
+ ```
130
+ and activate it using
131
+ ```bash
132
+ source .venv/bin/activate
133
+ ```
134
+ To install an instance of FPy for development, run:
135
+ ```bash
136
+ pip install -e .[dev]
137
+ ```
138
+
139
+ To uninstall FPy, run:
140
+ ```bash
141
+ pip uninstall fpy2
142
+ ```
143
+
144
+ ### Testing
145
+
146
+ There are a number of tests that can be run through
147
+ the `Makefile` including
148
+ ```bash
149
+ make lint
150
+ ```
151
+ to ensure formatting and type safety;
152
+ ```bash
153
+ make unittest
154
+ ```
155
+ to run the unit tests;
156
+ ```bash
157
+ make infratest
158
+ ```
159
+ to run the infrastructure tests.
@@ -36,6 +36,7 @@ from .backend import (
36
36
  Backend,
37
37
  CppCompiler,
38
38
  FPCoreCompiler,
39
+ TritonCompiler,
39
40
  )
40
41
 
41
42
  # runtime support
@@ -9,6 +9,7 @@ from .array_size import (
9
9
  ListSize,
10
10
  TupleSize,
11
11
  concrete_size,
12
+ static_trip_count,
12
13
  )
13
14
  from .call_graph import CallGraph, CallGraphAnalysis, CallGraphError
14
15
  from .context_use import (
@@ -17,13 +18,16 @@ from .context_use import (
17
18
  ContextUse,
18
19
  ContextUseAnalysis,
19
20
  ContextUseSite,
21
+ PartialContext,
22
+ ScopeContext,
20
23
  )
21
24
  from .define_use import DefCtx, DefineUse, DefineUseAnalysis, UseSite
22
25
  from .defs import DefAnalysis
23
26
  from .escape import Escape, EscapeSummary
24
27
  from .format_infer import FormatAnalysis, FormatInfer
28
+ from .hoistability import Hoistability, HoistabilityAnalysis
25
29
  from .live_vars import LiveVars
26
- from .partial_eval import PartialEval, PartialEvalInfo
30
+ from .partial_eval import PartialEval, PartialEvalInfo, base_env
27
31
  from .purity import Purity
28
32
  from .reachability import Reachability
29
33
  from .reaching_defs import (