MCPcopy Create free account
hub / github.com/KhronosGroup/SPIRV-Tools / FoldQuantizeToF16

Function FoldQuantizeToF16

source/opt/const_folding_rules.cpp:983–985  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

981ConstantFoldingRule FoldFToI() { return FoldFPUnaryOp(FoldFToIOp()); }
982ConstantFoldingRule FoldIToF() { return FoldFPUnaryOp(FoldIToFOp()); }
983ConstantFoldingRule FoldQuantizeToF16() {
984 return FoldFPUnaryOp(FoldQuantizeToF16Scalar());
985}
986
987// Define the folding rules for subtraction, addition, multiplication, and
988// division for floating point values.

Callers 1

AddFoldingRulesMethod · 0.85

Calls 2

FoldFPUnaryOpFunction · 0.85
FoldQuantizeToF16ScalarFunction · 0.85

Tested by

no test coverage detected