57 lines · plain
1//- DirectX.td - Describe the DirectX Target Machine ----------*- tablegen -*-//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8///9/// \file10/// This is a target description file for the DirectX target11///12//===----------------------------------------------------------------------===//13 14//===----------------------------------------------------------------------===//15// Target-independent interfaces which we are implementing16//===----------------------------------------------------------------------===//17 18include "llvm/Target/Target.td"19include "DXILStubs.td"20 21//===----------------------------------------------------------------------===//22// DirectX Subtarget features.23//===----------------------------------------------------------------------===//24 25defm : RemapAllTargetPseudoPointerOperands<DXILClass>;26 27def DirectXInstrInfo : InstrInfo;28 29//===----------------------------------------------------------------------===//30// DirectX Processors supported.31//===----------------------------------------------------------------------===//32 33def : ProcessorModel<"generic", NoSchedModel, []>;34 35 36//===----------------------------------------------------------------------===//37// Target Declaration38//===----------------------------------------------------------------------===//39 40def DirectXAsmParser : AsmParser {41 // The physical register names are not in the binary format or asm text42 let ShouldEmitMatchRegisterName = 0;43}44 45def DirectXAsmWriter : AsmWriter {46 string AsmWriterClassName = "InstPrinter";47 int PassSubtarget = 0;48 int Variant = 0;49 bit isMCAsmWriter = 1;50}51 52def DirectX : Target {53 let InstructionSet = DirectXInstrInfo;54 let AssemblyParsers = [DirectXAsmParser];55 let AssemblyWriters = [DirectXAsmWriter];56}57