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

Method OpBitCast

Source/SpireCore/SpirVCodeGen.cpp:1620–1628  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1618 streamFunctionBody.Add(operandID);
1619 }
1620 void OpBitCast(const int ID, const int typeID, const int operandID)
1621 {
1622 sbTextFunctionBody << LR"(%)" << ID << LR"( = OpBitcast %)" << typeID << LR"( %)" << operandID << EndLine;
1623
1624 streamFunctionBody.Add(124 + (4 << 16));
1625 streamFunctionBody.Add(typeID);
1626 streamFunctionBody.Add(ID);
1627 streamFunctionBody.Add(operandID);
1628 }
1629 void OpTypeVoid(const int ID)
1630 {
1631 sbTextTypeDefinition << LR"(%)" << ID << LR"( = OpTypeVoid)" << EndLine;

Callers 3

AddInstrConvertSToUMethod · 0.80
AddInstrConvertUToSMethod · 0.80
AddInstrBitcastMethod · 0.80

Calls 1

AddMethod · 0.45

Tested by

no test coverage detected