llvmlite 0.43.0rc1__cp310-cp310-win_amd64.whl → 0.44.0rc2__cp310-cp310-win_amd64.whl

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.

Potentially problematic release.


This version of llvmlite might be problematic. Click here for more details.

Files changed (47) hide show
  1. llvmlite/__init__.py +10 -3
  2. llvmlite/_version.py +2 -2
  3. llvmlite/binding/__init__.py +19 -18
  4. llvmlite/binding/analysis.py +69 -69
  5. llvmlite/binding/common.py +34 -34
  6. llvmlite/binding/context.py +39 -29
  7. llvmlite/binding/dylib.py +45 -45
  8. llvmlite/binding/executionengine.py +330 -330
  9. llvmlite/binding/ffi.py +395 -390
  10. llvmlite/binding/initfini.py +73 -73
  11. llvmlite/binding/linker.py +20 -20
  12. llvmlite/binding/llvmlite.dll +0 -0
  13. llvmlite/binding/module.py +349 -349
  14. llvmlite/binding/newpassmanagers.py +357 -0
  15. llvmlite/binding/object_file.py +82 -82
  16. llvmlite/binding/options.py +17 -17
  17. llvmlite/binding/orcjit.py +342 -342
  18. llvmlite/binding/passmanagers.py +946 -939
  19. llvmlite/binding/targets.py +520 -450
  20. llvmlite/binding/transforms.py +151 -151
  21. llvmlite/binding/typeref.py +285 -198
  22. llvmlite/binding/value.py +632 -618
  23. llvmlite/ir/__init__.py +11 -11
  24. llvmlite/ir/_utils.py +80 -80
  25. llvmlite/ir/builder.py +1120 -1119
  26. llvmlite/ir/context.py +20 -20
  27. llvmlite/ir/instructions.py +920 -893
  28. llvmlite/ir/module.py +246 -246
  29. llvmlite/ir/transforms.py +64 -64
  30. llvmlite/ir/types.py +734 -614
  31. llvmlite/ir/values.py +1217 -1217
  32. llvmlite/tests/__init__.py +57 -57
  33. llvmlite/tests/__main__.py +3 -3
  34. llvmlite/tests/customize.py +407 -407
  35. llvmlite/tests/refprune_proto.py +329 -329
  36. llvmlite/tests/test_binding.py +3208 -2585
  37. llvmlite/tests/test_ir.py +2994 -2729
  38. llvmlite/tests/test_refprune.py +730 -557
  39. llvmlite/tests/test_valuerepr.py +60 -60
  40. llvmlite/utils.py +29 -29
  41. {llvmlite-0.43.0rc1.dist-info → llvmlite-0.44.0rc2.dist-info}/LICENSE +24 -24
  42. {llvmlite-0.43.0rc1.dist-info → llvmlite-0.44.0rc2.dist-info}/LICENSE.thirdparty +225 -225
  43. {llvmlite-0.43.0rc1.dist-info → llvmlite-0.44.0rc2.dist-info}/METADATA +7 -6
  44. llvmlite-0.44.0rc2.dist-info/RECORD +46 -0
  45. {llvmlite-0.43.0rc1.dist-info → llvmlite-0.44.0rc2.dist-info}/WHEEL +1 -1
  46. llvmlite-0.43.0rc1.dist-info/RECORD +0 -45
  47. {llvmlite-0.43.0rc1.dist-info → llvmlite-0.44.0rc2.dist-info}/top_level.txt +0 -0
llvmlite/ir/context.py CHANGED
@@ -1,20 +1,20 @@
1
- from llvmlite.ir import _utils
2
- from llvmlite.ir import types
3
-
4
-
5
- class Context(object):
6
- def __init__(self):
7
- self.scope = _utils.NameScope()
8
- self.identified_types = {}
9
-
10
- def get_identified_type(self, name):
11
- if name not in self.identified_types:
12
- self.scope.register(name)
13
- ty = types.IdentifiedStructType(self, name)
14
- self.identified_types[name] = ty
15
- else:
16
- ty = self.identified_types[name]
17
- return ty
18
-
19
-
20
- global_context = Context()
1
+ from llvmlite.ir import _utils
2
+ from llvmlite.ir import types
3
+
4
+
5
+ class Context(object):
6
+ def __init__(self):
7
+ self.scope = _utils.NameScope()
8
+ self.identified_types = {}
9
+
10
+ def get_identified_type(self, name, packed=False):
11
+ if name not in self.identified_types:
12
+ self.scope.register(name)
13
+ ty = types.IdentifiedStructType(self, name, packed)
14
+ self.identified_types[name] = ty
15
+ else:
16
+ ty = self.identified_types[name]
17
+ return ty
18
+
19
+
20
+ global_context = Context()