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

Method AddInstrBinaryInstr

Source/SpireCore/SpirVCodeGen.cpp:2953–2961  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2951 }
2952
2953 int AddInstrBinaryInstr(ILOperand *op, RefPtr<ILType> instrType, const String &opStr, int ID0, int ID1)
2954 {
2955 int instrTypeID = DefineType(instrType);
2956 CurrentID++;
2957 CodeGen.OpBinaryInstr(CurrentID, opStr, instrTypeID, ID0, ID1);
2958 IDInfos[CurrentID] = IDInfo::CreateIDInfoForValue(CurrentID, instrType, op, instrTypeID);
2959 UpdateValue(op, CurrentID);
2960 return CurrentID;
2961 }
2962
2963 int AddInstrMulAdd(int operandID, float mul, float add)
2964 {

Callers 3

PrintBinaryInstrMethod · 0.80
PrintExportInstrMethod · 0.80
PrintImportInstrMethod · 0.80

Calls 1

OpBinaryInstrMethod · 0.80

Tested by

no test coverage detected