plugify  1.0.0.0
helpers.hpp
1 #pragma once
2 
3 #include <asmjit/asmjit.h>
4 #include <plugify/method.hpp>
5 
9 namespace plugify::JitUtils {
10  template<typename T>
11  constexpr asmjit::TypeId GetTypeIdx() noexcept {
12  return static_cast<asmjit::TypeId>(asmjit::TypeUtils::TypeIdOfT<T>::kTypeId);
13  }
14 
15  asmjit::TypeId GetValueTypeId(ValueType valueType) noexcept;
16 
17  asmjit::TypeId GetRetTypeId(ValueType valueType) noexcept;
18 
19  asmjit::CallConvId GetCallConv([[maybe_unused]] std::string_view conv) noexcept;
20 } // namespace plugify::JitUtils
21 
Namespace containing utility functions of jit related things.
Definition: helpers.hpp:9