llvm.org GIT mirror llvm / b9f3466
Document !and. Fix !shl and friends -- they provide binary operations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217034 91177308-0d34-0410-b5e6-96231b3b80d8 Joerg Sonnenberger 5 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
210210 on string, int and bit objects. Use !cast to compare other types of
211211 objects.
212212
213 ``!shl(a,b)`` ``!srl(a,b)`` ``!sra(a,b)`` ``!add(a,b)``
214 The usual logical and arithmetic operators.
213 ``!shl(a,b)`` ``!srl(a,b)`` ``!sra(a,b)`` ``!add(a,b)`` ``!and(a,b)``
214 The usual binary and arithmetic operators.
215215
216216 Note that all of the values have rules specifying how they convert to values
217217 for different types. These rules allow you to assign a value like "``7``"
9595 .. productionlist::
9696 BangOperator: one of
9797 :!eq !if !head !tail !con
98 :!add !shl !sra !srl
98 :!add !shl !sra !srl !and
9999 :!cast !empty !subst !foreach !listconcat !strconcat
100100
101101 Syntax