kparzysz-quic opened a new pull request, #11852:
URL: https://github.com/apache/tvm/pull/11852

   Any target that has its own subclass of `CodeGenLLVM` must register a 
factory function that constructs an object of that class. This factory will 
then be looked up and used in `CodeGenLLVM::Create`, which is the generic 
interface to create an LLVM code generator.
   
   However, there is no factory for `CodeGenCPU`, and so the creation of a 
`CodeGenCPU` object is done inside of `CodeGenLLVM::Create`. To make this 
happen, codegen_llvm.cc includes codegen_cpu.h, which makes the base class 
implementation depend on the derived class. This backwards dependency can be 
resolved by registering a factory for `CodeGenCPU`.
   


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