@@ -42,17 +42,9 @@ namespace tirx {
4242/* ! \brief Collection of builtin intrinsics as ops */
4343namespace builtin {
4444/* !
45- * \brief Return from a GPU thread.
45+ * \brief Return from a GPU thread without returning a function value .
4646 */
4747TVM_DLL const Op& thread_return ();
48- /* !
49- * \brief Loop continue.
50- */
51- TVM_DLL const Op& continue_loop ();
52- /* !
53- * \brief Loop break.
54- */
55- TVM_DLL const Op& break_loop ();
5648/* !
5749 * \brief Reinterpret the value using the target type.
5850 */
@@ -230,21 +222,6 @@ TVM_DLL const Op& ptr_byte_offset();
230222 */
231223TVM_DLL const Op& tvm_static_handle ();
232224
233- /* !
234- * \brief Return a unique context id, used for hint of workspace separation.
235- * Different context id ganrantees not having overlapping workspace.
236- */
237- TVM_DLL const Op& tvm_context_id ();
238-
239- /* !
240- * \brief tvm_tuple is not an actual function and cannot codegen.
241- * It is used to represent tuple structure in value field of AttrStmt,
242- * for the sake of giving hint to optimization.
243- *
244- * void tvm_tuple(value0, value1, ..., value_n);
245- */
246- TVM_DLL const Op& tvm_tuple ();
247-
248225/* !
249226 * \brief See pesudo code
250227 *
@@ -274,14 +251,6 @@ TVM_DLL const Op& tvm_struct_get();
274251 */
275252TVM_DLL const Op& tvm_struct_set ();
276253
277- /* !
278- * \brief See pseudo code
279- * Type lookup_param(ffi::String param_name) {
280- * return __tvm_param__param_name;
281- * }
282- */
283- TVM_DLL const Op& lookup_param ();
284-
285254/* !
286255 * \brief See pesudo code
287256 *
@@ -378,19 +347,6 @@ TVM_DLL const Op& tensormap_encode_tiled();
378347 */
379348TVM_DLL const Op& tvm_call_cpacked ();
380349
381- /* !
382- * \brief See pesudo code
383- *
384- * return_type tvm_call_trace_packed(name, TVMFFIAny* args) {
385- * ModuleNode* env = GetCurrentEnv();
386- * const ffi::Function* f = env->GetFuncFromEnv(name);
387- * (*f)(args, args, len(args));
388- * // return type can be int, float, handle.
389- * return cast(return_type, result);
390- * }
391- */
392- TVM_DLL const Op& tvm_call_trace_packed ();
393-
394350/* !
395351 * \brief Mark a condition to be thread invariant.
396352 * This means the condition must be the same for all threads.
@@ -430,25 +386,6 @@ TVM_DLL const Op& tvm_call_packed_lowered();
430386 */
431387TVM_DLL const Op& tvm_call_cpacked_lowered ();
432388
433- /* !
434- * \brief Lowered version of trace intrinsic, the space of value and
435- * type codes are explicitly allocated. The return value is the
436- * (end - 1) value on the stack.
437- *
438- * return_type tvm_call_trace_packed_lowered(name,
439- * TVMFFIAny* args_stack,
440- * int begin,
441- * int end) {
442- * ModuleNode* env = GetCurrentEnv();
443- * const ffi::Function* f = env->GetFuncFromEnv(name);
444- * f->CallPacked(ffi::PackedArgs(args_stack[begin:end]),
445- * ffi::Any(args_stack + end));
446- * // return type can be int, float, handle.
447- * return cast(return_type, load_return_from(args_stack + end))
448- * }
449- */
450- TVM_DLL const Op& tvm_call_trace_packed_lowered ();
451-
452389/* !
453390 * \brief See pseudo code
454391 *
@@ -501,12 +438,6 @@ TVM_DLL const Op& tvm_warp_shuffle_down();
501438TVM_DLL const Op& tvm_warp_shuffle_xor ();
502439TVM_DLL const Op& tvm_warp_activemask ();
503440
504- /* !
505- * \brief Initialize the global barrier.
506- * Call this at beginning of kernel that need global barrier.
507- */
508- TVM_DLL const Op& tvm_global_barrier_kinit ();
509-
510441/* !
511442 * \brief See pesudo code
512443 *
@@ -604,51 +535,6 @@ TVM_DLL const Op& texture2d_store();
604535 */
605536TVM_DLL const Op& texture2d_load ();
606537
607- /* !
608- * \brief Initiate a non-blocking DMA copy from source to destination
609- *
610- * The copy is launched immediately.
611- *
612- * If a `dma_start_group()` call is active, the copy will be added
613- * to the current group for tracking of in-flight group counts.
614- *
615- * If no `dma_start_group()` call is active, the copy will be tracked
616- * individually i.e. as a group with size 1.
617- */
618- TVM_DLL const Op& dma_copy ();
619-
620- /* !
621- * \brief Wait until the number of DMA groups in flight is less than
622- * or equal to some maximum
623- *
624- * Calling `dma_wait()` while a group is active is unsupported.
625- */
626- TVM_DLL const Op& dma_wait ();
627-
628- /* !
629- * \brief Start a group of DMA copies
630- *
631- * Any call to `dma_copy()` that occurs after `dma_start_group()` will
632- * be added to the current group for tracking of in-flight group counts.
633- *
634- * Only one DMA group may be active at a given time. Calling
635- * `dma_start_group()` while a group is active is unsupported.
636- */
637- TVM_DLL const Op& dma_start_group ();
638-
639- /* !
640- * \brief End a group of DMA copies
641- *
642- * Track all calls to `dma_copy()` that occurred since the preceding
643- * `dma_start_group()` as a single group in-flight.
644- *
645- * Calling `dma_end_group()` without an active group is unsupported.
646- *
647- * Note: A group of DMA calls may be empty, and will still contribute
648- * to the count of in-flight groups used by `dma_wait()`.
649- */
650- TVM_DLL const Op& dma_end_group ();
651-
652538/* !
653539 * \brief Provide a true statement that can be used for simplifications
654540 *
@@ -666,16 +552,6 @@ TVM_DLL const Op& assume();
666552 */
667553TVM_DLL const Op& undef ();
668554
669- /* !
670- * \brief Profiling intrinsic
671- */
672- TVM_DLL const Op& start_profile_intrinsic ();
673-
674- /* !
675- * \brief Profiling intrinsic
676- */
677- TVM_DLL const Op& end_profile_intrinsic ();
678-
679555/* !
680556 * \brief Get a item from any list and return it.
681557 *
0 commit comments