xref: /freebsd/usr.bin/clang/llvm-tblgen/Makefile (revision 4b9d605768acabc460aa6dcfe8a1f8db35b16794)
1
2PROG_CXX=	llvm-tblgen
3MAN=
4
5CFLAGS+=	-I${.OBJDIR}
6
7SRCDIR=		llvm/utils/TableGen
8SRCS+=		AsmMatcherEmitter.cpp
9SRCS+=		AsmWriterEmitter.cpp
10SRCS+=		AsmWriterInst.cpp
11SRCS+=		Attributes.cpp
12SRCS+=		CTagsEmitter.cpp
13SRCS+=		CallingConvEmitter.cpp
14SRCS+=		CodeEmitterGen.cpp
15SRCS+=		CodeGenDAGPatterns.cpp
16SRCS+=		CodeGenHwModes.cpp
17SRCS+=		CodeGenInstAlias.cpp
18SRCS+=		CodeGenInstruction.cpp
19SRCS+=		CodeGenIntrinsics.cpp
20SRCS+=		CodeGenMapTable.cpp
21SRCS+=		CodeGenRegisters.cpp
22SRCS+=		CodeGenSchedule.cpp
23SRCS+=		CodeGenTarget.cpp
24SRCS+=		CompressInstEmitter.cpp
25SRCS+=		DAGISelEmitter.cpp
26SRCS+=		DAGISelMatcher.cpp
27SRCS+=		DAGISelMatcherEmitter.cpp
28SRCS+=		DAGISelMatcherGen.cpp
29SRCS+=		DAGISelMatcherOpt.cpp
30SRCS+=		DFAEmitter.cpp
31SRCS+=		DFAPacketizerEmitter.cpp
32SRCS+=		DXILEmitter.cpp
33SRCS+=		DecoderEmitter.cpp
34SRCS+=		DirectiveEmitter.cpp
35SRCS+=		DisassemblerEmitter.cpp
36SRCS+=		ExegesisEmitter.cpp
37SRCS+=		FastISelEmitter.cpp
38SRCS+=		GICombinerEmitter.cpp
39SRCS+=		GlobalISel/CodeExpander.cpp
40SRCS+=		GlobalISel/GIMatchDag.cpp
41SRCS+=		GlobalISel/GIMatchDagEdge.cpp
42SRCS+=		GlobalISel/GIMatchDagInstr.cpp
43SRCS+=		GlobalISel/GIMatchDagOperands.cpp
44SRCS+=		GlobalISel/GIMatchDagPredicate.cpp
45SRCS+=		GlobalISel/GIMatchDagPredicateDependencyEdge.cpp
46SRCS+=		GlobalISel/GIMatchTree.cpp
47SRCS+=		GlobalISelCombinerMatchTableEmitter.cpp
48SRCS+=		GlobalISelEmitter.cpp
49SRCS+=		GlobalISelMatchTable.cpp
50SRCS+=		GlobalISelMatchTableExecutorEmitter.cpp
51SRCS+=		InfoByHwMode.cpp
52SRCS+=		InstrDocsEmitter.cpp
53SRCS+=		InstrInfoEmitter.cpp
54SRCS+=		IntrinsicEmitter.cpp
55SRCS+=		OptEmitter.cpp
56SRCS+=		OptParserEmitter.cpp
57SRCS+=		OptRSTEmitter.cpp
58SRCS+=		PredicateExpander.cpp
59SRCS+=		PseudoLoweringEmitter.cpp
60SRCS+=		RISCVTargetDefEmitter.cpp
61SRCS+=		RegisterBankEmitter.cpp
62SRCS+=		RegisterInfoEmitter.cpp
63SRCS+=		SDNodeProperties.cpp
64SRCS+=		SearchableTableEmitter.cpp
65SRCS+=		SubtargetEmitter.cpp
66SRCS+=		SubtargetFeatureInfo.cpp
67SRCS+=		TableGen.cpp
68SRCS+=		Types.cpp
69SRCS+=		VarLenCodeEmitterGen.cpp
70SRCS+=		WebAssemblyDisassemblerEmitter.cpp
71SRCS+=		X86DisassemblerTables.cpp
72SRCS+=		X86EVEX2VEXTablesEmitter.cpp
73SRCS+=		X86FoldTablesEmitter.cpp
74SRCS+=		X86MnemonicTables.cpp
75SRCS+=		X86ModRMFilters.cpp
76SRCS+=		X86RecognizableInstr.cpp
77
78.include "${SRCTOP}/lib/clang/llvm.pre.mk"
79
80llvm/CodeGen/GenVT.inc: ${LLVM_SRCS}/include/llvm/CodeGen/ValueTypes.td
81	${LLVM_MIN_TBLGEN} -gen-vt \
82	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
83	    ${LLVM_SRCS}/include/llvm/CodeGen/ValueTypes.td
84TGHDRS+=	llvm/CodeGen/GenVT.inc
85
86DEPENDFILES+=	${TGHDRS:C/$/.d/}
87DPSRCS+=	${TGHDRS}
88CLEANFILES+=	${TGHDRS} ${TGHDRS:C/$/.d/}
89CLEANFILES+=	${GENSRCS} ${GENSRCS:C/$/.d/}
90
91.include "../llvm.prog.mk"
92