diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-12-13 01:46:19 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-12-13 01:46:19 +0000 |
commit | 548f5a0b751aafba88473e4863c2baf7741b56a5 (patch) | |
tree | a27b4776c6bc3c5ee1d938632121d9d6e2664e61 /test/TableGen/2003-08-03-PassCode.td | |
parent | dcb54ce3da15ba41adeee020288e6c62cfae8c42 (diff) | |
download | external_llvm-548f5a0b751aafba88473e4863c2baf7741b56a5.zip external_llvm-548f5a0b751aafba88473e4863c2baf7741b56a5.tar.gz external_llvm-548f5a0b751aafba88473e4863c2baf7741b56a5.tar.bz2 |
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
Diffstat (limited to 'test/TableGen/2003-08-03-PassCode.td')
0 files changed, 0 insertions, 0 deletions