AnyDSL / MimIR

MimIR is my Intermediate Representation
https://anydsl.github.io/MimIR/
MIT License
46 stars 9 forks source link

Cleanup #200

Closed leissa closed 1 year ago

leissa commented 1 year ago

Substituted some helpers from autodiff with what we already had and improved on that:

NeuralCoder3 commented 1 year ago

When is a method isa_ and when is_?

leissa commented 1 year ago

When is a method isa_ and when is_?

See here:

  • methods/functions that return a bool should be prefixed with is_
  • methods/functions that return a std::optional or a pointer that may be nullptr should be prefixed with isa_

Usually an isa method is more versatile because you can check and it directly gives you a handle to work with.