PiperOrigin-RevId: 320928033
Change-Id: I77491ef74af49aab773563edad486446dc91d461
This commit is contained in:
Adrian Kuegel 2020-07-13 04:03:19 -07:00 committed by TensorFlower Gardener
parent 7693360b5e
commit 3b8ef731b0
3 changed files with 17 additions and 2 deletions

View File

@ -710,8 +710,8 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
) )
# Check out LLVM and MLIR from llvm-project. # Check out LLVM and MLIR from llvm-project.
LLVM_COMMIT = "943660fd15f193dc6961597c25541fee2e01ebbb" LLVM_COMMIT = "e808cab824488af137b62902e65dec3827b83b46"
LLVM_SHA256 = "72a3f845eb1839b32bccaffa317517cca910511896b68f5c18959a579d57d4f2" LLVM_SHA256 = "99c30723f2b066bc9145bc43f762cdbde10fada818004dd0cc56abc5761606ac"
LLVM_URLS = [ LLVM_URLS = [
"https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT), "https://storage.googleapis.com/mirror.tensorflow.org/github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT),
"https://github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT), "https://github.com/llvm/llvm-project/archive/{commit}.tar.gz".format(commit = LLVM_COMMIT),

View File

@ -545,6 +545,7 @@ cc_library(
deps = [ deps = [
":Affine", ":Affine",
":AffinePassIncGen", ":AffinePassIncGen",
":AffineUtils",
":Analysis", ":Analysis",
":IR", ":IR",
":Pass", ":Pass",
@ -2768,6 +2769,7 @@ cc_library(
"@llvm-project//mlir/test:TestDialect", "@llvm-project//mlir/test:TestDialect",
"@llvm-project//mlir/test:TestIR", "@llvm-project//mlir/test:TestIR",
"@llvm-project//mlir/test:TestPass", "@llvm-project//mlir/test:TestPass",
"@llvm-project//mlir/test:TestReducer",
"@llvm-project//mlir/test:TestSPIRV", "@llvm-project//mlir/test:TestSPIRV",
"@llvm-project//mlir/test:TestTransforms", "@llvm-project//mlir/test:TestTransforms",
], ],
@ -2916,6 +2918,7 @@ cc_binary(
"@llvm-project//mlir/test:TestDialect", "@llvm-project//mlir/test:TestDialect",
"@llvm-project//mlir/test:TestIR", "@llvm-project//mlir/test:TestIR",
"@llvm-project//mlir/test:TestPass", "@llvm-project//mlir/test:TestPass",
"@llvm-project//mlir/test:TestReducer",
"@llvm-project//mlir/test:TestSPIRV", "@llvm-project//mlir/test:TestSPIRV",
"@llvm-project//mlir/test:TestTransforms", "@llvm-project//mlir/test:TestTransforms",
], ],

View File

@ -167,6 +167,18 @@ cc_library(
], ],
) )
cc_library(
name = "TestReducer",
srcs = [
"lib/Reducer/MLIRTestReducer.cpp",
],
deps = [
"@llvm-project//mlir:IR",
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:Support",
],
)
cc_library( cc_library(
name = "TestTransforms", name = "TestTransforms",
srcs = glob(["lib/Transforms/*.cpp"]), srcs = glob(["lib/Transforms/*.cpp"]),