Home
last modified time | relevance | path

Searched full:mnemonic (Results 1 – 25 of 54) sorted by relevance

123

/arkcompiler/ets_frontend/es2panda/compiler/templates/
Dformats.h.erb1 % def get_format_name(mnemonic)
2 % return "#{mnemonic.gsub('.', '_').upcase}" + "_FORMATS"
4 % def get_format_item_name(mnemonic, index)
5 % return "#{mnemonic.gsub('.', '_').upcase}" + "_FORMAT_ITEMS_" + index.to_s
57 % Panda::instructions.group_by(&:mnemonic).each do |mnemonic, group|
63 constexpr std::array<const FormatItem, <%= fmt.length %>> <%= get_format_item_name(mnemonic, index)…
72 constexpr std::array<const Format, 0> <%= get_format_name(mnemonic) %> = {{}};
74 constexpr std::array<const Format, <%= formats.length %>> <%= get_format_name(mnemonic) %> = {{
75 … 1)).map {|index| "{" + get_format_item_name(mnemonic, index) + ".data(), " + get_format_item_nam…
Disa.h.erb1 % def get_node_kind(mnemonic)
2 % return "#{mnemonic.gsub('.', '_').upcase}"
5 % def get_format_name(mnemonic)
6 % return "#{mnemonic.gsub('.', '_').upcase}" + "_FORMATS"
97 % mnemonic = insn.mnemonic.split('.')
98 % return mnemonic.map{|el| el == '64' ? 'Wide' : el.capitalize}.join()
102 % if insn.mnemonic == "callrange" or insn.mnemonic == "wide.callrange" or
103 % insn.mnemonic == "callthisrange" or insn.mnemonic == "wide.callthisrange" or
104 % insn.mnemonic == "newobjrange" or insn.mnemonic == "wide.newobjrange" or
105 % insn.mnemonic == "createobjectwithexcludedkeys" or insn.mnemonic == "wide.createobjectwithe…
[all …]
/arkcompiler/ets_frontend/ets2panda/compiler/templates/
Dformats.h.erb1 % def get_format_name(mnemonic)
2 % return "#{mnemonic.gsub('.', '_').upcase}" + "_FORMATS"
4 % def get_format_item_name(mnemonic, index)
5 % return "#{mnemonic.gsub('.', '_').upcase}" + "_FORMAT_ITEMS_" + index.to_s
58 % Panda::instructions.group_by(&:mnemonic).each do |mnemonic, group|
64 constexpr std::array<const FormatItem, <%= fmt.length %>> <%= get_format_item_name(mnemonic, index)…
73 constexpr std::array<const Format, 0> <%= get_format_name(mnemonic) %> = {{}};
75 constexpr std::array<const Format, <%= formats.length %>> <%= get_format_name(mnemonic) %> = {{
76 … 1)).map {|index| "{" + get_format_item_name(mnemonic, index) + ".data(), " + get_format_item_nam…
Disa.h.erb1 % def get_node_kind(mnemonic)
2 % return "#{mnemonic.gsub('.', '_').upcase}"
5 % def get_format_name(mnemonic)
6 % return "#{mnemonic.gsub('.', '_').upcase}" + "_FORMATS"
78 % mnemonic = insn.mnemonic.split('.')
79 % return mnemonic.map{|el| el == '64' ? 'Wide' : el.capitalize}.join()
116 % Panda::instructions.group_by(&:mnemonic).each do |mnemonic, group|
118 % node_kind = get_node_kind(mnemonic)
140 return Span<const Format>(<%= get_format_name(insn.mnemonic) %>);
/arkcompiler/runtime_core/static_core/verification/gen/templates/
Dhandle_gen.h.erb58 % mnemonic = i.mnemonic.split('.').map { |p| p == '64' ? 'Wide' : p.capitalize }.join
67 % mnemonic = i.mnemonic.split('.').map { |p| p == '64' ? 'Wide' : p.capitalize }.join
70 % res_binary_find = mnemonic.include?(bin)
75 % flag_integral = mnemonic.include?('U') || (res_binary_find)
76 % flag_float = mnemonic.include?('F')
77 % flag_wide = mnemonic.include?('Wide')
78 % flag_u = mnemonic.include?('Divu') || mnemonic.include?('Modu')
79 % flag_reg = mnemonic.include?('2v')
83 % if mnemonic.include?('cmp')
93 % elsif mnemonic.include?('cmp')
[all …]
Dcflow_iterate_inl_gen.h.erb40 % Panda::instructions.uniq{|i| i.mnemonic}.each do |i|
42 % mnemonic = i.mnemonic.split('.').map { |p| p == '64' ? 'Wide' : p.capitalize }.join
44 % %(std::optional<VerificationStatus> Handle) + mnemonic + %(())
198 % mnemonic = i.mnemonic.split('.').map { |p| p == '64' ? 'Wide' : p.capitalize }.join
203 % flag = item.include?("Handle" + mnemonic.to_s)
Dabs_int_inl_gen.h.erb43 % mnemonic = i.mnemonic.split('.').map { |p| p == '64' ? 'Wide' : p.capitalize }.join
52 …if (!handler.template Handle<%= mnemonic %><BytecodeInstructionSafe::Format::<%= i.format.pretty.u…
/arkcompiler/runtime_core/static_core/assembler/
Dasm_isapi.rb17 mnemonic.tr('.', '_').upcase
25 mnemonic.split('.')[-1] == 'range'
37 mnemonic == 'return.obj'
41 mnemonic == 'return.64'
45 mnemonic == 'return'
49 mnemonic == 'return.void'
/arkcompiler/runtime_core/assembler/
Dasm_isapi.rb17 mnemonic.tr('.', '_').upcase
25 mnemonic.split('.')[-1] == 'range'
37 mnemonic == 'return.obj'
41 mnemonic == 'return.64'
45 mnemonic == 'return'
49 mnemonic == 'return.void'
/arkcompiler/runtime_core/static_core/runtime/interpreter/templates/
Ddebug_test_interpreter-inl_gen.cpp.erb36 % mnemonic = i.mnemonic.split('.').map { |p| p == '64' ? 'Wide' : p.capitalize }.join
40 …handler.template Handle<%= mnemonic %><BytecodeInstruction::Format::<%= i.format.pretty.upcase %>>…
46 …handler.template Handle<%= mnemonic %><BytecodeInstruction::Format::<%= i.format.pretty.upcase %>>…
/arkcompiler/runtime_core/bytecode_optimizer/
Dbytecode_optimizer_isapi.rb19 raise "There is no src acc for #{mnemonic}" unless op
25 raise "There is no dst acc for #{mnemonic}" unless op
48 @instruction_hash = Hash.new { |_, key| raise "No instruction with '#{key}' mnemonic" }
49 Panda.instructions.each { |insn| @instruction_hash[insn.mnemonic] = insn }
274 …reg_num = if instruction.mnemonic.include?('ldarr') || instruction.mnemonic.include?('stobj') || i…
276 elsif instruction.mnemonic.include?('starr')
/arkcompiler/runtime_core/static_core/assembler/templates/
Dins_emit.h.erb36 % instruction_hash = Panda::instructions.map { |i| [i.mnemonic, i] }.to_h
38 % Panda::instructions.group_by(&:mnemonic).each_pair do |mn, group|
154 % if insn.properties.include?('short_long_range') && !insn.mnemonic.include?('range')
156 % call_mnemonics = if insn.mnemonic.end_with?('.short')
157 % [insn.mnemonic]
159 % ["#{insn.mnemonic}.short", insn.mnemonic]
Dins_to_string.cpp.erb31 % Panda::instructions.group_by(&:mnemonic).each do |mnemonic, group|
38 fullOperation += "<%= insn.mnemonic%>";
Doperand_types_print.h.erb22 % Panda::instructions.group_by(&:mnemonic).each do |mnemonic, group|
Disa.h.erb23 % Panda::instructions.group_by(&:mnemonic).each do |mnemonic, group|
59 _(<%= insn.asm_token %>, "<%= insn.mnemonic %>", <%= pretty_format %>, <%= max_width %>, <%= flags …
/arkcompiler/runtime_core/libpandafile/templates/
Dbytecode_emitter_def_gen.h.erb18 % Panda::instructions.group_by(&:mnemonic).each do |mnemonic, group|
/arkcompiler/runtime_core/static_core/libpandafile/templates/
Dbytecode_emitter_def_gen.h.erb18 % Panda::instructions.group_by(&:mnemonic).each do |mnemonic, group|
/arkcompiler/runtime_core/isa/
Dasserts.rb107 assert('Mnemonic defines operand types') do
108 Panda.instructions.group_by(&:mnemonic).map do |_, insns|
142 Panda.instructions.select { |i| i.mnemonic.match?(/^(throw|call|return)/) }.map do |i|
149 match = i.mnemonic.match(/[ifu](\d+)to[ifu](\d+)/)
188 next true unless i.mnemonic.start_with?('call')
196 next true unless i.mnemonic.include?('call.virt')
/arkcompiler/runtime_core/assembler/templates/
Dins_emit.h.erb32 % instruction_hash = Panda::instructions.map { |i| [i.mnemonic, i] }.to_h
34 % Panda::instructions.group_by(&:mnemonic).each_pair do |mn, group|
161 % call_mnemonics = if insn.mnemonic.end_with?('.short')
162 % [insn.mnemonic]
164 % ["#{insn.mnemonic}.short", insn.mnemonic]
Dins_to_string.cpp.erb30 % Panda::instructions.group_by(&:mnemonic).each do |mnemonic, group|
37 full_operation += "<%= insn.mnemonic%>";
Doperand_types_print.h.erb21 % Panda::instructions.group_by(&:mnemonic).each do |mnemonic, group|
Disa.h.erb17 % Panda::instructions.group_by(&:mnemonic).each do |mnemonic, group|
51 _(<%= insn.asm_token %>, "<%= insn.mnemonic %>", <%= pretty_format %>, <%= max_width %>, <%= flags …
/arkcompiler/runtime_core/static_core/isa/
Dasserts.rb107 assert('Mnemonic defines operand types') do
108 Panda.instructions.group_by(&:mnemonic).map do |_, insns|
142 Panda.instructions.select { |i| i.mnemonic.match?(/^(throw|call|return)/) }.map do |i|
149 match = i.mnemonic.match(/[ifu](\d+)to[ifu](\d+)/)
188 next true unless i.mnemonic.start_with?('call')
196 next true unless i.mnemonic.include?('call.virt')
/arkcompiler/runtime_core/static_core/quickener/templates/
Dtranslation_table_gen.h.erb19 % ins = Panda::instructions.select {|insn| i.mnemonic == insn.mnemonic && (("pref_" + i.format.pret…
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
Dinst_templates.yaml95 % if inst.mnemonic.include? "obj"
113 % if inst.mnemonic.include? "obj"
126 % if inst.mnemonic.include? "null"
129 % if inst.mnemonic == "movi"
143 % if inst.mnemonic == "fmovi"
153 % if inst.mnemonic.include? "null"
156 % if inst.mnemonic == "ldai"
179 % if inst.mnemonic == "fldai"
221 % is_enter = inst.mnemonic.end_with?('enter')

123