Make "none" DataType explicit (#5491)
authorKrzysztof Parzyszek <kparzysz@quicinc.com>
Fri, 1 May 2020 05:06:06 +0000 (00:06 -0500)
committerGitHub <noreply@github.com>
Fri, 1 May 2020 05:06:06 +0000 (22:06 -0700)
commit12e737f5289acb1e6ef2ad0aa590bf7b12c679b5
treeb2632eafd889d8c0d218145e4d4eff1fc02629ff
parent3aa103e79ae4246615fa13e36f8d8be2d2b1d636
Make "none" DataType explicit (#5491)

* Make "none" DataType explicit

The None data type is created when converting an empty string to DataType.
Add functions to create it and recognize it. Convert it to the "void" LLVM
type in LLVM codegen.

* Rename "none" to "void"

* Map VoidType:Type -> Void:DataType in GetRuntimeDataType

* Map Void:DataType -> VoidType:Type in GetType
include/tvm/runtime/data_type.h
src/target/llvm/codegen_llvm.cc
src/tir/ir/op.cc
tests/python/unittest/test_target_codegen_llvm.py