search for: forstmt

Displaying 2 results from an estimated 2 matches for "forstmt".

Did you mean: forsoft
2013 Dec 02
0
[LLVMdev] A problem about the location of ForStmt,
I get the location with : SourceManager &SM = context.getSourceManager(); int lineStart = SM.getPresumedLoc(SR->getBegin()).getLine(); int lineEnd = SM.getPresumedLoc(SR->getEnd()).getLine(); int colStart = SM.getPresumedLoc(SR->getBegin()).getColumn(); int colEnd = SM.getPresumedLoc(SR->getEnd()).getColumn(); llvm::outs() << "For:" <<
2017 Jun 05
2
How the LLVM handle the debug location information of continue keyword and right brace(loop end location)?
If we had a very naïve way of generating IR, in the 'continue' case you would actually see TWO branch instructions: one to implement the 'continue' statement, and one as part of the control flow of the 'for' loop. The branch for the 'continue' statement would have the source location of the 'continue' and the branch for the control-flow of the 'for'