Getting info about basic blocks

I'm new to LLVM
I want to generate a map between basic clocks in IR and basic blocks in the executable.
Also, I want to get info about the current basic block and current instruction in case of interrupt.
Is there a way to do that? And where exactly I should work on that?

Marwa Yusuf
Teaching Assistant - Computer Engineering Department
Faculty of Engineering - Benha University
E-JUST MSc Student
Computer Science & Engineering Dept.