| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | BuiltinAttributes.cpp | 525 size_t bitWidth = value.getBitWidth(); in writeBits() local 528 if (bitWidth == 1) in writeBits() 544 llvm::divideCeil(bitWidth, CHAR_BIT), in writeBits() 553 if (bitWidth == 1) in readBits() 558 APInt result(bitWidth, 0); in readBits() 570 llvm::divideCeil(bitWidth, CHAR_BIT), in readBits() 660 bitWidth); in operator *() 680 return {readBits(getData(), offset, bitWidth), in operator *() 990 size_t bitWidth = getDenseElementBitWidth(eltType); in get() local 1007 assert(intVal.getBitWidth() == bitWidth && in get() [all …]
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | BitmaskEnum.h | 97 constexpr unsigned bitWidth(uint64_t Value) { 98 return Value ? 1 + bitWidth(Value >> 1) : 0; 147 constexpr unsigned BitWidth = BitmaskEnumDetail::bitWidth(uint64_t{
|
| /llvm-project-15.0.7/clang/lib/AST/Interp/ |
| H A D | Interp.h | 137 const unsigned Bits = RHS.bitWidth() + 1; in Add() 145 const unsigned Bits = RHS.bitWidth() + 1; in Sub() 153 const unsigned Bits = RHS.bitWidth() * 2; in Mul() 746 const unsigned Bits = Offset.bitWidth(); in OffsetHelper() 864 if (RHS >= V.bitWidth()) { in ShiftRight() 865 S.Stk.push<T>(T::from(0, V.bitWidth())); in ShiftRight() 887 if (V.bitWidth() == 1) { in ShiftLeft() 889 } else if (RHS >= V.bitWidth()) { in ShiftLeft() 890 S.Stk.push<T>(T::from(0, V.bitWidth())); in ShiftLeft() 901 const unsigned Bits = LHS.bitWidth(); in Shr() [all …]
|
| H A D | Integral.h | 121 constexpr static unsigned bitWidth() { return Bits; } 125 bool isMin() const { return *this == min(bitWidth()); } 187 return add(A, Integral(T(1)), A.bitWidth(), R); 191 return sub(A, Integral(T(1)), A.bitWidth(), R);
|
| H A D | Boolean.h | 63 constexpr static unsigned bitWidth() { return true; } in bitWidth() function
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Utils/ |
| H A D | LayoutUtils.cpp | 153 auto bitWidth = scalarType.getIntOrFloatBitWidth(); in getScalarTypeAlignment() local 154 if (bitWidth == 1) in getScalarTypeAlignment() 156 return bitWidth / 8; in getScalarTypeAlignment()
|
| /llvm-project-15.0.7/clang/include/clang/AST/ |
| H A D | AbstractBasicReader.h | 172 unsigned bitWidth = asImpl().readUInt32(); in readAPInt() local 173 unsigned numWords = llvm::APInt::getNumWords(bitWidth); in readAPInt() 177 return llvm::APInt(bitWidth, numWords, &data[0]); in readAPInt()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/ |
| H A D | ArithmeticOps.cpp | 880 unsigned bitWidth; in fold() local 882 bitWidth = shapedType.getElementTypeBitWidth(); in fold() 884 bitWidth = resType.getIntOrFloatBitWidth(); in fold() 887 return a.zext(bitWidth); in fold() 909 unsigned bitWidth; in fold() local 911 bitWidth = shapedType.getElementTypeBitWidth(); in fold() 913 bitWidth = resType.getIntOrFloatBitWidth(); in fold() 916 return a.sext(bitWidth); in fold() 963 unsigned bitWidth; in fold() local 967 bitWidth = resType.getIntOrFloatBitWidth(); in fold() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/ |
| H A D | ExpandPatterns.cpp | 64 int bitWidth = elementTy.getIntOrFloatBitWidth(); in convertCtlzOp() local 68 loc, IntegerAttr::get(elementTy, bitWidth)); in convertCtlzOp()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/IR/ |
| H A D | SparseTensorDialect.cpp | 27 static bool acceptBitWidth(unsigned bitWidth) { in acceptBitWidth() argument 28 switch (bitWidth) { in acceptBitWidth()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/ |
| H A D | SPIRVConversion.cpp | 194 auto bitWidth = type.getIntOrFloatBitWidth(); in getTypeNumBytes() local 201 if (bitWidth == 1) in getTypeNumBytes() 203 return bitWidth / 8; in getTypeNumBytes()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVTypes.cpp | 635 auto bitWidth = getIntOrFloatBitWidth(); in getSizeInBytes() local 642 if (bitWidth == 1) in getSizeInBytes() 644 return bitWidth / 8; in getSizeInBytes()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/VectorToGPU/ |
| H A D | VectorToGPU.cpp | 615 int64_t bitWidth = vecTy.getElementType().getIntOrFloatBitWidth(); in convertTransferReadToLoads() local 621 (bitWidth != 16 || vecTy.getDimSize(1) < 8 || in convertTransferReadToLoads() 622 vecTy.getDimSize(0) * bitWidth < 128)) in convertTransferReadToLoads()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/ControlFlow/IR/ |
| H A D | ControlFlowOps.cpp | 513 unsigned bitWidth = flagType.getIntOrFloatBitWidth(); in parseSwitchOpCases() local 518 values.push_back(APInt(bitWidth, value)); in parseSwitchOpCases()
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | BuiltinAttributes.h | 298 size_t bitWidth; 318 size_t bitWidth;
|
| /llvm-project-15.0.7/llvm/utils/TableGen/ |
| H A D | DecoderEmitter.cpp | 2032 unsigned bitStart = bi++, bitWidth = 1; in populateInstruction() local 2047 ++bitWidth; in populateInstruction() 2114 OpInfo.addField(bitStart, bitWidth, 0); in populateInstruction()
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APFloat.cpp | 4893 unsigned bitWidth = result.getBitWidth(); in convertToInteger() local 4895 opStatus status = convertToInteger(parts, bitWidth, result.isSigned(), in convertToInteger() 4898 result = APInt(bitWidth, parts); in convertToInteger()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/ |
| H A D | LLVMDialect.cpp | 340 unsigned bitWidth = flagType.getIntOrFloatBitWidth(); in parseSwitchOpCases() local 349 values.push_back(APInt(bitWidth, value)); in parseSwitchOpCases()
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/ |
| H A D | ARMInstrThumb2.td | 2934 // will match the extended, not the original bitWidth for $src.
|