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...")
 
Line 1: Line 1:
 +
[[Category:Tablegen Files]]
 
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.
 
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.
  

Revision as of 14:31, 16 October 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];
}