| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Utils/ |
| H A D | LayoutUtils.cpp | 90 if (auto arrayType = type.dyn_cast<spirv::ArrayType>()) in decorateType() local 91 return decorateType(arrayType, size, alignment); in decorateType() 94 if (auto arrayType = type.dyn_cast<spirv::RuntimeArrayType>()) { in decorateType() local 96 return decorateType(arrayType, alignment); in decorateType() 120 Type VulkanLayoutUtils::decorateType(spirv::ArrayType arrayType, in decorateType() argument 123 const auto numElements = arrayType.getNumElements(); in decorateType() 124 auto elementType = arrayType.getElementType(); in decorateType() 137 Type VulkanLayoutUtils::decorateType(spirv::RuntimeArrayType arrayType, in decorateType() argument 139 auto elementType = arrayType.getElementType(); in decorateType()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/NVGPUToNVVM/ |
| H A D | NVGPUToNVVM.cpp | 65 auto arrayType = resultType.dyn_cast<LLVM::LLVMArrayType>(); in convertIntrinsicResult() local 80 if (arrayType) { in convertIntrinsicResult() 85 if (arrayType.getElementType() == f16x2Ty || in convertIntrinsicResult() 86 arrayType.getElementType() == f32x1Ty) { in convertIntrinsicResult() 92 loc, arrayType.getElementType(), el); in convertIntrinsicResult() 101 if (arrayType.getElementType() == i32x2Ty || in convertIntrinsicResult() 102 arrayType.getElementType() == f64x2Ty || in convertIntrinsicResult() 103 arrayType.getElementType() == f32x2Ty) { in convertIntrinsicResult() 107 rewriter.create<LLVM::UndefOp>(loc, arrayType.getElementType()); in convertIntrinsicResult() 123 Value result = rewriter.create<LLVM::UndefOp>(loc, arrayType); in convertIntrinsicResult() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/Utils/ |
| H A D | LayoutUtils.h | 68 static Type decorateType(spirv::ArrayType arrayType, Size &size, 70 static Type decorateType(spirv::RuntimeArrayType arrayType, Size &alignment);
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/ |
| H A D | SizeofExpressionCheck.cpp | 139 ignoringParenImpCasts(hasType(hasCanonicalType(arrayType()))); in registerMatchers() 145 hasType(hasCanonicalType(pointerType(pointee(arrayType()))))); in registerMatchers() 156 hasType(hasCanonicalType(arrayType(hasElementType(pointerType())) in registerMatchers() 160 arrayType(equalsBoundNode("type-of-array-of-pointers"))))); in registerMatchers() 204 arrayType(hasElementType(recordType().bind("elem-type"))); in registerMatchers()
|
| H A D | UnhandledSelfAssignmentCheck.cpp | 89 hasType(arrayType()))))))); in registerMatchers()
|
| H A D | SuspiciousMemsetUsageCheck.cpp | 40 hasType(arrayType(hasElementType(isAnyCharacter()))))))), in registerMatchers()
|
| H A D | DanglingHandleCheck.cpp | 159 anyOf(hasType(arrayType()), in registerMatchersForReturn()
|
| H A D | StringConstructorCheck.cpp | 67 const auto CharPtrType = type(anyOf(pointerType(), arrayType())); in registerMatchers()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/ |
| H A D | SPIRVConversion.cpp | 411 auto arrayType = spirv::RuntimeArrayType::get(arrayElemType, stride); in convertBoolMemrefType() local 412 return wrapInStructAndGetPointer(arrayType, *storageClass); in convertBoolMemrefType() 418 auto arrayType = spirv::ArrayType::get(arrayElemType, arrayElemCount, stride); in convertBoolMemrefType() local 420 return wrapInStructAndGetPointer(arrayType, *storageClass); in convertBoolMemrefType() 467 auto arrayType = spirv::RuntimeArrayType::get(arrayElemType, stride); in convertMemrefType() local 468 return wrapInStructAndGetPointer(arrayType, *storageClass); in convertMemrefType() 480 auto arrayType = spirv::ArrayType::get(arrayElemType, arrayElemCount, stride); in convertMemrefType() local 482 return wrapInStructAndGetPointer(arrayType, *storageClass); in convertMemrefType() 687 auto arrayType = spirv::ArrayType::get(indexType, elementCount, in getPushConstantStorageType() local 689 auto structType = spirv::StructType::get({arrayType}, /*offsetInfo=*/0); in getPushConstantStorageType()
|
| /llvm-project-15.0.7/flang/test/Semantics/ |
| H A D | resolve89.f90 | 67 type arrayType type 88 end type arrayType
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CodeGenFunction.cpp | 2054 const ArrayType *arrayType = origArrayType; in emitArrayLength() local 2059 if (isa<VariableArrayType>(arrayType)) { in emitArrayLength() 2069 if (!arrayType) { in emitArrayLength() 2073 } while (isa<VariableArrayType>(arrayType)); in emitArrayLength() 2094 assert(isa<ConstantArrayType>(arrayType)); in emitArrayLength() 2100 eltType = arrayType->getElementType(); in emitArrayLength() 2104 arrayType = getContext().getAsArrayType(arrayType->getElementType()); in emitArrayLength() 2105 assert((!llvmArrayType || arrayType) && in emitArrayLength() 2109 if (arrayType) { in emitArrayLength() 2113 while (arrayType) { in emitArrayLength() [all …]
|
| H A D | SwiftCallingConv.cpp | 75 auto arrayType = CGM.getContext().getAsConstantArrayType(type); in addTypedData() local 76 if (!arrayType) return; in addTypedData() 78 QualType eltType = arrayType->getElementType(); in addTypedData() 80 for (uint64_t i = 0, e = arrayType->getSize().getZExtValue(); i != e; ++i) { in addTypedData()
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | ConvertFromLLVMIR.cpp | 304 if (auto arrayType = type.dyn_cast<LLVMArrayType>()) { in getStdTypeForAttr() local 307 shape.push_back(arrayType.getNumElements()); in getStdTypeForAttr() 308 while (arrayType.getElementType().isa<LLVMArrayType>()) { in getStdTypeForAttr() 309 arrayType = arrayType.getElementType().cast<LLVMArrayType>(); in getStdTypeForAttr() 310 shape.push_back(arrayType.getNumElements()); in getStdTypeForAttr() 315 if (LLVM::isCompatibleVectorType(arrayType.getElementType())) { in getStdTypeForAttr() 316 auto numElements = LLVM::getVectorNumElements(arrayType.getElementType()); in getStdTypeForAttr() 324 LLVM::getVectorElementType(arrayType.getElementType())); in getStdTypeForAttr() 331 Type elementType = getStdTypeForAttr(arrayType.getElementType()); in getStdTypeForAttr()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | AvoidCArraysCheck.cpp | 47 typeLoc(hasValidBeginLoc(), hasType(arrayType()), in registerMatchers()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/MemRefToSPIRV/ |
| H A D | MemRefToSPIRV.cpp | 342 if (auto arrayType = structElemType.dyn_cast<spirv::ArrayType>()) in matchAndRewrite() local 343 dstType = arrayType.getElementType(); in matchAndRewrite() 457 if (auto arrayType = structElemType.dyn_cast<spirv::ArrayType>()) in matchAndRewrite() local 458 dstType = arrayType.getElementType(); in matchAndRewrite()
|
| /llvm-project-15.0.7/clang/test/CodeGen/ |
| H A D | xcore-stringtype.c | 95 RetType* arrayType(int A1[], int const volatile A2[2], int A3[][2], in arrayType() function
|
| /llvm-project-15.0.7/flang/unittests/Optimizer/Builder/ |
| H A D | FIRBuilderTest.cpp | 457 auto makeExv = [&](mlir::Type elementType, mlir::Type arrayType) in TEST_F() 460 auto ptrTyArray = fir::PointerType::get(arrayType); in TEST_F() 466 auto boxTyArray = fir::BoxType::get(arrayType); in TEST_F() 485 arrayType.dyn_cast<fir::SequenceType>().getDimension(), in TEST_F()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/ |
| H A D | LLVMDialect.cpp | 1436 if (auto arrayType = llvmType.dyn_cast<LLVMArrayType>()) { in getInsertExtractValueElementType() local 1438 static_cast<unsigned>(position) >= arrayType.getNumElements()) in getInsertExtractValueElementType() 1441 llvmType = arrayType.getElementType(); in getInsertExtractValueElementType() 1479 if (auto arrayType = llvmType.dyn_cast<LLVMArrayType>()) { in getInsertExtractValueElementType() local 1481 static_cast<unsigned>(position) >= arrayType.getNumElements()) { in getInsertExtractValueElementType() 1485 llvmType = arrayType.getElementType(); in getInsertExtractValueElementType() 1951 auto arrayType = LLVM::LLVMArrayType::get(IntegerType::get(context, 8), in parse() local 1953 types.push_back(arrayType); in parse() 2392 auto arrayType = getType().dyn_cast<LLVMArrayType>(); in verify() local 2393 if (!arrayType || arrayType.getNumElements() != sAttr.getValue().size() || in verify() [all …]
|
| H A D | LLVMTypeSyntax.cpp | 158 if (auto arrayType = type.dyn_cast<LLVMArrayType>()) in printType() local 159 return printArrayOrVectorType(printer, arrayType); in printType()
|
| /llvm-project-15.0.7/mlir/test/Dialect/SPIRV/Transforms/ |
| H A D | layout-decoration.mlir | 79 …// CHECK: spv.GlobalVariable @arrayType : !spv.ptr<!spv.array<4 x !spv.array<4 x f32>>, StorageBuf… 80 spv.GlobalVariable @arrayType : !spv.ptr<!spv.array<4x!spv.array<4xf32>>, StorageBuffer>
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVTypes.cpp | 123 if (auto arrayType = dyn_cast<ArrayType>()) in getNumElements() local 124 return arrayType.getNumElements(); in getNumElements() 181 if (auto arrayType = dyn_cast<ArrayType>()) in getSizeInBytes() local 182 return arrayType.getSizeInBytes(); in getSizeInBytes()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/Builder/ |
| H A D | Character.cpp | 131 if (auto arrayType = type.dyn_cast<fir::SequenceType>()) { in toExtendedValue() local 132 type = arrayType.getEleTy(); in toExtendedValue() 134 for (auto extent : arrayType.getShape()) { in toExtendedValue() 143 if (extents.size() + 1 < arrayType.getShape().size()) in toExtendedValue()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/ |
| H A D | GPUOpsLowering.cpp | 33 auto arrayType = LLVM::LLVMArrayType::get(elementType, numElements); in matchAndRewrite() local 37 gpuFuncOp.getLoc(), arrayType, /*isConstant=*/false, in matchAndRewrite()
|
| /llvm-project-15.0.7/clang/unittests/ASTMatchers/ |
| H A D | ASTMatchersNarrowingTest.cpp | 3475 EXPECT_TRUE(matches("int a[] = {2,3};", arrayType())); in TEST_P() 3476 EXPECT_TRUE(matches("int a[42];", arrayType())); in TEST_P() 3477 EXPECT_TRUE(matches("void f(int b) { int a[b]; }", arrayType())); in TEST_P() 3480 arrayType(hasElementType(builtinType())))); in TEST_P() 3483 qualType(arrayType(hasElementType(builtinType()))))); in TEST_P() 3486 qualType(isConstQualified(), arrayType(hasElementType(builtinType()))))); in TEST_P() 3488 qualType(isConstQualified(), arrayType()))); in TEST_P() 3492 qualType(isConstQualified(), arrayType(hasElementType(builtinType()))))); in TEST_P() 3495 qualType(arrayType(hasElementType(isConstQualified(), builtinType()))))); in TEST_P() 3497 qualType(arrayType(hasElementType(builtinType())), in TEST_P()
|
| /llvm-project-15.0.7/mlir/lib/Target/SPIRV/Serialization/ |
| H A D | Serializer.cpp | 436 if (auto arrayType = type.dyn_cast<spirv::ArrayType>()) { in prepareBasicType() local 439 if (failed(processTypeImpl(loc, arrayType.getElementType(), elementTypeID, in prepareBasicType() 445 loc, mlirBuilder.getI32IntegerAttr(arrayType.getNumElements()))) { in prepareBasicType() 448 return processTypeDecoration(loc, arrayType, resultID); in prepareBasicType()
|