torch-mlir/include/npcomp
Sean Silva e749074bae Basic infra for annotate shapes and dtypes on arguments.
These allow users to annotate a known "type bound" on the argument,
which can seed shape/dtype inference. We don't rewrite the function
types as part of the import process (it will happen in a
yet-to-be-written pass) because:

1. We would need to interprocedurally rewrite all calls to keep the IR
   consistent. Currently, we have a place after GlobalizeObjectGraph but
   before we convert to tensors where this is convenient to do. Ideally,
   we would do this on the object graph representation.

1. We don't necessarily know that adjusting the function type is a legal
   calling convention change. The pass will have blessed knowledge (by
   the pass pipeline author) that adjusting the argument type based on
   the type bound is safe (which it frequently is).

2. Note that in principle, a type bound could be a fairly general thing
   (such as maximum sizes of dimensions, unions of multiple concrete
   types, etc.). The pass will in principle have logic to interpret the
   type bounds and to determine a suitable "best" (and legal) argument
   type.
2021-04-01 18:40:03 -07:00
..
Backend/RefJIT Sever C++ level depend on IREE and rebase on exe and python interface. 2020-11-16 21:32:56 -08:00
Conversion Bump llvm-project to 0524a09cc7e1a0797982feacf505825231efbee7 2021-03-23 14:29:05 -07:00
Dialect Basic infra for annotate shapes and dtypes on arguments. 2021-04-01 18:40:03 -07:00
Python NFC: Delete npcomp python API and switch to upstream. 2021-01-08 10:46:24 -08:00
RefBackend [refbackrt] Scalar arg support 2021-03-23 13:16:44 -07:00
Typing Bump llvm-project to 444822d77a7fea28aa49edf24533c987efa1b2ee 2020-12-11 14:43:38 -08:00
CMakeLists.txt [RefBackend] Rename "E2E" to RefBackend. 2020-10-07 10:29:48 -07:00
InitAll.h Bump submodule versions. 2020-09-08 13:26:42 -07:00