<commit_before># Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

add_subdirectory(test)

# TODO: iree_select_target_platform macros.
# TODO: skip targets disabled by options.
iree_select_compiler_opts(IREE_HAL_DRIVER_MODULES
  ALL
    "iree::hal::llvmjit::llvmjit_driver_module"
    "iree::hal::vmla::vmla_driver_module"
    "iree::hal::vulkan::vulkan_driver_module"
)

iree_select_compiler_opts(IREE_COMPILER_TARGET_BACKENDS
  ALL
    "iree::compiler::Dialect::HAL::Target::LLVM"
    "iree::compiler::Dialect::HAL::Target::VMLA"
    "iree::compiler::Dialect::HAL::Target::VulkanSPIRV"
)

set(IREE_COMPILER_DIALECT_MODULES
  "iree::compiler::Dialect::Modules::Check::IR::CheckDialect"
  "iree::compiler::Dialect::Modules::Strings::IR::Dialect"
  "iree::compiler::Dialect::Modules::TensorList::IR::TensorListDialect"
)

iree_cc_binary(
  NAME
    iree-benchmark-module
  OUT
    iree-benchmark-module
  SRCS
    "benchmark_module_main.cc"
  DEPS
    ::vm_util
    absl::flags
    absl::strings
    benchmark
    iree::base::api_util
    iree::base::file_io
    iree::base::localfile
    iree::base::source_location
    iree::base::status
    iree::modules::hal
    iree::testing::benchmark_main
    iree::vm::bytecode_module
    ${IREE_HAL_DRIVER_MODULES}
  TESTONLY
)

iree_cc_binary(
  NAME
    iree-dump-module
  OUT
    iree-dump-module
  SRCS
    "dump_module_main.cc"
  DEPS
    flatbuffers
    iree::base::file_io
    iree::base::flatbuffer_util
    iree::base::init
    iree::base::localfile
    iree::schemas::bytecode_module_def_cc_fbs
)

iree_cc_library(
  NAME
    PassesAndDialects
  HDRS
    "init_dialects.h"
    "init_passes.h"
  DEPS
    MLIRAffine
    MLIRAffineTransforms
    MLIRFxpMathOps
    MLIRGPU
    MLIRGPUtoSPIRVTransforms
    MLIRIR
    MLIRLLVMIR
    MLIRLinalgOps
    MLIRLinalgToLLVM
    MLIRLinalgToSPIRVTransforms
    MLIRLinalgTransforms
    MLIRLoopOps
    MLIRLoopOpsTransforms
    MLIRLoopsToGPU
    MLIRQuant
    MLIRQuantizerTransforms
    MLIRSDBM
    MLIRSPIRV
    MLIRSPIRVTransforms
    MLIRStandardOps
    MLIRStandardToSPIRVTransforms
    MLIRTransforms
    MLIRVector
    iree::compiler::Dialect::Flow::IR
    iree::compiler::Dialect::HAL::IR::HALDialect
    iree::compiler::Dialect::IREE::IR<commit_msg>Adopt changes introduced with b9a92e6 to CMake<commit_after># Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

add_subdirectory(test)

# TODO: iree_select_target_platform macros.
# TODO: skip targets disabled by options.
iree_select_compiler_opts(IREE_HAL_DRIVER_MODULES
  ALL
    "iree::hal::llvmjit::llvmjit_driver_module"
    "iree::hal::vmla::vmla_driver_module"
    "iree::hal::vulkan::vulkan_driver_module"
)

iree_select_compiler_opts(IREE_COMPILER_TARGET_BACKENDS
  ALL
    "iree::compiler::Dialect::HAL::Target::LLVM"
    "iree::compiler::Dialect::HAL::Target::VMLA"
    "iree::compiler::Dialect::HAL::Target::VulkanSPIRV"
)

set(IREE_COMPILER_DIALECT_MODULES
  "iree::compiler::Dialect::Modules::Check::IR::CheckDialect"
  "iree::compiler::Dialect::Modules::Strings::IR::Dialect"
  "iree::compiler::Dialect::Modules::TensorList::IR::TensorListDialect"
)

iree_cc_binary(
  NAME
    iree-benchmark-module
  OUT
    iree-benchmark-module
  SRCS
    "benchmark_module_main.cc"
  DEPS
    ::vm_util
    absl::flags
    absl::strings
    benchmark
    iree::base::api_util
    iree::base::file_io
    iree::base::localfile
    iree::base::source_location
    iree::base::status
    iree::modules::hal
    iree::testing::benchmark_main
    iree::vm::bytecode_module
    ${IREE_HAL_DRIVER_MODULES}
  TESTONLY
)

iree_cc_binary(
  NAME
    iree-dump-module
  OUT
    iree-dump-module
  SRCS
    "dump_module_main.cc"
  DEPS
    flatbuffers
    iree::base::file_io
    iree::base::flatbuffer_util
    iree::base::init
    iree::base::localfile
    iree::schemas::bytecode_module_def_cc_fbs
)

iree_cc_library(
  NAME
    PassesAndDialects
  HDRS
    "init_dialects.h"
    "init_passes.h"
  DEPS
    MLIRAffine
    MLIRAffineTransforms
    MLIRGPU
    MLIRGPUtoSPIRVTransforms
    MLIRIR
    MLIRLLVMIR
    MLIRLinalgOps
    MLIRLinalgToLLVM
    MLIRLinalgToSPIRVTransforms
    MLIRLinalgTransforms
    MLIRLoopOps
    MLIRLoopOpsTransforms
    MLIRLoopsToGPU
    MLIRQuant
    MLIRSDBM
    MLIRSPIRV
    MLIRSPIRVTransforms
    MLIRStandardOps
    MLIRStandardToSPIRVTransforms
    MLIRTransforms
    MLIRVector
    iree::compiler::Dialect::Flow::IR
    iree::compiler::Dialect::HAL::IR::HALDialect
    iree::compiler::Dialect::IREE::IR
{'fraction_non_alphanumeric': 0.09675090252707581, 'fraction_numerical': 0.0036101083032490976, 'mean_word_length': 4.491575817641229, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2455219', 'n_tokens_mistral': 2015, 'n_tokens_neox': 2017, 'n_words': 355}