1/* 2 * Copyright (c) 2021-2022 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) 19/* 20void BytecodeGen::VisitIntrinsic(GraphVisitor *visitor, Inst *inst_base) 21{ 22 ASSERT(inst_base->IsIntrinsic()); 23 auto inst = inst_base->CastToIntrinsic(); 24 auto enc = static_cast<BytecodeGen *>(visitor); 25 26 if (!enc->GetGraph()->IsDynamicMethod()) { 27 LOG(ERROR, BYTECODE_OPTIMIZER) << "Codegen for " << compiler::GetOpcodeString(inst->GetOpcode()) << " failed"; 28 enc->success_ = false; 29 return; 30 } 31 32 switch (inst->GetIntrinsicId()) { 33% Common::plugins.each do |plugin_lang, plugin_opts| 34 // Lang <%= plugin_lang %> 35% next unless plugin_opts["bytecodeopt"] 36% next unless plugin_opts["bytecodeopt"]["codegen_intrinsics_inc"] 37#include "<%= plugin_opts["bytecodeopt"]["codegen_intrinsics_inc"] %>" 38% end 39 default: { 40 enc->success_ = false; 41 LOG(ERROR,COMPILER) << "Unsupported intrinsic"; 42 } 43 } 44 } 45*/ 46