1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/docs/TableGen
Javed Absar 173ca6da08 [TblGen] Extend !if semantics through new feature !cond
This patch extends TableGen language with !cond operator.
Instead of embedding !if inside !if which can get cumbersome,
one can now use !cond.
Below is an example to convert an integer 'x' into a string:

    !cond(!lt(x,0) : "Negative",
          !eq(x,0) : "Zero",
          !eq(x,1) : "One,
          1        : "MoreThanOne")

Reviewed By: hfinkel, simon_tatham, greened
Differential Revision: https://reviews.llvm.org/D55758

llvm-svn: 352185
2019-01-25 10:25:25 +00:00
..
BackEnds.rst [TableGen] Add a general-purpose JSON backend. 2018-07-11 08:40:19 +00:00
Deficiencies.rst Re-factor TableGen docs 2014-03-20 16:08:34 +00:00
index.rst [TableGen] Add a general-purpose JSON backend. 2018-07-11 08:40:19 +00:00
LangIntro.rst [TblGen] Extend !if semantics through new feature !cond 2019-01-25 10:25:25 +00:00
LangRef.rst [TblGen] Extend !if semantics through new feature !cond 2019-01-25 10:25:25 +00:00