Files
Nim/nim/vis.pas
Andreas Rumpf 405b86068e Initial import
2008-06-22 16:14:11 +02:00

34 lines
731 B
ObjectPascal
Executable File

//
//
// The Nimrod Compiler
// (c) Copyright 2008 Andreas Rumpf
//
// See the file "copying.txt", included in this
// distribution, for details about the copyright.
//
// Virtual instruction set for Nimrod. Has been designed to support:
// * efficient C code generation (most important goal)
// * efficient LLVM code generation (second goal)
// * interpretation
// So it supports a typed virtual instruction set.
type
TInstrKind = (
insNone, // invalid instruction
insLabel, // a label
insTemp,
insGoto, // a goto
insTjmp,
insFjmp,
insBin, // ordinary binary operator
insLast
);
TInstr = record
Kind: TInstrKind;
end;