":Profile",
":Rewrite",
":Utils",
+ "//llvm:AllTargetsAsmParsers",
+ "//llvm:AllTargetsDisassemblers",
"//llvm:MC",
"//llvm:Object",
"//llvm:Support",
- "//llvm:AllTargetsAsmParsers",
- "//llvm:AllTargetsDisassemblers",
- ]
+ ],
)
cc_binary(
deps = [
":Profile",
"//llvm:Support",
- ]
+ ],
)
cc_binary(
":Profile",
":Rewrite",
":RuntimeLibs",
- ":Utils",
- ":TargetX86",
":TargetAArch64",
+ ":TargetX86",
+ ":Utils",
"//llvm:AllTargetsAsmParsers",
"//llvm:AllTargetsCodeGens",
"//llvm:AllTargetsDisassemblers",
srcs = glob([
"lib/RuntimeLibs/*.cpp",
]),
+ includes = ["include"],
textual_hdrs = glob([
"include/bolt/RuntimeLibs/*.h",
]) + ["include/bolt/RuntimeLibs/RuntimeLibraryVariables.inc"],
- includes = ["include"],
deps = [
":Core",
":Passes",
includes = ["include"],
deps = [
":Core",
- "//llvm:X86CommonTableGen",
- "//llvm:X86UtilsAndDesc",
"//llvm:Analysis",
"//llvm:BinaryFormat",
"//llvm:CodeGen",
"//llvm:MCParser",
"//llvm:Object",
"//llvm:Support",
+ "//llvm:X86CommonTableGen",
+ "//llvm:X86UtilsAndDesc",
],
)
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
# LLVM libc project.
-load(":libc_build_rules.bzl", "libc_function", "libc_math_function",
- "libc_support_library")
+load(
+ ":libc_build_rules.bzl",
+ "libc_function",
+ "libc_math_function",
+ "libc_support_library",
+)
load(":platforms.bzl", "PLATFORM_CPU_ARM64", "PLATFORM_CPU_X86_64")
load("@bazel_skylib//lib:selects.bzl", "selects")
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
**kwargs: All other attributes relevant for the cc_library rule.
"""
copts = copts or []
+
# We want all libc sources to be compiled with "hidden" visibility.
# The public symbols will be given "default" visibility explicitly.
# See src/__support/common.h for more information.
# libc_support_library.
libc_support_library = _libc_library
-def libc_function(name, srcs, weak = False, deps = None, copts = None,
- local_defines = None, **kwargs):
+def libc_function(
+ name,
+ srcs,
+ weak = False,
+ deps = None,
+ copts = None,
+ local_defines = None,
+ **kwargs):
"""Add target for a libc function.
The libc function is eventually available as a cc_library target by name
if weak:
func_attrs.append("__attribute__((weak))")
local_defines = local_defines or ["LLVM_LIBC_PUBLIC_PACKAGING"]
- local_defines.append("LLVM_LIBC_FUNCTION_ATTR='%s'" % ' '.join(func_attrs))
+ local_defines.append("LLVM_LIBC_FUNCTION_ATTR='%s'" % " ".join(func_attrs))
_libc_library(
name = name,
srcs = srcs,
],
)
-
##---------------------------------------------------------------------------##
# PythonTest dialect.
##---------------------------------------------------------------------------##
"//mlir:AffineToStandard",
"//mlir:FuncDialect",
"//mlir:FuncToLLVM",
- "//mlir:IndexToLLVM",
"//mlir:IR",
+ "//mlir:IndexToLLVM",
+ "//mlir:LLVMDialect",
"//mlir:LinalgToLLVM",
"//mlir:LinalgTransforms",
- "//mlir:LLVMDialect",
"//mlir:MathToLLVM",
"//mlir:MemRefToLLVM",
"//mlir:Pass",