1/** 2 * Copyright (c) 2021-2023 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16// Autogenerated file -- DO NOT EDIT! 17// NOLINTBEGIN(readability-magic-numbers) 18 19% call_me_from_template 20 21% visitors.each do |visitor| 22<%= visitor_sig(visitor.ir_op) %> { 23 pandasm::Ins ins; 24 [[maybe_unused]] auto enc = static_cast<CodeGenStatic *>(v); 25% name = nil 26% Compiler::intrinsics.select {|intrinsic| intrinsic.space == "abckit" }.each do |intrinsic| 27% if (visitor.ir_op == "#{intrinsic.class_name}Intrinsic") 28% name = "Intrinsic" 29% end 30% end 31% name = visitor.ir_op unless name 32 [[maybe_unused]] auto inst = instBase->CastTo<%= name %>(); 33<%= visitor.cpp %> 34<%= visitor.switch.encode %> 35} 36% end 37 38// NOLINTEND(readability-magic-numbers) 39 40void CodeGenStatic::VisitInitObjectIntrinsic(GraphVisitor *visitor, Inst *inst) 41{ 42 CallHandler(visitor, inst); 43} 44