Add support for using the `!if' operator when initializing variables:
authorBill Wendling <isanbard@gmail.com>
Mon, 13 Dec 2010 01:46:19 +0000 (01:46 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 13 Dec 2010 01:46:19 +0000 (01:46 +0000)
commit548f5a0b751aafba88473e4863c2baf7741b56a5
treea27b4776c6bc3c5ee1d938632121d9d6e2664e61
parentdcb54ce3da15ba41adeee020288e6c62cfae8c42
Add support for using the `!if' operator when initializing variables:

  class A<bit a, bits<3> x, bits<3> y> {
    bits<3> z;
    let z = !if(a, x, y);
  }

The variable z will get the value of x when 'a' is 1 and 'y' when a is '0'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121666 91177308-0d34-0410-b5e6-96231b3b80d8
test/TableGen/if.td
utils/TableGen/Record.cpp
utils/TableGen/Record.h
utils/TableGen/TGParser.cpp