• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * Copyright (c) 2024 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(visitor, instBase);
34%   else
35            Visit<%= intrinsic.class_name %>Intrinsic(visitor, instBase);
36%   end
37            return;
38% end
39        default: {
40            enc->success_ = false;
41            LOG(ERROR,COMPILER) << "Unsupported intrinsic";
42        }
43    }
44}
45