Mousius commented on PR #71:
URL: https://github.com/apache/tvm-rfcs/pull/71#issuecomment-1129796641

   > I think this is generally ok. I suggest elaborating a bit more in the text 
of the RFC that the preprocessors apply to the target kind, and that for all 
architectures, the code specific to each architecture would need to be handled 
as a part of the common preprocessor. The use of names like 
`MyArchPreprocessor` and `MyKeysPreprocessor` suggests that there can be 
multiple specialized preprocessors. I'd replace them with `CArchPreprocessor` 
and `CKeysPreprocessor`, since they both show up in the `c` target kind.
   
   Ideally I'd like to convey the ability to attach it to any `TargetKind` 
rather than implying it's designed for a specific `TargetKind`, maybe 
`CPUArchPreprocessor` which can be re-used between `llvm` and `c` which calls 
out to `AArch64ArchPreprocessor` or `x86ArchPreprocessor`?. You can use a 
single level pre-processor if that's appropriate (i.e. for `rocm`), which would 
just be `ROCmArchPreprocessor`. I can outline both cases if that'd help? 


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to