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

Method AddInstrExtInst

Source/SpireCore/SpirVCodeGen.cpp:2413–2421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2411 }
2412
2413 int AddInstrExtInst(ILOperand* op, RefPtr<ILType> Type, int instrNumber, List<int> Arguments)
2414 {
2415 int typeID = DefineType(Type);
2416 ++CurrentID;
2417 CodeGen.OpExtInst(CurrentID, typeID, instrNumber, Arguments);
2418 IDInfos[CurrentID] = IDInfo::CreateIDInfoForValue(CurrentID, Type, op, typeID);
2419 UpdateValue(op, CurrentID);
2420 return CurrentID;
2421 }
2422
2423 void AddInstrStore(ILOperand *op, int op0, int op1) {
2424 CodeGen.OpStore(op0, op1);

Callers 1

PrintCallInstrMethod · 0.80

Calls 1

OpExtInstMethod · 0.80

Tested by

no test coverage detected