diff options
author | David Greene <greened@obbligato.org> | 2009-06-08 20:23:18 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2009-06-08 20:23:18 +0000 |
commit | e1b469170bb3ab259fd488fb95c29efe802cdd6a (patch) | |
tree | b3c98585bc4d30950a3c48ba9c865c47792aec89 /utils/TableGen/TGParser.h | |
parent | 77c489dcae2d7906fae653e2d25e023004d1b9e4 (diff) | |
download | llvm-e1b469170bb3ab259fd488fb95c29efe802cdd6a.tar.gz llvm-e1b469170bb3ab259fd488fb95c29efe802cdd6a.tar.bz2 llvm-e1b469170bb3ab259fd488fb95c29efe802cdd6a.tar.xz |
Make IntInits and ListInits typed. This helps deduce types of !if and
other operators. For the rare cases where a list type cannot be
deduced, provide a []<type> syntax, where <type> is the list element
type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TGParser.h')
-rw-r--r-- | utils/TableGen/TGParser.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/TableGen/TGParser.h b/utils/TableGen/TGParser.h index f03052eb79..3af467d16a 100644 --- a/utils/TableGen/TGParser.h +++ b/utils/TableGen/TGParser.h @@ -93,9 +93,9 @@ private: // Parser methods. Init *ParseIDValue(Record *CurRec); Init *ParseIDValue(Record *CurRec, const std::string &Name, TGLoc NameLoc); - Init *ParseSimpleValue(Record *CurRec); - Init *ParseValue(Record *CurRec); - std::vector<Init*> ParseValueList(Record *CurRec); + Init *ParseSimpleValue(Record *CurRec, RecTy *ItemType = 0); + Init *ParseValue(Record *CurRec, RecTy *ItemType = 0); + std::vector<Init*> ParseValueList(Record *CurRec, Record *ArgsRec = 0, RecTy *EltTy = 0); std::vector<std::pair<llvm::Init*, std::string> > ParseDagArgList(Record *); bool ParseOptionalRangeList(std::vector<unsigned> &Ranges); bool ParseOptionalBitList(std::vector<unsigned> &Ranges); |