Difference between revisions of "NaplesPU.td"

From NaplesPU Documentation
Jump to: navigation, search
Line 14: Line 14:
 
   bit isMCAsmWriter = 1;
 
   bit isMCAsmWriter = 1;
 
}
 
}
 +
 +
def : Processor<"nuplus", NoItineraries, []>;
  
 
def NuPlus : Target {
 
def NuPlus : Target {

Revision as of 14:29, 1 June 2018

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 : Processor<"nuplus", NoItineraries, []>;

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