I need to run a transform pass that is specific to my 3rd party codegen and the functions it receives. Currently I’m doing this in the codegen object that receives a module with multiple functions for a backend. I’ve done some digging and found this in transform.cc
:
bool FunctionPassNode::SkipFunction(const Function& func) const {
return (func->GetAttr<String>(attr::kCompiler).defined()) ||
func->GetAttr<Integer>(attr::kSkipOptimization, 0) != 0;
}
This is preventing me from running a pass on these functions. Is there any reason to skip a function that has been assigned an external compiler?
I also noticed this PR was closed: https://github.com/apache/incubator-tvm/pull/5028 which I believe was a solution to the problem, but the problem still persists for me. Is there anyway around this?