Origin of DEBUG and EH label values

Where do DEBUG and EH label values originate from ?

Where’s their allocator ?

I am looking at some code in X86CodeEmitter.cpp line 574, where a labels value is extraced from an operand.

But dont know where to look in the frontend or middle end to find the LabelID allocator.

If some kind person could point me in the right direction.

Many thanks in advance,


See how Intrinsic::dbg_* are lowered by SelectionDAGBuild.cpp and FastISel.cpp

Thanks Devang, I will study it when I get some time and the right head on, this is new territory for me.