summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriterStmt.cpp
diff options
context:
space:
mode:
authorJaved Absar <javed.absar@arm.com>2019-01-25 10:25:25 +0000
committerJaved Absar <javed.absar@arm.com>2019-01-25 10:25:25 +0000
commita3e3d8528644b3e432538853804553c62fea7722 (patch)
tree797687c37a0bb0af848b5346f88d14cce00164c9 /clang/lib/Serialization/ASTWriterStmt.cpp
parent7a35bdb7ec6958429bebd42f3ce40f19cdc9fbd8 (diff)
downloadbcm5719-llvm-a3e3d8528644b3e432538853804553c62fea7722.tar.gz
bcm5719-llvm-a3e3d8528644b3e432538853804553c62fea7722.zip
[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
Diffstat (limited to 'clang/lib/Serialization/ASTWriterStmt.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud