Skip to content

Commit

Permalink
Allow call_extern in device-side functions
Browse files Browse the repository at this point in the history
May be used by kernels to call device-specific intrinsics (e.g. for
cmsis-nn)
  • Loading branch information
Lunderberg committed Jul 12, 2023
1 parent ddae3ad commit eb8bd78
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/tir/transforms/annotate_device_regions.cc
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ class DeviceRegionAnnotater : public StmtExprMutator {
op->op.same_as(builtin::tvm_call_packed_lowered()) ||
op->op.same_as(builtin::tvm_call_cpacked_lowered()) ||
op->op.same_as(builtin::tvm_struct_get()) || op->op.same_as(builtin::tvm_struct_set()) ||
op->op.same_as(builtin::call_extern()) || op->op.same_as(builtin::call_pure_extern()) ||
op->op.same_as(builtin::tvm_throw_last_error()) ||
op->op.same_as(builtin::tvm_stack_alloca()) ||
op->op.same_as(builtin::tvm_stack_make_shape()) ||
Expand Down

0 comments on commit eb8bd78

Please sign in to comment.