NaplesPU.td

From NaplesPU Documentation
Revision as of 15:31, 16 October 2017 by Catello (talk | contribs)
Jump to: navigation, search

The NuPlus.td file contains the definition of the Target class NuPlus (defined in "compiler/include/llvm/Target/Target.td"). The file also contains the definition of the NuPlusInstrInfo, NuPlusAsmParser and NuPlusAsmWriter required by the Target class.

def NuPlusInstrInfo : InstrInfo;

def NuPlusAsmParser : AsmParser {
  bit ShouldEmitMatchRegisterName = 1;
}

def NuPlusAsmWriter : AsmWriter {
  string AsmWriterClassName  = "InstPrinter";
  bit isMCAsmWriter = 1;
}

def NuPlus : Target {
  // Pull in Instruction Info:
  let InstructionSet = NuPlusInstrInfo;
  let AssemblyParsers  = [NuPlusAsmParser];
  let AssemblyWriters = [NuPlusAsmWriter];
}