Home
last modified time | relevance | path

Searched refs:getFloatAttr (Results 1 – 23 of 23) sorted by relevance

/llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/
H A DExpandPatterns.cpp28 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in convertTanhOp()
29 auto floatTwo = rewriter.getFloatAttr(floatType, 2.0); in convertTanhOp()
48 auto floatZero = rewriter.getFloatAttr(floatType, 0.0); in convertTanhOp()
H A DAlgebraicSimplification.cpp95 loc, rewriter.getFloatAttr(getElementTypeOrSelf(op.getType()), 1.0)); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/ComplexToStandard/
H A DComplexToStandard.cpp82 elementType, b.getFloatAttr(elementType, -1)); in matchAndRewrite()
171 loc, elementType, rewriter.getFloatAttr(elementType, 0.5)); in matchAndRewrite()
308 rewriter.getFloatAttr( in matchAndRewrite()
335 loc, elementType, rewriter.getFloatAttr(elementType, 1)); in matchAndRewrite()
567 b.getFloatAttr(elementType, in matchAndRewrite()
880 loc, elementType, rewriter.getFloatAttr(elementType, 1)); in matchAndRewrite()
921 elementType, builder.getFloatAttr(elementType, 0.5)); in powOpConversionImpl()
944 elementType, builder.getFloatAttr(elementType, 0)); in powOpConversionImpl()
946 elementType, builder.getFloatAttr(elementType, 1)); in powOpConversionImpl()
1003 elementType, builder.getFloatAttr(elementType, -0.5)); in matchAndRewrite()
[all …]
/llvm-project-15.0.7/mlir/lib/Conversion/MathToLLVM/
H A DMathToLLVM.cpp106 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in matchAndRewrite()
159 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in matchAndRewrite()
213 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Dialect/Linalg/Transforms/
H A DSplitReduction.cpp37 return b.getFloatAttr(resultType, llvm::APFloat::getZero(semantic)); in getNeutralElement()
39 return b.getFloatAttr(resultType, llvm::APFloat(semantic, 1)); in getNeutralElement()
41 return b.getFloatAttr(resultType, in getNeutralElement()
44 return b.getFloatAttr(resultType, in getNeutralElement()
/llvm-project-15.0.7/mlir/lib/IR/
H A DBuilders.cpp193 FloatAttr Builder::getFloatAttr(Type type, double value) { in getFloatAttr() function in Builder
197 FloatAttr Builder::getFloatAttr(Type type, const APFloat &value) { in getFloatAttr() function in Builder
266 return getFloatAttr(type, 0.0); in getZeroAttr()
/llvm-project-15.0.7/mlir/lib/Conversion/MathToSPIRV/
H A DMathToSPIRV.cpp256 rewriter.getFloatAttr(ety, 0.5).getValue())); in matchAndRewrite()
259 loc, ty, rewriter.getFloatAttr(ety, 0.5)); in matchAndRewrite()
/llvm-project-15.0.7/mlir/include/mlir/IR/
H A DBuilders.h102 FloatAttr getFloatAttr(Type type, double value);
103 FloatAttr getFloatAttr(Type type, const APFloat &value);
/llvm-project-15.0.7/mlir/lib/Dialect/SparseTensor/Transforms/
H A DCodegenUtils.cpp163 return builder.getFloatAttr(tp, 1.0); in getOneAttr()
/llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/
H A DTosaToLinalg.cpp380 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()
496 loc, rewriter.getFloatAttr(srcTy, 0.0)); in createLinalgBodyCalculationForElementwiseOp()
683 return rewriter.getFloatAttr(elementTy, 0.0); in createInitialValueForReduceOp()
689 return rewriter.getFloatAttr(elementTy, 1.0); in createInitialValueForReduceOp()
695 return rewriter.getFloatAttr( in createInitialValueForReduceOp()
704 return rewriter.getFloatAttr( in createInitialValueForReduceOp()
719 return rewriter.getFloatAttr( in createInitialValueForReduceOp()
1857 constantAttr = rewriter.getFloatAttr(elementTy, 0.0); in matchAndRewrite()
H A DTosaToLinalgNamed.cpp704 initialAttr = rewriter.getFloatAttr( in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/SCFToOpenMP/
H A DSCFToOpenMP.cpp257 builder.getFloatAttr(type, 0.0)); in declareReduction()
288 builder.getFloatAttr(type, 1.0)); in declareReduction()
/llvm-project-15.0.7/mlir/lib/Dialect/Arithmetic/IR/
H A DArithmeticOps.cpp168 builder.getFloatAttr(type, value)); in build()
1957 return builder.getFloatAttr( in getIdentityValueAttr()
1975 return builder.getFloatAttr( in getIdentityValueAttr()
1990 return builder.getFloatAttr(resultType, 1); in getIdentityValueAttr()
/llvm-project-15.0.7/mlir/lib/Conversion/GPUToNVVM/
H A DWmmaOpsToNvvm.cpp294 builder.getFloatAttr(floatType, in createMinMaxF()
/llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/
H A DTosaCanonicalizations.cpp265 constantAttr = rewriter.getFloatAttr(elementTy, 0.0); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/VectorToLLVM/
H A DConvertVectorToLLVM.cpp413 builder.getFloatAttr(floatType, in createMinMaxF()
518 rewriter.getFloatAttr(eltType, 1.0)); in matchAndRewrite()
/llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/
H A DSPIRVToLLVM.cpp105 rewriter.getFloatAttr(floatType, value))); in createFPConstant()
109 loc, dstType, rewriter.getFloatAttr(floatType, value)); in createFPConstant()
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DConvertFromLLVMIR.cpp358 return b.getFloatAttr(floatTy, c->getValueAPF()); in getConstantAsAttr()
/llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/
H A DDeserializer.cpp1192 auto attr = opBuilder.getFloatAttr(floatType, value); in processConstant()
/llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/
H A DSPIRVOps.cpp1912 loc, type, builder.getFloatAttr(floatType, 0.0)); in getZero()
1945 loc, type, builder.getFloatAttr(floatType, 1.0)); in getOne()
/llvm-project-15.0.7/flang/lib/Optimizer/Builder/
H A DFIRBuilder.cpp124 auto attr = getFloatAttr(fltTy, value); in createRealConstant()
/llvm-project-15.0.7/flang/lib/Lower/
H A DConvertExpr.cpp1517 val = builder.getFloatAttr(inInitializer->rawType, floatVal); in genRawLit()
1524 val = builder.getFloatAttr(inInitializer->rawType, realVal); in genRawLit()
1528 val = builder.getFloatAttr(inInitializer->rawType, imgVal); in genRawLit()
H A DBridge.cpp982 loc, exprType, builder->getFloatAttr(exprType, 0.0)); in genFIR()