[llvm-commits] [llvm] r144344 - in /llvm/trunk: docs/LLVMBuild.html lib/Target/ARM/LLVMBuild.txt lib/Target/CellSPU/LLVMBuild.txt lib/Target/MBlaze/LLVMBuild.txt lib/Target/MSP430/LLVMBuild.txt lib/Target/Mips/LLVMBuild.txt lib/Target/PTX/LLVMBuild.txt lib/Target/PowerPC/LLVMBuild.txt lib/Target/Sparc/LLVMBuild.txt lib/Target/X86/LLVMBuild.txt lib/Target/XCore/LLVMBuild.txt utils/llvm-build/llvmbuild/componentinfo.py

Daniel Dunbar daniel at zuster.org
Thu Nov 10 16:23:56 PST 2011


Author: ddunbar
Date: Thu Nov 10 18:23:56 2011
New Revision: 144344

URL: http://llvm.org/viewvc/llvm-project?rev=144344&view=rev
Log:
LLVMBuild: Add explicit information on whether targets define an assembly printer, assembly parser, or disassembler.

Modified:
    llvm/trunk/docs/LLVMBuild.html
    llvm/trunk/lib/Target/ARM/LLVMBuild.txt
    llvm/trunk/lib/Target/CellSPU/LLVMBuild.txt
    llvm/trunk/lib/Target/MBlaze/LLVMBuild.txt
    llvm/trunk/lib/Target/MSP430/LLVMBuild.txt
    llvm/trunk/lib/Target/Mips/LLVMBuild.txt
    llvm/trunk/lib/Target/PTX/LLVMBuild.txt
    llvm/trunk/lib/Target/PowerPC/LLVMBuild.txt
    llvm/trunk/lib/Target/Sparc/LLVMBuild.txt
    llvm/trunk/lib/Target/X86/LLVMBuild.txt
    llvm/trunk/lib/Target/XCore/LLVMBuild.txt
    llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py

Modified: llvm/trunk/docs/LLVMBuild.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LLVMBuild.html?rev=144344&r1=144343&r2=144344&view=diff
==============================================================================
--- llvm/trunk/docs/LLVMBuild.html (original)
+++ llvm/trunk/docs/LLVMBuild.html Thu Nov 10 18:23:56 2011
@@ -292,6 +292,12 @@
       <p>Components with this type use the LibraryGroup properties in addition
       to:</p>
       <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>
           <p>Whether this target supports JIT compilation.</p></li>
       </ul>

Modified: llvm/trunk/lib/Target/ARM/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/LLVMBuild.txt?rev=144344&r1=144343&r2=144344&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/LLVMBuild.txt (original)
+++ llvm/trunk/lib/Target/ARM/LLVMBuild.txt Thu Nov 10 18:23:56 2011
@@ -19,6 +19,9 @@
 type = TargetGroup
 name = ARM
 parent = Target
+has_asmparser = 1
+has_asmprinter = 1
+has_disassembler = 1
 has_jit = 1
 
 [component_1]

Modified: llvm/trunk/lib/Target/CellSPU/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CellSPU/LLVMBuild.txt?rev=144344&r1=144343&r2=144344&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CellSPU/LLVMBuild.txt (original)
+++ llvm/trunk/lib/Target/CellSPU/LLVMBuild.txt Thu Nov 10 18:23:56 2011
@@ -19,6 +19,7 @@
 type = TargetGroup
 name = CellSPU
 parent = Target
+has_asmprinter = 1
 
 [component_1]
 type = Library

Modified: llvm/trunk/lib/Target/MBlaze/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MBlaze/LLVMBuild.txt?rev=144344&r1=144343&r2=144344&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MBlaze/LLVMBuild.txt (original)
+++ llvm/trunk/lib/Target/MBlaze/LLVMBuild.txt Thu Nov 10 18:23:56 2011
@@ -19,6 +19,9 @@
 type = TargetGroup
 name = MBlaze
 parent = Target
+has_asmparser = 1
+has_asmprinter = 1
+has_disassembler = 1
 
 [component_1]
 type = Library

Modified: llvm/trunk/lib/Target/MSP430/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MSP430/LLVMBuild.txt?rev=144344&r1=144343&r2=144344&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MSP430/LLVMBuild.txt (original)
+++ llvm/trunk/lib/Target/MSP430/LLVMBuild.txt Thu Nov 10 18:23:56 2011
@@ -19,6 +19,7 @@
 type = TargetGroup
 name = MSP430
 parent = Target
+has_asmprinter = 1
 
 [component_1]
 type = Library

Modified: llvm/trunk/lib/Target/Mips/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/LLVMBuild.txt?rev=144344&r1=144343&r2=144344&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/LLVMBuild.txt (original)
+++ llvm/trunk/lib/Target/Mips/LLVMBuild.txt Thu Nov 10 18:23:56 2011
@@ -19,6 +19,7 @@
 type = TargetGroup
 name = Mips
 parent = Target
+has_asmprinter = 1
 has_jit = 1
 
 [component_1]

Modified: llvm/trunk/lib/Target/PTX/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PTX/LLVMBuild.txt?rev=144344&r1=144343&r2=144344&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PTX/LLVMBuild.txt (original)
+++ llvm/trunk/lib/Target/PTX/LLVMBuild.txt Thu Nov 10 18:23:56 2011
@@ -19,6 +19,7 @@
 type = TargetGroup
 name = PTX
 parent = Target
+has_asmprinter = 1
 
 [component_1]
 type = Library

Modified: llvm/trunk/lib/Target/PowerPC/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/LLVMBuild.txt?rev=144344&r1=144343&r2=144344&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/LLVMBuild.txt (original)
+++ llvm/trunk/lib/Target/PowerPC/LLVMBuild.txt Thu Nov 10 18:23:56 2011
@@ -19,6 +19,7 @@
 type = TargetGroup
 name = PowerPC
 parent = Target
+has_asmprinter = 1
 has_jit = 1
 
 [component_1]

Modified: llvm/trunk/lib/Target/Sparc/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/LLVMBuild.txt?rev=144344&r1=144343&r2=144344&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/LLVMBuild.txt (original)
+++ llvm/trunk/lib/Target/Sparc/LLVMBuild.txt Thu Nov 10 18:23:56 2011
@@ -19,6 +19,7 @@
 type = TargetGroup
 name = Sparc
 parent = Target
+has_asmprinter = 1
 
 [component_1]
 type = Library

Modified: llvm/trunk/lib/Target/X86/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/LLVMBuild.txt?rev=144344&r1=144343&r2=144344&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/LLVMBuild.txt (original)
+++ llvm/trunk/lib/Target/X86/LLVMBuild.txt Thu Nov 10 18:23:56 2011
@@ -19,6 +19,9 @@
 type = TargetGroup
 name = X86
 parent = Target
+has_asmparser = 1
+has_asmprinter = 1
+has_disassembler = 1
 has_jit = 1
 
 [component_1]

Modified: llvm/trunk/lib/Target/XCore/LLVMBuild.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/XCore/LLVMBuild.txt?rev=144344&r1=144343&r2=144344&view=diff
==============================================================================
--- llvm/trunk/lib/Target/XCore/LLVMBuild.txt (original)
+++ llvm/trunk/lib/Target/XCore/LLVMBuild.txt Thu Nov 10 18:23:56 2011
@@ -19,6 +19,7 @@
 type = TargetGroup
 name = XCore
 parent = Target
+has_asmprinter = 1
 
 [component_1]
 type = Library

Modified: llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py?rev=144344&r1=144343&r2=144344&view=diff
==============================================================================
--- llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py (original)
+++ llvm/trunk/utils/llvm-build/llvmbuild/componentinfo.py Thu Nov 10 18:23:56 2011
@@ -198,10 +198,18 @@
         kwargs['add_to_library_groups'] = items.get_list(
             'add_to_library_groups')
         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)
 
     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)
 
         # The names of the library components which are required when linking
@@ -215,6 +223,15 @@
         # Whether or not this target supports the 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
         # configuration parameters.
         self.enabled = False
@@ -238,9 +255,10 @@
         if self.add_to_library_groups:
             print >>result, 'add_to_library_groups = %s' % ' '.join(
                 self.add_to_library_groups)
-        if self.has_jit:
-            print >>result, 'has_jit = %s' % ' '.join(
-                int(self.has_jit))
+        for bool_key in ('has_asmparser', 'has_asmprinter', 'has_disassembler',
+                         'has_jit'):
+            if getattr(self, bool_key):
+                print >>result, '%s = 1' % (bool_key,)
         return result.getvalue()
 
     def get_llvmconfig_component_name(self):





More information about the llvm-commits mailing list