[Solved] A little difficulty about "make"


This question may be simple, but it’s been bothering me for a long time.

like “return ir::Mod::make(a, b);”
but I can’t find the definition of “Mod::make”
so anybody can help me?

the code in src\lang\expr_operator.cc

thanks very much!


I think it is HalideIR::Internal::Mod. You can find it in 3rdparty/HalideIR/src/ir/IR.h


Thank you, but I still have some questions. Is this BinaryOpNode::make not the implementation of the parent class?I can’t find a subclass implementation like mod div add. Is there any way to tell the difference? To specify an operator called make.


i find it, thanks a lot!


make the discuss as [Solved] if you have found your answer.