summaryrefslogtreecommitdiff
path: root/utils/TableGen/Record.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-07-29 19:07:00 +0000
committerDavid Greene <greened@obbligato.org>2011-07-29 19:07:00 +0000
commitca7fd3de360b266783438666054dba198ff77ba2 (patch)
tree67f31036b24d51e2a07330f61a01381288e76e4c /utils/TableGen/Record.h
parentc45a2cacd09f88b8b715fd89f5bf6c2347b2cce9 (diff)
downloadllvm-ca7fd3de360b266783438666054dba198ff77ba2.tar.gz
llvm-ca7fd3de360b266783438666054dba198ff77ba2.tar.bz2
llvm-ca7fd3de360b266783438666054dba198ff77ba2.tar.xz
[AVX] Remove Mutating Members from Inits
Get rid of all Init members that modify internal state. This is in preparation for making references to Inits const. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136483 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/Record.h')
-rw-r--r--utils/TableGen/Record.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h
index b90a50c222..39d3668cd6 100644
--- a/utils/TableGen/Record.h
+++ b/utils/TableGen/Record.h
@@ -625,6 +625,7 @@ class BitsInit : public Init {
std::vector<Init*> Bits;
public:
explicit BitsInit(unsigned Size) : Bits(Size) {}
+ BitsInit(ArrayRef<Init *> Range) : Bits(Range.begin(), Range.end()) {}
unsigned getNumBits() const { return Bits.size(); }
@@ -632,11 +633,6 @@ public:
assert(Bit < Bits.size() && "Bit index out of range!");
return Bits[Bit];
}
- void setBit(unsigned Bit, Init *V) {
- assert(Bit < Bits.size() && "Bit index out of range!");
- assert(Bits[Bit] == 0 && "Bit already set!");
- Bits[Bit] = V;
- }
virtual Init *convertInitializerTo(RecTy *Ty) {
return Ty->convertValue(this);
@@ -1177,11 +1173,6 @@ public:
return ArgNames[Num];
}
- void setArg(unsigned Num, Init *I) {
- assert(Num < Args.size() && "Arg number out of range!");
- Args[Num] = I;
- }
-
virtual Init *resolveReferences(Record &R, const RecordVal *RV);
virtual std::string getAsString() const;