diff options
| author | Peter Collingbourne <peter@pcc.me.uk> | 2025-07-18 13:26:00 -0700 |
|---|---|---|
| committer | Peter Collingbourne <peter@pcc.me.uk> | 2025-07-18 13:26:00 -0700 |
| commit | 9bf3524731070cadc6175707314f3b6ca37190d5 (patch) | |
| tree | 86dcab7604336b01ae938fe81062c29ff69efba8 /utils | |
| parent | 3a84c15cc13b6daf8e812592898ab6c7f19091a9 (diff) | |
| parent | 4f43f0606c3d7e1ce6d069583b5e59f036e112ce (diff) | |
Created using spr 1.3.6-beta.1
Diffstat (limited to 'utils')
6 files changed, 310 insertions, 61 deletions
diff --git a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel index ac4e3813fbba..359894438190 100644 --- a/utils/bazel/llvm-project-overlay/clang/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/clang/BUILD.bazel @@ -271,6 +271,12 @@ td_library( ) td_library( + name = "BuiltinsRISCVXAndesTdFiles", + srcs = ["include/clang/Basic/BuiltinsRISCVXAndes.td"], + includes = ["include"], +) + +td_library( name = "BuiltinsX86BaseTdFiles", srcs = ["include/clang/Basic/BuiltinsX86Base.td"], includes = ["include"], @@ -348,6 +354,7 @@ gentbl_cc_library( td_file = "include/clang/Basic/BuiltinsRISCV.td", deps = [ ":BuiltinsBaseTdFiles", + ":BuiltinsRISCVXAndesTdFiles", ":BuiltinsRISCVXCVTdFiles", ], ) diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel index d259f391069a..f0b45a99aae4 100644 --- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel @@ -1919,7 +1919,7 @@ libc_support_library( srcs = ["src/math/generic/common_constants.cpp"], hdrs = ["src/math/generic/common_constants.h"], deps = [ - ":__support_fputil_triple_double", + ":__support_math_exp_constants", ":__support_number_pair", ], ) @@ -1996,16 +1996,15 @@ libc_support_library( libc_support_library( name = "explogxf", - srcs = ["src/math/generic/explogxf.cpp"], hdrs = ["src/math/generic/explogxf.h"], deps = [ - ":__support_common", ":__support_fputil_fenv_impl", ":__support_fputil_fma", - ":__support_fputil_fp_bits", ":__support_fputil_multiply_add", ":__support_fputil_nearest_integer", - ":__support_fputil_polyeval", + ":__support_math_exp_utils", + ":__support_math_exp10f_utils", + ":__support_macros_properties_cpu_features", ":common_constants", ], ) @@ -2051,19 +2050,6 @@ libc_support_library( ) libc_support_library( - name = "exp10f_impl", - hdrs = ["src/math/generic/exp10f_impl.h"], - deps = [ - ":__support_fputil_fma", - ":__support_fputil_multiply_add", - ":__support_fputil_rounding_mode", - ":__support_macros_optimization", - ":common_constants", - ":explogxf", - ], -) - -libc_support_library( name = "exp2f_impl", hdrs = ["src/math/generic/exp2f_impl.h"], deps = [ @@ -2087,6 +2073,7 @@ libc_support_library( ":__support_fputil_fp_bits", ":__support_fputil_nearest_integer", ":__support_math_expf16_utils", + ":__support_math_exp10_float16_constants", ], ) @@ -2149,6 +2136,179 @@ libc_support_library( ], ) +libc_support_library( + name = "__support_math_frexpf128", + hdrs = ["src/__support/math/frexpf128.h"], + deps = [ + ":__support_macros_properties_types", + ":__support_fputil_manipulation_functions", + ], +) + +libc_support_library( + name = "__support_math_frexpf16", + hdrs = ["src/__support/math/frexpf16.h"], + deps = [ + ":__support_macros_config", + ":__support_macros_properties_types", + ":__support_fputil_manipulation_functions", + ":llvm_libc_macros_float16_macros" + ], +) + +libc_support_library( + name = "__support_math_frexpf", + hdrs = ["src/__support/math/frexpf.h"], + deps = [ + ":__support_fputil_manipulation_functions", + ], +) + +libc_support_library( + name = "__support_math_ldexpf128", + hdrs = ["src/__support/math/ldexpf128.h"], + deps = [ + ":__support_fputil_manipulation_functions", + ":__support_macros_properties_types", + ":llvm_libc_types_float128" + ], +) + +libc_support_library( + name = "__support_math_ldexpf16", + hdrs = ["src/__support/math/ldexpf16.h"], + deps = [ + ":__support_macros_properties_types", + ":__support_fputil_manipulation_functions", + ":llvm_libc_macros_float16_macros" + ], +) + +libc_support_library( + name = "__support_math_ldexpf", + hdrs = ["src/__support/math/ldexpf.h"], + deps = [ + ":__support_fputil_manipulation_functions", + ], +) + +libc_support_library( + name = "__support_math_exp_constants", + hdrs = ["src/__support/math/exp_constants.h"], + deps = [ + ":__support_fputil_triple_double", + ], +) + +libc_support_library( + name = "__support_math_exp_utils", + hdrs = ["src/__support/math/exp_utils.h"], + deps = [ + ":__support_cpp_optional", + ":__support_cpp_bit", + ":__support_fputil_fp_bits", + ], +) + +libc_support_library( + name = "__support_math_exp", + hdrs = ["src/__support/math/exp.h"], + deps = [ + ":__support_math_exp_constants", + ":__support_math_exp_utils", + ":__support_cpp_bit", + ":__support_cpp_optional", + ":__support_fputil_dyadic_float", + ":__support_fputil_fenv_impl", + ":__support_fputil_fp_bits", + ":__support_fputil_multiply_add", + ":__support_fputil_nearest_integer", + ":__support_fputil_polyeval", + ":__support_fputil_rounding_mode", + ":__support_fputil_triple_double", + ":__support_fputil_double_double", + ":__support_integer_literals", + ":__support_macros_optimization", + ], +) + +libc_support_library( + name = "__support_math_exp10", + hdrs = ["src/__support/math/exp10.h"], + deps = [ + ":__support_math_exp_constants", + ":__support_math_exp_utils", + ":__support_fputil_double_double", + ":__support_fputil_dyadic_float", + ":__support_fputil_multiply_add", + ":__support_fputil_nearest_integer", + ":__support_fputil_polyeval", + ":__support_fputil_rounding_mode", + ":__support_fputil_triple_double", + ":__support_integer_literals", + ":__support_macros_optimization", + ], +) + +libc_support_library( + name = "__support_math_exp10f_utils", + hdrs = ["src/__support/math/exp10f_utils.h"], + deps = [ + ":__support_fputil_basic_operations", + ":__support_fputil_fenv_impl", + ":__support_fputil_multiply_add", + ":__support_fputil_nearest_integer", + ":__support_fputil_polyeval", + ":__support_common", + ":__support_math_exp_utils", + ], +) + +libc_support_library( + name = "__support_math_exp10f", + hdrs = ["src/__support/math/exp10f.h"], + deps = [ + ":__support_math_exp10f_utils", + ":__support_fputil_fenv_impl", + ":__support_fputil_fp_bits", + ":__support_fputil_multiply_add", + ":__support_fputil_rounding_mode", + ":__support_macros_optimization", + ], +) + +libc_support_library( + name = "__support_math_exp10_float16_constants", + hdrs = ["src/__support/math/exp10_float16_constants.h"], + deps = [ + ":__support_cpp_array", + ], +) + +libc_support_library( + name = "__support_math_exp10f16_utils", + hdrs = ["src/__support/math/exp10f16_utils.h"], + deps = [ + ":__support_math_exp10_float16_constants", + ":__support_math_expf16_utils", + ":__support_fputil_fp_bits", + ], +) + +libc_support_library( + name = "__support_math_exp10f16", + hdrs = ["src/__support/math/exp10f16.h"], + deps = [ + ":__support_math_exp10f16_utils", + ":__support_fputil_fp_bits", + ":__support_fputil_cast", + ":__support_fputil_rounding_mode", + ":__support_fputil_except_value_utils", + ":__support_macros_optimization", + ":__support_macros_properties_cpu_features", + ], +) + ############################### complex targets ################################ libc_function( @@ -2612,10 +2772,10 @@ libc_math_function( name = "cosf", additional_deps = [ ":__support_fputil_fma", - ":__support_fputil_multiply_add", ":__support_macros_optimization", ":__support_macros_properties_cpu_features", ":sincosf_utils", + ":errno", ], ) @@ -2729,17 +2889,8 @@ libc_math_function( libc_math_function( name = "exp", additional_deps = [ - ":__support_fputil_double_double", - ":__support_fputil_dyadic_float", - ":__support_fputil_multiply_add", - ":__support_fputil_nearest_integer", - ":__support_fputil_polyeval", - ":__support_fputil_rounding_mode", - ":__support_fputil_triple_double", - ":__support_integer_literals", - ":__support_macros_optimization", - ":common_constants", - ":explogxf", + ":__support_math_exp", + ":errno", ], ) @@ -2762,38 +2913,31 @@ libc_math_function( libc_math_function( name = "exp10", additional_deps = [ - ":__support_fputil_double_double", - ":__support_fputil_dyadic_float", - ":__support_fputil_multiply_add", - ":__support_fputil_nearest_integer", - ":__support_fputil_polyeval", - ":__support_fputil_rounding_mode", - ":__support_fputil_triple_double", - ":__support_integer_literals", - ":__support_macros_optimization", - ":common_constants", - ":explogxf", + ":__support_math_exp10", + ":errno", ], ) libc_math_function( name = "exp10f", additional_deps = [ - ":exp10f_impl", + ":__support_math_exp10f", + ":errno", ], ) libc_math_function( name = "exp10f16", additional_deps = [ - ":expxf16", + ":__support_math_exp10f16", + ":errno", ], ) libc_math_function( name = "exp10m1f16", additional_deps = [ - ":expxf16", + ":__support_math_exp10f16_utils", ], ) @@ -3196,13 +3340,28 @@ libc_math_function(name = "fmulf128") libc_math_function(name = "frexp") -libc_math_function(name = "frexpf") +libc_math_function( + name = "frexpf", + additional_deps = [ + ":__support_math_frexpf", + ], +) libc_math_function(name = "frexpl") -libc_math_function(name = "frexpf128") +libc_math_function( + name = "frexpf128", + additional_deps = [ + ":__support_math_frexpf128", + ] +) -libc_math_function(name = "frexpf16") +libc_math_function( + name = "frexpf16", + additional_deps = [ + ":__support_math_frexpf16" + ], +) libc_math_function(name = "fromfp") @@ -3283,13 +3442,28 @@ libc_math_function(name = "ilogbf16") libc_math_function(name = "ldexp") -libc_math_function(name = "ldexpf") +libc_math_function( + name = "ldexpf", + additional_deps = [ + ":__support_math_ldexpf", + ] +) libc_math_function(name = "ldexpl") -libc_math_function(name = "ldexpf128") +libc_math_function( + name = "ldexpf128", + additional_deps = [ + ":__support_math_ldexpf128", + ], +) -libc_math_function(name = "ldexpf16") +libc_math_function( + name = "ldexpf16", + additional_deps = [ + ":__support_math_ldexpf16", + ], +) libc_math_function(name = "llogb") @@ -3598,14 +3772,13 @@ libc_math_function( ":__support_fputil_multiply_add", ":__support_fputil_nearest_integer", ":__support_fputil_polyeval", - ":__support_fputil_rounding_mode", ":__support_fputil_sqrt", ":__support_fputil_triple_double", ":__support_macros_optimization", + ":__support_math_exp10f", ":common_constants", ":explogxf", ":exp2f_impl", - ":exp10f_impl", ], ) @@ -3714,7 +3887,6 @@ libc_math_function( name = "sinf", additional_deps = [ ":__support_fputil_fma", - ":__support_fputil_multiply_add", ":__support_fputil_polyeval", ":__support_fputil_rounding_mode", ":__support_macros_optimization", @@ -3885,6 +4057,17 @@ libc_math_function( ) libc_math_function( + name = "tanpif", + additional_deps = [ + ":sincosf_utils", + ":hdr_fenv_macros", + ":__support_macros_config", + ":__support_macros_optimization", + ":__support_fputil_multiply_add", + ], +) + +libc_math_function( name = "tanpif16", additional_deps = [ ":sincosf16_utils", @@ -4320,7 +4503,9 @@ libc_support_library( "src/string/memory_utils/aarch64/inline_memcpy.h", "src/string/memory_utils/aarch64/inline_memmove.h", "src/string/memory_utils/aarch64/inline_memset.h", + "src/string/memory_utils/arm/common.h", "src/string/memory_utils/arm/inline_memcpy.h", + "src/string/memory_utils/arm/inline_memset.h", "src/string/memory_utils/generic/aligned_access.h", "src/string/memory_utils/generic/byte_per_byte.h", "src/string/memory_utils/inline_bcmp.h", diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel index 23cead18de4c..d20922df1b8b 100644 --- a/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel @@ -531,6 +531,14 @@ math_mpfr_test( ) math_mpfr_test( + name = "tanpif", + hdrs = ["sdcomp26094.h"], + deps = [ + "//libc:__support_cpp_array", + ], +) + +math_mpfr_test( name = "sqrt", hdrs = ["SqrtTest.h"], ) diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel index cf2537687834..4df1c4508d76 100644 --- a/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel @@ -1518,6 +1518,8 @@ math_test(name = "tanf") math_test(name = "tanhf") +math_test(name = "tanpif") + math_test( name = "totalorder", hdrs = ["TotalOrderTest.h"], diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index 0fb6536ffd05..683885e1d412 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -3958,6 +3958,7 @@ cc_library( ":BufferizationToMemRef", ":ComplexToLLVM", ":ComplexToLibm", + ":ComplexToROCDLLibraryCalls", ":ComplexToSPIRV", ":ComplexToStandard", ":ControlFlowToLLVM", @@ -4015,7 +4016,7 @@ cc_library( ":VectorToSCF", ":VectorToSPIRV", ":VectorToXeGPU", - ":XeVMToLLVM", + ":XeVMToLLVM", ], ) @@ -4640,6 +4641,7 @@ cc_library( ":VCIXToLLVMIRTranslation", ":VectorToLLVM", ":VectorTransformOps", + ":XeVMToLLVM", ], ) @@ -11900,6 +11902,25 @@ cc_library( ) cc_library( + name = "ComplexToROCDLLibraryCalls", + srcs = glob([ + "lib/Conversion/ComplexToROCDLLibraryCalls/*.cpp", + ]), + hdrs = glob([ + "include/mlir/Conversion/ComplexToROCDLLibraryCalls/*.h", + ]), + includes = ["include"], + deps = [ + ":ComplexDialect", + ":ConversionPassIncGen", + ":FuncDialect", + ":IR", + ":Pass", + ":TransformUtils", + ], +) + +cc_library( name = "ComplexToSPIRV", srcs = glob([ "lib/Conversion/ComplexToSPIRV/*.cpp", @@ -13656,17 +13677,17 @@ cc_library( ]), includes = ["include"], deps = [ - ":XeVMDialect", ":ConversionPassIncGen", - ":ConvertToLLVMInterface", - ":GPUDialect", + ":ConvertToLLVMInterface", + ":GPUDialect", ":IR", - ":LLVMCommonConversion", - ":LLVMDialect", + ":LLVMCommonConversion", + ":LLVMDialect", ":Pass", - ":Support", + ":Support", ":TransformUtils", ":VectorDialect", - "//llvm:Support", + ":XeVMDialect", + "//llvm:Support", ], ) diff --git a/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel index 1d00afb4e8a2..d5385cd3a965 100644 --- a/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel @@ -701,6 +701,32 @@ filegroup( ) ##---------------------------------------------------------------------------## +# Tune dialect. +##---------------------------------------------------------------------------## + +gentbl_filegroup( + name = "TuneTransformOpsPyGen", + tbl_outs = {"mlir/dialects/_transform_tune_extension_ops_gen.py": [ + "-gen-python-op-bindings", + "-bind-dialect=transform", + "-dialect-extension=transform_tune_extension", + ]}, + tblgen = "//mlir:mlir-tblgen", + td_file = "mlir/dialects/TransformTuneExtensionOps.td", + deps = [ + "//mlir:TransformTuneExtensionTdFiles", + ], +) + +filegroup( + name = "TunePyFiles", + srcs = [ + "mlir/dialects/transform/tune.py", + ":TuneTransformOpsPyGen", + ], +) + +##---------------------------------------------------------------------------## # PythonTest dialect. ##---------------------------------------------------------------------------## |
