blob: 617b01903eba0345bd6820179d16398f1c42665d [file] [edit]
import re
from lit.llvm import llvm_config
# Retrieve the substitution for %clang_cc1
target = "%clang_cc1"
clang_cc1 = next(
(value for pattern, value in config.substitutions if re.search(pattern, target)),
None
)
# Standard `clang -cc1` invocations for code-gen/lowering tests for
# Aarch64/arm64.
config.substitutions.append(("%clang_cc1_cg_arm64_neon", clang_cc1 + " -triple arm64-none-linux-gnu -target-feature +neon -o -"))
config.substitutions.append(("%clang_cc1_cg_arm64_sve" , clang_cc1 + " -triple arm64-none-linux-gnu -target-feature +sve -o -"))