1/** 2 * Copyright (c) 2024-2025 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 18// NOLINTNEXTLINE(readability-function-size) 19void CodeGenStatic::VisitIntrinsic(GraphVisitor *visitor, Inst *instBase) 20{ 21 ASSERT(instBase->IsIntrinsic()); 22 auto inst = instBase->CastToIntrinsic(); 23 auto enc = static_cast<CodeGenStatic *>(visitor); 24 switch (inst->GetIntrinsicId()) { 25% Common::each_plugin_suboption("bytecodeopt", "codegen_intrinsics_inc") do |codegen_intrinsics_inc, plugin_lang| 26 // Lang <%= plugin_lang %> 27 #include "<%= codegen_intrinsics_inc %>" 28% end 29#include "codegen_call_intrinsics_static.inc" 30% Compiler::intrinsics.select {|intrinsic| intrinsic.space == "abckit" }.each do |intrinsic| 31 case ark::compiler::RuntimeInterface::IntrinsicId::<%= intrinsic.entrypoint_name %>: 32% if intrinsic.class_name == 'Equals' 33 VisitEtsEquals<false>(visitor, instBase); 34% elsif intrinsic.class_name == 'StrictEquals' 35 VisitEtsEquals<true>(visitor, instBase); 36% else 37 Visit<%= intrinsic.class_name %>Intrinsic(visitor, instBase); 38% end 39 return; 40% end 41 default: { 42 enc->success_ = false; 43 LOG(ERROR,COMPILER) << "Unsupported intrinsic"; 44 } 45 } 46} 47