MCPcopy Create free account
hub / github.com/csyonghe/Spire / AddInstrFnegate

Method AddInstrFnegate

Source/SpireCore/SpirVCodeGen.cpp:2841–2853  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2839 }
2840
2841 int AddInstrFnegate(ILOperand *op, int typeID, int valueID)
2842 {
2843 ++CurrentID;
2844 CodeGen.OpFNegate(CurrentID, typeID, valueID);
2845 IDInfos[CurrentID] = IDInfo::CreateIDInfoForValue(
2846 CurrentID,
2847 IDInfos[typeID]().GetILType(),
2848 op,
2849 typeID
2850 );
2851 UpdateValue(op, CurrentID);
2852 return CurrentID;
2853 }
2854
2855 int AddInstrSnegate(ILOperand *op, int typeID, int valueID)
2856 {

Callers 1

PrintUnaryInstrMethod · 0.80

Calls 2

OpFNegateMethod · 0.80
GetILTypeMethod · 0.80

Tested by

no test coverage detected