diff options
Diffstat (limited to 'lib/Target/BPF/BPF.td')
-rw-r--r-- | lib/Target/BPF/BPF.td | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lib/Target/BPF/BPF.td b/lib/Target/BPF/BPF.td new file mode 100644 index 0000000..a4ce90a --- /dev/null +++ b/lib/Target/BPF/BPF.td @@ -0,0 +1,31 @@ +//===-- BPF.td - Describe the BPF Target Machine -----------*- tablegen -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +include "llvm/Target/Target.td" + +include "BPFRegisterInfo.td" +include "BPFCallingConv.td" +include "BPFInstrInfo.td" + +def BPFInstrInfo : InstrInfo; + +class Proc<string Name, list<SubtargetFeature> Features> + : Processor<Name, NoItineraries, Features>; + +def : Proc<"generic", []>; + +def BPFInstPrinter : AsmWriter { + string AsmWriterClassName = "InstPrinter"; + bit isMCAsmWriter = 1; +} + +def BPF : Target { + let InstructionSet = BPFInstrInfo; + let AssemblyWriters = [BPFInstPrinter]; +} |