pytorch/tools/code_analyzer
Edward Yang 2de3e491a8 [RELAND] Add temporary impl_UNBOXED syntax sugar for unboxed-only defs. (#36223)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/36223

Previously #35714

There are a lot of unboxed only defs.  We're committed to removing
them at the end of the half but as I am about to do a lot of porting
to the new API, let's get them into a form where they're easy to
remove.  This is a new overload impl_UNBOXED that will pass
the function pointer straight to CppFunction::makeUnboxedOnly

I don't attempt to make the _UNBOXED API complete; in particular,
catchall declarations don't get this sugar (as there are very few
of them).

To get some coverage of _UNBOXED API for code analysis, I switched
one of our unboxed tests to be an impl rather than a def.  This
shouldn't materially affect coverage.

Signed-off-by: Edward Z. Yang <ezyang@fb.com>

Test Plan: Imported from OSS

Differential Revision: D20929259

Pulled By: ezyang

fbshipit-source-id: 72d2061b6c8a6afbcd392b47f53ade18de2f9184
2020-04-09 14:58:33 -07:00
..
analyzer.cpp [pytorch] convert code analyzer to a binary (#33102) 2020-02-10 14:46:29 -08:00
build.sh [RELAND] Add DispatchKey impl overload; remove use of torch::dispatch (#36222) 2020-04-09 14:56:55 -07:00
CMakeLists.txt [pytorch] convert code analyzer to a binary (#33102) 2020-02-10 14:46:29 -08:00
gen_op_registration_whitelist.py [pytorch] register c10 ops for static dispatch to unblock c10 boxing 2020-03-20 20:07:15 -07:00
op_dependency.cpp Minor doc improvement for code_analyzer (#36177) 2020-04-08 08:14:50 -07:00
run_analyzer.sh [RELAND] Add temporary impl_UNBOXED syntax sugar for unboxed-only defs. (#36223) 2020-04-09 14:58:33 -07:00