mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-05 07:56:14 +00:00
LLVMBuild: Add explicit information on whether targets define an assembly printer, assembly parser, or disassembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144344 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0352b4679e
commit
5ed5506f18
@ -292,6 +292,12 @@ required_libraries = Archive BitReader Core Support TransformUtils
|
|||||||
<p>Components with this type use the LibraryGroup properties in addition
|
<p>Components with this type use the LibraryGroup properties in addition
|
||||||
to:</p>
|
to:</p>
|
||||||
<ul>
|
<ul>
|
||||||
|
<li><i>has_asmparser</i> <b>[optional]</b> <b>[boolean]</b>
|
||||||
|
<p>Whether this target defines an assembly parser.</p></li>
|
||||||
|
<li><i>has_asmprinter</i> <b>[optional]</b> <b>[boolean]</b>
|
||||||
|
<p>Whether this target defines an assembly printer.</p></li>
|
||||||
|
<li><i>has_disassembler</i> <b>[optional]</b> <b>[boolean]</b>
|
||||||
|
<p>Whether this target defines a disassembler.</p></li>
|
||||||
<li><i>has_jit</i> <b>[optional]</b> <b>[boolean]</b>
|
<li><i>has_jit</i> <b>[optional]</b> <b>[boolean]</b>
|
||||||
<p>Whether this target supports JIT compilation.</p></li>
|
<p>Whether this target supports JIT compilation.</p></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -19,6 +19,9 @@
|
|||||||
type = TargetGroup
|
type = TargetGroup
|
||||||
name = ARM
|
name = ARM
|
||||||
parent = Target
|
parent = Target
|
||||||
|
has_asmparser = 1
|
||||||
|
has_asmprinter = 1
|
||||||
|
has_disassembler = 1
|
||||||
has_jit = 1
|
has_jit = 1
|
||||||
|
|
||||||
[component_1]
|
[component_1]
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
type = TargetGroup
|
type = TargetGroup
|
||||||
name = CellSPU
|
name = CellSPU
|
||||||
parent = Target
|
parent = Target
|
||||||
|
has_asmprinter = 1
|
||||||
|
|
||||||
[component_1]
|
[component_1]
|
||||||
type = Library
|
type = Library
|
||||||
|
@ -19,6 +19,9 @@
|
|||||||
type = TargetGroup
|
type = TargetGroup
|
||||||
name = MBlaze
|
name = MBlaze
|
||||||
parent = Target
|
parent = Target
|
||||||
|
has_asmparser = 1
|
||||||
|
has_asmprinter = 1
|
||||||
|
has_disassembler = 1
|
||||||
|
|
||||||
[component_1]
|
[component_1]
|
||||||
type = Library
|
type = Library
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
type = TargetGroup
|
type = TargetGroup
|
||||||
name = MSP430
|
name = MSP430
|
||||||
parent = Target
|
parent = Target
|
||||||
|
has_asmprinter = 1
|
||||||
|
|
||||||
[component_1]
|
[component_1]
|
||||||
type = Library
|
type = Library
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
type = TargetGroup
|
type = TargetGroup
|
||||||
name = Mips
|
name = Mips
|
||||||
parent = Target
|
parent = Target
|
||||||
|
has_asmprinter = 1
|
||||||
has_jit = 1
|
has_jit = 1
|
||||||
|
|
||||||
[component_1]
|
[component_1]
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
type = TargetGroup
|
type = TargetGroup
|
||||||
name = PTX
|
name = PTX
|
||||||
parent = Target
|
parent = Target
|
||||||
|
has_asmprinter = 1
|
||||||
|
|
||||||
[component_1]
|
[component_1]
|
||||||
type = Library
|
type = Library
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
type = TargetGroup
|
type = TargetGroup
|
||||||
name = PowerPC
|
name = PowerPC
|
||||||
parent = Target
|
parent = Target
|
||||||
|
has_asmprinter = 1
|
||||||
has_jit = 1
|
has_jit = 1
|
||||||
|
|
||||||
[component_1]
|
[component_1]
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
type = TargetGroup
|
type = TargetGroup
|
||||||
name = Sparc
|
name = Sparc
|
||||||
parent = Target
|
parent = Target
|
||||||
|
has_asmprinter = 1
|
||||||
|
|
||||||
[component_1]
|
[component_1]
|
||||||
type = Library
|
type = Library
|
||||||
|
@ -19,6 +19,9 @@
|
|||||||
type = TargetGroup
|
type = TargetGroup
|
||||||
name = X86
|
name = X86
|
||||||
parent = Target
|
parent = Target
|
||||||
|
has_asmparser = 1
|
||||||
|
has_asmprinter = 1
|
||||||
|
has_disassembler = 1
|
||||||
has_jit = 1
|
has_jit = 1
|
||||||
|
|
||||||
[component_1]
|
[component_1]
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
type = TargetGroup
|
type = TargetGroup
|
||||||
name = XCore
|
name = XCore
|
||||||
parent = Target
|
parent = Target
|
||||||
|
has_asmprinter = 1
|
||||||
|
|
||||||
[component_1]
|
[component_1]
|
||||||
type = Library
|
type = Library
|
||||||
|
@ -198,10 +198,18 @@ class TargetGroupComponentInfo(ComponentInfo):
|
|||||||
kwargs['add_to_library_groups'] = items.get_list(
|
kwargs['add_to_library_groups'] = items.get_list(
|
||||||
'add_to_library_groups')
|
'add_to_library_groups')
|
||||||
kwargs['has_jit'] = items.get_optional_bool('has_jit', False)
|
kwargs['has_jit'] = items.get_optional_bool('has_jit', False)
|
||||||
|
kwargs['has_asmprinter'] = items.get_optional_bool('has_asmprinter',
|
||||||
|
False)
|
||||||
|
kwargs['has_asmparser'] = items.get_optional_bool('has_asmparser',
|
||||||
|
False)
|
||||||
|
kwargs['has_disassembler'] = items.get_optional_bool('has_disassembler',
|
||||||
|
False)
|
||||||
return TargetGroupComponentInfo(subpath, **kwargs)
|
return TargetGroupComponentInfo(subpath, **kwargs)
|
||||||
|
|
||||||
def __init__(self, subpath, name, parent, required_libraries = [],
|
def __init__(self, subpath, name, parent, required_libraries = [],
|
||||||
add_to_library_groups = [], has_jit = False):
|
add_to_library_groups = [], has_jit = False,
|
||||||
|
has_asmprinter = False, has_asmparser = False,
|
||||||
|
has_disassembler = False):
|
||||||
ComponentInfo.__init__(self, subpath, name, [], parent)
|
ComponentInfo.__init__(self, subpath, name, [], parent)
|
||||||
|
|
||||||
# The names of the library components which are required when linking
|
# The names of the library components which are required when linking
|
||||||
@ -215,6 +223,15 @@ class TargetGroupComponentInfo(ComponentInfo):
|
|||||||
# Whether or not this target supports the JIT.
|
# Whether or not this target supports the JIT.
|
||||||
self.has_jit = bool(has_jit)
|
self.has_jit = bool(has_jit)
|
||||||
|
|
||||||
|
# Whether or not this target defines an assembly printer.
|
||||||
|
self.has_asmprinter = bool(has_asmprinter)
|
||||||
|
|
||||||
|
# Whether or not this target defines an assembly parser.
|
||||||
|
self.has_asmparser = bool(has_asmparser)
|
||||||
|
|
||||||
|
# Whether or not this target defines an disassembler.
|
||||||
|
self.has_disassembler = bool(has_disassembler)
|
||||||
|
|
||||||
# Whether or not this target is enabled. This is set in response to
|
# Whether or not this target is enabled. This is set in response to
|
||||||
# configuration parameters.
|
# configuration parameters.
|
||||||
self.enabled = False
|
self.enabled = False
|
||||||
@ -238,9 +255,10 @@ class TargetGroupComponentInfo(ComponentInfo):
|
|||||||
if self.add_to_library_groups:
|
if self.add_to_library_groups:
|
||||||
print >>result, 'add_to_library_groups = %s' % ' '.join(
|
print >>result, 'add_to_library_groups = %s' % ' '.join(
|
||||||
self.add_to_library_groups)
|
self.add_to_library_groups)
|
||||||
if self.has_jit:
|
for bool_key in ('has_asmparser', 'has_asmprinter', 'has_disassembler',
|
||||||
print >>result, 'has_jit = %s' % ' '.join(
|
'has_jit'):
|
||||||
int(self.has_jit))
|
if getattr(self, bool_key):
|
||||||
|
print >>result, '%s = 1' % (bool_key,)
|
||||||
return result.getvalue()
|
return result.getvalue()
|
||||||
|
|
||||||
def get_llvmconfig_component_name(self):
|
def get_llvmconfig_component_name(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user