junrushao1994 commented on a change in pull request #6369:
URL: https://github.com/apache/incubator-tvm/pull/6369#discussion_r484135209
##########
File path: include/tvm/target/target_kind.h
##########
@@ -57,6 +52,8 @@ class TargetKindNode : public Object {
int device_type;
/*! \brief Default keys of the target */
Array<String> default_keys;
+ /*! \brief Function used to preprocess on target creation */
+ PackedFunc preprocessor;
Review comment:
Yes, it is a common option. If present, it is called every time on
target creation to pre-process target attributes. For example, it adds
"mtriple" and "mcpu" for NVPTX and ROCm target.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]