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

Function FoldFToI

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

Define the folding rule for conversion between floating point and integer

Source from the content-addressed store, hash-verified

979
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());

Callers 1

AddFoldingRulesMethod · 0.85

Calls 2

FoldFPUnaryOpFunction · 0.85
FoldFToIOpFunction · 0.85

Tested by

no test coverage detected