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 17ark_isa_gen("abckit_isa_gen") { 18 template_files = [ 19 "insn_selection_dynamic.h.erb", 20 "insn_selection_dynamic.cpp.erb", 21 "check_width_dynamic.cpp.erb", 22 "check_width_dynamic.h.erb", 23 ] 24 sources = "." 25 destination = "$target_gen_dir/../generated" 26 requires = [ 27 "codegen_dynamic_isapi.rb", 28 "$ark_root_dynamic/assembler/asm_isapi.rb", 29 ] 30} 31 32ark_isa_gen("abckit_isa_gen") { 33 template_files = [ "ic_info.h.erb" ] 34 sources = "." 35 destination = "$target_gen_dir/../generated" 36 requires = [ 37 "codegen_dynamic_isapi.rb", 38 "$ark_root_dynamic/assembler/asm_isapi.rb", 39 ] 40} 41 42ark_isa_gen("abckit_isa_gen") { 43 template_files = [ "generate_ecma.inl.erb" ] 44 sources = "." 45 requires = [ "$ark_root_dynamic/assembler/asm_isapi.rb" ] 46 destination = "$target_gen_dir/../generated" 47} 48 49ark_gen_file("codegen_visitors_dyn_inc") { 50 extra_dependencies = [ "$ark_root_dynamic:concat_plugins_yamls" ] 51 template_file = "codegen_visitors_dyn.inc.erb" 52 data_file = "$ark_root_dynamic/templates/plugin_options.yaml" 53 requires = [ "$ark_root_dynamic/templates/plugin_options.rb" ] 54 output_file = "$target_gen_dir/../generated/codegen_visitors_dyn.inc" 55} 56 57ark_isa_gen("abckit_isa_gen") { 58 template_files = [ "insn_info.h.erb" ] 59 sources = "." 60 destination = "$target_gen_dir/../generated" 61 requires = [ 62 "codegen_dynamic_isapi.rb", 63 "$ark_root_dynamic/assembler/asm_isapi.rb", 64 ] 65} 66