| /llvm-project-15.0.7/mlir/lib/CAPI/IR/ |
| H A D | BuiltinAttributes.cpp | 71 attributes.reserve(numElements); in mlirDictionaryAttrGet() 72 for (intptr_t i = 0; i < numElements; ++i) in mlirDictionaryAttrGet() 335 intptr_t numElements, in mlirDenseElementsAttrGet() argument 418 intptr_t numElements, in getDenseAttribute() argument 428 return getDenseAttribute(shapedType, numElements, elements); in mlirDenseElementsAttrUInt8Get() 433 return getDenseAttribute(shapedType, numElements, elements); in mlirDenseElementsAttrInt8Get() 438 return getDenseAttribute(shapedType, numElements, elements); in mlirDenseElementsAttrUInt16Get() 478 size_t bufferSize = numElements * 2; in mlirDenseElementsAttrBFloat16Get() 485 size_t bufferSize = numElements * 2; in mlirDenseElementsAttrFloat16Get() 494 values.reserve(numElements); in mlirDenseElementsAttrStringGet() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir-c/ |
| H A D | BuiltinAttributes.h | 52 MlirContext ctx, intptr_t numElements, MlirAttribute const *elements); 361 MlirType shapedType, intptr_t numElements, const int *elements); 363 MlirType shapedType, intptr_t numElements, const uint8_t *elements); 365 MlirType shapedType, intptr_t numElements, const int8_t *elements); 367 MlirType shapedType, intptr_t numElements, const uint16_t *elements); 369 MlirType shapedType, intptr_t numElements, const int16_t *elements); 373 MlirType shapedType, intptr_t numElements, const int32_t *elements); 377 MlirType shapedType, intptr_t numElements, const int64_t *elements); 379 MlirType shapedType, intptr_t numElements, const float *elements); 381 MlirType shapedType, intptr_t numElements, const double *elements); [all …]
|
| /llvm-project-15.0.7/flang/runtime/ |
| H A D | descriptor-io.h | 48 std::size_t numElements{descriptor.Elements()}; in FormattedIntegerIO() 53 for (std::size_t j{0}; j < numElements; ++j) { in FormattedIntegerIO() 81 std::size_t numElements{descriptor.Elements()}; in FormattedRealIO() 86 for (std::size_t j{0}; j < numElements; ++j) { in FormattedRealIO() 114 std::size_t numElements{descriptor.Elements()}; in FormattedComplexIO() 121 for (std::size_t j{0}; j < numElements; ++j) { in FormattedComplexIO() 162 std::size_t numElements{descriptor.Elements()}; in FormattedCharacterIO() 168 for (std::size_t j{0}; j < numElements; ++j) { in FormattedCharacterIO() 208 for (std::size_t j{0}; j < numElements; ++j) { in FormattedLogicalIO() 294 for (std::size_t j{0}; j < numElements; in FormattedDerivedTypeIO() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/ |
| H A D | LLVMTypes.cpp | 46 Type elementType, unsigned numElements) { in getChecked() argument 49 numElements); in getChecked() 55 return getImpl()->numElements; in getNumElements() 60 Type elementType, unsigned numElements) { in verify() argument 651 if (numElements == 0) in verifyVectorConstructionInvariants() 671 numElements); in getChecked() 679 return getImpl()->numElements; in getNumElements() 690 emitError, elementType, numElements); in verify() 727 return getImpl()->numElements; in getMinNumElements() 741 emitError, elementType, numElements); in verify() [all …]
|
| H A D | TypeDetail.h | 418 : elementType(std::get<0>(key)), numElements(std::get<1>(key)) {} in LLVMTypeAndSizeStorage() 427 return std::make_tuple(elementType, numElements) == key; 431 unsigned numElements; member
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Utils/ |
| H A D | LayoutUtils.cpp | 104 const auto numElements = vectorType.getNumElements(); in decorateType() local 115 size = elementSize * numElements; in decorateType() 116 alignment = numElements == 2 ? elementAlignment * 2 : elementAlignment * 4; in decorateType() 117 return VectorType::get(numElements, memberType); in decorateType() 123 const auto numElements = arrayType.getNumElements(); in decorateType() local 132 size = elementSize * numElements; in decorateType() 134 return spirv::ArrayType::get(memberType, numElements, elementSize); in decorateType()
|
| /llvm-project-15.0.7/mlir/include/mlir/IR/ |
| H A D | Threading.h | 38 unsigned numElements = static_cast<unsigned>(std::distance(begin, end)); in failableParallelForEach() local 39 if (numElements == 0) in failableParallelForEach() 44 if (!context->isMultithreadingEnabled() || numElements <= 1) { in failableParallelForEach() 59 if (index >= numElements) in failableParallelForEach() 71 size_t numActions = std::min(numElements, threadPool.getThreadCount()); in failableParallelForEach()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/LLVMIR/ |
| H A D | LLVMTypes.h | 89 static LLVMArrayType get(Type elementType, unsigned numElements); 91 Type elementType, unsigned numElements); 101 Type elementType, unsigned numElements); 405 static LLVMFixedVectorType get(Type elementType, unsigned numElements); 408 unsigned numElements); 423 Type elementType, unsigned numElements); 521 Type getVectorType(Type elementType, unsigned numElements, 526 Type getFixedVectorType(Type elementType, unsigned numElements); 530 Type getScalableVectorType(Type elementType, unsigned numElements);
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | AttributeDetail.h | 113 size_t numElements = ty.getNumElements(); in getKey() local 114 assert(numElements != 1 && "splat of 1 element should already be detected"); in getKey() 118 return getKeyForBoolData(ty, data, numElements); in getKey() 123 assert(((data.size() / storageSize) == numElements) && in getKey() 142 size_t numElements) { in getKeyForBoolData() 155 size_t numOddElements = numElements % CHAR_BIT; in getKeyForBoolData()
|
| H A D | TypeDetail.h | 104 TupleTypeStorage(unsigned numTypes) : numElements(numTypes) {} in TupleTypeStorage() 123 unsigned size() const { return numElements; } in size() 131 unsigned numElements; member
|
| H A D | BuiltinAttributes.cpp | 1107 int64_t numElements = type.getNumElements(); in isValidRawBuffer() local 1110 detectedSplat = numElements == 1; in isValidRawBuffer() 1409 int64_t numElements = data.size() / dataEltSize; in getRawComplex() local 1410 (void)numElements; in getRawComplex() 1411 assert(numElements == 1 || numElements == type.getNumElements()); in getRawComplex() 1425 int64_t numElements = data.size() / dataEltSize; in getRawIntOrFloat() local 1426 assert(numElements == 1 || numElements == type.getNumElements()); in getRawIntOrFloat() 1427 (void)numElements; in getRawIntOrFloat() 1433 size_t numElements) { in convertEndianOfCharForBEmachine() argument 1477 size_t numElements = type.getNumElements(); in convertEndianOfArrayRefForBEmachine() local [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/ |
| H A D | RewriteInsertsPass.cpp | 83 auto numElements = in collectInsertionChain() local 88 if (index + 1 != numElements) in collectInsertionChain() 91 insertions.resize(numElements); in collectInsertionChain()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 719 numElements = in EmitCXXNewAllocSize() 721 if (!numElements) in EmitCXXNewAllocSize() 836 numElements = CGF.Builder.CreateTrunc(numElements, CGF.SizeTy); in EmitCXXNewAllocSize() 841 numElements = CGF.Builder.CreateSExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize() 854 numElements = CGF.Builder.CreateZExt(numElements, CGF.SizeTy); in EmitCXXNewAllocSize() 874 size = numElements; in EmitCXXNewAllocSize() 906 numElements = size; in EmitCXXNewAllocSize() 912 numElements = CGF.Builder.CreateMul(numElements, asmV); in EmitCXXNewAllocSize() 1571 llvm::Value *numElements = nullptr; in EmitCXXNewExpr() local 1736 SkippedChecks, numElements); in EmitCXXNewExpr() [all …]
|
| H A D | CGCXXABI.cpp | 250 llvm::Value *&numElements, in ReadArrayCookie() argument 258 numElements = nullptr; in ReadArrayCookie() 267 numElements = readArrayCookieImpl(CGF, allocAddr, cookieSize); in ReadArrayCookie()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/ |
| H A D | TosaFoldConstantTranspose.cpp | 50 int64_t numElements = inputType.getNumElements(); in matchAndRewrite() local 53 outputValues.resize(numElements); in matchAndRewrite() 60 for (int srcLinearIndex = 0; srcLinearIndex < numElements; in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/ |
| H A D | ConstantFold.cpp | 134 int64_t numElements = outputType.getNumElements(); in matchAndRewrite() local 142 fpOutputValues.resize(numElements, APFloat(0.f)); in matchAndRewrite() 144 intOutputValues.resize(numElements); in matchAndRewrite() 219 for (int linearIndex = 0; linearIndex < numElements; ++linearIndex) { in matchAndRewrite() 240 for (int linearIndex = 0; linearIndex < numElements; ++linearIndex) { in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/CAPI/Dialect/ |
| H A D | LLVM.cpp | 27 MlirType mlirLLVMArrayTypeGet(MlirType elementType, unsigned numElements) { in mlirLLVMArrayTypeGet() argument 28 return wrap(LLVMArrayType::get(unwrap(elementType), numElements)); in mlirLLVMArrayTypeGet()
|
| /llvm-project-15.0.7/llvm/unittests/Support/ |
| H A D | IndexedAccessorTest.cpp | 21 ArrayIndexedAccessorRange(T *data, ptrdiff_t start, ptrdiff_t numElements) in ArrayIndexedAccessorRange() 23 data, start, numElements) {} in ArrayIndexedAccessorRange()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/ |
| H A D | Pattern.cpp | 191 Value numElements = in getNumElements() local 194 numElements = rewriter.create<LLVM::MulOp>(loc, numElements, shape[i]); in getNumElements() 195 return numElements; in getNumElements()
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | ViewLikeInterface.cpp | 21 Operation *op, StringRef name, unsigned numElements, ArrayAttr attr, in verifyListOfOperandsOrIntegers() argument 24 if (attr.size() != numElements) in verifyListOfOperandsOrIntegers() 26 << numElements << " " << name << " values"; in verifyListOfOperandsOrIntegers()
|
| H A D | DataLayoutInterfaces.cpp | 510 unsigned numElements = elements.size(); in verifyDataLayoutSpec() local 511 if (numElements < 1 || numElements > 2) { in verifyDataLayoutSpec() 518 int32_t preferred = numElements == 2 ? elements[1] : abi; in verifyDataLayoutSpec()
|
| /llvm-project-15.0.7/mlir/include/mlir-c/Dialect/ |
| H A D | LLVM.h | 30 unsigned numElements);
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/ |
| H A D | GPUOpsLowering.cpp | 29 uint64_t numElements = type.getNumElements(); in matchAndRewrite() local 33 auto arrayType = LLVM::LLVMArrayType::get(elementType, numElements); in matchAndRewrite() 126 Value numElements = rewriter.create<LLVM::ConstantOp>( in matchAndRewrite() local 130 gpuFuncOp.getLoc(), ptrType, numElements, /*alignment=*/0); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | ConvertFromLLVMIR.cpp | 292 auto numElements = LLVM::getVectorNumElements(type); in getStdTypeForAttr() local 293 if (numElements.isScalable()) { in getStdTypeForAttr() 300 return VectorType::get(numElements.getKnownMinValue(), elementType); in getStdTypeForAttr() 316 auto numElements = LLVM::getVectorNumElements(arrayType.getElementType()); in getStdTypeForAttr() local 317 if (numElements.isScalable()) { in getStdTypeForAttr() 321 shape.push_back(numElements.getKnownMinValue()); in getStdTypeForAttr() 515 unsigned numElements = c->getNumOperands(); in processConstant() local 523 numElements = caz->getElementCount().getFixedValue(); in processConstant() 540 for (unsigned i = 0; i < numElements; ++i) { in processConstant()
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/Test/ |
| H A D | TestDialect.h | 68 static TestExternalElementsData allocate(size_t numElements);
|