Lines Matching defs:type
73 ResultType type;
77 InstResult() : type(ResultType::Invalid) { }
80 explicit InstResult(T i, const ResultType& t) : type(t) {
83 "Parameter type is neither integral nor fp, or it is both");
92 : type(t) { result.vector = v; }
95 : type(t) { result.pred = v; }
98 type = that.type;
99 switch (type) {
118 panic("Assigning result from unknown result type");
128 if (this->type != that.type)
130 switch (type) {
142 panic("Unknown type of result: %d\n", (int)type);
153 bool isScalar() const { return type == ResultType::Scalar; }
155 bool isVector() const { return type == ResultType::VecReg; }
157 bool isVecElem() const { return type == ResultType::VecElem; }
159 bool isPred() const { return type == ResultType::VecPredReg; }
161 bool isValid() const { return type != ResultType::Invalid; }
173 /** Cast to integer without checking type.