comparison docs/TableGen/LangIntro.rst @ 95:afa8332a0e37

LLVM 3.8
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2015 17:48:58 +0900
parents 54457678186b
children 1172e4bd9c6f
comparison
equal deleted inserted replaced
84:f3e34b893a5f 95:afa8332a0e37
5 .. contents:: 5 .. contents::
6 :local: 6 :local:
7 7
8 .. warning:: 8 .. warning::
9 This document is extremely rough. If you find something lacking, please 9 This document is extremely rough. If you find something lacking, please
10 fix it, file a documentation bug, or ask about it on llvmdev. 10 fix it, file a documentation bug, or ask about it on llvm-dev.
11 11
12 Introduction 12 Introduction
13 ============ 13 ============
14 14
15 This document is not meant to be a normative spec about the TableGen language 15 This document is not meant to be a normative spec about the TableGen language
188 ``!subst(a, b, c)`` 188 ``!subst(a, b, c)``
189 If 'a' and 'b' are of string type or are symbol references, substitute 'b' 189 If 'a' and 'b' are of string type or are symbol references, substitute 'b'
190 for 'a' in 'c.' This operation is analogous to $(subst) in GNU make. 190 for 'a' in 'c.' This operation is analogous to $(subst) in GNU make.
191 191
192 ``!foreach(a, b, c)`` 192 ``!foreach(a, b, c)``
193 For each member 'b' of dag or list 'a' apply operator 'c.' 'b' is a dummy 193 For each member of dag or list 'b' apply operator 'c.' 'a' is a dummy
194 variable that should be declared as a member variable of an instantiated 194 variable that should be declared as a member variable of an instantiated
195 class. This operation is analogous to $(foreach) in GNU make. 195 class. This operation is analogous to $(foreach) in GNU make.
196 196
197 ``!head(a)`` 197 ``!head(a)``
198 The first element of list 'a.' 198 The first element of list 'a.'