Integrate LLVM at llvm/llvm-project@3b33b41604
Updates LLVM usage to match [3b33b4160478](https://github.com/llvm/llvm-project/commit/3b33b4160478) PiperOrigin-RevId: 337052227 Change-Id: Idbd8bd42775111dbeb6e5888320eb1fc5bcb50e3
This commit is contained in:
parent
61d0349939
commit
fccc8b6179
@ -712,8 +712,8 @@ def tf_repositories(path_prefix = "", tf_repo_name = ""):
|
||||
)
|
||||
|
||||
# Check out LLVM and MLIR from llvm-project.
|
||||
LLVM_COMMIT = "6713332fddb796f5b14fcb6a7e5d36979676e4ab"
|
||||
LLVM_SHA256 = "d83051da693c4165a8bd9a2703c806820d5146188b1036fd94300fafa09aae50"
|
||||
LLVM_COMMIT = "3b33b41604784f903c7c5c38665d75da93dbf805"
|
||||
LLVM_SHA256 = "6cb1fcaa23215bd7730c8ee66af79404ebffa7ec525dafcc0e4e21f81eb9ead7"
|
||||
LLVM_URLS = [
|
||||
"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),
|
||||
|
48
third_party/mlir/test.BUILD
vendored
48
third_party/mlir/test.BUILD
vendored
@ -17,6 +17,21 @@ cc_library(
|
||||
includes = ["."],
|
||||
)
|
||||
|
||||
filegroup(
|
||||
name = "TestOpTdFiles",
|
||||
srcs = [
|
||||
"lib/Dialect/Test/TestOps.td",
|
||||
"@llvm-project//mlir:OpBaseTdFiles",
|
||||
"@llvm-project//mlir:include/mlir/IR/OpAsmInterface.td",
|
||||
"@llvm-project//mlir:include/mlir/IR/RegionKindInterface.td",
|
||||
"@llvm-project//mlir:include/mlir/IR/SymbolInterfaces.td",
|
||||
"@llvm-project//mlir:include/mlir/Interfaces/CallInterfaces.td",
|
||||
"@llvm-project//mlir:include/mlir/Interfaces/ControlFlowInterfaces.td",
|
||||
"@llvm-project//mlir:include/mlir/Interfaces/InferTypeOpInterface.td",
|
||||
"@llvm-project//mlir:include/mlir/Interfaces/SideEffectInterfaces.td",
|
||||
],
|
||||
)
|
||||
|
||||
gentbl(
|
||||
name = "TestOpsIncGen",
|
||||
strip_include_prefix = "lib/Dialect/Test",
|
||||
@ -57,14 +72,7 @@ gentbl(
|
||||
tblgen = "@llvm-project//mlir:mlir-tblgen",
|
||||
td_file = "lib/Dialect/Test/TestOps.td",
|
||||
td_srcs = [
|
||||
"@llvm-project//mlir:OpBaseTdFiles",
|
||||
"@llvm-project//mlir:include/mlir/IR/OpAsmInterface.td",
|
||||
"@llvm-project//mlir:include/mlir/IR/RegionKindInterface.td",
|
||||
"@llvm-project//mlir:include/mlir/IR/SymbolInterfaces.td",
|
||||
"@llvm-project//mlir:include/mlir/Interfaces/CallInterfaces.td",
|
||||
"@llvm-project//mlir:include/mlir/Interfaces/ControlFlowInterfaces.td",
|
||||
"@llvm-project//mlir:include/mlir/Interfaces/InferTypeOpInterface.td",
|
||||
"@llvm-project//mlir:include/mlir/Interfaces/SideEffectInterfaces.td",
|
||||
":TestOpTdFiles",
|
||||
],
|
||||
test = True,
|
||||
)
|
||||
@ -90,11 +98,34 @@ gentbl(
|
||||
test = True,
|
||||
)
|
||||
|
||||
gentbl(
|
||||
name = "TestTypeDefsIncGen",
|
||||
strip_include_prefix = "lib/Dialect/Test",
|
||||
tbl_outs = [
|
||||
(
|
||||
"-gen-typedef-decls",
|
||||
"lib/Dialect/Test/TestTypeDefs.h.inc",
|
||||
),
|
||||
(
|
||||
"-gen-typedef-defs",
|
||||
"lib/Dialect/Test/TestTypeDefs.cpp.inc",
|
||||
),
|
||||
],
|
||||
tblgen = "@llvm-project//mlir:mlir-tblgen",
|
||||
td_file = "lib/Dialect/Test/TestTypeDefs.td",
|
||||
td_srcs = [
|
||||
":TestOpTdFiles",
|
||||
],
|
||||
test = True,
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "TestDialect",
|
||||
srcs = [
|
||||
"lib/Dialect/Test/TestDialect.cpp",
|
||||
"lib/Dialect/Test/TestPatterns.cpp",
|
||||
"lib/Dialect/Test/TestTraits.cpp",
|
||||
"lib/Dialect/Test/TestTypes.cpp",
|
||||
],
|
||||
hdrs = [
|
||||
"lib/Dialect/Test/TestDialect.h",
|
||||
@ -106,6 +137,7 @@ cc_library(
|
||||
deps = [
|
||||
":TestInterfacesIncGen",
|
||||
":TestOpsIncGen",
|
||||
":TestTypeDefsIncGen",
|
||||
"@llvm-project//llvm:Support",
|
||||
"@llvm-project//mlir:ControlFlowInterfaces",
|
||||
"@llvm-project//mlir:DerivedAttributeOpInterface",
|
||||
|
Loading…
Reference in New Issue
Block a user