Spaces:
Paused
Paused
Download venv/lib/python3.13/site-packages/llvmlite/ir/context.py from Jacanteros/mi_transcriptor: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/spaces/Jacanteros/mi_transcriptor/resolve/main/venv/lib/python3.13/site-packages/llvmlite/ir/context.py
- Command line
-
hf download hf://spaces/Jacanteros/mi_transcriptor/venv/lib/python3.13/site-packages/llvmlite/ir/context.py
-
curl -L -o context.py https://huggingface.co/spaces/Jacanteros/mi_transcriptor/resolve/main/venv/lib/python3.13/site-packages/llvmlite/ir/context.py
540 Bytes
| from llvmlite.ir import _utils | |
| from llvmlite.ir import types | |
| class Context(object): | |
| def __init__(self): | |
| self.scope = _utils.NameScope() | |
| self.identified_types = {} | |
| def get_identified_type(self, name, packed=False): | |
| if name not in self.identified_types: | |
| self.scope.register(name) | |
| ty = types.IdentifiedStructType(self, name, packed) | |
| self.identified_types[name] = ty | |
| else: | |
| ty = self.identified_types[name] | |
| return ty | |
| global_context = Context() | |