summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Target/RISCV/RISCV.td
blob: 14838309a1bfc423d321cfb7ad319758bbb854af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
//===-- RISCV.td - Describe the RISCV 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 "RISCVRegisterInfo.td"
include "RISCVInstrInfo.td"


def RISCVInstrInfo : InstrInfo;

def Feature64Bit   : SubtargetFeature<"64bit", "HasRV64", "true",
                                      "Implements RV64">;

def : ProcessorModel<"generic-rv32", NoSchedModel, []>;

def : ProcessorModel<"generic-rv64", NoSchedModel, [Feature64Bit]>;

def RISCV : Target {
  let InstructionSet = RISCVInstrInfo;
}
OpenPOWER on IntegriCloud