From 548f5a0b751aafba88473e4863c2baf7741b56a5 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Mon, 13 Dec 2010 01:46:19 +0000 Subject: Add support for using the `!if' operator when initializing variables: class A 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 --- utils/TableGen/Record.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils/TableGen/Record.h') diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 0853037..f8873cf 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -931,6 +931,8 @@ public: // possible to fold. Init *Fold(Record *CurRec, MultiClass *CurMultiClass); + virtual bool isComplete() const { return false; } + virtual Init *resolveReferences(Record &R, const RecordVal *RV); virtual std::string getAsString() const; -- cgit v1.1