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

Method AddInstrLoad

Source/SpireCore/SpirVCodeGen.cpp:2581–2594  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2579 }
2580
2581 int AddInstrLoad(int variableID, MemoryAccess ma)
2582 {
2583 ++CurrentID;
2584 RefPtr<ILType> Type = IDInfos[variableID]().GetILType();
2585 int TypeID = IDInfos[variableID]().GetBaseTypeID();
2586 CodeGen.OpLoad(CurrentID, TypeID, variableID, ma);
2587 IDInfos[CurrentID]
2588 = IDInfo::CreateIDInfoForValue(
2589 CurrentID,
2590 Type,
2591 0,
2592 TypeID);
2593 return CurrentID;
2594 }
2595
2596 int AddInstrLoad(ILOperand *op, ILOperand *targetOp, MemoryAccess ma)
2597 {

Callers 6

GetOperandValueMethod · 0.80
PrintUnaryInstrMethod · 0.80
PrintBinaryInstrMethod · 0.80
PrintExportInstrMethod · 0.80
PrintImportInstrMethod · 0.80

Calls 3

GetILTypeMethod · 0.80
GetBaseTypeIDMethod · 0.80
OpLoadMethod · 0.80

Tested by

no test coverage detected