! * \brief Call the function in packed format. * \param args The arguments * \param num_args The number of arguments * \param result The return value. */
| 123 | * \param result The return value. |
| 124 | */ |
| 125 | TVM_FFI_INLINE void CallPacked(const AnyView* args, int32_t num_args, Any* result) const { |
| 126 | // if cpp_call is set, use it to call the function, otherwise, redirect to safe_call |
| 127 | // use conditional expression here so the select is branchless |
| 128 | FCall call_ptr = |
| 129 | this->cpp_call ? reinterpret_cast<FCall>(this->cpp_call) : CppCallDedirectToSafeCall; |
| 130 | (*call_ptr)(this, args, num_args, result); |
| 131 | } |
| 132 | /// \cond Doxygen_Suppress |
| 133 | static constexpr const uint32_t _type_index = TypeIndex::kTVMFFIFunction; |
| 134 | TVM_FFI_DECLARE_OBJECT_INFO_STATIC(StaticTypeKey::kTVMFFIFunction, FunctionObj, Object); |
nothing calls this directly
no outgoing calls
no test coverage detected