| /llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/ |
| H A D | TosaToLinalg.cpp | 48 auto elementTy = in createLinalgBodyCalculationForElementwiseOp() local 117 if (elementTy.isInteger(32)) in createLinalgBodyCalculationForElementwiseOp() 203 elementTy, APInt::getAllOnes(elementTy.getIntOrFloatBitWidth())); in createLinalgBodyCalculationForElementwiseOp() 332 if (elementTy.isa<FloatType>() || elementTy.isa<IntegerType>()) in createLinalgBodyCalculationForElementwiseOp() 380 loc, elementTy, rewriter.getFloatAttr(elementTy, min_apf)); in createLinalgBodyCalculationForElementwiseOp() 382 loc, elementTy, rewriter.getFloatAttr(elementTy, max_apf)); in createLinalgBodyCalculationForElementwiseOp() 425 loc, elementTy, rewriter.getFloatAttr(elementTy, max_apf)); in createLinalgBodyCalculationForElementwiseOp() 451 Type srcTy = elementTy; in createLinalgBodyCalculationForElementwiseOp() 701 elementTy, APInt::getSignedMaxValue(elementTy.getIntOrFloatBitWidth())); in createInitialValueForReduceOp() 710 elementTy, APInt::getSignedMinValue(elementTy.getIntOrFloatBitWidth())); in createInitialValueForReduceOp() [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/ |
| H A D | ExpandPatterns.cpp | 60 auto elementTy = operand.getType(); in convertCtlzOp() local 64 int bitWidth = elementTy.getIntOrFloatBitWidth(); in convertCtlzOp() 66 rewriter.create<arith::ConstantOp>(loc, IntegerAttr::get(elementTy, 0)); in convertCtlzOp() 68 loc, IntegerAttr::get(elementTy, bitWidth)); in convertCtlzOp() 71 SmallVector<Type> types = {elementTy, elementTy, elementTy}; in convertCtlzOp() 99 rewriter.create<arith::ConstantOp>(loc, IntegerAttr::get(elementTy, 1)); in convertCtlzOp()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/ |
| H A D | TosaCanonicalizations.cpp | 261 Type elementTy = inputTy.getElementType(); in matchAndRewrite() local 264 if (elementTy.isa<FloatType>()) { in matchAndRewrite() 265 constantAttr = rewriter.getFloatAttr(elementTy, 0.0); in matchAndRewrite() 266 } else if (elementTy.isa<IntegerType>() && !op.getQuantizationInfo()) { in matchAndRewrite() 267 constantAttr = rewriter.getIntegerAttr(elementTy, 0); in matchAndRewrite() 268 } else if (elementTy.isa<IntegerType>() && op.getQuantizationInfo()) { in matchAndRewrite() 270 constantAttr = rewriter.getIntegerAttr(elementTy, value); in matchAndRewrite() 280 RankedTensorType::get({}, elementTy), constantAttr); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/ |
| H A D | Deserializer.cpp | 717 if (!elementTy) { in processType() 809 Type elementTy = getType(operands[1]); in processArrayType() local 810 if (!elementTy) { in processArrayType() 868 Type elementTy = getType(operands[1]); in processCooperativeMatrixType() local 869 if (!elementTy) { in processCooperativeMatrixType() 1002 Type elementTy = getType(operands[1]); in processMatrixType() local 1003 if (!elementTy) { in processMatrixType() 1035 Type elementTy = getType(operands[1]); in processImageType() local 1036 if (!elementTy) in processImageType() 1080 Type elementTy = getType(operands[1]); in processSampledImageType() local [all …]
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVDialect.cpp | 338 auto elementTy = parseAndVerifyType(dialect, parser); in parseCooperativeMatrixType() local 339 if (!elementTy) in parseCooperativeMatrixType() 348 return CooperativeMatrixNVType::get(elementTy, scope, dims[0], dims[1]); in parseCooperativeMatrixType()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/VectorToLLVM/ |
| H A D | ConvertVectorToLLVM.cpp | 84 Type elementTy = typeConverter.convertType(memrefType.getElementType()); in getMemRefAlignment() local 85 if (!elementTy) in getMemRefAlignment() 92 .getPreferredAlignment(elementTy, typeConverter.getDataLayout()); in getMemRefAlignment()
|
| /llvm-project-15.0.7/clang/lib/CodeGen/ |
| H A D | CGExprCXX.cpp | 1715 llvm::Type *elementTy = ConvertTypeForMem(allocType); in EmitCXXNewExpr() local 1716 Address result = Builder.CreateElementBitCast(allocation, elementTy); in EmitCXXNewExpr() 1738 EmitNewInitializer(*this, E, allocType, elementTy, result, numElements, in EmitCXXNewExpr()
|
| /llvm-project-15.0.7/mlir/lib/Rewrite/ |
| H A D | ByteCode.cpp | 530 Type elementTy = rangeType.getElementType(); in allocateMemoryIndices() local 531 if (elementTy.isa<pdl::TypeType>()) in allocateMemoryIndices() 533 else if (elementTy.isa<pdl::ValueType>()) in allocateMemoryIndices()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tensor/IR/ |
| H A D | TensorOps.cpp | 512 Type elementTy = getElementTypeOrSelf(indexCast.getIn()); in matchAndRewrite() local 515 loc, elementTy, indexCast.getIn(), extract.getIndices()); in matchAndRewrite()
|