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

Method AddInstrSnegate

Source/SpireCore/SpirVCodeGen.cpp:2855–2867  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2853 }
2854
2855 int AddInstrSnegate(ILOperand *op, int typeID, int valueID)
2856 {
2857 ++CurrentID;
2858 CodeGen.OpSNegate(CurrentID, typeID, valueID);
2859 IDInfos[CurrentID] = IDInfo::CreateIDInfoForValue(
2860 CurrentID,
2861 IDInfos[typeID]().GetILType(),
2862 op,
2863 typeID
2864 );
2865 UpdateValue(op, CurrentID);
2866 return CurrentID;
2867 }
2868
2869 int AddInstrNot(ILOperand *op, int typeID, int valueID)
2870 {

Callers 1

PrintUnaryInstrMethod · 0.80

Calls 2

OpSNegateMethod · 0.80
GetILTypeMethod · 0.80

Tested by

no test coverage detected