summaryrefslogtreecommitdiff
path: root/utils/TableGen/Record.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-19 01:11:03 +0000
committerChris Lattner <sabre@nondot.org>2005-04-19 01:11:03 +0000
commitb9266f880a1978e60a0457743d873dd03c3f2034 (patch)
treec6c667f3d27721dfa5c2b4adb2fbc49f78224309 /utils/TableGen/Record.h
parent1cbf3abbb8c716721b502da6d5ff75a9755b525a (diff)
downloadllvm-b9266f880a1978e60a0457743d873dd03c3f2034.tar.gz
llvm-b9266f880a1978e60a0457743d873dd03c3f2034.tar.bz2
llvm-b9266f880a1978e60a0457743d873dd03c3f2034.tar.xz
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
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r--utils/TableGen/Record.h5
1 files changed, 5 insertions, 0 deletions
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.