Lines Matching defs:width
282 Id Builder::makeIntegerType(int width, bool hasSign)
288 if (type->getImmediateOperand(0) == (unsigned)width &&
295 type->addImmediateOperand(width);
302 switch (width) {
316 auto const debugResultId = makeIntegerDebugType(width, hasSign);
323 Id Builder::makeFloatType(int width)
329 if (type->getImmediateOperand(0) == (unsigned)width)
335 type->addImmediateOperand(width);
341 switch (width) {
354 auto const debugResultId = makeFloatDebugType(width);
861 Id Builder::makeIntegerDebugType(int const width, bool const hasSign)
864 switch (width) {
876 type->getIdOperand(1) == static_cast<unsigned int>(width) &&
886 type->addIdOperand(makeUintConstant(width)); // size id
901 Id Builder::makeFloatDebugType(int const width)
904 switch (width) {
915 type->getIdOperand(1) == static_cast<unsigned int>(width) &&
925 type->addIdOperand(makeUintConstant(width)); // size id
1395 // of width 'width'. The 'width' is only consumed for int and float types.
1397 bool Builder::containsType(Id typeId, spv::Op typeOp, unsigned int width) const
1406 return typeClass == typeOp && instr.getImmediateOperand(0) == width;
1409 if (containsType(instr.getIdOperand(m), typeOp, width))
1419 return containsType(getContainedTypeId(typeId), typeOp, width);
1713 const int width = getScalarTypeWidth(type);
1717 switch (width) {