|
tvm
|
Temporary builder for a canonical named instruction kind. More...
#include <instruction.h>
Public Member Functions | |
| InstructionKindDef (const ffi::String &name) | |
| Find or create the canonical kind and assign its name. | |
| InstructionKindDef & | set_is_pure (bool is_pure) |
| Set whether removing this instruction leaves schedule state unchanged. | |
| InstructionKindDef & | set_apply_to_schedule (FInstructionApply f_apply_to_schedule) |
| Set the schedule application callback. | |
| InstructionKindDef & | set_as_python (FInstructionAsPython f_as_python) |
| Set the Python trace formatting callback. | |
| InstructionKindDef & | set_attrs_as_json (FInstructionAttrsAsJSON f_attrs_as_json) |
| Set the optional JSON serialization callback. | |
| InstructionKindDef & | set_attrs_from_json (FInstructionAttrsFromJSON f_attrs_from_json) |
| Set the optional JSON deserialization callback. | |
Temporary builder for a canonical named instruction kind.
|
explicit |
Find or create the canonical kind and assign its name.
| name | The instruction kind name. |
|
inline |
Set the schedule application callback.
| f_apply_to_schedule | Callback that applies the instruction. |
|
inline |
Set the Python trace formatting callback.
| f_as_python | Callback that formats an instruction. |
|
inline |
Set the optional JSON serialization callback.
| f_attrs_as_json | Callback, or null when conversion is unnecessary. |
|
inline |
Set the optional JSON deserialization callback.
| f_attrs_from_json | Callback, or null when conversion is unnecessary. |
|
inline |
Set whether removing this instruction leaves schedule state unchanged.
| is_pure | Whether the instruction is pure. |