How to gen Relay IR by c++ api?

Now that Relay builds Relay IR on the Python side, you can see that an OP like Conv2D registers compute and shedule. If I’m building relay IR in C ++, do I need to register compute and shedule properties