Home
last modified time | relevance | path

Searched refs:floatOne (Results 1 – 3 of 3) sorted by relevance

/external/skia/resources/sksl/folding/
DCastFolding.sksl4 const float floatOne = 1;
12 ok = ok && (int(floatOne) == intOne);
13 ok = ok && (float(intOne) == floatOne);
21 ok = ok && (half4(int4One) == half4(half(floatOne))); // cast(vector) == splat(cast(scalar))
22 ok = ok && (half4(intOne) == half4(float4(floatOne))); // splatcast(sclr) == cast(splat(sclr))
/external/llvm-project/mlir/lib/Dialect/StandardOps/Transforms/
DExpandTanh.cpp37 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in matchAndRewrite() local
39 Value one = rewriter.create<ConstantOp>(loc, floatOne); in matchAndRewrite()
/external/llvm-project/mlir/lib/Conversion/StandardToLLVM/
DStandardToLLVM.cpp2504 auto floatOne = rewriter.getFloatAttr(floatType, 1.0); in matchAndRewrite() local
2511 SplatElementsAttr::get(resultType.cast<ShapedType>(), floatOne)); in matchAndRewrite()
2513 one = rewriter.create<LLVM::ConstantOp>(loc, operandType, floatOne); in matchAndRewrite()
2530 floatOne); in matchAndRewrite()