OLD | NEW |
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
2 "http://www.w3.org/TR/html4/strict.dtd"> | 2 "http://www.w3.org/TR/html4/strict.dtd"> |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <title>TableGen Fundamentals</title> | 5 <title>TableGen Fundamentals</title> |
6 <link rel="stylesheet" href="llvm.css" type="text/css"> | 6 <link rel="stylesheet" href="llvm.css" type="text/css"> |
7 </head> | 7 </head> |
8 <body> | 8 <body> |
9 | 9 |
10 <h1>TableGen Fundamentals</h1> | 10 <h1>TableGen Fundamentals</h1> |
(...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 the specified file in place of the include directive. The filename should be | 790 the specified file in place of the include directive. The filename should be |
791 specified as a double quoted string immediately after the '<tt>include</tt>' | 791 specified as a double quoted string immediately after the '<tt>include</tt>' |
792 keyword. Example:</p> | 792 keyword. Example:</p> |
793 | 793 |
794 <div class="doc_code"> | 794 <div class="doc_code"> |
795 <pre> | 795 <pre> |
796 <b>include</b> "foo.td" | 796 <b>include</b> "foo.td" |
797 </pre> | 797 </pre> |
798 </div> | 798 </div> |
799 | 799 |
| 800 <p>TableGen also supports '<tt>include_if</tt>', which only includes the |
| 801 specified file if TableGen was given a define (similar to pre-processor |
| 802 defines) via the commandline option '<tt>-D</tt>'. Example: |
| 803 |
| 804 <div class="doc_code"> |
| 805 <pre> |
| 806 <b>include_if</b> "TARGET_FOO" "foo.td" |
| 807 </pre> |
| 808 </div> |
| 809 |
800 </div> | 810 </div> |
801 | 811 |
802 <!-- --------------------------------------------------------------------------> | 812 <!-- --------------------------------------------------------------------------> |
803 <h4> | 813 <h4> |
804 <a name="globallet">'let' expressions</a> | 814 <a name="globallet">'let' expressions</a> |
805 </h4> | 815 </h4> |
806 | 816 |
807 <div> | 817 <div> |
808 | 818 |
809 <p>"Let" expressions at file scope are similar to <a href="#recordlet">"let" | 819 <p>"Let" expressions at file scope are similar to <a href="#recordlet">"let" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
909 <a href="http://validator.w3.org/check/referer"><img | 919 <a href="http://validator.w3.org/check/referer"><img |
910 src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a> | 920 src="http://www.w3.org/Icons/valid-html401-blue" alt="Valid HTML 4.01"></a> |
911 | 921 |
912 <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> | 922 <a href="mailto:sabre@nondot.org">Chris Lattner</a><br> |
913 <a href="http://llvm.org/">LLVM Compiler Infrastructure</a><br> | 923 <a href="http://llvm.org/">LLVM Compiler Infrastructure</a><br> |
914 Last modified: $Date$ | 924 Last modified: $Date$ |
915 </address> | 925 </address> |
916 | 926 |
917 </body> | 927 </body> |
918 </html> | 928 </html> |
OLD | NEW |