search for: visitswitch

Displaying 10 results from an estimated 10 matches for "visitswitch".

2013 May 06
2
[LLVMdev] convert switch stmts to If statements
...y 6, 2013 3:09:33 PM > > Subject: [LLVMdev] convert switch stmts to If statements > > > > > > > > > > Hi All, Is there a pass in llvm that converts switch statements to if > > statements? > > > > What do you mean by convert? SelectionDAGBuilder::visitSwitch in > lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp converts the switch > statements for code generation either into indirect jump tables or into > binary-search trees (which I suppose you could call if statements). > > -Hal > > > > > George > > ______________...
2012 Feb 27
0
[LLVMdev] SwitchInst handling in backend
...ure out the interface between the LLVM instruction 'SwitchInst' and whatever there is in the backend. > > I would be very happy about every hint where I have to look to find the entry point of switch instructions in the backend (in particular in the MIPS backend. SelectionDAGBuilder::visitSwitch is the general switch lowering... -Eli
2012 Feb 27
2
[LLVMdev] SwitchInst handling in backend
Hi Eli, Thank you for the quick reply. On Feb 27, 2012, at 10:03 PM, Eli Friedman wrote: > SelectionDAGBuilder::visitSwitch is the general switch lowering... I understand this lowering is target independent and there is no additional target dependent handling of switch instructions - right? Only branches and jump tables are left after this lowering? Kind regards, Nico
2013 May 06
2
[LLVMdev] convert switch stmts to If statements
Hi All, Is there a pass in llvm that converts switch statements to if statements? George -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130506/f06741c4/attachment.html>
2013 May 06
0
[LLVMdev] convert switch stmts to If statements
...dev at cs.uiuc.edu> > Sent: Monday, May 6, 2013 3:09:33 PM > Subject: [LLVMdev] convert switch stmts to If statements > > > > > Hi All, Is there a pass in llvm that converts switch statements to if > statements? > What do you mean by convert? SelectionDAGBuilder::visitSwitch in lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp converts the switch statements for code generation either into indirect jump tables or into binary-search trees (which I suppose you could call if statements). -Hal > > George > _______________________________________________ > LLV...
2013 May 06
0
[LLVMdev] convert switch stmts to If statements
...6, 2013 3:09:33 PM > > Subject: [LLVMdev] convert switch stmts to If statements > > > > > > > > > > Hi All, Is there a pass in llvm that converts switch statements to if > > statements? > > > > What do you mean by convert? SelectionDAGBuilder::visitSwitch in lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp converts the switch statements for code generation either into indirect jump tables or into binary-search trees (which I suppose you could call if statements). > > -Hal > > > > > George > > ___________________________...
2014 Oct 27
4
[LLVMdev] Switch instruction lowering
Hi, I'm interested in any information about implementations of switch instruction and its runtime cost. If it's very target dependent, I'm mostly care about X86. Pointing some LLVM code is also good. - Paweł -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20141027/285f02e5/attachment.html>
2012 Feb 27
3
[LLVMdev] SwitchInst handling in backend
Hi, if I want to know how switch instructions are handled in the backend, where do I have to look first? I'm not familiar with the backend framework and I couldn't figure out the interface between the LLVM instruction 'SwitchInst' and whatever there is in the backend. I would be very happy about every hint where I have to look to find the entry point of switch instructions in the
2018 May 22
1
How jump-table representated in DAG
Hi, all I am interested in how jump-table representated in DAG. I find the method visitJumpTable will Emit JumpTable node in the current MBB. visitJumpTableHeader - This function emits necessary code to produce index in the JumpTable from switch case. but how switch case emits? I would like to make this clearly. Thanks, yaoxiao -------------- next part -------------- An HTML attachment
2007 Aug 14
0
[LLVMdev] jump tables
Hello, Fernando. > 1) where, in the LLVM source tree, is the code that creates jump > tables? What do you mean? Switch insts or DAG nodes? The second is created by switch lowering code. Look into SelectionDAGISel.cpp:visitSwitch() -- With best regards, Anton Korobeynikov. Faculty of Mathematics & Mechanics, Saint Petersburg State University.