diff options
author | Nate Begeman <natebegeman@mac.com> | 2006-01-11 21:21:00 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2006-01-11 21:21:00 +0000 |
commit | 35ef913ec21de0f4f1b39c811b4335438717a9b8 (patch) | |
tree | de64c2b7d38a608eebb10fe434876c35470fefb0 /include/llvm | |
parent | a243db8c41bd8ace6e002c9e1fdcdc7256ebf677 (diff) | |
download | external_llvm-35ef913ec21de0f4f1b39c811b4335438717a9b8.zip external_llvm-35ef913ec21de0f4f1b39c811b4335438717a9b8.tar.gz external_llvm-35ef913ec21de0f4f1b39c811b4335438717a9b8.tar.bz2 |
Add bswap, rotl, and rotr nodes
Add dag combiner code to recognize rotl, rotr
Add ppc code to match rotl
Targets should add rotl/rotr patterns if they have them
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25222 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index eb48ce8..032f319 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -131,8 +131,10 @@ namespace ISD { // an unsigned/signed value of type i[2*n], then return the top part. MULHU, MULHS, - // Bitwise operators. - AND, OR, XOR, SHL, SRA, SRL, + // Bitwise operators - logical and, logical or, logical xor, shift left, + // shift right algebraic (shift in sign bits), shift right logical (shift in + // zeroes), rotate left, rotate right, and byteswap. + AND, OR, XOR, SHL, SRA, SRL, ROTL, ROTR, BSWAP, // Counting operators CTTZ, CTLZ, CTPOP, |