Function tvm::script::ir_builder::tirx::Handle

Function tvm::script::ir_builder::tirx::Handle#

Function Documentation#

inline Var tvm::script::ir_builder::tirx::Handle(ffi::Optional<PrimType> dtype = std::nullopt, runtime::MemoryScope storage_scope = {})#

Create a TIR var that represents a pointer.

Parameters:
  • dtype – The optional data type of the pointer. If omitted, construct an opaque handle.

  • storage_scope – The storage scope of the pointer.

Returns:

The pointer.