From b9266f880a1978e60a0457743d873dd03c3f2034 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 19 Apr 2005 01:11:03 +0000 Subject: Add initial lexer and parser support for shifting values. Every use of this will lead to it being rejected though. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21335 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/Record.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'utils/TableGen/Record.h') diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index e2b9c0e6ef..9c5166c0cc 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -463,6 +463,11 @@ struct Init { virtual Init *getFieldInit(Record &R, const std::string &FieldName) const { return 0; } + + enum BinaryOp { SHL, SRA, SRL }; + virtual Init *getBinaryOp(BinaryOp Op, Init *RHS) { + return 0; + } /// resolveReferences - This method is used by classes that refer to other /// variables which may not be defined at the time they expression is formed. -- cgit v1.2.3