llvmc: Make 'true' and 'false' instances of a 'Bool' class.

llvm-svn: 130915
This commit is contained in:
Mikhail Glushenkov 2011-05-05 04:25:03 +00:00
parent 67ebd94a5d
commit fdc5d84ba3
1 changed files with 5 additions and 2 deletions

View File

@ -56,8 +56,11 @@ def forward_not_split;
def case;
// Boolean constants.
def true;
def false;
class Bool<bit val> {
bit Value = val;
}
def true : Bool<1>;
def false : Bool<0>;
// Boolean operators.
def and;