refactor TargetMachine into a new target module
TargetMachine is generally useful outside of the execution engine context so i think it makes sense to move it into its own module.
This commit is contained in:
parent
97c0e15e72
commit
83299a20a6
3 changed files with 196 additions and 174 deletions
|
|
@ -4,7 +4,6 @@ del get_versions
|
|||
|
||||
|
||||
from llvmpy import extra
|
||||
from llvmpy import api
|
||||
|
||||
version = extra.get_llvm_version()
|
||||
del extra
|
||||
|
|
@ -44,12 +43,3 @@ def test(verbosity=1):
|
|||
|
||||
return len(result.failures) + len(result.errors)
|
||||
|
||||
|
||||
def initialize_all_target_components():
|
||||
api.llvm.InitializeAllTargets()
|
||||
api.llvm.InitializeAllTargetInfos()
|
||||
api.llvm.InitializeAllTargetMCs()
|
||||
api.llvm.InitializeAllAsmPrinters()
|
||||
api.llvm.InitializeAllDisassemblers()
|
||||
api.llvm.InitializeAllAsmParsers()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue