search for: emitswitch_expr

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

2007 Jun 07
0
[LLVMdev] libc dependencies, code generation questions
...y feasible in practice. We can of course map all "large" ranges > in case statements into equivalent if-statements, but that largely > defeats the elegance and ease of use of the switch statement for us :) Currently llvm-gcc maps large ranges into if-statements, see TreeToLLVM::EmitSWITCH_EXPR. Adding support for ranges to LLVM is bug 1255. It will doubtless happen because it doesn't seem hard to do and in fact I understand that the switch lowering code generates such ranges internally anyway. > 2) I assume llvm sometimes adds implicit calls to functions in the C > library...
2007 Jun 07
5
[LLVMdev] libc dependencies, code generation questions
Hello, I'm looking into creating an llvm backend for the Free Pascal Compiler (<http://www.freepascal.org>). After reading a bit through the documentation and looking at some code generated by llvm-gcc, I have a couple of questions: 1) is there a way to specify ranges in the switch statement? Pascal supports switch statements (called "case" statements there) which