MCPcopy Create free account
hub / github.com/apache/tvm-ffi / CallPacked

Method CallPacked

include/tvm/ffi/function.h:125–131  ·  view source on GitHub ↗

! * \brief Call the function in packed format. * \param args The arguments * \param num_args The number of arguments * \param result The return value. */

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected