Home
last modified time | relevance | path

Searched refs:arrayType (Results 1 – 25 of 58) sorted by relevance

123

/llvm-project/mlir/lib/Dialect/SPIRV/Utils/
H A DLayoutUtils.cpp90 if (auto arrayType = dyn_cast<spirv::ArrayType>(type)) in decorateType() local
91 return decorateType(arrayType, size, alignment); in decorateType()
94 if (auto arrayType = dyn_cast<spirv::RuntimeArrayType>(type)) { in decorateType() local
96 return decorateType(arrayType, alignment); in decorateType()
124 Type VulkanLayoutUtils::decorateType(spirv::ArrayType arrayType, in decorateType() argument
127 const auto numElements = arrayType.getNumElements(); in decorateType()
128 auto elementType = arrayType.getElementType(); in decorateType()
141 Type VulkanLayoutUtils::decorateType(spirv::RuntimeArrayType arrayType, in decorateType() argument
143 auto elementType = arrayType.getElementType(); in decorateType()
/llvm-project/mlir/lib/Dialect/SPIRV/Transforms/
H A DSPIRVConversion.cpp508 auto arrayType = spirv::RuntimeArrayType::get(arrayElemType, stride); in convertSubByteMemrefType()
511 return wrapInStructAndGetPointer(arrayType, storageClass); in convertSubByteMemrefType()
523 auto arrayType = spirv::ArrayType::get(arrayElemType, arrayElemCount, stride); in convertSubByteMemrefType()
525 return spirv::PointerType::get(arrayType, storageClass); in convertMemrefType()
526 return wrapInStructAndGetPointer(arrayType, storageClass); in convertMemrefType()
545 auto arrayType = spirv::RuntimeArrayType::get(arrayElemType, stride); in convertMemrefType()
548 return wrapInStructAndGetPointer(arrayType, storageClass); in convertMemrefType()
561 auto arrayType = spirv::ArrayType::get(arrayElemType, arrayElemCount, stride); in convertMemrefType()
563 return spirv::PointerType::get(arrayType, storageClass); in convertMemrefType()
564 return wrapInStructAndGetPointer(arrayType, storageClas in convertMemrefType()
466 auto arrayType = spirv::RuntimeArrayType::get(arrayElemType, stride); convertBoolMemrefType() local
481 auto arrayType = spirv::ArrayType::get(arrayElemType, arrayElemCount, stride); convertBoolMemrefType() local
503 auto arrayType = spirv::RuntimeArrayType::get(arrayElemType, stride); convertSubByteMemrefType() local
519 auto arrayType = spirv::ArrayType::get(arrayElemType, arrayElemCount, stride); convertSubByteMemrefType() local
585 auto arrayType = spirv::RuntimeArrayType::get(arrayElemType, stride); convertMemrefType() local
606 auto arrayType = spirv::ArrayType::get(arrayElemType, arrayElemCount, stride); convertMemrefType() local
911 auto arrayType = spirv::ArrayType::get(indexType, elementCount, getPushConstantStorageType() local
[all...]
/llvm-project/mlir/include/mlir/Dialect/SPIRV/Utils/
H A DLayoutUtils.h68 static Type decorateType(spirv::ArrayType arrayType, Size &size,
70 static Type decorateType(spirv::RuntimeArrayType arrayType, Size &alignment);
/llvm-project/flang/test/Semantics/
H A Dresolve89.f9066 type arrayType type
87 end type arrayType
/llvm-project/mlir/lib/Dialect/EmitC/IR/
H A DEmitC.cpp66 if (auto arrayType = llvm::dyn_cast<emitc::ArrayType>(type)) { in isSupportedEmitCType() local
67 auto elemType = arrayType.getElementType(); in isSupportedEmitCType()
853 if (auto arrayType = llvm::dyn_cast<emitc::ArrayType>(getValue().getType())) { in verify()
855 if (getIndices().size() != (size_t)arrayType.getRank()) { in verify()
859 << arrayType.getRank() << ")"; in verify()
870 Type elementType = arrayType.getElementType(); in verify()
1094 auto arrayType = llvm::dyn_cast<ArrayType>(getType()); in verifySymbolUses()
1095 if (!arrayType) in verifySymbolUses()
836 if (auto arrayType = llvm::dyn_cast<emitc::ArrayType>(getValue().getType())) { verify() local
1044 auto arrayType = llvm::dyn_cast<ArrayType>(getType()); verify() local
/llvm-project/mlir/lib/Conversion/MemRefToSPIRV/
H A DMemRefToSPIRV.cpp540 if (auto arrayType = dyn_cast<spirv::ArrayType>(pointeeType)) in matchAndRewrite() local
541 dstType = arrayType.getElementType(); in matchAndRewrite()
548 if (auto arrayType = dyn_cast<spirv::ArrayType>(structElemType)) in matchAndRewrite() local
549 dstType = arrayType.getElementType(); in matchAndRewrite()
686 if (auto arrayType = dyn_cast<spirv::ArrayType>(pointeeType)) in matchAndRewrite() local
687 dstType = dyn_cast<IntegerType>(arrayType.getElementType()); in matchAndRewrite()
694 if (auto arrayType = dyn_cast<spirv::ArrayType>(structElemType)) in matchAndRewrite() local
695 dstType = dyn_cast<IntegerType>(arrayType.getElementType()); in matchAndRewrite()
/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp2276 const ArrayType *arrayType = origArrayType; in emitArrayLength()
2281 if (isa<VariableArrayType>(arrayType)) {
2282 numVLAElements = getVLASize(cast<VariableArrayType>(arrayType)).NumElts; in getVLASize()
2287 QualType elementType = arrayType->getElementType();
2288 arrayType = getContext().getAsArrayType(elementType);
2291 if (!arrayType) { in getVLASize()
2295 } while (isa<VariableArrayType>(arrayType)); in getVLASize()
2316 assert(isa<ConstantArrayType>(arrayType)); in getVLAElements1D()
2317 assert(cast<ConstantArrayType>(arrayType)->getZExtSize() == in getVLAElements1D()
2322 eltType = arrayType in getVLAElements1D()
2195 const ArrayType *arrayType = origArrayType; emitArrayLength() local
[all...]
H A DSwiftCallingConv.cpp75 auto arrayType = CGM.getContext().getAsConstantArrayType(type); in addTypedData()
76 if (!arrayType) return; in addTypedData() local
78 QualType eltType = arrayType->getElementType(); in addTypedData()
80 for (uint64_t i = 0, e = arrayType->getZExtSize(); i != e; ++i) { in addTypedData()
/llvm-project/clang-tools-extra/clang-tidy/bugprone/
H A DSizeofExpressionCheck.cpp163 ignoringParenImpCasts(hasType(hasCanonicalType(arrayType()))); in registerMatchers()
169 hasType(hasCanonicalType(pointerType(pointee(arrayType())))); in registerMatchers()
228 arrayType(hasElementType(recordType().bind("elem-type"))); in registerMatchers()
H A DUndefinedMemoryManipulationCheck.cpp28 arrayType(hasElementType(HasNotTriviallyCopyableDecl)); in registerMatchers()
H A DUnhandledSelfAssignmentCheck.cpp89 hasType(arrayType()))))))); in registerMatchers()
H A DSuspiciousMemsetUsageCheck.cpp38 hasType(arrayType(hasElementType(isAnyCharacter()))))))), in registerMatchers()
H A DDanglingHandleCheck.cpp154 anyOf(hasType(arrayType()), in registerMatchersForReturn()
H A DStringConstructorCheck.cpp65 const auto CharPtrType = type(anyOf(pointerType(), arrayType())); in registerMatchers()
/llvm-project/mlir/include/mlir/IR/
H A DCommonAttrConstraints.td814 class DenseArrayStrictlyPositive<DenseArrayAttrBase arrayType> : AttrConstraint<
815 CPred<"::llvm::all_of(::llvm::cast<" # arrayType #">($_self).asArrayRef(), "
819 class DenseArrayNonNegative<DenseArrayAttrBase arrayType> : AttrConstraint<
820 CPred<"::llvm::all_of(::llvm::cast<" # arrayType #">($_self).asArrayRef(), "
824 class DenseArraySorted<DenseArrayAttrBase arrayType> : AttrConstraint<
825 CPred<"llvm::is_sorted(::llvm::cast<" # arrayType # ">($_self).asArrayRef())">,
828 class DenseArrayStrictlySorted<DenseArrayAttrBase arrayType> : AttrConstraint<
830 CPred<"llvm::is_sorted(::llvm::cast<" # arrayType # ">($_self).asArrayRef())">,
832 CPred<"[](" # arrayType.returnType # " a) {\n"
835 "}(::llvm::cast<" # arrayType # ">(
[all...]
/llvm-project/mlir/lib/Conversion/NVGPUToNVVM/
H A DNVGPUToNVVM.cpp105 auto arrayType = dyn_cast<LLVM::LLVMArrayType>(resultType); in convertIntrinsicResult()
120 if (arrayType) { in convertIntrinsicResult()
125 if (arrayType.getElementType() == f16x2Ty || in convertIntrinsicResult()
126 arrayType.getElementType() == f32x1Ty) { in convertIntrinsicResult()
131 loc, arrayType.getElementType(), el); in convertIntrinsicResult()
140 if (arrayType.getElementType() == i32x2Ty || in convertIntrinsicResult()
141 arrayType.getElementType() == f64x2Ty || in convertIntrinsicResult()
142 arrayType.getElementType() == f32x2Ty) { in convertIntrinsicResult()
146 rewriter.create<LLVM::UndefOp>(loc, arrayType.getElementType()); in convertIntrinsicResult()
160 Value result = rewriter.create<LLVM::UndefOp>(loc, arrayType); in convertIntrinsicResult()
104 auto arrayType = dyn_cast<LLVM::LLVMArrayType>(resultType); convertIntrinsicResult() local
[all...]
/llvm-project/clang-tools-extra/clang-tidy/modernize/
H A DAvoidCArraysCheck.cpp63 typeLoc(hasValidBeginLoc(), hasType(arrayType()), in registerMatchers()
/llvm-project/flang/lib/Optimizer/HLFIR/Transforms/
H A DOptimizedBufferization.cpp538 mlir::Type arrayType = mlir::dyn_cast<fir::SequenceType>( in matchAndRewrite()
540 if (!arrayType) { in matchAndRewrite()
548 mlir::Type eleTy = hlfir::getFortranElementType(arrayType); in matchAndRewrite()
1053 mlir::Type arrayType = array.getType(); in runOnOperation()
1054 if (!mlir::isa<fir::BoxType>(arrayType)) in runOnOperation()
1057 mlir::Type elementType = hlfir::getFortranElementType(arrayType); in runOnOperation()
328 mlir::Type arrayType = mlir::dyn_cast<fir::SequenceType>( findMatch() local
836 mlir::Type arrayType = array.getType(); matchAndRewrite() local
/llvm-project/clang/test/CodeGen/
H A Dxcore-stringtype.c94 RetType* arrayType(int A1[], int const volatile A2[2], int A3[][2], in arrayType() function
/llvm-project/mlir/lib/Conversion/GPUCommon/
H A DGPUOpsLowering.cpp141 auto arrayType = LLVM::LLVMArrayType::get(elementType, numElements); in matchAndRewrite()
150 gpuFuncOp.getLoc(), arrayType, /*isConstant=*/false, in matchAndRewrite()
655 if (auto arrayType = dyn_cast<LLVM::LLVMArrayType>(globalOp.getType())) { in matchAndRewrite()
657 arrayType.getNumElements() == 0 &&
38 auto arrayType = LLVM::LLVMArrayType::get(elementType, numElements); matchAndRewrite() local
584 if (auto arrayType = dyn_cast<LLVM::LLVMArrayType>(globalOp.getType())) { getDynamicSharedMemorySymbol() local
/llvm-project/flang/unittests/Optimizer/Builder/
H A DFIRBuilderTest.cpp460 auto makeExv = [&](mlir::Type elementType, mlir::Type arrayType) in TEST_F()
463 auto ptrTyArray = fir::PointerType::get(arrayType); in TEST_F()
469 auto boxTyArray = fir::BoxType::get(arrayType); in TEST_F()
488 mlir::dyn_cast<fir::SequenceType>(arrayType).getDimension(), in TEST_F()
461 __anon4464ee3c0102(mlir::Type elementType, mlir::Type arrayType) TEST_F() argument
/llvm-project/mlir/test/Dialect/SPIRV/Transforms/
H A Dlayout-decoration.mlir79 // CHECK: spirv.GlobalVariable @arrayType : !spirv.ptr<!spirv.array<4 x !spirv.array<4 x f32>>, StorageBuffer>
80 spirv.GlobalVariable @arrayType : !spirv.ptr<!spirv.array<4x!spirv.array<4xf32>>, StorageBuffer>
/llvm-project/mlir/lib/Dialect/LLVMIR/IR/
H A DLLVMDialect.cpp1859 if (auto arrayType = llvm::dyn_cast<LLVMArrayType>(llvmType)) { in build()
1860 if (idx < 0 || static_cast<unsigned>(idx) >= arrayType.getNumElements()) { in build()
1864 llvmType = arrayType.getElementType(); in build()
2262 auto arrayType = LLVM::LLVMArrayType::get(IntegerType::get(context, 8), in build()
2264 types.push_back(arrayType); in build()
2852 if (auto arrayType = dyn_cast<LLVM::LLVMArrayType>(t)) in fold()
2853 return arrayType.getNumElements() * in fold()
2854 getNumElements(arrayType.getElementType()); in fold()
2872 if (auto arrayType = dyn_cast<LLVM::LLVMArrayType>(t)) in foldChainableCast()
2873 return hasScalableVectorType(arrayType in foldChainableCast()
805 if (auto arrayType = dyn_cast<LLVMArrayType>(selectedType)) { getResultPtrElementType() local
1623 if (auto arrayType = llvm::dyn_cast<LLVMArrayType>(llvmType)) { getInsertExtractValueElementType() local
2025 auto arrayType = LLVM::LLVMArrayType::get(IntegerType::get(context, 8), parse() local
2611 auto arrayType = llvm::dyn_cast<LLVMArrayType>(getType()); verify() local
[all...]
H A DLLVMMemorySlot.cpp714 .Case([&](LLVM::LLVMArrayType arrayType) { in gepToByteOffset()
716 index * dataLayout.getTypeSize(arrayType.getElementType()); in gepToByteOffset()
717 currentType = arrayType.getElementType(); in gepToByteOffset()
784 .Case([&](LLVM::LLVMArrayType arrayType) in getSubslotAccessInfo()
787 uint64_t elemSize = dataLayout.getTypeSize(arrayType.getElementType()); in getSubslotAccessInfo()
690 __anon5e4bab860202(LLVM::LLVMArrayType arrayType) gepToByteOffset() argument
761 __anon5e4bab860702(LLVM::LLVMArrayType arrayType) getSubslotAccessInfo() argument
/llvm-project/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVOps.cpp599 auto arrayType = llvm::dyn_cast<spirv::ArrayType>(opType); in verifyConstantType() local
601 if (!arrayType) in verifyConstantType()
606 int numElements = arrayType.getNumElements(); in verifyConstantType()
607 auto opElemType = arrayType.getElementType(); in verifyConstantType()
630 auto arrayType = llvm::dyn_cast<spirv::ArrayType>(opType); in verifyConstantType() local
631 if (!arrayType) in verifyConstantType()
634 Type elemType = arrayType.getElementType(); in verifyConstantType()

123