[lit] Improve lit.Run class
[llvm-complete.git] / utils / gn / secondary / llvm / lib / Target / RISCV / Utils / BUILD.gn
blob6ae0d7869dd56fcd47e93f7299799ed49f568ac5
1 import("//llvm/utils/TableGen/tablegen.gni")
3 # Generates RISCVGenSystemOperands.inc
4 tablegen("RISCVGenSystemOperands") {
5   visibility = [ ":Utils" ]
6   args = [ "-gen-searchable-tables" ]
7   td_file = "../RISCV.td"
10 static_library("Utils") {
11   output_name = "LLVMRISCVUtils"
12   public_deps = [
13     ":RISCVGenSystemOperands",
14   ]
15   deps = [
16     "//llvm/lib/MC",
17     "//llvm/lib/Support",
19     # MCTargetDesc depends on Utils, so we can't depend on the full
20     # MCTargetDesc target here: it would form a cycle.
21     "//llvm/lib/Target/RISCV/MCTargetDesc:tablegen",
22   ]
24   include_dirs = [ ".." ]
25   sources = [
26     "RISCVBaseInfo.cpp",
27     "RISCVMatInt.cpp",
28   ]