As far as I know, a latch and a flip-flop are the same excepting that flip-flop only "works" with an edge of the clock (let's supose rising edge for the question.)
To make the flip-flop "work" only with a rising edge, we need a rising-edge detector:
So, as far as I know, a flip-flop is equal to a rising edge detector + a latch.
But my question is: Imagine a CPU with lots of flip-flops. Do all those flip-flops have an own rising edge detector inside of them, or there is only one rising-edge detector shared by all the flip-flops?
I mean, this is the typical "external" image of a D flip-flop:
Where you can see that the signal that is arriving is the clock (CLK), and this makes me think that ALL the flip flops in a CPU have their "rising edge detector" inside of them. But on the other hand I think that this cannot be possible! Because, why would they replicate a rising edge detector for each of the flip-flops they have, when they can save money and space by creating a single edge detector shared by all flip-flops?