| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | VectorTypesTest.cpp | 48 EXPECT_EQ(V16Int8Ty->getElementType()->getScalarSizeInBits(), 8U); in TEST() 54 EXPECT_EQ(V8Int32Ty->getElementType()->getScalarSizeInBits(), 32U); in TEST() 60 EXPECT_EQ(V8Int8Ty->getElementType()->getScalarSizeInBits(), 8U); in TEST() 70 EXPECT_EQ(V8Int16Ty->getElementType()->getScalarSizeInBits(), 16U); in TEST() 100 EXPECT_EQ(ExtTy->getElementType()->getScalarSizeInBits(), 32U); in TEST() 106 EXPECT_EQ(TruncTy->getElementType()->getScalarSizeInBits(), 16U); in TEST() 112 EXPECT_EQ(HalvedTy->getElementType()->getScalarSizeInBits(), 64U); in TEST() 123 EXPECT_EQ(ConvTy->getElementType()->getScalarSizeInBits(), 64U); in TEST() 195 EXPECT_EQ(ExtTy->getElementType()->getScalarSizeInBits(), 32U); in TEST() 219 EXPECT_EQ(ConvTy->getElementType()->getScalarSizeInBits(), 64U); in TEST() [all …]
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGBuilder.h | 161 Addr.getElementType()) && 201 ElTy->getElementType(Index), 223 ElTy->getElementType(), 234 llvm::Type *ElTy = Addr.getElementType(); 257 Addr.getElementType(), 272 Addr.getElementType(), 279 assert(Addr.getElementType() == TypeCache.Int8Ty); 282 Addr.getElementType(), 287 assert(Addr.getElementType() == TypeCache.Int8Ty); 290 Addr.getElementType(), [all …]
|
| H A D | Address.h | 40 llvm::Type *getElementType() const { return ElementType; } in getElementType() function 66 llvm::Type *getElementType() const { return ElementType.getPointer(); } in getElementType() function 104 llvm::Type *getElementType() const { in getElementType() function 106 return A.getElementType(); in getElementType() 128 return Address(NewPointer, getElementType(), getAlignment()); in withPointer() 134 return Address(getPointer(), getElementType(), NewAlignment); in withAlignment() 167 addr.getElementType(), addr.getAlignment()); in castImpl()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/NVGPUToNVVM/ |
| H A D | NVGPUToNVVM.cpp | 31 if (a.getElementType() == f16x2Ty) { in inferIntrinsicResultType() 35 if (a.getElementType() == i32x2Ty) { in inferIntrinsicResultType() 40 if (a.getElementType() == f64x2Ty) { in inferIntrinsicResultType() 43 if (a.getElementType() == f32x2Ty) { in inferIntrinsicResultType() 85 if (arrayType.getElementType() == f16x2Ty || in convertIntrinsicResult() 86 arrayType.getElementType() == f32x1Ty) { in convertIntrinsicResult() 101 if (arrayType.getElementType() == i32x2Ty || in convertIntrinsicResult() 160 if (arrayTy.getElementType() == i8x4Ty || in unpackOperandVector() 161 arrayTy.getElementType() == i4x8Ty || in unpackOperandVector() 162 (arrayTy.getElementType() == f32x1Ty && in unpackOperandVector() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/AMX/IR/ |
| H A D | AMXDialect.cpp | 34 unsigned col = tp.getDimSize(1) * tp.getElementType().getIntOrFloatBitWidth(); in verifyTileSize() 82 Type ta = aType.getElementType(); in verify() 83 Type tb = bType.getElementType(); in verify() 84 Type tc = cType.getElementType(); in verify() 99 Type ta = aType.getElementType(); in verify() 100 Type tb = bType.getElementType(); in verify() 101 Type tc = cType.getElementType(); in verify()
|
| /llvm-project-15.0.7/mlir/lib/IR/ |
| H A D | BuiltinAttributes.cpp | 600 Type eltTy = owner.getElementType(); in operator *() 761 switch (getElementType()) { in printWithoutBraces() 1189 getElementType().cast<ComplexType>().getElementType(), dataEltSize / 2, in isValidComplex() 1243 Type eltTy = getElementType().cast<ComplexType>().getElementType(); in getComplexFloatValues() 1252 Type eltTy = getElementType().cast<ComplexType>().getElementType(); in complex_float_value_begin() 1258 Type eltTy = getElementType().cast<ComplexType>().getElementType(); in complex_float_value_end() 1281 assert(newType.getElementType() == curType.getElementType() && in reshape() 1295 assert(newType.getElementType() == curType.getElementType() && in resizeSplat() 1333 return getType().getElementType(); in getElementType() 1406 type.getElementType().cast<ComplexType>().getElementType(), in getRawComplex() [all …]
|
| H A D | BuiltinTypeInterfaces.cpp | 42 auto elementType = getElementType(); in getSizeInBits() 47 elementType = complexType.getElementType(); in getSizeInBits()
|
| H A D | BuiltinTypes.cpp | 254 if (auto et = getElementType().dyn_cast<FloatType>()) in scaleElementBitwidth() 263 walkTypesFn(getElementType()); in walkImmediateSubElements() 281 Type TensorType::getElementType() const { in getElementType() function in TensorType 348 walkTypesFn(getElementType()); in walkImmediateSubElements() 372 walkTypesFn(getElementType()); in walkImmediateSubElements() 384 Type BaseMemRefType::getElementType() const { in getElementType() function in BaseMemRefType 489 if (originalShapedType.getElementType() != in isRankReducedType() 490 candidateReducedShapedType.getElementType()) in isRankReducedType() 683 walkTypesFn(getElementType()); in walkImmediateSubElements() 860 walkTypesFn(getElementType()); in walkImmediateSubElements() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/LLVMIR/IR/ |
| H A D | LLVMTypes.cpp | 80 return dataLayout.getTypeABIAlignment(getElementType()); in getABIAlignment() 92 walkTypesFn(getElementType()); in walkImmediateSubElements() 368 if (key.getElementType() && !key.getElementType().isInteger(8)) { in verifyEntries() 370 << key.getElementType(); in verifyEntries() 384 walkTypesFn(getElementType()); in walkImmediateSubElements() 674 Type LLVMFixedVectorType::getElementType() const { in getElementType() function in LLVMFixedVectorType 696 walkTypesFn(getElementType()); in walkImmediateSubElements() 722 Type LLVMScalableVectorType::getElementType() const { in getElementType() function in LLVMScalableVectorType 747 walkTypesFn(getElementType()); in walkImmediateSubElements() 879 Type elementType = vecType.getElementType(); in isCompatibleVectorType() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/Transforms/ |
| H A D | TosaDecomposeDepthwise.cpp | 34 Type inputEType = inputType.getElementType(); in matchAndRewrite() 65 input.getType().dyn_cast<RankedTensorType>().getElementType()); in matchAndRewrite() 77 weight.getType().dyn_cast<RankedTensorType>().getElementType()); in matchAndRewrite() 90 weight.getType().dyn_cast<RankedTensorType>().getElementType()); in matchAndRewrite() 101 input.getType().dyn_cast<RankedTensorType>().getElementType()); in matchAndRewrite()
|
| /llvm-project-15.0.7/flang/include/flang/Tools/ |
| H A D | PointerModels.h | 20 mlir::Type getElementType(mlir::Type pointer) const { in getElementType() function 21 return pointer.cast<T>().getElementType(); in getElementType() 29 mlir::Type getElementType(mlir::Type pointer) const { in getElementType() function
|
| /llvm-project-15.0.7/mlir/lib/Conversion/MemRefToSPIRV/ |
| H A D | MemRefToSPIRV.cpp | 109 Type elementType = type.getElementType(); in isAllocationSupported() 111 elementType = vecType.getElementType(); in isAllocationSupported() 322 if (!memrefType.getElementType().isSignlessInteger()) in matchAndRewrite() 333 int srcBits = memrefType.getElementType().getIntOrFloatBitWidth(); in matchAndRewrite() 343 dstType = arrayType.getElementType(); in matchAndRewrite() 345 dstType = structElemType.cast<spirv::RuntimeArrayType>().getElementType(); in matchAndRewrite() 417 if (memrefType.getElementType().isSignlessInteger()) in matchAndRewrite() 434 if (!memrefType.getElementType().isSignlessInteger()) in matchAndRewrite() 446 int srcBits = memrefType.getElementType().getIntOrFloatBitWidth(); in matchAndRewrite() 458 dstType = arrayType.getElementType(); in matchAndRewrite() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | TypeToLLVM.cpp | 90 return llvm::ArrayType::get(translateType(type.getElementType()), in translate() 111 return llvm::PointerType::get(translateType(type.getElementType()), in translate() 143 return llvm::ScalableVectorType::get(translateType(type.getElementType()), in translate() 145 return llvm::FixedVectorType::get(translateType(type.getElementType()), in translate() 151 return llvm::FixedVectorType::get(translateType(type.getElementType()), in translate() 157 return llvm::ScalableVectorType::get(translateType(type.getElementType()), in translate()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVTypes.cpp | 62 Type ArrayType::getElementType() const { return getImpl()->elementType; } in getElementType() function in ArrayType 68 getElementType().cast<SPIRVType>().getExtensions(extensions, storage); in getExtensions() 78 auto elementType = getElementType().cast<SPIRVType>(); in getSizeInBytes() 111 Type CompositeType::getElementType(unsigned index) const { in getElementType() function in CompositeType 114 [](auto type) { return type.getElementType(); }) in getElementType() 154 return type.getElementType().cast<ScalarType>().getExtensions( in getExtensions() 228 Type CooperativeMatrixNVType::getElementType() const { in getElementType() function in CooperativeMatrixNVType 1004 Type StructType::getElementType(unsigned index) const { in getElementType() function in StructType 1131 if (vectorType.getElementType().isa<FloatType>()) in isValidColumnType() 1139 Type MatrixType::getElementType() const { in getElementType() function in MatrixType [all …]
|
| H A D | SPIRVOps.cpp | 593 valType = valVecTy.getElementType(); in verifyBlockReadWritePtrAndValTypes() 703 type = cType.getElementType(index); in getElementType() 714 getElementType(Type type, Attribute indices, in getElementType() function 1846 opElemType = t.getElementType(); in verifyConstantType() 3832 if (typeA.getElementType() != typeB.getElementType() || in verifyCoopMatrixMulAdd() 3833 typeR.getElementType() != typeC.getElementType()) in verifyCoopMatrixMulAdd() 3872 if (inputMatrix.getElementType() != resultMatrix.getElementType()) in verify() 3990 if (inputMatrix.getElementType() != resultMatrix.getElementType()) in verify() 4017 if (rightMatrix.getElementType() != resultMatrix.getElementType()) in verify() 4022 if (leftMatrix.getElementType() != resultMatrix.getElementType()) in verify() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Quant/IR/ |
| H A D | QuantOps.cpp | 60 return spec == tensorType.getElementType(); in isValidQuantizationSpec() 63 return spec == vectorType.getElementType(); in isValidQuantizationSpec() 104 if (!layerStatsType.getElementType().isa<FloatType>()) { in verify() 122 if (!axisStatsType.getElementType().isa<FloatType>()) { in verify()
|
| H A D | QuantTypes.cpp | 87 return candidateExpressedType.cast<ShapedType>().getElementType() == in isCompatibleExpressedType() 97 primitiveOrContainerType.cast<ShapedType>().getElementType(); in getQuantizedElementType() 134 if (!sType.getElementType().isa<QuantizedType>()) { in castToStorageType() 138 sType.getElementType().cast<QuantizedType>().getStorageType(); in castToStorageType() 160 if (candidateShapedType.getElementType() != getExpressedType()) { in castFromExpressedType() 189 if (!sType.getElementType().isa<QuantizedType>()) { in castToExpressedType() 193 sType.getElementType().cast<QuantizedType>().getExpressedType(); in castToExpressedType()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | DerivedTypes.h | 328 Type *getElementType(unsigned N) const { in getElementType() function 334 Type *getTypeAtIndex(unsigned N) const { return getElementType(N); } in getTypeAtIndex() 353 return cast<StructType>(this)->getElementType(N); in getStructElementType() 370 Type *getElementType() const { return ContainedType; } in getElementType() function 422 Type *getElementType() const { return ContainedType; } in getElementType() function 441 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger() 451 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType() 460 if (VTy->getElementType()->isFloatingPointTy()) { in getTruncatedElementVectorType() 461 switch(VTy->getElementType()->getTypeID()) { in getTruncatedElementVectorType() 497 return VectorType::get(VTy->getElementType(), in getHalfElementsVectorType() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Interfaces/ |
| H A D | InferTypeOpInterface.cpp | 35 Type ShapeAdaptor::getElementType() const { in getElementType() function in ShapeAdaptor 39 return t.cast<ShapedType>().getElementType(); in getElementType() 42 return val.get<ShapedTypeComponents *>()->getElementType(); in getElementType() 191 assert(shapeAndType.getElementType() && in inferReturnTensorTypes() 195 shapeAndType.getDims(), shapeAndType.getElementType())); in inferReturnTensorTypes() 198 UnrankedTensorType::get(shapeAndType.getElementType())); in inferReturnTensorTypes()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/Utils/ |
| H A D | LayoutUtils.cpp | 47 decorateType(structType.getElementType(i), memberSize, memberAlignment); in decorateType() 56 structType.getElementType(i).isa<spirv::RuntimeArrayType>())); in decorateType() 105 auto elementType = vectorType.getElementType(); in decorateType() 124 auto elementType = arrayType.getElementType(); in decorateType() 139 auto elementType = arrayType.getElementType(); in decorateType()
|
| /llvm-project-15.0.7/clang/lib/AST/ |
| H A D | TypePrinter.cpp | 394 printBefore(T->getElementType(), OS); in printComplexBefore() 398 printAfter(T->getElementType(), OS); in printComplexAfter() 540 printAfter(T->getElementType(), OS); in printConstantArrayAfter() 552 printAfter(T->getElementType(), OS); in printIncompleteArrayAfter() 578 printAfter(T->getElementType(), OS); in printVariableArrayAfter() 614 printAfter(T->getElementType(), OS); in printDependentSizedArrayAfter() 644 printAfter(T->getElementType(), OS); in printDependentSizedExtVectorAfter() 703 printAfter(T->getElementType(), OS); in printVectorAfter() 769 printAfter(T->getElementType(), OS); in printDependentVectorAfter() 778 printAfter(T->getElementType(), OS); in printExtVectorAfter() [all …]
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/ |
| H A D | LowLevelType.cpp | 23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); in getLLTForType() 50 MVT::getIntegerVT(Ty.getElementType().getSizeInBits()), in getMVTForLLT() 57 EVT EltVT = getApproximateEVTForLLT(Ty.getElementType(), DL, Ctx); in getApproximateEVTForLLT()
|
| /llvm-project-15.0.7/mlir/include/mlir/Dialect/SPIRV/IR/ |
| H A D | SPIRVTypes.h | 112 Type getElementType(unsigned) const; 140 Type getElementType() const; 180 Type getElementType() const; 225 Type getElementType() const; 344 Type getElementType(unsigned) const; 408 Type getElementType() const; 452 Type getElementType() const;
|
| /llvm-project-15.0.7/mlir/lib/Dialect/NVGPU/IR/ |
| H A D | NVGPUDialect.cpp | 79 if (dstMemref.getElementType() != srcMemref.getElementType()) in verify() 123 Type aType = aVector.getElementType(); in verify() 206 Type resType = resVector.getElementType(); in verify()
|
| /llvm-project-15.0.7/mlir/test/lib/Dialect/Tosa/ |
| H A D | TosaTestPasses.cpp | 58 outputType.getElementType().dyn_cast<mlir::quant::UniformQuantizedType>(); in matchAndRewrite() 135 inputType.getElementType().dyn_cast<mlir::quant::UniformQuantizedType>(); in matchAndRewrite() 137 weightType.getElementType().dyn_cast<mlir::quant::UniformQuantizedType>(); in matchAndRewrite() 139 outputType.getElementType().dyn_cast<mlir::quant::UniformQuantizedType>(); in matchAndRewrite()
|