Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
llvm-svn: 360645
- Loading branch information
Showing
6 changed files
with
192 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
llvm/utils/gn/secondary/llvm/lib/Target/Sparc/AsmParser/BUILD.gn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
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", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
import("//llvm/utils/TableGen/tablegen.gni") | ||
|
||
tablegen("SparcGenCallingConv") { | ||
visibility = [ ":LLVMSparcCodeGen" ] | ||
args = [ "-gen-callingconv" ] | ||
td_file = "Sparc.td" | ||
} | ||
|
||
tablegen("SparcGenDAGISel") { | ||
visibility = [ ":LLVMSparcCodeGen" ] | ||
args = [ "-gen-dag-isel" ] | ||
td_file = "Sparc.td" | ||
} | ||
|
||
static_library("LLVMSparcCodeGen") { | ||
deps = [ | ||
":SparcGenCallingConv", | ||
":SparcGenDAGISel", | ||
"MCTargetDesc", | ||
"TargetInfo", | ||
"//llvm/include/llvm/Config:llvm-config", | ||
"//llvm/lib/CodeGen", | ||
"//llvm/lib/CodeGen/AsmPrinter", | ||
"//llvm/lib/CodeGen/SelectionDAG", | ||
"//llvm/lib/IR", | ||
"//llvm/lib/MC", | ||
"//llvm/lib/Support", | ||
"//llvm/lib/Target", | ||
] | ||
include_dirs = [ "." ] | ||
sources = [ | ||
"DelaySlotFiller.cpp", | ||
"LeonPasses.cpp", | ||
"SparcAsmPrinter.cpp", | ||
"SparcInstrInfo.cpp", | ||
"SparcISelDAGToDAG.cpp", | ||
"SparcISelLowering.cpp", | ||
"SparcFrameLowering.cpp", | ||
"SparcMachineFunctionInfo.cpp", | ||
"SparcRegisterInfo.cpp", | ||
"SparcSubtarget.cpp", | ||
"SparcTargetMachine.cpp", | ||
"SparcMCInstLower.cpp", | ||
"SparcTargetObjectFile.cpp", | ||
] | ||
} | ||
|
||
# This is a bit different from most build files: Due to this group | ||
# having the directory's name, "//llvm/lib/Target/Sparc" will refer to this | ||
# target, which pulls in the code in this directory *and all subdirectories*. | ||
# For most other directories, "//llvm/lib/Foo" only pulls in the code directly | ||
# in "llvm/lib/Foo". The forwarding targets in //llvm/lib/Target expect this | ||
# different behavior. | ||
group("Sparc") { | ||
deps = [ | ||
":LLVMSparcCodeGen", | ||
"AsmParser", | ||
"Disassembler", | ||
"MCTargetDesc", | ||
"TargetInfo", | ||
] | ||
} |
21 changes: 21 additions & 0 deletions
21
llvm/utils/gn/secondary/llvm/lib/Target/Sparc/Disassembler/BUILD.gn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import("//llvm/utils/TableGen/tablegen.gni") | ||
|
||
tablegen("SparcGenDisassemblerTables") { | ||
visibility = [ ":Disassembler" ] | ||
args = [ "-gen-disassembler" ] | ||
td_file = "../Sparc.td" | ||
} | ||
|
||
static_library("Disassembler") { | ||
output_name = "LLVMSparcDisassembler" | ||
deps = [ | ||
":SparcGenDisassemblerTables", | ||
"//llvm/lib/MC/MCDisassembler", | ||
"//llvm/lib/Support", | ||
"//llvm/lib/Target/Sparc/MCTargetDesc", | ||
] | ||
include_dirs = [ ".." ] | ||
sources = [ | ||
"SparcDisassembler.cpp", | ||
] | ||
} |
70 changes: 70 additions & 0 deletions
70
llvm/utils/gn/secondary/llvm/lib/Target/Sparc/MCTargetDesc/BUILD.gn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
import("//llvm/utils/TableGen/tablegen.gni") | ||
|
||
tablegen("SparcGenAsmWriter") { | ||
visibility = [ ":MCTargetDesc" ] | ||
args = [ "-gen-asm-writer" ] | ||
td_file = "../Sparc.td" | ||
} | ||
|
||
tablegen("SparcGenInstrInfo") { | ||
visibility = [ ":tablegen" ] | ||
args = [ "-gen-instr-info" ] | ||
td_file = "../Sparc.td" | ||
} | ||
|
||
tablegen("SparcGenMCCodeEmitter") { | ||
visibility = [ ":MCTargetDesc" ] | ||
args = [ "-gen-emitter" ] | ||
td_file = "../Sparc.td" | ||
} | ||
|
||
tablegen("SparcGenRegisterInfo") { | ||
visibility = [ ":tablegen" ] | ||
args = [ "-gen-register-info" ] | ||
td_file = "../Sparc.td" | ||
} | ||
|
||
tablegen("SparcGenSubtargetInfo") { | ||
visibility = [ ":tablegen" ] | ||
args = [ "-gen-subtarget" ] | ||
td_file = "../Sparc.td" | ||
} | ||
|
||
# This should contain tablegen targets generating .inc files included | ||
# by other targets. .inc files only used by .cpp files in this directory | ||
# should be in deps on the static_library instead. | ||
group("tablegen") { | ||
visibility = [ | ||
":MCTargetDesc", | ||
"../TargetInfo", | ||
] | ||
public_deps = [ | ||
":SparcGenInstrInfo", | ||
":SparcGenRegisterInfo", | ||
":SparcGenSubtargetInfo", | ||
] | ||
} | ||
|
||
static_library("MCTargetDesc") { | ||
output_name = "LLVMSparcDesc" | ||
public_deps = [ | ||
":tablegen", | ||
] | ||
deps = [ | ||
":SparcGenAsmWriter", | ||
":SparcGenMCCodeEmitter", | ||
"//llvm/lib/MC", | ||
"//llvm/lib/Support", | ||
] | ||
include_dirs = [ ".." ] | ||
sources = [ | ||
"SparcAsmBackend.cpp", | ||
"SparcELFObjectWriter.cpp", | ||
"SparcInstPrinter.cpp", | ||
"SparcMCAsmInfo.cpp", | ||
"SparcMCCodeEmitter.cpp", | ||
"SparcMCTargetDesc.cpp", | ||
"SparcMCExpr.cpp", | ||
"SparcTargetStreamer.cpp", | ||
] | ||
} |
12 changes: 12 additions & 0 deletions
12
llvm/utils/gn/secondary/llvm/lib/Target/Sparc/TargetInfo/BUILD.gn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
static_library("TargetInfo") { | ||
output_name = "LLVMSparcInfo" | ||
deps = [ | ||
"//llvm/lib/IR", | ||
"//llvm/lib/Support", | ||
"//llvm/lib/Target/Sparc/MCTargetDesc", | ||
] | ||
include_dirs = [ ".." ] | ||
sources = [ | ||
"SparcTargetInfo.cpp", | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters