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

Method OpConvertFToS

Source/SpireCore/SpirVCodeGen.cpp:1593–1601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1591 streamFunctionBody.Add(operandID);
1592 }
1593 void OpConvertFToS(const int ID, const int typeID, const int operandID)
1594 {
1595 sbTextFunctionBody << LR"(%)" << ID << LR"( = OpConvertFToS %)" << typeID << LR"( %)" << operandID << EndLine;
1596
1597 streamFunctionBody.Add(110 + (4 << 16));
1598 streamFunctionBody.Add(typeID);
1599 streamFunctionBody.Add(ID);
1600 streamFunctionBody.Add(operandID);
1601 }
1602 void OpConvertFToU(const int ID, const int typeID, const int operandID)
1603 {
1604 sbTextFunctionBody << LR"(%)" << ID << LR"( = OpConvertFToU %)" << typeID << LR"( %)" << operandID << EndLine;

Callers 1

AddInstrConvertFToSMethod · 0.80

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected