llvm/llvm/utils/gn/secondary/llvm/lib/Target/RISCV/AsmParser/BUILD.gn

import("//llvm/utils/TableGen/tablegen.gni")

tablegen("RISCVGenAsmMatcher") {
  visibility = [
    ":AsmParser",
    "//llvm/lib/Target/RISCV:LLVMRISCVCodeGen",
  ]
  args = [ "-gen-asm-matcher" ]
  td_file = "../RISCV.td"
}

static_library("AsmParser") {
  output_name = "LLVMRISCVAsmParser"
  deps = [
    ":RISCVGenAsmMatcher",
    "//llvm/lib/MC",
    "//llvm/lib/MC/MCParser",
    "//llvm/lib/Support",
    "//llvm/lib/Target/RISCV:RISCVGenCompressInstEmitter",
    "//llvm/lib/Target/RISCV/MCTargetDesc",
    "//llvm/lib/TargetParser",
  ]
  include_dirs = [ ".." ]
  sources = [ "RISCVAsmParser.cpp" ]
}