Difference between revisions of "NaplesPU.td"

From NaplesPU Documentation
Jump to: navigation, search
(Created page with "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...")
(No difference)

Revision as of 16:02, 27 September 2017

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];
}