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` invocaiton 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 -"))