add AnyMemRef (#219)

This commit is contained in:
chentong319 2020-07-14 11:15:06 -04:00 committed by GitHub
parent 0df421f7ad
commit 13b8591af8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 877 additions and 874 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -748,6 +748,9 @@ def parse_a_type_constraint(constraint):
# However onnx keeps a consitently meaningful order
# There is no redundancy as long as each onnx type is mapped uniquely
# mlirTypes = sorted(list(set(mlirTypes)))
# MemRef is always needed
mlirTypes.append("AnyMemRef")
return mlirTypes
def parse_type_constraints(schema):