xref: /freebsd/usr.bin/clang/llvm-tblgen/Makefile (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
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+=		GlobalISel/CXXPredicates.cpp
39SRCS+=		GlobalISel/CodeExpander.cpp
40SRCS+=		GlobalISel/MatchDataInfo.cpp
41SRCS+=		GlobalISel/Patterns.cpp
42SRCS+=		GlobalISelCombinerEmitter.cpp
43SRCS+=		GlobalISelEmitter.cpp
44SRCS+=		GlobalISelMatchTable.cpp
45SRCS+=		GlobalISelMatchTableExecutorEmitter.cpp
46SRCS+=		InfoByHwMode.cpp
47SRCS+=		InstrDocsEmitter.cpp
48SRCS+=		InstrInfoEmitter.cpp
49SRCS+=		IntrinsicEmitter.cpp
50SRCS+=		MacroFusionPredicatorEmitter.cpp
51SRCS+=		OptEmitter.cpp
52SRCS+=		OptParserEmitter.cpp
53SRCS+=		OptRSTEmitter.cpp
54SRCS+=		PredicateExpander.cpp
55SRCS+=		PseudoLoweringEmitter.cpp
56SRCS+=		RISCVTargetDefEmitter.cpp
57SRCS+=		RegisterBankEmitter.cpp
58SRCS+=		RegisterInfoEmitter.cpp
59SRCS+=		SDNodeProperties.cpp
60SRCS+=		SearchableTableEmitter.cpp
61SRCS+=		SubtargetEmitter.cpp
62SRCS+=		SubtargetFeatureInfo.cpp
63SRCS+=		TableGen.cpp
64SRCS+=		Types.cpp
65SRCS+=		VTEmitter.cpp
66SRCS+=		VarLenCodeEmitterGen.cpp
67SRCS+=		WebAssemblyDisassemblerEmitter.cpp
68SRCS+=		X86CompressEVEXTablesEmitter.cpp
69SRCS+=		X86DisassemblerTables.cpp
70SRCS+=		X86FoldTablesEmitter.cpp
71SRCS+=		X86MnemonicTables.cpp
72SRCS+=		X86ModRMFilters.cpp
73SRCS+=		X86RecognizableInstr.cpp
74
75.include "${SRCTOP}/lib/clang/llvm.pre.mk"
76
77llvm/CodeGen/GenVT.inc: ${LLVM_SRCS}/include/llvm/CodeGen/ValueTypes.td
78	${LLVM_MIN_TBLGEN} -gen-vt \
79	    -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \
80	    ${LLVM_SRCS}/include/llvm/CodeGen/ValueTypes.td
81TGHDRS+=	llvm/CodeGen/GenVT.inc
82
83DEPENDFILES+=	${TGHDRS:C/$/.d/}
84DPSRCS+=	${TGHDRS}
85CLEANFILES+=	${TGHDRS} ${TGHDRS:C/$/.d/}
86CLEANFILES+=	${GENSRCS} ${GENSRCS:C/$/.d/}
87
88.include "../llvm.prog.mk"
89