From fddb7667ca4d8fe83f96b388295849281ddaa5b4 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Mon, 5 Apr 2010 03:10:20 +0000 Subject: Replace TSFlagsFields and TSFlagsShifts with a simpler TSFlags field. When a target instruction wants to set target-specific flags, it should simply set bits in the TSFlags bit vector defined in the Instruction TableGen class. This works well because TableGen resolves member references late: class I : Instruction { AddrMode AM = AddrModeNone; let TSFlags{3-0} = AM.Value; } let AM = AddrMode4 in def ADD : I; TSFlags gets the expected bits from AddrMode4 in this example. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100384 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/Record.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'utils/TableGen/Record.h') diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h index 41373c799a..55c1a80f9b 100644 --- a/utils/TableGen/Record.h +++ b/utils/TableGen/Record.h @@ -1262,9 +1262,6 @@ public: return 0; } - // Like getValue, but allow dotting into members: X.Y - RecordVal *getDottedValue(StringRef Name); - void addTemplateArg(StringRef Name) { assert(!isTemplateArg(Name) && "Template arg already defined!"); TemplateArgs.push_back(Name); -- cgit v1.2.3