diff options
author | Nicolai Haehnle <nhaehnle@gmail.com> | 2018-03-14 11:00:57 +0000 |
---|---|---|
committer | Nicolai Haehnle <nhaehnle@gmail.com> | 2018-03-14 11:00:57 +0000 |
commit | aa9ca691cde9d650ec92049ca851a311baf6d15c (patch) | |
tree | 49aa182b2f58d71b004fbf4014fe8ecfb7fcba57 /llvm/docs/TableGen/LangIntro.rst | |
parent | b61c26e6140caa8ba4d2e2329dcbdb18333f47a6 (diff) | |
download | llvm-aa9ca691cde9d650ec92049ca851a311baf6d15c.zip llvm-aa9ca691cde9d650ec92049ca851a311baf6d15c.tar.gz llvm-aa9ca691cde9d650ec92049ca851a311baf6d15c.tar.bz2 |
TableGen: Add !ne, !le, !lt, !ge, and !gt comparisons
Change-Id: I8e2ece677268972d578a787467f7ef52a1f33a71
Differential revision: https://reviews.llvm.org/D44114
llvm-svn: 327496
Diffstat (limited to 'llvm/docs/TableGen/LangIntro.rst')
-rw-r--r-- | llvm/docs/TableGen/LangIntro.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/docs/TableGen/LangIntro.rst b/llvm/docs/TableGen/LangIntro.rst index 75bce2b..c66c9da 100644 --- a/llvm/docs/TableGen/LangIntro.rst +++ b/llvm/docs/TableGen/LangIntro.rst @@ -267,6 +267,13 @@ supported include: on string, int and bit objects. Use !cast<string> to compare other types of objects. +``!ne(a,b)`` + The negation of ``!eq(a,b)``. + +``!le(a,b), !lt(a,b), !ge(a,b), !gt(a,b)`` + (Signed) comparison of integer values that returns bit 1 or 0 depending on + the result of the comparison. + ``!shl(a,b)`` ``!srl(a,b)`` ``!sra(a,b)`` The usual shift operators. Operations are on 64-bit integers, the result is undefined for shift counts outside [0, 63]. |