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

Function FoldFAdd

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

Source from the content-addressed store, hash-verified

988// division for floating point values.
989ConstantFoldingRule FoldFSub() { return FoldFPBinaryOp(FOLD_FPARITH_OP(-)); }
990ConstantFoldingRule FoldFAdd() { return FoldFPBinaryOp(FOLD_FPARITH_OP(+)); }
991ConstantFoldingRule FoldFMul() { return FoldFPBinaryOp(FOLD_FPARITH_OP(*)); }
992
993// x - x = 0

Callers 1

AddFoldingRulesMethod · 0.85

Calls 1

FoldFPBinaryOpFunction · 0.85

Tested by

no test coverage detected