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 | |
parent | b61c26e6140caa8ba4d2e2329dcbdb18333f47a6 (diff) | |
download | bcm5719-llvm-aa9ca691cde9d650ec92049ca851a311baf6d15c.tar.gz bcm5719-llvm-aa9ca691cde9d650ec92049ca851a311baf6d15c.zip |
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')
-rw-r--r-- | llvm/docs/TableGen/LangIntro.rst | 7 | ||||
-rw-r--r-- | llvm/docs/TableGen/LangRef.rst | 3 |
2 files changed, 9 insertions, 1 deletions
diff --git a/llvm/docs/TableGen/LangIntro.rst b/llvm/docs/TableGen/LangIntro.rst index 75bce2b5216..c66c9daa0f0 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]. diff --git a/llvm/docs/TableGen/LangRef.rst b/llvm/docs/TableGen/LangRef.rst index 595505001d5..534cac25d02 100644 --- a/llvm/docs/TableGen/LangRef.rst +++ b/llvm/docs/TableGen/LangRef.rst @@ -99,7 +99,8 @@ wide variety of meanings: :!add !shl !sra !srl !and :!or !empty !subst !foreach !strconcat :!cast !listconcat !size !foldl - :!isa !dag + :!isa !dag !le !lt !ge + :!gt !ne Syntax |