| /llvm-project-15.0.7/mlir/lib/Dialect/Math/Transforms/ |
| H A D | ExpandPatterns.cpp | 28 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 D | AlgebraicSimplification.cpp | 95 loc, rewriter.getFloatAttr(getElementTypeOrSelf(op.getType()), 1.0)); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/ComplexToStandard/ |
| H A D | ComplexToStandard.cpp | 82 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 D | MathToLLVM.cpp | 106 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 D | SplitReduction.cpp | 37 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 D | Builders.cpp | 193 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 D | MathToSPIRV.cpp | 256 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 D | Builders.h | 102 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 D | CodegenUtils.cpp | 163 return builder.getFloatAttr(tp, 1.0); in getOneAttr()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/TosaToLinalg/ |
| H A D | TosaToLinalg.cpp | 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() 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 D | TosaToLinalgNamed.cpp | 704 initialAttr = rewriter.getFloatAttr( in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SCFToOpenMP/ |
| H A D | SCFToOpenMP.cpp | 257 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 D | ArithmeticOps.cpp | 168 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 D | WmmaOpsToNvvm.cpp | 294 builder.getFloatAttr(floatType, in createMinMaxF()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/Tosa/IR/ |
| H A D | TosaCanonicalizations.cpp | 265 constantAttr = rewriter.getFloatAttr(elementTy, 0.0); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/VectorToLLVM/ |
| H A D | ConvertVectorToLLVM.cpp | 413 builder.getFloatAttr(floatType, in createMinMaxF() 518 rewriter.getFloatAttr(eltType, 1.0)); in matchAndRewrite()
|
| /llvm-project-15.0.7/mlir/lib/Conversion/SPIRVToLLVM/ |
| H A D | SPIRVToLLVM.cpp | 105 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 D | ConvertFromLLVMIR.cpp | 358 return b.getFloatAttr(floatTy, c->getValueAPF()); in getConstantAsAttr()
|
| /llvm-project-15.0.7/mlir/lib/Target/SPIRV/Deserialization/ |
| H A D | Deserializer.cpp | 1192 auto attr = opBuilder.getFloatAttr(floatType, value); in processConstant()
|
| /llvm-project-15.0.7/mlir/lib/Dialect/SPIRV/IR/ |
| H A D | SPIRVOps.cpp | 1912 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 D | FIRBuilder.cpp | 124 auto attr = getFloatAttr(fltTy, value); in createRealConstant()
|
| /llvm-project-15.0.7/flang/lib/Lower/ |
| H A D | ConvertExpr.cpp | 1517 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 D | Bridge.cpp | 982 loc, exprType, builder->getFloatAttr(exprType, 0.0)); in genFIR()
|