I want to lower a hypothetical instruction with an opcode and a label.
The instruction is not a branch/terminator, but a normal instruction taking a label as the only operand.
I managed to represent it in the SelectionDAG with TargetBlockAddress node type, but I am having trouble in lowering it. After Lowering, the assembly ends up with a new label and an empty block instead of the actual label that I want.
Could you please suggest what would be the best way to represent such a hypothetical instruction in the Selection DAG and how to lower it preserving the label?