[Solved] A little difficulty about "make"


#1

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!


#2

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


#3

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.


#4

i find it, thanks a lot!


#5

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