| /llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/ |
| H A D | LLVMTypes.cpp | 34 bool LLVMArrayType::isValidElementType(Type type) { in isValidElementType() 39 LLVMArrayType LLVMArrayType::get(Type elementType, unsigned numElements) { in get() 44 LLVMArrayType 54 unsigned LLVMArrayType::getNumElements() const { in getNumElements() 59 LLVMArrayType::verify(function_ref<InFlightDiagnostic()> emitError, in verify() 71 unsigned LLVMArrayType::getTypeSize(const DataLayout &dataLayout, in getTypeSize() 84 LLVMArrayType::getPreferredAlignment(const DataLayout &dataLayout, in getPreferredAlignment() 89 void LLVMArrayType::walkImmediateSubElements( in walkImmediateSubElements() 95 Type LLVMArrayType::replaceImmediateSubElements( in replaceImmediateSubElements() 768 LLVMArrayType, in isCompatibleOuterType() [all …]
|
| H A D | LLVMTypeSyntax.cpp | 45 .Case<LLVMArrayType>([&](Type) { return "array"; }) in getTypeKeyword() 158 if (auto arrayType = type.dyn_cast<LLVMArrayType>()) in printType() 292 static LLVMArrayType parseArrayType(AsmParser &parser) { in parseArrayType() 300 return LLVMArrayType(); in parseArrayType() 304 return LLVMArrayType(); in parseArrayType() 307 return parser.getChecked<LLVMArrayType>(loc, elementType, dims[0]); in parseArrayType()
|
| H A D | LLVMDialect.cpp | 526 LLVMArrayType>([&](auto containerType) -> llvm::Error { in recordStructIndices() 1074 bool isFilter = value.getType().isa<LLVMArrayType>(); in verify() 1106 bool isArrayTy = value.getType().isa<LLVMArrayType>(); in print() 1436 if (auto arrayType = llvmType.dyn_cast<LLVMArrayType>()) { in getInsertExtractValueElementType() 1479 if (auto arrayType = llvmType.dyn_cast<LLVMArrayType>()) { in getInsertExtractValueElementType() 1951 auto arrayType = LLVM::LLVMArrayType::get(IntegerType::get(context, 8), in parse() 1993 auto type = getType().dyn_cast<LLVMArrayType>(); in verify() 2014 if (!getType().isa<LLVMArrayType>()) { in verify() 2392 auto arrayType = getType().dyn_cast<LLVMArrayType>(); in verify() 2725 LLVMArrayType, in initialize() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Conversion/LLVMCommon/ |
| H A D | VectorPattern.cpp | 30 while (llvmTy.isa<LLVM::LLVMArrayType>()) { in extractNDVectorTypeInfo() 32 llvmTy.cast<LLVM::LLVMArrayType>().getNumElements()); in extractNDVectorTypeInfo() 33 llvmTy = llvmTy.cast<LLVM::LLVMArrayType>().getElementType(); in extractNDVectorTypeInfo() 127 if (!llvmNDVectorTy.isa<LLVM::LLVMArrayType>()) in vectorOneToOneRewrite()
|
| H A D | TypeConverter.cpp | 102 addConversion([&](LLVM::LLVMArrayType type) -> llvm::Optional<Type> { in LLVMTypeConverter() 104 return LLVM::LLVMArrayType::get(element, type.getNumElements()); in LLVMTypeConverter() 319 results.insert(results.end(), 2, LLVM::LLVMArrayType::get(indexTy, rank)); in getMemRefDescriptorFields() 422 vectorType = LLVM::LLVMArrayType::get(vectorType, shape[i]); in convertVectorType()
|
| H A D | MemRefBuilder.cpp | 137 auto arrayTy = LLVM::LLVMArrayType::get(indexType, rank); in size()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | TypeConverter.h | 242 dataDescFields.push_back(mlir::LLVM::LLVMArrayType::get(rowTy, rank)); 250 dataDescFields.push_back(mlir::LLVM::LLVMArrayType::get(rowTy, 1)); 260 mlir::LLVM::LLVMArrayType::get(rowTy, numLenParams)); 296 return mlir::LLVM::LLVMArrayType::get(iTy, charTy.getLen()); in convertCharType() 355 baseTy = mlir::LLVM::LLVMArrayType::get(baseTy, e); in convertSequenceType()
|
| H A D | DescriptorModel.h | 99 return mlir::LLVM::LLVMArrayType::get(indexTy, 3);
|
| H A D | CodeGen.cpp | 226 } else if (auto t = type.dyn_cast<mlir::LLVM::LLVMArrayType>()) { in getBoxEleTy() 1081 static unsigned getDimension(mlir::LLVM::LLVMArrayType ty) { in getDimension() 1085 eleTy = eleTy.getElementType().dyn_cast<mlir::LLVM::LLVMArrayType>()) in getDimension() 1416 auto arrayTy = resultTy.dyn_cast<mlir::LLVM::LLVMArrayType>(); in genBoxOffsetGep() 1431 resultTy.dyn_cast<mlir::LLVM::LLVMArrayType>()) { in genBoxOffsetGep() 1440 if (auto arrayTy = resultTy.dyn_cast<mlir::LLVM::LLVMArrayType>()) { in genBoxOffsetGep() 1970 if (auto seq = ty.dyn_cast<mlir::LLVM::LLVMArrayType>()) { in toRowMajor() 2005 static mlir::Type getArrayElementType(mlir::LLVM::LLVMArrayType ty) { in getArrayElementType() 2007 while (auto arrTy = eleTy.dyn_cast<mlir::LLVM::LLVMArrayType>()) in getArrayElementType() 2077 while (auto t = type.dyn_cast<mlir::LLVM::LLVMArrayType>()) { in doRewrite() [all …]
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/LLVMIR/ |
| H A D | LLVMTypes.h | 75 class LLVMArrayType 76 : public Type::TypeBase<LLVMArrayType, Type, detail::LLVMTypeAndSizeStorage, 89 static LLVMArrayType get(Type elementType, unsigned numElements); 90 static LLVMArrayType getChecked(function_ref<InFlightDiagnostic()> emitError,
|
| H A D | LLVMOpBase.td | 155 "::mlir::LLVM::LLVMArrayType>()">,
|
| /llvm-project-15.0.7/mlir/lib/Conversion/MathToLLVM/ |
| H A D | MathToLLVM.cpp | 62 if (!operandType.template isa<LLVM::LLVMArrayType>()) { in matchAndRewrite() 108 if (!operandType.isa<LLVM::LLVMArrayType>()) { in matchAndRewrite() 161 if (!operandType.isa<LLVM::LLVMArrayType>()) { in matchAndRewrite() 215 if (!operandType.isa<LLVM::LLVMArrayType>()) { in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUCommon/ |
| H A D | GPUOpsLowering.cpp | 33 auto arrayType = LLVM::LLVMArrayType::get(elementType, numElements); in matchAndRewrite() 95 global.getType().cast<LLVM::LLVMArrayType>().getElementType(); in matchAndRewrite() 216 auto globalType = LLVM::LLVMArrayType::get(llvmI8, formatStringSize); in matchAndRewrite() 315 LLVM::LLVMArrayType::get(llvmI8, formatString.size_in_bytes()); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | TypeToLLVM.cpp | 73 .Case<LLVM::LLVMArrayType, IntegerType, LLVM::LLVMFunctionType, in translateType() 89 llvm::Type *translate(LLVM::LLVMArrayType type) { in translate()
|
| H A D | TypeFromLLVM.cpp | 81 return LLVM::LLVMArrayType::get(translateType(type->getElementType()), in translate()
|
| H A D | ConvertFromLLVMIR.cpp | 304 if (auto arrayType = type.dyn_cast<LLVMArrayType>()) { in getStdTypeForAttr() 308 while (arrayType.getElementType().isa<LLVMArrayType>()) { in getStdTypeForAttr() 309 arrayType = arrayType.getElementType().cast<LLVMArrayType>(); in getStdTypeForAttr() 536 bool useInsertValue = rootType.isa<LLVMArrayType, LLVMStructType>(); in processConstant()
|
| /llvm-project-15.0.7/mlir/lib/CAPI/Dialect/ |
| H A D | LLVM.cpp | 28 return wrap(LLVMArrayType::get(unwrap(elementType), numElements)); in mlirLLVMArrayTypeGet()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/ArithmeticToLLVM/ |
| H A D | ArithmeticToLLVM.cpp | 170 if (!operandType.isa<LLVM::LLVMArrayType>()) { in matchAndRewrite() 205 if (!operandType.isa<LLVM::LLVMArrayType>()) { in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/NVGPUToNVVM/ |
| H A D | NVGPUToNVVM.cpp | 23 auto a = vectorResultType.cast<LLVM::LLVMArrayType>(); in inferIntrinsicResultType() 65 auto arrayType = resultType.dyn_cast<LLVM::LLVMArrayType>(); in convertIntrinsicResult() 152 auto arrayTy = operand.getType().cast<LLVM::LLVMArrayType>(); in unpackOperandVector()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/GPUToVulkan/ |
| H A D | ConvertLaunchFuncToVulkanCalls.cpp | 81 LLVM::LLVMArrayType::get(getInt64Type(), rank); in getMemRefType() 285 .cast<LLVM::LLVMArrayType>() in deduceMemRefRankAndType()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch7/mlir/ |
| H A D | LowerToLLVM.cpp | 147 auto type = LLVM::LLVMArrayType::get( in getOrCreateGlobalString()
|
| /llvm-project-15.0.7/mlir/examples/toy/Ch6/mlir/ |
| H A D | LowerToLLVM.cpp | 147 auto type = LLVM::LLVMArrayType::get( in getOrCreateGlobalString()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/ |
| H A D | SPIRVToLLVM.cpp | 259 return LLVM::LLVMArrayType::get(llvmElementType, numElements); in convertArrayType() 278 return LLVM::LLVMArrayType::get(elementType, 0); in convertRuntimeArrayType() 670 auto arrayType = LLVM::LLVMArrayType::get(llvmI32Type, values.size()); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/VectorToLLVM/ |
| H A D | ConvertVectorToLLVM.cpp | 584 if (auto arrayType = llvmType.dyn_cast<LLVM::LLVMArrayType>()) in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/docs/Dialects/ |
| H A D | LLVM.md | 292 and they are internally represented as `LLVMArrayType`.
|