@@ -3823,9 +3823,10 @@ cc_library(
3823
3823
srcs = glob ([
3824
3824
"lib/Dialect/*.cpp" ,
3825
3825
]),
3826
- hdrs = glob ([
3827
- "include/mlir/Dialect/*.h" ,
3828
- ]),
3826
+ hdrs = glob (
3827
+ include = ["include/mlir/Dialect/*.h" ],
3828
+ exclude = ["include/mlir/Dialect/CommonFolders.h" ],
3829
+ ),
3829
3830
includes = ["include" ],
3830
3831
deps = [
3831
3832
":IR" ,
@@ -4534,6 +4535,7 @@ cc_library(
4534
4535
":ArithDialect" ,
4535
4536
":BufferizationInterfaces" ,
4536
4537
":CastInterfaces" ,
4538
+ ":CommonFolders" ,
4537
4539
":ControlFlowInterfaces" ,
4538
4540
":Dialect" ,
4539
4541
":FuncDialect" ,
@@ -5336,9 +5338,7 @@ cc_library(
5336
5338
"include/mlir/Dialect/LLVMIR/VCIX*.h" ,
5337
5339
"include/mlir/Dialect/LLVMIR/*X86Vector*.h" ,
5338
5340
],
5339
- ) + [
5340
- "include/mlir/Transforms/Mem2Reg.h" ,
5341
- ],
5341
+ ),
5342
5342
includes = ["include" ],
5343
5343
deps = [
5344
5344
":CallOpInterfaces" ,
@@ -8635,17 +8635,26 @@ cc_library(
8635
8635
],
8636
8636
)
8637
8637
8638
+ cc_library (
8639
+ name = "ParseUtilities" ,
8640
+ hdrs = ["include/mlir/Tools/ParseUtilities.h" ],
8641
+ includes = ["include" ],
8642
+ deps = [
8643
+ ":IR" ,
8644
+ ":Parser" ,
8645
+ ],
8646
+ )
8647
+
8638
8648
cc_library (
8639
8649
name = "TranslateLib" ,
8640
8650
srcs = glob ([
8641
8651
"lib/Tools/mlir-translate/*.cpp" ,
8642
- ]) + [
8643
- "include/mlir/Tools/ParseUtilities.h" ,
8644
- ],
8652
+ ]),
8645
8653
hdrs = glob (["include/mlir/Tools/mlir-translate/*.h" ]),
8646
8654
includes = ["include" ],
8647
8655
deps = [
8648
8656
":IR" ,
8657
+ ":ParseUtilities" ,
8649
8658
":Parser" ,
8650
8659
":Support" ,
8651
8660
"//llvm:Support" ,
@@ -8655,6 +8664,7 @@ cc_library(
8655
8664
cc_library (
8656
8665
name = "ToLLVMIRTranslation" ,
8657
8666
srcs = [
8667
+ "lib/Target/LLVMIR/AttrKindDetail.h" ,
8658
8668
"lib/Target/LLVMIR/DebugTranslation.cpp" ,
8659
8669
"lib/Target/LLVMIR/DebugTranslation.h" ,
8660
8670
"lib/Target/LLVMIR/LoopAnnotationTranslation.cpp" ,
@@ -8667,7 +8677,6 @@ cc_library(
8667
8677
"include/mlir/Target/LLVMIR/LLVMTranslationInterface.h" ,
8668
8678
"include/mlir/Target/LLVMIR/ModuleTranslation.h" ,
8669
8679
"include/mlir/Target/LLVMIR/TypeToLLVM.h" ,
8670
- "lib/Target/LLVMIR/AttrKindDetail.h" ,
8671
8680
],
8672
8681
includes = ["include" ],
8673
8682
deps = [
@@ -8988,9 +8997,11 @@ cc_library(
8988
8997
cc_library (
8989
8998
name = "FromLLVMIRTranslation" ,
8990
8999
srcs = [
9000
+ "lib/Target/LLVMIR/AttrKindDetail.h" ,
8991
9001
"lib/Target/LLVMIR/DataLayoutImporter.cpp" ,
8992
9002
"lib/Target/LLVMIR/DataLayoutImporter.h" ,
8993
9003
"lib/Target/LLVMIR/DebugImporter.cpp" ,
9004
+ "lib/Target/LLVMIR/DebugImporter.h" ,
8994
9005
"lib/Target/LLVMIR/LoopAnnotationImporter.cpp" ,
8995
9006
"lib/Target/LLVMIR/LoopAnnotationImporter.h" ,
8996
9007
"lib/Target/LLVMIR/ModuleImport.cpp" ,
@@ -9001,8 +9012,6 @@ cc_library(
9001
9012
"include/mlir/Target/LLVMIR/LLVMImportInterface.h" ,
9002
9013
"include/mlir/Target/LLVMIR/ModuleImport.h" ,
9003
9014
"include/mlir/Target/LLVMIR/TypeFromLLVM.h" ,
9004
- "lib/Target/LLVMIR/AttrKindDetail.h" ,
9005
- "lib/Target/LLVMIR/DebugImporter.h" ,
9006
9015
],
9007
9016
includes = ["include" ],
9008
9017
deps = [
@@ -9109,10 +9118,7 @@ cc_library(
9109
9118
9110
9119
cc_library (
9111
9120
name = "MlirOptLib" ,
9112
- srcs = [
9113
- "include/mlir/Tools/ParseUtilities.h" ,
9114
- "lib/Tools/mlir-opt/MlirOptMain.cpp" ,
9115
- ],
9121
+ srcs = ["lib/Tools/mlir-opt/MlirOptMain.cpp" ],
9116
9122
hdrs = ["include/mlir/Tools/mlir-opt/MlirOptMain.h" ],
9117
9123
includes = ["include" ],
9118
9124
deps = [
@@ -9121,6 +9127,7 @@ cc_library(
9121
9127
":Debug" ,
9122
9128
":IR" ,
9123
9129
":IRDLDialect" ,
9130
+ ":ParseUtilities" ,
9124
9131
":Parser" ,
9125
9132
":Pass" ,
9126
9133
":PluginsLib" ,
@@ -9393,10 +9400,7 @@ cc_binary(
9393
9400
cc_library (
9394
9401
name = "MlirJitRunner" ,
9395
9402
srcs = ["lib/ExecutionEngine/JitRunner.cpp" ],
9396
- hdrs = [
9397
- "include/mlir/ExecutionEngine/JitRunner.h" ,
9398
- "include/mlir/Tools/ParseUtilities.h" ,
9399
- ],
9403
+ hdrs = ["include/mlir/ExecutionEngine/JitRunner.h" ],
9400
9404
includes = ["include" ],
9401
9405
deps = [
9402
9406
":AllPassesAndDialects" ,
@@ -9407,6 +9411,7 @@ cc_library(
9407
9411
":LLVMToLLVMIRTranslation" ,
9408
9412
":OpenACCToLLVMIRTranslation" ,
9409
9413
":OpenMPToLLVMIRTranslation" ,
9414
+ ":ParseUtilities" ,
9410
9415
":Parser" ,
9411
9416
":SCFToControlFlow" ,
9412
9417
":Support" ,
@@ -13786,13 +13791,11 @@ cc_library(
13786
13791
cc_library (
13787
13792
name = "MlirReduceLib" ,
13788
13793
srcs = ["lib/Tools/mlir-reduce/MlirReduceMain.cpp" ],
13789
- hdrs = [
13790
- "include/mlir/Tools/ParseUtilities.h" ,
13791
- "include/mlir/Tools/mlir-reduce/MlirReduceMain.h" ,
13792
- ],
13794
+ hdrs = ["include/mlir/Tools/mlir-reduce/MlirReduceMain.h" ],
13793
13795
includes = ["include" ],
13794
13796
deps = [
13795
13797
":IR" ,
13798
+ ":ParseUtilities" ,
13796
13799
":Parser" ,
13797
13800
":Pass" ,
13798
13801
":Reducer" ,
0 commit comments