• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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#ifndef PANDA_RUNTIME_UNIMPLEMENTED_INTRINSICS_INL_H_
19#define PANDA_RUNTIME_UNIMPLEMENTED_INTRINSICS_INL_H_
20
21% unimplemented = %w(
22% )
23% intrinsics_hash = Runtime::intrinsics.map { |i| [i.name, i] }.to_h
24% unimplemented.each do |name|
25%   intrinsic = intrinsics_hash[name]
26%   args = intrinsic.signature.args.map.with_index do |_, idx|
27%     "[[maybe_unused]] int64_t arg#{idx}_value, [[maybe_unused]] int64_t arg#{idx}_tag"
28%   end.join(", ")
29%   return_type, body = if intrinsic.signature.ret == 'any'
30%     ['DecodedTaggedValue', '    return DecodedTaggedValue{0, 0};']
31%   else
32%     ['void', '']
33%   end
34<%= return_type %> <%= name %>(<%= args %>) {
35<%= body %>
36}
37% end
38
39#endif  // PANDA_RUNTIME_UNIMPLEMENTED_INTRINSICS_INL_H_
40