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

Method OpFunctionCall

Source/SpireCore/SpirVCodeGen.cpp:901–914  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899 streamFunctionBody.Add(x);
900 }
901 void OpFunctionCall(const int ID, const int typeID, const int funcID, const List<int> &args)
902 {
903 sbTextFunctionBody << LR"(%)" << ID << LR"( = OpFunctionCall %)" << typeID << LR"( %)" << funcID;
904 for (auto & arg : args)
905 sbTextFunctionBody << LR"( %)" << arg;
906 sbTextFunctionBody << EndLine;
907
908 streamFunctionBody.Add(57 + ((4 + args.Count()) << 16));
909 streamFunctionBody.Add(typeID);
910 streamFunctionBody.Add(ID);
911 streamFunctionBody.Add(funcID);
912 for (auto & arg : args)
913 streamFunctionBody.Add(arg);
914 }
915 void OpKill()
916 {
917 sbTextFunctionBody << LR"(OpKill)" << EndLine;

Callers 1

AddInstrFunctionCallMethod · 0.80

Calls 2

AddMethod · 0.45
CountMethod · 0.45

Tested by

no test coverage detected