Rework {clang,lldb,llvm}-tblgen invocations to add --write-if-changed

This flag ensures that the tblgen tools do not actually touch the
produced .inc file, if there are no changes to the contents. In turn,
this may prevent a number of rebuilds of files that include such .inc
files, saving build time.

While here, ensure that the shell invocations to locate the used tblgen
binary do not show unnecessary error messages.

Reported by:	des
MFC after:	1 week
This commit is contained in:
Dimitry Andric 2023-03-29 19:48:43 +02:00
parent c476ca181a
commit 8f391d9098
19 changed files with 273 additions and 328 deletions

View File

@ -2,7 +2,8 @@
.include "llvm.pre.mk" .include "llvm.pre.mk"
CLANG_SRCS= ${LLVM_BASE}/clang CLANG_SRCS= ${LLVM_BASE}/clang
CLANG_TBLGEN?= clang-tblgen CLANG_TBLGEN?= clang-tblgen
CLANG_TBLGEN_BIN!= which ${CLANG_TBLGEN} CLANG_TBLGEN_BIN!= which ${CLANG_TBLGEN} || echo __nonexistent_clang_tblgen__
CLANG_TBLGEN_OPTS?= --write-if-changed

View File

@ -200,17 +200,17 @@ PPC+= ppc_wrappers/xmmintrin.h
.for hdr in bf16/bf16 cde/cde-header fp16/fp16 mve/mve-header neon/neon \ .for hdr in bf16/bf16 cde/cde-header fp16/fp16 mve/mve-header neon/neon \
sve/sve-header sve/sve-header
arm_${hdr:H}.h: ${CLANG_SRCS}/include/clang/Basic/arm_${hdr:H}.td arm_${hdr:H}.h: ${CLANG_SRCS}/include/clang/Basic/arm_${hdr:H}.td
${CLANG_TBLGEN} -gen-arm-${hdr:T} \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-${hdr:T} \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_${hdr:H}.td -o ${.TARGET} ${.ALLSRC}
GENINCS+= arm_${hdr:H}.h GENINCS+= arm_${hdr:H}.h
.endfor .endfor
.for hdr in vector/vector-header .for hdr in vector/vector-header
riscv_${hdr:H}.h: ${CLANG_SRCS}/include/clang/Basic/riscv_${hdr:H}.td riscv_${hdr:H}.h: ${CLANG_SRCS}/include/clang/Basic/riscv_${hdr:H}.td
${CLANG_TBLGEN} -gen-riscv-${hdr:T} \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-riscv-${hdr:T} \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/riscv_${hdr:H}.td -o ${.TARGET} ${.ALLSRC}
GENINCS+= riscv_${hdr:H}.h GENINCS+= riscv_${hdr:H}.h
.endfor .endfor

View File

@ -760,358 +760,339 @@ SRCS_ALL+= ${SRCS_LDB}
SRCS+= ${SRCS_ALL:O} SRCS+= ${SRCS_ALL:O}
clang/AST/AbstractBasicReader.inc: \ clang/AST/AbstractBasicReader.inc: \
${CLANG_SRCS}/include/clang/AST/PropertiesBase.td ${CLANG_SRCS}/include/clang/AST/PropertiesBase.td
${CLANG_TBLGEN} -gen-clang-basic-reader \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-basic-reader \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/AST/PropertiesBase.td
TGHDRS+= clang/AST/AbstractBasicReader.inc TGHDRS+= clang/AST/AbstractBasicReader.inc
clang/AST/AbstractBasicWriter.inc: \ clang/AST/AbstractBasicWriter.inc: \
${CLANG_SRCS}/include/clang/AST/PropertiesBase.td ${CLANG_SRCS}/include/clang/AST/PropertiesBase.td
${CLANG_TBLGEN} -gen-clang-basic-writer \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-basic-writer \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/AST/PropertiesBase.td
TGHDRS+= clang/AST/AbstractBasicWriter.inc TGHDRS+= clang/AST/AbstractBasicWriter.inc
clang/AST/AbstractTypeReader.inc: \ clang/AST/AbstractTypeReader.inc: \
${CLANG_SRCS}/include/clang/AST/TypeProperties.td ${CLANG_SRCS}/include/clang/AST/TypeProperties.td
${CLANG_TBLGEN} -gen-clang-type-reader \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-type-reader \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/AST/TypeProperties.td
TGHDRS+= clang/AST/AbstractTypeReader.inc TGHDRS+= clang/AST/AbstractTypeReader.inc
clang/AST/AbstractTypeWriter.inc: \ clang/AST/AbstractTypeWriter.inc: \
${CLANG_SRCS}/include/clang/AST/TypeProperties.td ${CLANG_SRCS}/include/clang/AST/TypeProperties.td
${CLANG_TBLGEN} -gen-clang-type-writer \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-type-writer \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/AST/TypeProperties.td
TGHDRS+= clang/AST/AbstractTypeWriter.inc TGHDRS+= clang/AST/AbstractTypeWriter.inc
clang/AST/AttrImpl.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/AST/AttrImpl.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-impl \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-attr-impl \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/Attr.td
TGHDRS+= clang/AST/AttrImpl.inc TGHDRS+= clang/AST/AttrImpl.inc
clang/AST/AttrNodeTraverse.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/AST/AttrNodeTraverse.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-node-traverse \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-attr-node-traverse \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/Attr.td
TGHDRS+= clang/AST/AttrNodeTraverse.inc TGHDRS+= clang/AST/AttrNodeTraverse.inc
clang/AST/AttrTextNodeDump.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/AST/AttrTextNodeDump.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-text-node-dump \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-attr-text-node-dump \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/Attr.td
TGHDRS+= clang/AST/AttrTextNodeDump.inc TGHDRS+= clang/AST/AttrTextNodeDump.inc
clang/AST/AttrVisitor.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/AST/AttrVisitor.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-ast-visitor \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-attr-ast-visitor \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/Attr.td
TGHDRS+= clang/AST/AttrVisitor.inc TGHDRS+= clang/AST/AttrVisitor.inc
clang/AST/Attrs.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/AST/Attrs.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-classes \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-attr-classes \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/Attr.td
TGHDRS+= clang/AST/Attrs.inc TGHDRS+= clang/AST/Attrs.inc
clang/AST/CommentCommandInfo.inc: \ clang/AST/CommentCommandInfo.inc: \
${CLANG_SRCS}/include/clang/AST/CommentCommands.td ${CLANG_SRCS}/include/clang/AST/CommentCommands.td
${CLANG_TBLGEN} -gen-clang-comment-command-info \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-comment-command-info \
-d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/AST/CommentCommands.td
TGHDRS+= clang/AST/CommentCommandInfo.inc TGHDRS+= clang/AST/CommentCommandInfo.inc
clang/AST/CommentCommandList.inc: \ clang/AST/CommentCommandList.inc: \
${CLANG_SRCS}/include/clang/AST/CommentCommands.td ${CLANG_SRCS}/include/clang/AST/CommentCommands.td
${CLANG_TBLGEN} -gen-clang-comment-command-list \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-comment-command-list \
-d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/AST/CommentCommands.td
TGHDRS+= clang/AST/CommentCommandList.inc TGHDRS+= clang/AST/CommentCommandList.inc
clang/AST/CommentHTMLNamedCharacterReferences.inc: \ clang/AST/CommentHTMLNamedCharacterReferences.inc: \
${CLANG_SRCS}/include/clang/AST/CommentHTMLNamedCharacterReferences.td ${CLANG_SRCS}/include/clang/AST/CommentHTMLNamedCharacterReferences.td
${CLANG_TBLGEN} -gen-clang-comment-html-named-character-references \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} \
-d ${.TARGET:C/$/.d/} -o ${.TARGET} \ --gen-clang-comment-html-named-character-references \
${CLANG_SRCS}/include/clang/AST/CommentHTMLNamedCharacterReferences.td -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/AST/CommentHTMLNamedCharacterReferences.inc TGHDRS+= clang/AST/CommentHTMLNamedCharacterReferences.inc
clang/AST/CommentHTMLTags.inc: \ clang/AST/CommentHTMLTags.inc: \
${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td ${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td
${CLANG_TBLGEN} -gen-clang-comment-html-tags \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-comment-html-tags \
-d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td
TGHDRS+= clang/AST/CommentHTMLTags.inc TGHDRS+= clang/AST/CommentHTMLTags.inc
clang/AST/CommentHTMLTagsProperties.inc: \ clang/AST/CommentHTMLTagsProperties.inc: \
${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td ${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td
${CLANG_TBLGEN} -gen-clang-comment-html-tags-properties \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} \
-d ${.TARGET:C/$/.d/} -o ${.TARGET} \ --gen-clang-comment-html-tags-properties -d ${.TARGET}.d \
${CLANG_SRCS}/include/clang/AST/CommentHTMLTags.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/AST/CommentHTMLTagsProperties.inc TGHDRS+= clang/AST/CommentHTMLTagsProperties.inc
clang/AST/CommentNodes.inc: ${CLANG_SRCS}/include/clang/Basic/CommentNodes.td clang/AST/CommentNodes.inc: ${CLANG_SRCS}/include/clang/Basic/CommentNodes.td
${CLANG_TBLGEN} -gen-clang-comment-nodes \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-comment-nodes \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/CommentNodes.td
TGHDRS+= clang/AST/CommentNodes.inc TGHDRS+= clang/AST/CommentNodes.inc
clang/AST/DeclNodes.inc: ${CLANG_SRCS}/include/clang/Basic/DeclNodes.td clang/AST/DeclNodes.inc: ${CLANG_SRCS}/include/clang/Basic/DeclNodes.td
${CLANG_TBLGEN} -gen-clang-decl-nodes \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-decl-nodes \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/DeclNodes.td
TGHDRS+= clang/AST/DeclNodes.inc TGHDRS+= clang/AST/DeclNodes.inc
clang/AST/StmtDataCollectors.inc: \ clang/AST/StmtDataCollectors.inc: \
${CLANG_SRCS}/include/clang/AST/StmtDataCollectors.td ${CLANG_SRCS}/include/clang/AST/StmtDataCollectors.td
${CLANG_TBLGEN} -gen-clang-data-collectors \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-data-collectors \
-d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/AST/StmtDataCollectors.td
TGHDRS+= clang/AST/StmtDataCollectors.inc TGHDRS+= clang/AST/StmtDataCollectors.inc
clang/AST/StmtNodes.inc: ${CLANG_SRCS}/include/clang/Basic/StmtNodes.td clang/AST/StmtNodes.inc: ${CLANG_SRCS}/include/clang/Basic/StmtNodes.td
${CLANG_TBLGEN} -gen-clang-stmt-nodes \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-stmt-nodes \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/StmtNodes.td
TGHDRS+= clang/AST/StmtNodes.inc TGHDRS+= clang/AST/StmtNodes.inc
clang/AST/TypeNodes.inc: ${CLANG_SRCS}/include/clang/Basic/TypeNodes.td clang/AST/TypeNodes.inc: ${CLANG_SRCS}/include/clang/Basic/TypeNodes.td
${CLANG_TBLGEN} -gen-clang-type-nodes \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-type-nodes \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/TypeNodes.td
TGHDRS+= clang/AST/TypeNodes.inc TGHDRS+= clang/AST/TypeNodes.inc
clang/Basic/AttrHasAttributeImpl.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/Basic/AttrHasAttributeImpl.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-has-attribute-impl \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ --gen-clang-attr-has-attribute-impl -I ${CLANG_SRCS}/include \
${CLANG_SRCS}/include/clang/Basic/Attr.td -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/AttrHasAttributeImpl.inc TGHDRS+= clang/Basic/AttrHasAttributeImpl.inc
clang/Basic/AttrList.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/Basic/AttrList.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-list \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-attr-list \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/Attr.td
TGHDRS+= clang/Basic/AttrList.inc TGHDRS+= clang/Basic/AttrList.inc
clang/Basic/AttrSubMatchRulesList.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/Basic/AttrSubMatchRulesList.inc: \
${CLANG_TBLGEN} -gen-clang-attr-subject-match-rule-list \ ${CLANG_SRCS}/include/clang/Basic/Attr.td
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} \
${CLANG_SRCS}/include/clang/Basic/Attr.td --gen-clang-attr-subject-match-rule-list -I ${CLANG_SRCS}/include \
-d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/AttrSubMatchRulesList.inc TGHDRS+= clang/Basic/AttrSubMatchRulesList.inc
.for hdr in \ .for hdr in \
AST Analysis Comment Common CrossTU Driver Frontend Lex Parse \ AST Analysis Comment Common CrossTU Driver Frontend Lex Parse \
Refactoring Sema Serialization SemaSerialization Refactoring Sema Serialization SemaSerialization
clang/Basic/Diagnostic${hdr}Kinds.inc: \ clang/Basic/Diagnostic${hdr}Kinds.inc: \
${CLANG_SRCS}/include/clang/Basic/Diagnostic.td ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
${CLANG_TBLGEN} -gen-clang-diags-defs -clang-component=${hdr} \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-diags-defs \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -clang-component=${hdr} -I ${CLANG_SRCS}/include/clang/Basic \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/Diagnostic${hdr}Kinds.inc TGHDRS+= clang/Basic/Diagnostic${hdr}Kinds.inc
.endfor .endfor
clang/Basic/DiagnosticGroups.inc: \ clang/Basic/DiagnosticGroups.inc: \
${CLANG_SRCS}/include/clang/Basic/Diagnostic.td ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
${CLANG_TBLGEN} -gen-clang-diag-groups \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-diag-groups \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/DiagnosticGroups.inc TGHDRS+= clang/Basic/DiagnosticGroups.inc
clang/Basic/DiagnosticIndexName.inc: \ clang/Basic/DiagnosticIndexName.inc: \
${CLANG_SRCS}/include/clang/Basic/Diagnostic.td ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td
${CLANG_TBLGEN} -gen-clang-diags-index-name \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-diags-index-name \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/Diagnostic.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/DiagnosticIndexName.inc TGHDRS+= clang/Basic/DiagnosticIndexName.inc
clang/Basic/arm_fp16.inc: ${CLANG_SRCS}/include/clang/Basic/arm_fp16.td clang/Basic/arm_fp16.inc: ${CLANG_SRCS}/include/clang/Basic/arm_fp16.td
${CLANG_TBLGEN} -gen-arm-neon-sema \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-neon-sema \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_fp16.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_fp16.inc TGHDRS+= clang/Basic/arm_fp16.inc
clang/Basic/arm_neon.inc: ${CLANG_SRCS}/include/clang/Basic/arm_neon.td clang/Basic/arm_neon.inc: ${CLANG_SRCS}/include/clang/Basic/arm_neon.td
${CLANG_TBLGEN} -gen-arm-neon-sema \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-neon-sema \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_neon.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_neon.inc TGHDRS+= clang/Basic/arm_neon.inc
clang/Basic/arm_cde_builtins.inc: ${CLANG_SRCS}/include/clang/Basic/arm_cde.td clang/Basic/arm_cde_builtins.inc: ${CLANG_SRCS}/include/clang/Basic/arm_cde.td
${CLANG_TBLGEN} -gen-arm-cde-builtin-def \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-cde-builtin-def \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_cde.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_cde_builtins.inc TGHDRS+= clang/Basic/arm_cde_builtins.inc
clang/Basic/arm_cde_builtin_aliases.inc: \ clang/Basic/arm_cde_builtin_aliases.inc: \
${CLANG_SRCS}/include/clang/Basic/arm_cde.td ${CLANG_SRCS}/include/clang/Basic/arm_cde.td
${CLANG_TBLGEN} -gen-arm-cde-builtin-aliases \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-cde-builtin-aliases \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_cde.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_cde_builtin_aliases.inc TGHDRS+= clang/Basic/arm_cde_builtin_aliases.inc
clang/Basic/arm_cde_builtin_cg.inc: ${CLANG_SRCS}/include/clang/Basic/arm_cde.td clang/Basic/arm_cde_builtin_cg.inc: \
${CLANG_TBLGEN} -gen-arm-cde-builtin-codegen \ ${CLANG_SRCS}/include/clang/Basic/arm_cde.td
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-cde-builtin-codegen \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_cde.td -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_cde_builtin_cg.inc TGHDRS+= clang/Basic/arm_cde_builtin_cg.inc
clang/Basic/arm_cde_builtin_sema.inc: \ clang/Basic/arm_cde_builtin_sema.inc: \
${CLANG_SRCS}/include/clang/Basic/arm_cde.td ${CLANG_SRCS}/include/clang/Basic/arm_cde.td
${CLANG_TBLGEN} -gen-arm-cde-builtin-sema \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-cde-builtin-sema \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_cde.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_cde_builtin_sema.inc TGHDRS+= clang/Basic/arm_cde_builtin_sema.inc
clang/Basic/arm_mve_builtins.inc: ${CLANG_SRCS}/include/clang/Basic/arm_mve.td clang/Basic/arm_mve_builtins.inc: ${CLANG_SRCS}/include/clang/Basic/arm_mve.td
${CLANG_TBLGEN} -gen-arm-mve-builtin-def \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-mve-builtin-def \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_mve.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_mve_builtins.inc TGHDRS+= clang/Basic/arm_mve_builtins.inc
clang/Basic/arm_mve_builtin_aliases.inc: \ clang/Basic/arm_mve_builtin_aliases.inc: \
${CLANG_SRCS}/include/clang/Basic/arm_mve.td ${CLANG_SRCS}/include/clang/Basic/arm_mve.td
${CLANG_TBLGEN} -gen-arm-mve-builtin-aliases \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-mve-builtin-aliases \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_mve.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_mve_builtin_aliases.inc TGHDRS+= clang/Basic/arm_mve_builtin_aliases.inc
clang/Basic/arm_mve_builtin_cg.inc: ${CLANG_SRCS}/include/clang/Basic/arm_mve.td clang/Basic/arm_mve_builtin_cg.inc: \
${CLANG_TBLGEN} -gen-arm-mve-builtin-codegen \ ${CLANG_SRCS}/include/clang/Basic/arm_mve.td
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-mve-builtin-codegen \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_mve.td -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_mve_builtin_cg.inc TGHDRS+= clang/Basic/arm_mve_builtin_cg.inc
clang/Basic/arm_mve_builtin_sema.inc: \ clang/Basic/arm_mve_builtin_sema.inc: \
${CLANG_SRCS}/include/clang/Basic/arm_mve.td ${CLANG_SRCS}/include/clang/Basic/arm_mve.td
${CLANG_TBLGEN} -gen-arm-mve-builtin-sema \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-mve-builtin-sema \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_mve.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_mve_builtin_sema.inc TGHDRS+= clang/Basic/arm_mve_builtin_sema.inc
clang/Basic/arm_sve_builtins.inc: ${CLANG_SRCS}/include/clang/Basic/arm_sve.td clang/Basic/arm_sve_builtins.inc: ${CLANG_SRCS}/include/clang/Basic/arm_sve.td
${CLANG_TBLGEN} -gen-arm-sve-builtins \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-sve-builtins \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_sve.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_sve_builtins.inc TGHDRS+= clang/Basic/arm_sve_builtins.inc
clang/Basic/arm_sve_builtin_cg.inc: ${CLANG_SRCS}/include/clang/Basic/arm_sve.td clang/Basic/arm_sve_builtin_cg.inc: \
${CLANG_TBLGEN} -gen-arm-sve-builtin-codegen \ ${CLANG_SRCS}/include/clang/Basic/arm_sve.td
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-sve-builtin-codegen \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_sve.td -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_sve_builtin_cg.inc TGHDRS+= clang/Basic/arm_sve_builtin_cg.inc
clang/Basic/arm_sve_sema_rangechecks.inc: \ clang/Basic/arm_sve_sema_rangechecks.inc: \
${CLANG_SRCS}/include/clang/Basic/arm_sve.td ${CLANG_SRCS}/include/clang/Basic/arm_sve.td
${CLANG_TBLGEN} -gen-arm-sve-sema-rangechecks \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-sve-sema-rangechecks \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_sve.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_sve_sema_rangechecks.inc TGHDRS+= clang/Basic/arm_sve_sema_rangechecks.inc
clang/Basic/arm_sve_typeflags.inc: \ clang/Basic/arm_sve_typeflags.inc: \
${CLANG_SRCS}/include/clang/Basic/arm_sve.td ${CLANG_SRCS}/include/clang/Basic/arm_sve.td
${CLANG_TBLGEN} -gen-arm-sve-typeflags \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-arm-sve-typeflags \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/arm_sve.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/arm_sve_typeflags.inc TGHDRS+= clang/Basic/arm_sve_typeflags.inc
clang/Basic/riscv_vector_builtins.inc: \ clang/Basic/riscv_vector_builtins.inc: \
${CLANG_SRCS}/include/clang/Basic/riscv_vector.td ${CLANG_SRCS}/include/clang/Basic/riscv_vector.td
${CLANG_TBLGEN} -gen-riscv-vector-builtins \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-riscv-vector-builtins \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/riscv_vector.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/riscv_vector_builtins.inc TGHDRS+= clang/Basic/riscv_vector_builtins.inc
clang/Basic/riscv_vector_builtin_cg.inc: \ clang/Basic/riscv_vector_builtin_cg.inc: \
${CLANG_SRCS}/include/clang/Basic/riscv_vector.td ${CLANG_SRCS}/include/clang/Basic/riscv_vector.td
${CLANG_TBLGEN} -gen-riscv-vector-builtin-codegen \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ --gen-riscv-vector-builtin-codegen \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/riscv_vector.td -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/riscv_vector_builtin_cg.inc TGHDRS+= clang/Basic/riscv_vector_builtin_cg.inc
clang/Basic/riscv_vector_builtin_sema.inc: \ clang/Basic/riscv_vector_builtin_sema.inc: \
${CLANG_SRCS}/include/clang/Basic/riscv_vector.td ${CLANG_SRCS}/include/clang/Basic/riscv_vector.td
${CLANG_TBLGEN} -gen-riscv-vector-builtin-sema \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-riscv-vector-builtin-sema \
-I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET:C/$/.d/} \ -I ${CLANG_SRCS}/include/clang/Basic -d ${.TARGET}.d \
-o ${.TARGET} ${CLANG_SRCS}/include/clang/Basic/riscv_vector.td -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Basic/riscv_vector_builtin_sema.inc TGHDRS+= clang/Basic/riscv_vector_builtin_sema.inc
clang/Parse/AttrParserStringSwitches.inc: \ clang/Parse/AttrParserStringSwitches.inc: \
${CLANG_SRCS}/include/clang/Basic/Attr.td ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-parser-string-switches \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ --gen-clang-attr-parser-string-switches -I ${CLANG_SRCS}/include \
${CLANG_SRCS}/include/clang/Basic/Attr.td -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Parse/AttrParserStringSwitches.inc TGHDRS+= clang/Parse/AttrParserStringSwitches.inc
clang/Parse/AttrSubMatchRulesParserStringSwitches.inc: \ clang/Parse/AttrSubMatchRulesParserStringSwitches.inc: \
${CLANG_SRCS}/include/clang/Basic/Attr.td ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-subject-match-rules-parser-string-switches \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ --gen-clang-attr-subject-match-rules-parser-string-switches \
${CLANG_SRCS}/include/clang/Basic/Attr.td -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Parse/AttrSubMatchRulesParserStringSwitches.inc TGHDRS+= clang/Parse/AttrSubMatchRulesParserStringSwitches.inc
clang/Sema/AttrParsedAttrImpl.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/Sema/AttrParsedAttrImpl.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-parsed-attr-impl \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ --gen-clang-attr-parsed-attr-impl -I ${CLANG_SRCS}/include \
${CLANG_SRCS}/include/clang/Basic/Attr.td -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Sema/AttrParsedAttrImpl.inc TGHDRS+= clang/Sema/AttrParsedAttrImpl.inc
clang/Sema/AttrParsedAttrKinds.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/Sema/AttrParsedAttrKinds.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-parsed-attr-kinds \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ --gen-clang-attr-parsed-attr-kinds -I ${CLANG_SRCS}/include \
${CLANG_SRCS}/include/clang/Basic/Attr.td -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Sema/AttrParsedAttrKinds.inc TGHDRS+= clang/Sema/AttrParsedAttrKinds.inc
clang/Sema/AttrParsedAttrList.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/Sema/AttrParsedAttrList.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-parsed-attr-list \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ --gen-clang-attr-parsed-attr-list -I ${CLANG_SRCS}/include \
${CLANG_SRCS}/include/clang/Basic/Attr.td -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Sema/AttrParsedAttrList.inc TGHDRS+= clang/Sema/AttrParsedAttrList.inc
clang/Sema/AttrSpellingListIndex.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/Sema/AttrSpellingListIndex.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-spelling-index \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-attr-spelling-index \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/Attr.td
TGHDRS+= clang/Sema/AttrSpellingListIndex.inc TGHDRS+= clang/Sema/AttrSpellingListIndex.inc
clang/Sema/AttrTemplateInstantiate.inc: \ clang/Sema/AttrTemplateInstantiate.inc: \
${CLANG_SRCS}/include/clang/Basic/Attr.td ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-template-instantiate \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ --gen-clang-attr-template-instantiate -I ${CLANG_SRCS}/include \
${CLANG_SRCS}/include/clang/Basic/Attr.td -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= clang/Sema/AttrTemplateInstantiate.inc TGHDRS+= clang/Sema/AttrTemplateInstantiate.inc
clang/Serialization/AttrPCHRead.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/Serialization/AttrPCHRead.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-pch-read \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-attr-pch-read \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/Attr.td
TGHDRS+= clang/Serialization/AttrPCHRead.inc TGHDRS+= clang/Serialization/AttrPCHRead.inc
clang/Serialization/AttrPCHWrite.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td clang/Serialization/AttrPCHWrite.inc: ${CLANG_SRCS}/include/clang/Basic/Attr.td
${CLANG_TBLGEN} -gen-clang-attr-pch-write \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-attr-pch-write \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Basic/Attr.td
TGHDRS+= clang/Serialization/AttrPCHWrite.inc TGHDRS+= clang/Serialization/AttrPCHWrite.inc
clang/StaticAnalyzer/Checkers/Checkers.inc: \ clang/StaticAnalyzer/Checkers/Checkers.inc: \
${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers/Checkers.td ${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers/Checkers.td
${CLANG_TBLGEN} -gen-clang-sa-checkers \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-sa-checkers \
-I ${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers \ -I ${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers \
-d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/StaticAnalyzer/Checkers/Checkers.td
TGHDRS+= clang/StaticAnalyzer/Checkers/Checkers.inc TGHDRS+= clang/StaticAnalyzer/Checkers/Checkers.inc
Opcodes.inc: ${CLANG_SRCS}/lib/AST/Interp/Opcodes.td Opcodes.inc: ${CLANG_SRCS}/lib/AST/Interp/Opcodes.td
${CLANG_TBLGEN} -gen-clang-opcodes \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-opcodes \
-I ${CLANG_SRCS}/include -d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -I ${CLANG_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/lib/AST/Interp/Opcodes.td
TGHDRS+= Opcodes.inc TGHDRS+= Opcodes.inc
OpenCLBuiltins.inc: ${CLANG_SRCS}/lib/Sema/OpenCLBuiltins.td OpenCLBuiltins.inc: ${CLANG_SRCS}/lib/Sema/OpenCLBuiltins.td
${CLANG_TBLGEN} -gen-clang-opencl-builtins \ ${CLANG_TBLGEN} ${CLANG_TBLGEN_OPTS} --gen-clang-opencl-builtins \
-d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/lib/Sema/OpenCLBuiltins.td
TGHDRS+= OpenCLBuiltins.inc TGHDRS+= OpenCLBuiltins.inc
${TGHDRS}: ${CLANG_TBLGEN_BIN} ${TGHDRS}: ${CLANG_TBLGEN_BIN}
@ -1121,10 +1102,9 @@ DPSRCS+= ${TGHDRS}
CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/} CLEANFILES+= ${TGHDRS} ${TGHDRS:C/$/.d/}
clang/Driver/Options.inc: ${CLANG_SRCS}/include/clang/Driver/Options.td clang/Driver/Options.inc: ${CLANG_SRCS}/include/clang/Driver/Options.td
${LLVM_TBLGEN} -gen-opt-parser-defs \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
-I ${LLVM_SRCS}/include -I ${CLANG_SRCS}/include/clang/Driver \ -I ${LLVM_SRCS}/include -I ${CLANG_SRCS}/include/clang/Driver \
-d ${.TARGET:C/$/.d/} -o ${.TARGET} \ -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${CLANG_SRCS}/include/clang/Driver/Options.td
LTGHDRS+= clang/Driver/Options.inc LTGHDRS+= clang/Driver/Options.inc
${LTGHDRS}: ${LLVM_TBLGEN_BIN} ${LTGHDRS}: ${LLVM_TBLGEN_BIN}

View File

@ -700,13 +700,10 @@ SRCS+= Utility/VMRange.cpp
SRCS+= Utility/XcodeSDK.cpp SRCS+= Utility/XcodeSDK.cpp
SRCS+= Version/Version.cpp SRCS+= Version/Version.cpp
LLDB_TBLGEN?= lldb-tblgen
LLDB_TBLGEN_BIN!= which ${LLDB_TBLGEN}
CommandOptions.inc: ${LLDB_SRCS}/source/Commands/Options.td CommandOptions.inc: ${LLDB_SRCS}/source/Commands/Options.td
${LLDB_TBLGEN} -gen-lldb-option-defs \ ${LLDB_TBLGEN} ${LLDB_TBLGEN_OPTS} --gen-lldb-option-defs \
-I ${LLDB_SRCS}/source/Commands -d ${.TARGET:C/$/.d/} \ -I ${LLDB_SRCS}/source/Commands -d ${.TARGET}.d -o ${.TARGET} \
-o ${.TARGET} ${LLDB_SRCS}/source/Commands/Options.td ${.ALLSRC}
TGHDRS+= CommandOptions.inc TGHDRS+= CommandOptions.inc
.for path in \ .for path in \
@ -717,15 +714,15 @@ TGHDRS+= CommandOptions.inc
Plugins/SymbolFile/DWARF/SymbolFileDWARF \ Plugins/SymbolFile/DWARF/SymbolFileDWARF \
Target/Target Target/Target
${path:T}Properties.inc: ${LLDB_SRCS}/source/${path}Properties.td ${path:T}Properties.inc: ${LLDB_SRCS}/source/${path}Properties.td
${LLDB_TBLGEN} -gen-lldb-property-defs \ ${LLDB_TBLGEN} ${LLDB_TBLGEN_OPTS} --gen-lldb-property-defs \
-I ${LLDB_SRCS}/source/${path:H} -d ${.TARGET:C/$/.d/} \ -I ${LLDB_SRCS}/source/${path:H} -d ${.TARGET}.d -o ${.TARGET} \
-o ${.TARGET} ${LLDB_SRCS}/source/${path}Properties.td ${.ALLSRC}
TGHDRS+= ${path:T}Properties.inc TGHDRS+= ${path:T}Properties.inc
${path:T}PropertiesEnum.inc: ${LLDB_SRCS}/source/${path}Properties.td ${path:T}PropertiesEnum.inc: ${LLDB_SRCS}/source/${path}Properties.td
${LLDB_TBLGEN} -gen-lldb-property-enum-defs \ ${LLDB_TBLGEN} ${LLDB_TBLGEN_OPTS} --gen-lldb-property-enum-defs \
-I ${LLDB_SRCS}/source/${path:H} -d ${.TARGET:C/$/.d/} \ -I ${LLDB_SRCS}/source/${path:H} -d ${.TARGET}.d -o ${.TARGET} \
-o ${.TARGET} ${LLDB_SRCS}/source/${path}Properties.td ${.ALLSRC}
TGHDRS+= ${path:T}PropertiesEnum.inc TGHDRS+= ${path:T}PropertiesEnum.inc
.endfor .endfor

View File

@ -1907,64 +1907,57 @@ SRCS_ALL+= ${SRCS_XDW}
SRCS+= ${GENSRCS} SRCS+= ${GENSRCS}
SRCS+= ${SRCS_ALL:O} SRCS+= ${SRCS_ALL:O}
llvm/Frontend/OpenMP/OMP.h.inc: ${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td llvm/Frontend/OpenMP/OMP.h.inc: \
${LLVM_TBLGEN} --gen-directive-decl \ ${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td
-I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-directive-decl \
${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= llvm/Frontend/OpenMP/OMP.h.inc TGHDRS+= llvm/Frontend/OpenMP/OMP.h.inc
llvm/Frontend/OpenMP/OMP.inc: ${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td llvm/Frontend/OpenMP/OMP.inc: ${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td
${LLVM_TBLGEN} --gen-directive-impl \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-directive-impl \
-I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td
TGHDRS+= llvm/Frontend/OpenMP/OMP.inc TGHDRS+= llvm/Frontend/OpenMP/OMP.inc
OMP.cpp: ${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td OMP.cpp: ${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td
${LLVM_TBLGEN} --gen-directive-impl \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-directive-impl \
-I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${LLVM_SRCS}/include/llvm/Frontend/OpenMP/OMP.td
GENSRCS+= OMP.cpp GENSRCS+= OMP.cpp
llvm/IR/Attributes.inc: ${LLVM_SRCS}/include/llvm/IR/Attributes.td llvm/IR/Attributes.inc: ${LLVM_SRCS}/include/llvm/IR/Attributes.td
${LLVM_TBLGEN} -gen-attrs \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-attrs \
-I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${LLVM_SRCS}/include/llvm/IR/Attributes.td
TGHDRS+= llvm/IR/Attributes.inc TGHDRS+= llvm/IR/Attributes.inc
llvm/IR/IntrinsicEnums.inc: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td llvm/IR/IntrinsicEnums.inc: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
${LLVM_TBLGEN} -gen-intrinsic-enums \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-intrinsic-enums \
-I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
TGHDRS+= llvm/IR/IntrinsicEnums.inc TGHDRS+= llvm/IR/IntrinsicEnums.inc
llvm/IR/IntrinsicImpl.inc: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td llvm/IR/IntrinsicImpl.inc: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
${LLVM_TBLGEN} -gen-intrinsic-impl \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-intrinsic-impl \
-I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
TGHDRS+= llvm/IR/IntrinsicImpl.inc TGHDRS+= llvm/IR/IntrinsicImpl.inc
.for arch in \ .for arch in \
AArch64/aarch64 AMDGPU/amdgcn ARM/arm BPF/bpf DirectX/dx \ AArch64/aarch64 AMDGPU/amdgcn ARM/arm BPF/bpf DirectX/dx \
Hexagon/hexagon Mips/mips NVPTX/nvvm PowerPC/ppc R600/r600 RISCV/riscv \ Hexagon/hexagon Mips/mips NVPTX/nvvm PowerPC/ppc R600/r600 \
S390/s390 VE/ve WebAssembly/wasm X86/x86 XCore/xcore RISCV/riscv S390/s390 VE/ve WebAssembly/wasm X86/x86 XCore/xcore
llvm/IR/Intrinsics${arch:H}.h: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td llvm/IR/Intrinsics${arch:H}.h: ${LLVM_SRCS}/include/llvm/IR/Intrinsics.td
${LLVM_TBLGEN} -gen-intrinsic-enums -intrinsic-prefix=${arch:T} \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} \
-I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ --gen-intrinsic-enums -intrinsic-prefix=${arch:T} \
${LLVM_SRCS}/include/llvm/IR/Intrinsics.td -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= llvm/IR/Intrinsics${arch:H}.h TGHDRS+= llvm/IR/Intrinsics${arch:H}.h
.endfor .endfor
llvm-lib/Options.inc: ${LLVM_SRCS}/lib/ToolDrivers/llvm-lib/Options.td llvm-lib/Options.inc: ${LLVM_SRCS}/lib/ToolDrivers/llvm-lib/Options.td
${LLVM_TBLGEN} -gen-opt-parser-defs \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
-I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${LLVM_SRCS}/lib/ToolDrivers/llvm-lib/Options.td
TGHDRS+= llvm-lib/Options.inc TGHDRS+= llvm-lib/Options.inc
CFLAGS.LibDriver.cpp+= -I${.OBJDIR}/llvm-lib CFLAGS.LibDriver.cpp+= -I${.OBJDIR}/llvm-lib
llvm-dlltool/Options.inc: ${LLVM_SRCS}/lib/ToolDrivers/llvm-dlltool/Options.td llvm-dlltool/Options.inc: ${LLVM_SRCS}/lib/ToolDrivers/llvm-dlltool/Options.td
${LLVM_TBLGEN} -gen-opt-parser-defs \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
-I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} \ -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${LLVM_SRCS}/lib/ToolDrivers/llvm-dlltool/Options.td
TGHDRS+= llvm-dlltool/Options.inc TGHDRS+= llvm-dlltool/Options.inc
CFLAGS.DlltoolDriver.cpp+= -I${.OBJDIR}/llvm-dlltool CFLAGS.DlltoolDriver.cpp+= -I${.OBJDIR}/llvm-dlltool
@ -2009,10 +2002,9 @@ beforebuild:
SystemOperands/-gen-searchable-tables \ SystemOperands/-gen-searchable-tables \
SystemRegister/-gen-searchable-tables SystemRegister/-gen-searchable-tables
${arch:T}Gen${hdr:H}.inc: ${LLVM_SRCS}/lib/Target/${arch:H}/${arch:T}.td ${arch:T}Gen${hdr:H}.inc: ${LLVM_SRCS}/lib/Target/${arch:H}/${arch:T}.td
${LLVM_TBLGEN} ${hdr:T:C/,/ /g} \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} ${hdr:T:C/,/ /g} \
-I ${LLVM_SRCS}/include -I ${LLVM_SRCS}/lib/Target/${arch:H} \ -I ${LLVM_SRCS}/include -I ${LLVM_SRCS}/lib/Target/${arch:H} \
-d ${.TARGET}.d -o ${.TARGET} \ -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${LLVM_SRCS}/lib/Target/${arch:H}/${arch:T}.td
. endfor . endfor
.endfor .endfor
.if ${MK_LLVM_TARGET_AARCH64} != "no" .if ${MK_LLVM_TARGET_AARCH64} != "no"

View File

@ -2,4 +2,8 @@
.include "clang.pre.mk" .include "clang.pre.mk"
LLDB_SRCS= ${LLVM_BASE}/lldb LLDB_SRCS= ${LLVM_BASE}/lldb
LLDB_TBLGEN?= lldb-tblgen
LLDB_TBLGEN_BIN!= which ${LLDB_TBLGEN} || echo __nonexistent_lldb_tblgen__
LLDB_TBLGEN_OPTS?= --write-if-changed

View File

@ -1,8 +1,9 @@
# $FreeBSD$ # $FreeBSD$
LLVM_BASE= ${SRCTOP}/contrib/llvm-project LLVM_BASE= ${SRCTOP}/contrib/llvm-project
LLVM_SRCS= ${LLVM_BASE}/llvm LLVM_SRCS= ${LLVM_BASE}/llvm
LLVM_TBLGEN?= llvm-tblgen LLVM_TBLGEN?= llvm-tblgen
LLVM_TBLGEN_BIN!= which ${LLVM_TBLGEN} LLVM_TBLGEN_BIN!= which ${LLVM_TBLGEN} || echo __nonexistent_llvm_tblgen__
LLVM_TBLGEN_OPTS?= --write-if-changed

View File

@ -87,13 +87,10 @@ DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
.endfor .endfor
INCFILE= Options.inc Options.inc: ${LLD_SRCS}/ELF/Options.td
TDFILE= ${LLD_SRCS}/ELF/Options.td ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
GENOPT= -gen-opt-parser-defs -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${INCFILE}: ${TDFILE} TGHDRS+= Options.inc
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
-o ${.TARGET} ${TDFILE}
TGHDRS+= ${INCFILE}
${TGHDRS}: ${LLVM_TBLGEN_BIN} ${TGHDRS}: ${LLVM_TBLGEN_BIN}

View File

@ -29,13 +29,10 @@ DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
.endfor .endfor
INCFILE= LLGSOptions.inc LLGSOptions.inc: ${LLDB_SRCS}/tools/lldb-server/LLGSOptions.td
TDFILE= ${LLDB_SRCS}/tools/lldb-server/LLGSOptions.td ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
GENOPT= -gen-opt-parser-defs -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${INCFILE}: ${TDFILE} TGHDRS+= LLGSOptions.inc
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
-o ${.TARGET} ${TDFILE}
TGHDRS+= ${INCFILE}
${TGHDRS}: ${LLVM_TBLGEN_BIN} ${TGHDRS}: ${LLVM_TBLGEN_BIN}

View File

@ -22,13 +22,10 @@ DPADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a LDADD+= ${OBJTOP}/lib/clang/lib${lib}/lib${lib}.a
.endfor .endfor
INCFILE= Options.inc Options.inc: ${LLVM_BASE}/${SRCDIR}/Options.td
TDFILE= ${LLVM_BASE}/${SRCDIR}/Options.td ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
GENOPT= -gen-opt-parser-defs -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${INCFILE}: ${TDFILE} TGHDRS+= Options.inc
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
-o ${.TARGET} ${TDFILE}
TGHDRS+= ${INCFILE}
${TGHDRS}: ${LLVM_TBLGEN_BIN} ${TGHDRS}: ${LLVM_TBLGEN_BIN}

View File

@ -13,13 +13,10 @@ CFLAGS.llvm-cxxfilt.cpp+= -Dllvm_cxxfilt_main=main
CFLAGS+= -I${.OBJDIR} CFLAGS+= -I${.OBJDIR}
INCFILE= Opts.inc Opts.inc: ${LLVM_BASE}/${SRCDIR}/Opts.td
TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
GENOPT= -gen-opt-parser-defs -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${INCFILE}: ${TDFILE} TGHDRS+= Opts.inc
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
-o ${.TARGET} ${TDFILE}
TGHDRS+= ${INCFILE}
${TGHDRS}: ${LLVM_TBLGEN_BIN} ${TGHDRS}: ${LLVM_TBLGEN_BIN}

View File

@ -10,13 +10,10 @@ SRCS+= llvm-dwarfutil.cpp
CFLAGS+= -I${.OBJDIR} CFLAGS+= -I${.OBJDIR}
INCFILE= Options.inc Options.inc: ${LLVM_BASE}/${SRCDIR}/Options.td
TDFILE= ${LLVM_BASE}/${SRCDIR}/Options.td ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
GENOPT= -gen-opt-parser-defs -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${INCFILE}: ${TDFILE} TGHDRS+= Options.inc
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
-o ${.TARGET} ${TDFILE}
TGHDRS+= ${INCFILE}
${TGHDRS}: ${LLVM_TBLGEN_BIN} ${TGHDRS}: ${LLVM_TBLGEN_BIN}

View File

@ -11,13 +11,10 @@ SRCS+= llvm-nm.cpp
CFLAGS+= -I${.OBJDIR} CFLAGS+= -I${.OBJDIR}
INCFILE= Opts.inc Opts.inc: ${LLVM_BASE}/${SRCDIR}/Opts.td
TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
GENOPT= -gen-opt-parser-defs -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${INCFILE}: ${TDFILE} TGHDRS+= Opts.inc
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
-o ${.TARGET} ${TDFILE}
TGHDRS+= ${INCFILE}
${TGHDRS}: ${LLVM_TBLGEN_BIN} ${TGHDRS}: ${LLVM_TBLGEN_BIN}

View File

@ -17,9 +17,9 @@ CFLAGS+= -I${LLVM_BASE}/${SRCDIR}
.for hdr in BitcodeStripOpts InstallNameToolOpts ObjcopyOpts StripOpts .for hdr in BitcodeStripOpts InstallNameToolOpts ObjcopyOpts StripOpts
${hdr}.inc: ${LLVM_BASE}/${SRCDIR}/${hdr}.td ${hdr}.inc: ${LLVM_BASE}/${SRCDIR}/${hdr}.td
${LLVM_TBLGEN} -gen-opt-parser-defs \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
-I ${LLVM_SRCS}/tools/llvm-objcopy -I ${LLVM_SRCS}/include \ -I ${LLVM_SRCS}/tools/llvm-objcopy -I ${LLVM_SRCS}/include \
-d ${.TARGET}.d -o ${.TARGET} ${LLVM_BASE}/${SRCDIR}/${hdr}.td -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= ${hdr}.inc TGHDRS+= ${hdr}.inc
.endfor .endfor

View File

@ -20,9 +20,9 @@ CFLAGS+= -I${.OBJDIR}
.for hdr in ObjdumpOpts OtoolOpts .for hdr in ObjdumpOpts OtoolOpts
${hdr}.inc: ${LLVM_BASE}/${SRCDIR}/${hdr}.td ${hdr}.inc: ${LLVM_BASE}/${SRCDIR}/${hdr}.td
${LLVM_TBLGEN} -gen-opt-parser-defs \ ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
-I ${LLVM_SRCS}/tools/llvm-objcopy -I ${LLVM_SRCS}/include \ -I ${LLVM_SRCS}/tools/llvm-objcopy -I ${LLVM_SRCS}/include \
-d ${.TARGET}.d -o ${.TARGET} ${LLVM_BASE}/${SRCDIR}/${hdr}.td -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
TGHDRS+= ${hdr}.inc TGHDRS+= ${hdr}.inc
.endfor .endfor

View File

@ -22,13 +22,10 @@ SRCS+= XCOFFDumper.cpp
CFLAGS+= -I${.OBJDIR} CFLAGS+= -I${.OBJDIR}
INCFILE= Opts.inc Opts.inc: ${LLVM_BASE}/${SRCDIR}/Opts.td
TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
GENOPT= -gen-opt-parser-defs -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${INCFILE}: ${TDFILE} TGHDRS+= Opts.inc
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
-o ${.TARGET} ${TDFILE}
TGHDRS+= ${INCFILE}
${TGHDRS}: ${LLVM_TBLGEN_BIN} ${TGHDRS}: ${LLVM_TBLGEN_BIN}

View File

@ -11,13 +11,10 @@ SRCS+= llvm-size.cpp
CFLAGS+= -I${.OBJDIR} CFLAGS+= -I${.OBJDIR}
INCFILE= Opts.inc Opts.inc: ${LLVM_BASE}/${SRCDIR}/Opts.td
TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
GENOPT= -gen-opt-parser-defs -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${INCFILE}: ${TDFILE} TGHDRS+= Opts.inc
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
-o ${.TARGET} ${TDFILE}
TGHDRS+= ${INCFILE}
${TGHDRS}: ${LLVM_TBLGEN_BIN} ${TGHDRS}: ${LLVM_TBLGEN_BIN}

View File

@ -9,13 +9,10 @@ SRCS+= llvm-strings.cpp
CFLAGS+= -I${.OBJDIR} CFLAGS+= -I${.OBJDIR}
INCFILE= Opts.inc Opts.inc: ${LLVM_BASE}/${SRCDIR}/Opts.td
TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
GENOPT= -gen-opt-parser-defs -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${INCFILE}: ${TDFILE} TGHDRS+= Opts.inc
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
-o ${.TARGET} ${TDFILE}
TGHDRS+= ${INCFILE}
${TGHDRS}: ${LLVM_TBLGEN_BIN} ${TGHDRS}: ${LLVM_TBLGEN_BIN}

View File

@ -12,13 +12,10 @@ SRCS+= llvm-symbolizer.cpp
CFLAGS+= -I${.OBJDIR} CFLAGS+= -I${.OBJDIR}
INCFILE= Opts.inc Opts.inc: ${LLVM_BASE}/${SRCDIR}/Opts.td
TDFILE= ${LLVM_BASE}/${SRCDIR}/Opts.td ${LLVM_TBLGEN} ${LLVM_TBLGEN_OPTS} --gen-opt-parser-defs \
GENOPT= -gen-opt-parser-defs -I ${LLVM_SRCS}/include -d ${.TARGET}.d -o ${.TARGET} ${.ALLSRC}
${INCFILE}: ${TDFILE} TGHDRS+= Opts.inc
${LLVM_TBLGEN} ${GENOPT} -I ${LLVM_SRCS}/include -d ${.TARGET:C/$/.d/} \
-o ${.TARGET} ${TDFILE}
TGHDRS+= ${INCFILE}
${TGHDRS}: ${LLVM_TBLGEN_BIN} ${TGHDRS}: ${LLVM_TBLGEN_BIN}