This was just inspecting the IR to begin with, and is useful to check
in some places in the IR.
LGTM, one nit you might want to consider
Is the TODO still accurate? We seem to go in the opposite direction.
Well I think it should be cached somewhere rather than string parsing every time you want to query this (this will just happen more frequently in codegen)