Hi Sebastian – just to be super clear, as you noticed there is no Reshape Instruction. Reshape Nodes are always implemented via Tensorview Instructions during IRGen, as Bert noted/linked to. IRGen generates Instructions (low-level) IR from the Node (high-level) IR 5.
Another example where you would see one Node implemented via different Instructions is the Concat node (see the IRGen case here 6). A Concat is implemented as one or more InsertTensor Instructions. There is no Concat Instruction.
For getting the shape and name, the Instruction class derives from Value, and Value derives from both Named and Typed. So for the name, you should be able to do TV->getName(). And for the shape, you should be able to do TV->dims(). There should be example of both of these in use in lib/Optimizer/IROptimizer.cpp.