Locality Analysis in basic blocks in LLVM

Hello,
Is there any pass in llvm to analyze locality I.e temporal and spatial in basic blocks?
Please help
Thank you
Regards