summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/TGParser.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2009-06-08 20:23:18 +0000
committerDavid Greene <greened@obbligato.org>2009-06-08 20:23:18 +0000
commit8618f95cafbda6b205625eb8cc8447ebf91f419d (patch)
tree3d3d7f84c91bfc4a2a5ee7513c6340c009faecca /llvm/utils/TableGen/TGParser.h
parent096e6eeb6800163edaefd15cd2763d29f9c14c2e (diff)
downloadbcm5719-llvm-8618f95cafbda6b205625eb8cc8447ebf91f419d.tar.gz
bcm5719-llvm-8618f95cafbda6b205625eb8cc8447ebf91f419d.zip
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. llvm-svn: 73078
Diffstat (limited to 'llvm/utils/TableGen/TGParser.h')
-rw-r--r--llvm/utils/TableGen/TGParser.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/TGParser.h b/llvm/utils/TableGen/TGParser.h
index f03052eb799..3af467d16ab 100644
--- a/llvm/utils/TableGen/TGParser.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud