llvmlite 0.42.0__cp311-cp311-win_amd64.whl → 0.43.0rc1__cp311-cp311-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 (46) hide show
  1. llvmlite/__init__.py +3 -3
  2. llvmlite/_version.py +2 -2
  3. llvmlite/binding/__init__.py +18 -18
  4. llvmlite/binding/analysis.py +69 -69
  5. llvmlite/binding/common.py +34 -34
  6. llvmlite/binding/context.py +29 -29
  7. llvmlite/binding/dylib.py +45 -45
  8. llvmlite/binding/executionengine.py +330 -330
  9. llvmlite/binding/ffi.py +390 -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/object_file.py +82 -82
  15. llvmlite/binding/options.py +17 -17
  16. llvmlite/binding/orcjit.py +342 -342
  17. llvmlite/binding/passmanagers.py +939 -932
  18. llvmlite/binding/targets.py +450 -450
  19. llvmlite/binding/transforms.py +151 -151
  20. llvmlite/binding/typeref.py +198 -198
  21. llvmlite/binding/value.py +618 -618
  22. llvmlite/ir/__init__.py +11 -11
  23. llvmlite/ir/_utils.py +80 -80
  24. llvmlite/ir/builder.py +1119 -1119
  25. llvmlite/ir/context.py +20 -20
  26. llvmlite/ir/instructions.py +893 -893
  27. llvmlite/ir/module.py +246 -246
  28. llvmlite/ir/transforms.py +64 -64
  29. llvmlite/ir/types.py +614 -614
  30. llvmlite/ir/values.py +1217 -1217
  31. llvmlite/tests/__init__.py +57 -57
  32. llvmlite/tests/__main__.py +3 -3
  33. llvmlite/tests/customize.py +407 -407
  34. llvmlite/tests/refprune_proto.py +329 -329
  35. llvmlite/tests/test_binding.py +2585 -2582
  36. llvmlite/tests/test_ir.py +2729 -2729
  37. llvmlite/tests/test_refprune.py +557 -526
  38. llvmlite/tests/test_valuerepr.py +60 -60
  39. llvmlite/utils.py +29 -29
  40. {llvmlite-0.42.0.dist-info → llvmlite-0.43.0rc1.dist-info}/LICENSE +24 -24
  41. {llvmlite-0.42.0.dist-info → llvmlite-0.43.0rc1.dist-info}/LICENSE.thirdparty +225 -225
  42. {llvmlite-0.42.0.dist-info → llvmlite-0.43.0rc1.dist-info}/METADATA +1 -1
  43. llvmlite-0.43.0rc1.dist-info/RECORD +45 -0
  44. {llvmlite-0.42.0.dist-info → llvmlite-0.43.0rc1.dist-info}/WHEEL +1 -1
  45. llvmlite-0.42.0.dist-info/RECORD +0 -45
  46. {llvmlite-0.42.0.dist-info → llvmlite-0.43.0rc1.dist-info}/top_level.txt +0 -0
@@ -1,57 +1,57 @@
1
- import sys
2
-
3
- import unittest
4
- from unittest import TestCase
5
-
6
- import faulthandler
7
-
8
-
9
- try:
10
- # May fail in IPython Notebook with UnsupportedOperation
11
- faulthandler.enable()
12
- except BaseException as e:
13
- msg = "Failed to enable faulthandler due to:\n{err}"
14
- warnings.warn(msg.format(err=e))
15
-
16
-
17
- # Try to inject Numba's unittest customizations.
18
- from llvmlite.tests import customize
19
-
20
-
21
- def discover_tests(startdir):
22
- """Discover test under a directory
23
- """
24
- # Avoid importing unittest
25
- loader = unittest.TestLoader()
26
- suite = loader.discover(startdir)
27
- return suite
28
-
29
-
30
- def run_tests(suite=None, xmloutput=None, verbosity=1):
31
- """
32
- args
33
- ----
34
- - suite [TestSuite]
35
- A suite of all tests to run
36
- - xmloutput [str or None]
37
- Path of XML output directory (optional)
38
- - verbosity [int]
39
- Verbosity level of tests output
40
-
41
- Returns the TestResult object after running the test *suite*.
42
- """
43
- if suite is None:
44
- suite = discover_tests("llvmlite.tests")
45
- if xmloutput is not None:
46
- import xmlrunner
47
- runner = xmlrunner.XMLTestRunner(output=xmloutput)
48
- else:
49
- runner = None
50
- prog = unittest.main(suite=suite, testRunner=runner, exit=False,
51
- verbosity=verbosity)
52
- return prog.result
53
-
54
-
55
- def main():
56
- res = run_tests()
57
- sys.exit(0 if res.wasSuccessful() else 1)
1
+ import sys
2
+
3
+ import unittest
4
+ from unittest import TestCase
5
+
6
+ import faulthandler
7
+
8
+
9
+ try:
10
+ # May fail in IPython Notebook with UnsupportedOperation
11
+ faulthandler.enable()
12
+ except BaseException as e:
13
+ msg = "Failed to enable faulthandler due to:\n{err}"
14
+ warnings.warn(msg.format(err=e))
15
+
16
+
17
+ # Try to inject Numba's unittest customizations.
18
+ from llvmlite.tests import customize
19
+
20
+
21
+ def discover_tests(startdir):
22
+ """Discover test under a directory
23
+ """
24
+ # Avoid importing unittest
25
+ loader = unittest.TestLoader()
26
+ suite = loader.discover(startdir)
27
+ return suite
28
+
29
+
30
+ def run_tests(suite=None, xmloutput=None, verbosity=1):
31
+ """
32
+ args
33
+ ----
34
+ - suite [TestSuite]
35
+ A suite of all tests to run
36
+ - xmloutput [str or None]
37
+ Path of XML output directory (optional)
38
+ - verbosity [int]
39
+ Verbosity level of tests output
40
+
41
+ Returns the TestResult object after running the test *suite*.
42
+ """
43
+ if suite is None:
44
+ suite = discover_tests("llvmlite.tests")
45
+ if xmloutput is not None:
46
+ import xmlrunner
47
+ runner = xmlrunner.XMLTestRunner(output=xmloutput)
48
+ else:
49
+ runner = None
50
+ prog = unittest.main(suite=suite, testRunner=runner, exit=False,
51
+ verbosity=verbosity)
52
+ return prog.result
53
+
54
+
55
+ def main():
56
+ res = run_tests()
57
+ sys.exit(0 if res.wasSuccessful() else 1)
@@ -1,3 +1,3 @@
1
- from llvmlite.tests import main
2
-
3
- main()
1
+ from llvmlite.tests import main
2
+
3
+ main()