Searched refs:scalarType (Results 1 – 10 of 10) sorted by relevance
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Transforms/ |
| H A D | SPIRVConversion.cpp | 347 auto scalarType = type.getElementType().dyn_cast<spirv::ScalarType>(); in convertTensorType() local 348 if (!scalarType) { in convertTensorType() 354 Optional<int64_t> scalarSize = getTypeNumBytes(options, scalarType); in convertTensorType() 363 auto arrayElemType = convertScalarType(targetEnv, options, scalarType); in convertTensorType() 445 } else if (auto scalarType = elementType.dyn_cast<spirv::ScalarType>()) { in convertMemrefType() local 447 convertScalarType(targetEnv, options, scalarType, storageClass); in convertMemrefType() 503 if (auto scalarType = intType.dyn_cast<spirv::ScalarType>()) in SPIRVTypeConverter() local 504 return convertScalarType(this->targetEnv, this->options, scalarType); in SPIRVTypeConverter() 509 if (auto scalarType = floatType.dyn_cast<spirv::ScalarType>()) in SPIRVTypeConverter() local 510 return convertScalarType(this->targetEnv, this->options, scalarType); in SPIRVTypeConverter()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Utils/ |
| H A D | LayoutUtils.cpp | 147 VulkanLayoutUtils::getScalarTypeAlignment(Type scalarType) { in getScalarTypeAlignment() argument 153 auto bitWidth = scalarType.getIntOrFloatBitWidth(); in getScalarTypeAlignment()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/Utils/ |
| H A D | LayoutUtils.h | 75 static Size getScalarTypeAlignment(Type scalarType);
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVTypes.cpp | 668 if (auto scalarType = dyn_cast<ScalarType>()) { in getExtensions() local 669 scalarType.getExtensions(extensions, storage); in getExtensions() 688 if (auto scalarType = dyn_cast<ScalarType>()) { in getCapabilities() local 689 scalarType.getCapabilities(capabilities, storage); in getCapabilities() 706 if (auto scalarType = dyn_cast<ScalarType>()) in getSizeInBytes() local 707 return scalarType.getSizeInBytes(); in getSizeInBytes()
|
| H A D | SPIRVOps.cpp | 4482 auto scalarType = getType().cast<VectorType>().getElementType(); in verify() local 4483 if (scalar().getType() != scalarType) in verify()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/MathToSPIRV/ |
| H A D | MathToSPIRV.cpp | 70 if (auto scalarType = copySignOp.getType().dyn_cast<FloatType>()) { in matchAndRewrite() local 71 floatType = scalarType; in matchAndRewrite()
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | ConvertVariable.cpp | 267 mlir::Type scalarType = symTy; in genDefaultInitializerValue() local 271 scalarType = ty.getEleTy(); in genDefaultInitializerValue() 275 auto recTy = scalarType.cast<fir::RecordType>(); in genDefaultInitializerValue() 276 auto fieldTy = fir::FieldType::get(scalarType.getContext()); in genDefaultInitializerValue() 277 mlir::Value initialValue = builder.create<fir::UndefOp>(loc, scalarType); in genDefaultInitializerValue() 331 loc, fieldTy, name, scalarType, in genDefaultInitializerValue()
|
| /llvm-project-15.0.7/flang/lib/Optimizer/CodeGen/ |
| H A D | CodeGen.cpp | 335 mlir::Type scalarType = fir::unwrapSequenceType(dataTy); in genAllocationScaleSize() local 338 (seqTy && fir::characterWithDynamicLen(scalarType))) { in genAllocationScaleSize() 372 mlir::Type scalarType = fir::unwrapSequenceType(alloc.getInType()); in matchAndRewrite() local 373 if (auto chrTy = scalarType.dyn_cast<fir::CharacterType>()) { in matchAndRewrite() 379 } else if (auto recTy = scalarType.dyn_cast<fir::RecordType>()) { in matchAndRewrite() 392 << scalarType << " with type parameters"; in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/ |
| H A D | SPIRVToLLVM.cpp | 1388 auto scalarType = dstType.cast<VectorType>().getElementType(); in matchAndRewrite() local 1415 loc, scalarType, baseVector, index); in matchAndRewrite()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGCall.cpp | 5096 llvm::Type *scalarType = RV.getScalarVal()->getType(); in EmitCall() local 5097 auto scalarSize = CGM.getDataLayout().getTypeAllocSize(scalarType); in EmitCall() 5098 auto scalarAlign = CGM.getDataLayout().getPrefTypeAlignment(scalarType); in EmitCall()
|