<div>Hello,</div><div> </div><div>I have just started using llvm. I was trying to debug how <strong>clang</strong> generates IR for very simple C testcases (few assignments and if-condsitions). </div><div>To get a hold on the basic functions, I put some break points on following functions but debugger <strong>didn't stop</strong>:</div>
<div> </div><div>llvm::BasicBlock::Create</div><div>llvm::BinaryOperator::CreateAdd (design has binary op)</div><div>llvm::Value::Value</div><div>llvm::BranchInst::Create (design has if/else)</div><div>...</div><div>and quite a few</div>
<div> </div><div>The command line I used :</div><div> </div><div><strong>clang -S test.c -emit-llvm -o - </strong></div><div> </div><div>Here I could see the entire LLVM code generated and shown in stdout. I am almost sure that I have missed something very basic. Can anyone please help me in setting <strong>proper breakpoints</strong> so that I can debug through the entire IR generation phase.</div>
<div> </div><div>Sorry for asking this basic question. </div><div> </div><div>Thanks. </div>