[cfe-dev] Can I establish a relation between a SCoP in LLVM-IR and the corresponding line number in C-code?

Pieter Custers pieterjjmcusters at gmail.com
Tue Jan 17 02:49:13 PST 2012

Hi all,

I am using LLVM w/ Clang as front end. I use Clang to transform a C-file into LLVM-IR. Now I'm wondering if I can establish a relation between the SCoPs in this IR and the C-code. In other words, I want the line-number in the C-code of this SCoP (e.g. a loop nest) in LLVM-IR.

Is this possible, and if so, how do I obtain this?


More information about the cfe-dev mailing list