aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAiden Grossman <aidengrossman@google.com>2025-09-12 01:05:48 +0000
committerAiden Grossman <aidengrossman@google.com>2025-09-12 01:05:48 +0000
commit88a52e1fc6d3e153132f0e0a86431762adf8c0c4 (patch)
treebae8c1b720736edc54705c325c5bfb95b459eda2 /utils
parent1873dd7e8bb03319500a9f4b51e9e498a8fb70de (diff)
parent2740e4b73682eb7a6869c333991a608304938952 (diff)
downloadllvm-users/boomanaiden154/main.clang-invoke-shell-script-with-bash.zip
llvm-users/boomanaiden154/main.clang-invoke-shell-script-with-bash.tar.gz
llvm-users/boomanaiden154/main.clang-invoke-shell-script-with-bash.tar.bz2
[𝘀𝗽𝗿] changes introduced through rebaseusers/boomanaiden154/main.clang-invoke-shell-script-with-bash
Created using spr 1.3.6 [skip ci]
Diffstat (limited to 'utils')
-rw-r--r--utils/bazel/llvm-project-overlay/libc/BUILD.bazel199
-rw-r--r--utils/bazel/llvm-project-overlay/libc/test/src/ctype/BUILD.bazel147
-rw-r--r--utils/bazel/llvm-project-overlay/libc/test/src/inttypes/BUILD.bazel18
-rw-r--r--utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel4
-rw-r--r--utils/bazel/llvm-project-overlay/llvm/BUILD.bazel1
-rw-r--r--utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel17
-rw-r--r--utils/bazel/llvm-project-overlay/llvm/utils/lit/tests/BUILD.bazel1
-rw-r--r--utils/bazel/llvm-project-overlay/mlir/BUILD.bazel37
-rw-r--r--utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel2
-rw-r--r--utils/bazel/llvm-project-overlay/mlir/test/Dialect/BUILD.bazel2
10 files changed, 391 insertions, 37 deletions
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index bb76da4..d9b1bb5 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -117,6 +117,10 @@ libc_support_library(
libc_support_library(
name = "__support_macros_config",
hdrs = ["src/__support/macros/config.h"],
+ deps = [
+ "__support_macros_properties_architectures",
+ "__support_macros_properties_compiler",
+ ],
)
################################# Include Files ################################
@@ -580,6 +584,7 @@ libc_support_library(
":__support_macros_attributes",
":__support_macros_config",
":__support_macros_properties_architectures",
+ ":__support_macros_properties_compiler",
":hdr_stdint_proxy",
],
)
@@ -660,6 +665,14 @@ libc_support_library(
)
libc_support_library(
+ name = "__support_cpp_tuple",
+ hdrs = ["src/__support/CPP/tuple.h"],
+ deps = [
+ "__support_cpp_utility",
+ ],
+)
+
+libc_support_library(
name = "__support_cpp_limits",
hdrs = ["src/__support/CPP/limits.h"],
deps = [
@@ -698,6 +711,7 @@ libc_support_library(
deps = [
":__support_cpp_algorithm",
":__support_cpp_bit",
+ ":__support_cpp_tuple",
":__support_cpp_type_traits",
":__support_macros_attributes",
":hdr_stdint_proxy",
@@ -759,6 +773,7 @@ libc_support_library(
deps = [
":__support_macros_attributes",
":__support_macros_config",
+ ":__support_macros_properties_compiler",
":__support_macros_properties_complex_types",
":__support_macros_properties_types",
":hdr_stdint_proxy",
@@ -1803,6 +1818,168 @@ libc_support_library(
],
)
+################################# ctype targets ################################
+
+libc_function(
+ name = "isalnum",
+ srcs = ["src/ctype/isalnum.cpp"],
+ hdrs = ["src/ctype/isalnum.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "isalpha",
+ srcs = ["src/ctype/isalpha.cpp"],
+ hdrs = ["src/ctype/isalpha.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "isascii",
+ srcs = ["src/ctype/isascii.cpp"],
+ hdrs = ["src/ctype/isascii.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "isblank",
+ srcs = ["src/ctype/isblank.cpp"],
+ hdrs = ["src/ctype/isblank.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "iscntrl",
+ srcs = ["src/ctype/iscntrl.cpp"],
+ hdrs = ["src/ctype/iscntrl.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "isdigit",
+ srcs = ["src/ctype/isdigit.cpp"],
+ hdrs = ["src/ctype/isdigit.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "isgraph",
+ srcs = ["src/ctype/isgraph.cpp"],
+ hdrs = ["src/ctype/isgraph.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "islower",
+ srcs = ["src/ctype/islower.cpp"],
+ hdrs = ["src/ctype/islower.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "isprint",
+ srcs = ["src/ctype/isprint.cpp"],
+ hdrs = ["src/ctype/isprint.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "ispunct",
+ srcs = ["src/ctype/ispunct.cpp"],
+ hdrs = ["src/ctype/ispunct.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "isspace",
+ srcs = ["src/ctype/isspace.cpp"],
+ hdrs = ["src/ctype/isspace.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "isupper",
+ srcs = ["src/ctype/isupper.cpp"],
+ hdrs = ["src/ctype/isupper.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "isxdigit",
+ srcs = ["src/ctype/isxdigit.cpp"],
+ hdrs = ["src/ctype/isxdigit.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "toascii",
+ srcs = ["src/ctype/toascii.cpp"],
+ hdrs = ["src/ctype/toascii.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "tolower",
+ srcs = ["src/ctype/tolower.cpp"],
+ hdrs = ["src/ctype/tolower.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
+libc_function(
+ name = "toupper",
+ srcs = ["src/ctype/toupper.cpp"],
+ hdrs = ["src/ctype/toupper.h"],
+ deps = [
+ ":__support_common",
+ ":__support_ctype_utils",
+ ],
+)
+
################################ fenv targets ################################
libc_function(
@@ -4595,6 +4772,28 @@ libc_math_function(name = "ufromfpxf16")
############################## inttypes targets ##############################
libc_function(
+ name = "strtoimax",
+ srcs = ["src/inttypes/strtoimax.cpp"],
+ hdrs = ["src/inttypes/strtoimax.h"],
+ deps = [
+ ":__support_common",
+ ":__support_str_to_integer",
+ ":errno",
+ ],
+)
+
+libc_function(
+ name = "strtoumax",
+ srcs = ["src/inttypes/strtoumax.cpp"],
+ hdrs = ["src/inttypes/strtoumax.h"],
+ deps = [
+ ":__support_common",
+ ":__support_str_to_integer",
+ ":errno",
+ ],
+)
+
+libc_function(
name = "imaxabs",
srcs = ["src/inttypes/imaxabs.cpp"],
hdrs = ["src/inttypes/imaxabs.h"],
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/ctype/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/ctype/BUILD.bazel
new file mode 100644
index 0000000..76d0dca
--- /dev/null
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/ctype/BUILD.bazel
@@ -0,0 +1,147 @@
+# This file is licensed under the Apache License v2.0 with LLVM Exceptions.
+# See https://llvm.org/LICENSE.txt for license information.
+# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+
+# Tests for LLVM libc ctype.h functions.
+
+load("//libc/test:libc_test_rules.bzl", "libc_test")
+
+package(default_visibility = ["//visibility:public"])
+
+licenses(["notice"])
+
+libc_test(
+ name = "isalnum_test",
+ srcs = ["isalnum_test.cpp"],
+ deps = [
+ "//libc:__support_cpp_span",
+ "//libc:isalnum",
+ ],
+)
+
+libc_test(
+ name = "islpha_test",
+ srcs = ["isalpha_test.cpp"],
+ deps = [
+ "//libc:__support_cpp_span",
+ "//libc:isalpha",
+ ],
+)
+
+libc_test(
+ name = "isascii_test",
+ srcs = ["isascii_test.cpp"],
+ deps = [
+ "//libc:isascii",
+ ],
+)
+
+libc_test(
+ name = "isblank_test",
+ srcs = ["isblank_test.cpp"],
+ deps = [
+ "//libc:isblank",
+ ],
+)
+
+libc_test(
+ name = "iscntrl_test",
+ srcs = ["iscntrl_test.cpp"],
+ deps = [
+ "//libc:iscntrl",
+ ],
+)
+
+libc_test(
+ name = "isdigit_test",
+ srcs = ["isdigit_test.cpp"],
+ deps = [
+ "//libc:__support_cpp_span",
+ "//libc:isdigit",
+ ],
+)
+
+libc_test(
+ name = "isgraph_test",
+ srcs = ["isgraph_test.cpp"],
+ deps = [
+ "//libc:isgraph",
+ ],
+)
+
+libc_test(
+ name = "islower_test",
+ srcs = ["islower_test.cpp"],
+ deps = [
+ "//libc:__support_cpp_span",
+ "//libc:islower",
+ ],
+)
+
+libc_test(
+ name = "isprint_test",
+ srcs = ["isprint_test.cpp"],
+ deps = [
+ "//libc:isprint",
+ ],
+)
+
+libc_test(
+ name = "ispunct_test",
+ srcs = ["ispunct_test.cpp"],
+ deps = [
+ "//libc:ispunct",
+ ],
+)
+
+libc_test(
+ name = "isspace_test",
+ srcs = ["isspace_test.cpp"],
+ deps = [
+ "//libc:isspace",
+ ],
+)
+
+libc_test(
+ name = "isupper_test",
+ srcs = ["isupper_test.cpp"],
+ deps = [
+ "//libc:__support_cpp_span",
+ "//libc:isupper",
+ ],
+)
+
+libc_test(
+ name = "isxdigit_test",
+ srcs = ["isxdigit_test.cpp"],
+ deps = [
+ "//libc:__support_cpp_span",
+ "//libc:isxdigit",
+ ],
+)
+
+libc_test(
+ name = "toascii_test",
+ srcs = ["toascii_test.cpp"],
+ deps = [
+ "//libc:toascii",
+ ],
+)
+
+libc_test(
+ name = "tolower_test",
+ srcs = ["tolower_test.cpp"],
+ deps = [
+ "//libc:__support_cpp_span",
+ "//libc:tolower",
+ ],
+)
+
+libc_test(
+ name = "toupper_test",
+ srcs = ["toupper_test.cpp"],
+ deps = [
+ "//libc:__support_cpp_span",
+ "//libc:toupper",
+ ],
+)
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/inttypes/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/inttypes/BUILD.bazel
index 3dd4ab3..03b8cbe 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/inttypes/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/inttypes/BUILD.bazel
@@ -11,6 +11,24 @@ package(default_visibility = ["//visibility:public"])
licenses(["notice"])
libc_test(
+ name = "strtoimax_test",
+ srcs = ["strtoimax_test.cpp"],
+ deps = [
+ "//libc:strtoimax",
+ "//libc/test/src/stdlib:strtol_test_helper",
+ ],
+)
+
+libc_test(
+ name = "strtoumax_test",
+ srcs = ["strtoumax_test.cpp"],
+ deps = [
+ "//libc:strtoumax",
+ "//libc/test/src/stdlib:strtol_test_helper",
+ ],
+)
+
+libc_test(
name = "imaxabs_test",
srcs = ["imaxabs_test.cpp"],
deps = [
diff --git a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
index c0f5a79..ae9ff28 100644
--- a/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/lldb/source/Plugins/BUILD.bazel
@@ -1334,9 +1334,11 @@ cc_library(
deps = [
":PluginProcessUtility",
"//lldb:Core",
+ "//lldb:SymbolHeaders",
"//lldb:Target",
"//lldb:TargetHeaders",
"//lldb:Utility",
+ "//lldb:UtilityPrivateHeaders",
],
)
@@ -1919,6 +1921,8 @@ cc_library(
"//lldb:Host",
"//lldb:Symbol",
"//lldb:SymbolHeaders",
+ "//lldb:Target",
+ "//lldb:TargetHeaders",
"//lldb:Utility",
"//llvm:Support",
],
diff --git a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
index b042c18..e6f10b0 100644
--- a/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
@@ -228,6 +228,7 @@ cc_library(
"lib/Support/*.cpp",
"lib/Support/*.h",
"lib/Support/*.inc",
+ "lib/Support/LSP/*.cpp",
# To avoid a dependency cycle.
"include/llvm/Option/*.h",
]) + select({
diff --git a/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
index 3fa62bf..628a720 100644
--- a/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/unittests/BUILD.bazel
@@ -794,6 +794,23 @@ cc_test(
)
cc_test(
+ name = "SupportLSPTests",
+ size = "small",
+ srcs = glob(["Support/LSP/*.cpp"]),
+ copts = [
+ "$(STACK_FRAME_UNLIMITED)",
+ ],
+ linkstatic = 1,
+ deps = [
+ "//llvm:Support",
+ "//llvm:config",
+ "//third-party/unittest:gmock",
+ "//third-party/unittest:gtest",
+ "//third-party/unittest:gtest_main",
+ ],
+)
+
+cc_test(
name = "tablegen_tests",
size = "small",
srcs = glob(
diff --git a/utils/bazel/llvm-project-overlay/llvm/utils/lit/tests/BUILD.bazel b/utils/bazel/llvm-project-overlay/llvm/utils/lit/tests/BUILD.bazel
index d89626a..7146cdc 100644
--- a/utils/bazel/llvm-project-overlay/llvm/utils/lit/tests/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/llvm/utils/lit/tests/BUILD.bazel
@@ -31,6 +31,7 @@ expand_template(
"//llvm:FileCheck",
"//llvm:count",
"//llvm:not",
+ "//llvm:split-file",
] + glob(["Inputs/**"]),
)
for src in glob(
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
index d3fdded..e556d65 100644
--- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
@@ -1375,13 +1375,6 @@ td_library(
)
td_library(
- name = "CopyOpInterfaceTdFiles",
- srcs = ["include/mlir/Interfaces/CopyOpInterface.td"],
- includes = ["include"],
- deps = [":OpBaseTdFiles"],
-)
-
-td_library(
name = "DerivedAttributeOpInterfaceTdFiles",
srcs = ["include/mlir/Interfaces/DerivedAttributeOpInterface.td"],
includes = ["include"],
@@ -3980,6 +3973,7 @@ cc_library(
":CallOpInterfaces",
":DialectUtils",
":IR",
+ ":MemRefDialect",
":SideEffectInterfaces",
":Support",
":ViewLikeInterface",
@@ -4405,17 +4399,6 @@ cc_library(
],
)
-cc_library(
- name = "CopyOpInterface",
- srcs = ["lib/Interfaces/CopyOpInterface.cpp"],
- hdrs = ["include/mlir/Interfaces/CopyOpInterface.h"],
- includes = ["include"],
- deps = [
- ":CopyOpInterfaceIncGen",
- ":IR",
- ],
-)
-
td_library(
name = "ShapeOpsTdFiles",
srcs = [
@@ -7680,17 +7663,6 @@ gentbl_cc_library(
)
gentbl_cc_library(
- name = "CopyOpInterfaceIncGen",
- tbl_outs = {
- "include/mlir/Interfaces/CopyOpInterface.h.inc": ["-gen-op-interface-decls"],
- "include/mlir/Interfaces/CopyOpInterface.cpp.inc": ["-gen-op-interface-defs"],
- },
- tblgen = ":mlir-tblgen",
- td_file = "include/mlir/Interfaces/CopyOpInterface.td",
- deps = [":CopyOpInterfaceTdFiles"],
-)
-
-gentbl_cc_library(
name = "TransformsPassIncGen",
tbl_outs = {
"include/mlir/Transforms/Passes.h.inc": [
@@ -9348,6 +9320,7 @@ cc_binary(
":MlirLspServerSupportLib",
":RegisterAllDialects",
":RegisterAllExtensions",
+ "//llvm:Support",
"//mlir/test:TestAffine",
"//mlir/test:TestAnalysis",
"//mlir/test:TestArith",
@@ -10559,7 +10532,6 @@ td_library(
],
includes = ["include"],
deps = [
- ":CopyOpInterfaceTdFiles",
":DestinationStyleOpInterface",
":LinalgOpsTdFiles",
":OpBaseTdFiles",
@@ -10782,7 +10754,6 @@ cc_library(
":BytecodeOpInterface",
":ComplexDialect",
":ControlFlowInterfaces",
- ":CopyOpInterface",
":DestinationStyleOpInterface",
":DialectUtils",
":FunctionInterfaces",
@@ -12593,7 +12564,6 @@ td_library(
":ArithOpsTdFiles",
":CastInterfacesTdFiles",
":ControlFlowInterfacesTdFiles",
- ":CopyOpInterfaceTdFiles",
":MemorySlotInterfacesTdFiles",
":OpBaseTdFiles",
":ShapedOpInterfacesTdFiles",
@@ -12655,7 +12625,6 @@ cc_library(
":ControlFlowInterfaces",
":ConvertToEmitCInterface",
":ConvertToLLVMInterface",
- ":CopyOpInterface",
":DialectUtils",
":IR",
":InferIntRangeCommon",
@@ -13061,7 +13030,6 @@ td_library(
":BufferViewFlowOpInterfaceTdFiles",
":BufferizableOpInterfaceTdFiles",
":BufferizationTypeInterfacesTdFiles",
- ":CopyOpInterfaceTdFiles",
":DestinationStyleOpInterfaceTdFiles",
":InferTypeOpInterfaceTdFiles",
":OpBaseTdFiles",
@@ -13250,7 +13218,6 @@ cc_library(
":BufferizationTypeInterfacesIncGen",
":BytecodeOpInterface",
":ControlFlowInterfaces",
- ":CopyOpInterface",
":DestinationStyleOpInterface",
":FuncDialect",
":FunctionInterfaces",
diff --git a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
index 0100e5d..e17cdb2 100644
--- a/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
@@ -119,7 +119,6 @@ td_library(
"//mlir:BuiltinDialectTdFiles",
"//mlir:CallInterfacesTdFiles",
"//mlir:ControlFlowInterfacesTdFiles",
- "//mlir:CopyOpInterfaceTdFiles",
"//mlir:DLTIDialectTdFiles",
"//mlir:DataLayoutInterfacesTdFiles",
"//mlir:DestinationStyleOpInterfaceTdFiles",
@@ -385,7 +384,6 @@ cc_library(
"//mlir:CallOpInterfaces",
"//mlir:CommonFolders",
"//mlir:ControlFlowInterfaces",
- "//mlir:CopyOpInterface",
"//mlir:DLTIDialect",
"//mlir:DataLayoutInterfaces",
"//mlir:DerivedAttributeOpInterface",
diff --git a/utils/bazel/llvm-project-overlay/mlir/test/Dialect/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/test/Dialect/BUILD.bazel
index b8d136c..daf639f 100644
--- a/utils/bazel/llvm-project-overlay/mlir/test/Dialect/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/test/Dialect/BUILD.bazel
@@ -9,6 +9,7 @@ package(default_visibility = ["//visibility:public"])
name = "%s.test" % src,
srcs = [src],
data = [
+ "Vector/td/unroll-elements.mlir",
"Vector/vector-sink-transform.mlir",
"//llvm:llvm-symbolizer",
"//mlir:mlir-opt",
@@ -33,6 +34,7 @@ package(default_visibility = ["//visibility:public"])
"LLVM/*-symbol-def.mlir",
"Transform/*-symbol-decl-and-schedule.mlir",
"Transform/include/**/*.mlir",
+ "Vector/td/unroll-elements.mlir",
"Vector/vector-sink-transform.mlir",
],
)