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

Function FoldIToF

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

Source from the content-addressed store, hash-verified

980// Define the folding rule for conversion between floating point and integer
981ConstantFoldingRule FoldFToI() { return FoldFPUnaryOp(FoldFToIOp()); }
982ConstantFoldingRule FoldIToF() { return FoldFPUnaryOp(FoldIToFOp()); }
983ConstantFoldingRule FoldQuantizeToF16() {
984 return FoldFPUnaryOp(FoldQuantizeToF16Scalar());
985}

Callers 1

AddFoldingRulesMethod · 0.85

Calls 2

FoldFPUnaryOpFunction · 0.85
FoldIToFOpFunction · 0.85

Tested by

no test coverage detected