Compiler projects using llvm
import("//llvm/utils/TableGen/tablegen.gni")

tablegen("SparcGenAsmMatcher") {
  visibility = [ ":AsmParser" ]
  args = [ "-gen-asm-matcher" ]
  td_file = "../Sparc.td"
}

static_library("AsmParser") {
  output_name = "LLVMSparcAsmParser"
  deps = [
    ":SparcGenAsmMatcher",
    "//llvm/lib/MC",
    "//llvm/lib/MC/MCParser",
    "//llvm/lib/Support",
    "//llvm/lib/Target/Sparc/MCTargetDesc",
  ]
  include_dirs = [ ".." ]
  sources = [ "SparcAsmParser.cpp" ]
}