1# Copyright (c) 2024 Huawei Device Co., Ltd. 2# Licensed under the Apache License, Version 2.0 (the "License"); 3# you may not use this file except in compliance with the License. 4# You may obtain a copy of the License at 5# 6# http://www.apache.org/licenses/LICENSE-2.0 7# 8# Unless required by applicable law or agreed to in writing, software 9# distributed under the License is distributed on an "AS IS" BASIS, 10# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 11# See the License for the specific language governing permissions and 12# limitations under the License. 13 14import("//arkcompiler/runtime_core/ark_config.gni") 15import("//arkcompiler/runtime_core/libabckit/abckit_config.gni") 16 17intrinsics_compiler_gen_dir = get_label_info( 18 "$ark_root_static/compiler:libarkcompiler_intrinsics_gen_inl_get_intrinsics_names_inl", 19 "target_gen_dir") 20ark_isa_gen("abckit_isa_gen") { 21 template_files = [ 22 "get_dyn_intrinsics_names.inc.erb", 23 "dyn_intrinsics_flags.inc.erb", 24 "dyn_intrinsics_enum.inc.erb", 25 "dyn_intrinsics_opcodes.inc.erb", 26 ] 27 sources = "." 28 requires = [ "$ark_root_dynamic/assembler/asm_isapi.rb" ] 29 destination = "$intrinsics_compiler_gen_dir/generated" 30} 31 32bco_gen_dir = 33 get_label_info("$ark_root_static/bytecode_optimizer:libarktsbytecodeopt", 34 "target_gen_dir") 35ark_isa_gen("abckit_isa_gen") { 36 template_files = [ "dyn_intrinsics_cases.inc.erb" ] 37 sources = "." 38 requires = [ "$ark_root_dynamic/assembler/asm_isapi.rb" ] 39 destination = "$bco_gen_dir/generated" 40} 41