search for: istavrak

Displaying 5 results from an estimated 5 matches for "istavrak".

2015 Oct 16
2
Break nested instructions?
...the compiler will probably also warn that passing a > variable to printf is a bad idea, but that's a different matter) > > -- > Mats Does this mean that we can have a nested instruction into an instruction?! Wouldn't that lead having a LLVM IR language without terminals? --istavrak
2015 Oct 16
2
Break nested instructions?
...gt; - (I think) the OpCode for both will be the same, so you can switch on that and then only cast further if you care. > > David > Thanks, David. I had misunderstood and thought that arguments were GEP instructions. Being GEP constant expressions, solves my issue! Thanks a lot again, --istavrak
2015 Oct 16
3
Break nested instructions?
...eak up this: | %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([4 x i8]* @.str4, i32 0, i32 0), i32 %tmp6) | into these: |%tmp = i8* getelementptr inbounds ([4 x i8]* @.str4, i32 0, i32 0) %call = call i32 (i8*, ...)* @printf(i8* %tmp, i32 %tmp6) | ? Thank you in advance, --istavrak -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151016/2dee4942/attachment.html>
2015 Oct 16
2
Break nested instructions?
...hing a way to "break" the inlined instructions, as nested instructions are not convenient for me. In case the operands of instructions are always meant to be constant exprs, then it's simple to handle them differently by having different adaptor classes as David proposed before. --istavrak
2015 Dec 15
4
Line number without -Debug ?
Hi Eric and thanks for your answer, What I mean is that I want to find the number of line on the IR code of a specific instruction. I found out that I can use: DebugLoc Loc = CurrentInstruction->getDebugLoc(); unsigned Line = Loc.getLine(); But this works only if DEBUGFLAG is True. I'd like to be able to get the Line number without being on a 'Debug' mode. Is