Lines Matching defs:sourceBits
38 /// `srcIdx` is an index into a 1-D array with each element having `sourceBits`.
44 /// `sourceBits` equals to 8 and `targetBits` equals to 32, the x-th element is
47 static Value getOffsetForBitwidth(Location loc, Value srcIdx, int sourceBits,
49 assert(targetBits % sourceBits == 0);
51 IntegerAttr idxAttr = builder.getIntegerAttr(type, targetBits / sourceBits);
53 IntegerAttr srcBitsAttr = builder.getIntegerAttr(type, sourceBits);
61 /// extension/capabilities, certain integer bitwidths `sourceBits` might not be
70 spirv::AccessChainOp op, int sourceBits,
72 assert(targetBits % sourceBits == 0);
76 IntegerAttr attr = builder.getIntegerAttr(type, targetBits / sourceBits);