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

Method PrintAllocVarInstr

Source/SpireCore/CLikeCodeGen.cpp:398–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396 }
397
398 void CLikeCodeGen::PrintAllocVarInstr(CodeGenContext & ctx, AllocVarInstruction * instr)
399 {
400 if (dynamic_cast<ILConstOperand*>(instr->Size.Ptr()))
401 {
402 ctx.DefineVariable(instr);
403 }
404 else
405 throw InvalidProgramException("size operand of allocVar instr is not an intermediate.");
406 }
407
408 void CLikeCodeGen::PrintFetchArgInstrExpr(CodeGenContext & ctx, FetchArgInstruction * instr)
409 {

Callers

nothing calls this directly

Calls 3

DefineVariableMethod · 0.80
PtrMethod · 0.45

Tested by

no test coverage detected