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

Method OpFAdd

Source/SpireCore/SpirVCodeGen.cpp:1065–1074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1063 streamFunctionBody.Add(valueID);
1064 }
1065 void OpFAdd(const int ID, const int typeID, const int op1, const int op2)
1066 {
1067 sbTextFunctionBody << LR"(%)" << ID << LR"( = OpFAdd %)" << typeID << LR"( %)" << op1 << LR"( %)" << op2 << EndLine;
1068
1069 streamFunctionBody.Add(129 + (5 << 16));
1070 streamFunctionBody.Add(typeID);
1071 streamFunctionBody.Add(ID);
1072 streamFunctionBody.Add(op1);
1073 streamFunctionBody.Add(op2);
1074 }
1075 void OpFMul(const int ID, const int typeID, const int op1, const int op2)
1076 {
1077 sbTextFunctionBody << LR"(%)" << ID << LR"( = OpFMul %)" << typeID << LR"( %)" << op1 << LR"( %)" << op2 << EndLine;

Callers 1

AddInstrMulAddMethod · 0.80

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected