Skip to content

Commit

Permalink
Rename "translate" to "compile" across build systems. (#9442)
Browse files Browse the repository at this point in the history
All uses of `iree-translate` were replaced with `iree-compile` and the `iree-translate` tool was removed. We still have some "translation passes" and "translation info" names in the compiler, but most language can be updated to "compile" and "compilation".

I'm separately planning on updating uses of `--iree-mlir-to-vm-bytecode-module` and related to flags to use the newer `--output-format` and `--compile-mode` flags (or just trusting the default values).
  • Loading branch information
ScottTodd authored Jun 10, 2022
1 parent 243875c commit 33a7caa
Show file tree
Hide file tree
Showing 17 changed files with 214 additions and 219 deletions.
16 changes: 8 additions & 8 deletions benchmarks/TFLite/android-adreno.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
# #
# Each suite benchmarks a list of modules with configurations specifying a #
# target architecture and runtime characteristics (e.g. threads/cores). These #
# benchmarks only configure IREE translation and runtime flags for the target #
# benchmarks only configure IREE compilation and runtime flags for the target #
# architecture and do *not* include any non-default flags. No non-default #
# flags should be added here. #
# #
################################################################################

set(ANDROID_ADRENO_GPU_TRANSLATION_FLAGS
set(ANDROID_ADRENO_GPU_COMPILATION_FLAGS
"--iree-input-type=tosa"
"--iree-vulkan-target-triple=adreno-unknown-android11"
)
Expand All @@ -40,8 +40,8 @@ iree_benchmark_suite(
"vulkan-spirv"
TARGET_ARCHITECTURE
"GPU-Adreno"
TRANSLATION_FLAGS
${ANDROID_ADRENO_GPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_ADRENO_GPU_COMPILATION_FLAGS}
BENCHMARK_TOOL
iree-benchmark-module
CONFIG
Expand Down Expand Up @@ -85,8 +85,8 @@ iree_benchmark_suite(
"vulkan-spirv"
TARGET_ARCHITECTURE
"GPU-Adreno"
TRANSLATION_FLAGS
${ANDROID_ADRENO_GPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_ADRENO_GPU_COMPILATION_FLAGS}
"--iree-flow-enable-fuse-padding-into-consumer-ops"
BENCHMARK_TOOL
iree-benchmark-module
Expand Down Expand Up @@ -127,8 +127,8 @@ iree_benchmark_suite(
"vulkan-spirv"
TARGET_ARCHITECTURE
"GPU-Adreno"
TRANSLATION_FLAGS
${ANDROID_ADRENO_GPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_ADRENO_GPU_COMPILATION_FLAGS}
"--iree-flow-enable-fuse-padding-into-consumer-ops"
"--iree-hal-benchmark-dispatch-repeat-count=16"
BENCHMARK_TOOL
Expand Down
58 changes: 29 additions & 29 deletions benchmarks/TFLite/android-arm64-v8a.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
# #
# Each suite benchmarks a list of modules with configurations specifying a #
# target architecture and runtime characteristics (e.g. threads/cores). These #
# benchmarks only configure IREE translation and runtime flags for the target #
# benchmarks only configure IREE compilation and runtime flags for the target #
# architecture and do *not* include any non-default flags. No non-default #
# flags should be added here. #
# #
################################################################################

set(ANDROID_CPU_TRANSLATION_FLAGS
set(ANDROID_CPU_COMPILATION_FLAGS
"--iree-input-type=tosa"
"--iree-llvm-target-triple=aarch64-none-linux-android29")

Expand All @@ -41,8 +41,8 @@ iree_benchmark_suite(
"dylib-llvm-aot"
TARGET_ARCHITECTURE
"CPU-ARM64-v8A"
TRANSLATION_FLAGS
${ANDROID_CPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_CPU_COMPILATION_FLAGS}
BENCHMARK_TOOL
iree-benchmark-module
CONFIG
Expand Down Expand Up @@ -72,8 +72,8 @@ iree_benchmark_suite(
"dylib-llvm-aot"
TARGET_ARCHITECTURE
"CPU-ARM64-v8A"
TRANSLATION_FLAGS
${ANDROID_CPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_CPU_COMPILATION_FLAGS}
BENCHMARK_TOOL
iree-benchmark-module
CONFIG
Expand Down Expand Up @@ -105,8 +105,8 @@ iree_benchmark_suite(
# "dylib-llvm-aot"
# TARGET_ARCHITECTURE
# "CPU-ARM64-v8A"
# TRANSLATION_FLAGS
# ${ANDROID_CPU_TRANSLATION_FLAGS}
# COMPILATION_FLAGS
# ${ANDROID_CPU_COMPILATION_FLAGS}
# BENCHMARK_TOOL
# iree-benchmark-module
# CONFIG
Expand Down Expand Up @@ -136,8 +136,8 @@ iree_benchmark_suite(
# "dylib-llvm-aot"
# TARGET_ARCHITECTURE
# "CPU-ARM64-v8A"
# TRANSLATION_FLAGS
# ${ANDROID_CPU_TRANSLATION_FLAGS}
# COMPILATION_FLAGS
# ${ANDROID_CPU_COMPILATION_FLAGS}
# BENCHMARK_TOOL
# iree-benchmark-module
# CONFIG
Expand Down Expand Up @@ -168,8 +168,8 @@ iree_benchmark_suite(
"dylib-llvm-aot"
TARGET_ARCHITECTURE
"CPU-ARM64-v8A"
TRANSLATION_FLAGS
${ANDROID_CPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_CPU_COMPILATION_FLAGS}
BENCHMARK_TOOL
iree-benchmark-module
CONFIG
Expand Down Expand Up @@ -219,8 +219,8 @@ iree_benchmark_suite(
"dylib-llvm-aot"
TARGET_ARCHITECTURE
"CPU-ARM64-v8A"
TRANSLATION_FLAGS
${ANDROID_CPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_CPU_COMPILATION_FLAGS}
"--iree-flow-mmt4d-target-options=arch=aarch64"
BENCHMARK_TOOL
iree-benchmark-module
Expand Down Expand Up @@ -248,8 +248,8 @@ iree_benchmark_suite(
"dylib-llvm-aot"
TARGET_ARCHITECTURE
"CPU-ARM64-v8A"
TRANSLATION_FLAGS
${ANDROID_CPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_CPU_COMPILATION_FLAGS}
"--iree-flow-mmt4d-target-options=arch=aarch64 features=+dotprod"
"--iree-llvm-target-cpu-features=+dotprod"
BENCHMARK_TOOL
Expand Down Expand Up @@ -286,8 +286,8 @@ iree_benchmark_suite(
"dylib-llvm-aot"
TARGET_ARCHITECTURE
"CPU-ARM64-v8A"
TRANSLATION_FLAGS
${ANDROID_CPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_CPU_COMPILATION_FLAGS}
"--iree-flow-mmt4d-target-options=arch=aarch64"
BENCHMARK_TOOL
iree-benchmark-module
Expand Down Expand Up @@ -317,8 +317,8 @@ iree_benchmark_suite(
"dylib-llvm-aot"
TARGET_ARCHITECTURE
"CPU-ARM64-v8A"
TRANSLATION_FLAGS
${ANDROID_CPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_CPU_COMPILATION_FLAGS}
"--iree-flow-mmt4d-target-options=arch=aarch64 features=+dotprod"
"--iree-llvm-target-cpu-features=+dotprod"
BENCHMARK_TOOL
Expand Down Expand Up @@ -352,8 +352,8 @@ iree_benchmark_suite(
# "dylib-llvm-aot"
# TARGET_ARCHITECTURE
# "CPU-ARM64-v8A"
# TRANSLATION_FLAGS
# ${ANDROID_CPU_TRANSLATION_FLAGS}
# COMPILATION_FLAGS
# ${ANDROID_CPU_COMPILATION_FLAGS}
# "--iree-flow-mmt4d-target-options=arch=aarch64"
# BENCHMARK_TOOL
# iree-benchmark-module
Expand Down Expand Up @@ -384,8 +384,8 @@ iree_benchmark_suite(
# "dylib-llvm-aot"
# TARGET_ARCHITECTURE
# "CPU-ARM64-v8A"
# TRANSLATION_FLAGS
# ${ANDROID_CPU_TRANSLATION_FLAGS}
# COMPILATION_FLAGS
# ${ANDROID_CPU_COMPILATION_FLAGS}
# "--iree-flow-mmt4d-target-options=arch=aarch64"
# BENCHMARK_TOOL
# iree-benchmark-module
Expand Down Expand Up @@ -420,8 +420,8 @@ iree_benchmark_suite(
"dylib-llvm-aot"
TARGET_ARCHITECTURE
"CPU-ARM64-v8A"
TRANSLATION_FLAGS
${ANDROID_CPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_CPU_COMPILATION_FLAGS}
"--iree-flow-mmt4d-target-options=arch=aarch64"

BENCHMARK_TOOL
Expand Down Expand Up @@ -452,8 +452,8 @@ iree_benchmark_suite(
"dylib-llvm-aot"
TARGET_ARCHITECTURE
"CPU-ARM64-v8A"
TRANSLATION_FLAGS
${ANDROID_CPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_CPU_COMPILATION_FLAGS}
"--iree-flow-mmt4d-target-options=arch=aarch64 features=+dotprod"
"--iree-llvm-target-cpu-features=+dotprod"

Expand Down Expand Up @@ -486,7 +486,7 @@ iree_benchmark_suite(
"vmvx"
TARGET_ARCHITECTURE
"CPU-ARM64-v8A"
TRANSLATION_FLAGS
COMPILATION_FLAGS
"--iree-input-type=tosa"
BENCHMARK_TOOL
iree-benchmark-module
Expand Down
24 changes: 12 additions & 12 deletions benchmarks/TFLite/android-mali.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
# #
# Each suite benchmarks a list of modules with configurations specifying a #
# target architecture and runtime characteristics (e.g. threads/cores). These #
# benchmarks only configure IREE translation and runtime flags for the target #
# benchmarks only configure IREE compilation and runtime flags for the target #
# architecture and do *not* include any non-default flags. No non-default #
# flags should be added here. #
# #
################################################################################

set(ANDROID_MALI_GPU_TRANSLATION_FLAGS
set(ANDROID_MALI_GPU_COMPILATION_FLAGS
"--iree-input-type=tosa"
"--iree-vulkan-target-triple=valhall-unknown-android11"
)
Expand All @@ -40,8 +40,8 @@ iree_benchmark_suite(
"vulkan-spirv"
TARGET_ARCHITECTURE
"GPU-Mali-Valhall"
TRANSLATION_FLAGS
${ANDROID_MALI_GPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_MALI_GPU_COMPILATION_FLAGS}
BENCHMARK_TOOL
iree-benchmark-module
CONFIG
Expand All @@ -64,8 +64,8 @@ iree_benchmark_suite(
"vulkan-spirv"
TARGET_ARCHITECTURE
"GPU-Mali-Valhall"
TRANSLATION_FLAGS
${ANDROID_MALI_GPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_MALI_GPU_COMPILATION_FLAGS}
# This isn't a special optimization flag. It's so we can reuse the same f32
# model file. See comments on MOBILEBERT_FP16_MODULE
"--iree-flow-demote-f32-to-f16"
Expand Down Expand Up @@ -112,8 +112,8 @@ iree_benchmark_suite(
"vulkan-spirv"
TARGET_ARCHITECTURE
"GPU-Mali-Valhall"
TRANSLATION_FLAGS
${ANDROID_MALI_GPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_MALI_GPU_COMPILATION_FLAGS}
"--iree-flow-enable-fuse-padding-into-consumer-ops"
BENCHMARK_TOOL
iree-benchmark-module
Expand All @@ -136,7 +136,7 @@ iree_benchmark_suite(
"vulkan-spirv"
TARGET_ARCHITECTURE
"GPU-Mali-Valhall"
TRANSLATION_FLAGS
COMPILATION_FLAGS
"--iree-input-type=tosa"
"--iree-flow-demote-f32-to-f16"
"--iree-vulkan-target-triple=valhall-unknown-android11"
Expand Down Expand Up @@ -178,8 +178,8 @@ iree_benchmark_suite(
"vulkan-spirv"
TARGET_ARCHITECTURE
"GPU-Mali-Valhall"
TRANSLATION_FLAGS
${ANDROID_MALI_GPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${ANDROID_MALI_GPU_COMPILATION_FLAGS}
"--iree-flow-enable-fuse-padding-into-consumer-ops"
"--iree-hal-benchmark-dispatch-repeat-count=32"
BENCHMARK_TOOL
Expand All @@ -205,7 +205,7 @@ iree_benchmark_suite(
"vulkan-spirv"
TARGET_ARCHITECTURE
"GPU-Mali-Valhall"
TRANSLATION_FLAGS
COMPILATION_FLAGS
"--iree-input-type=tosa"
"--iree-flow-demote-f32-to-f16"
"--iree-vulkan-target-triple=valhall-unknown-android11"
Expand Down
14 changes: 7 additions & 7 deletions benchmarks/TFLite/linux-riscv.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
# #
# Each suite benchmarks a list of modules with configurations specifying a #
# target architecture and runtime characteristics (e.g. threads/cores). These #
# benchmarks only configure IREE translation and runtime flags for the target #
# benchmarks only configure IREE compilation and runtime flags for the target #
# architecture and do *not* include any non-default flags. No non-default #
# flags should be added here. #
# #
################################################################################

set(LINUX_RV64_GENERIC_CPU_TRANSLATION_FLAGS
set(LINUX_RV64_GENERIC_CPU_COMPILATION_FLAGS
"--iree-input-type=tosa"
"--iree-llvm-target-triple=riscv64"
"--iree-llvm-target-cpu=generic-rv64"
Expand All @@ -26,7 +26,7 @@ set(LINUX_RV64_GENERIC_CPU_TRANSLATION_FLAGS
"--riscv-v-fixed-length-vector-lmul-max=8"
)

set(LINUX_RV32_GENERIC_CPU_TRANSLATION_FLAGS
set(LINUX_RV32_GENERIC_CPU_COMPILATION_FLAGS
"--iree-input-type=tosa"
"--iree-llvm-target-triple=riscv32-pc-linux-elf"
"--iree-llvm-target-cpu=generic-rv32"
Expand All @@ -52,8 +52,8 @@ iree_benchmark_suite(
"dylib-llvm-aot"
TARGET_ARCHITECTURE
"CPU-RV64-Generic"
TRANSLATION_FLAGS
${LINUX_RV64_GENERIC_CPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${LINUX_RV64_GENERIC_CPU_COMPILATION_FLAGS}
BENCHMARK_TOOL
iree-benchmark-module
CONFIG
Expand All @@ -78,8 +78,8 @@ iree_benchmark_suite(
"dylib-llvm-aot"
TARGET_ARCHITECTURE
"CPU-RV32-Generic"
TRANSLATION_FLAGS
${LINUX_RV32_GENERIC_CPU_TRANSLATION_FLAGS}
COMPILATION_FLAGS
${LINUX_RV32_GENERIC_CPU_COMPILATION_FLAGS}
BENCHMARK_TOOL
iree-benchmark-module
CONFIG
Expand Down
Loading

0 comments on commit 33a7caa

Please sign in to comment.