jeniffer lesley via llvm-dev
2020-Aug-01 17:34 UTC
[llvm-dev] Understanding assert in SelectionDAGBuilder.cpp
Hi, I am new to LLVM. I am experimenting with a toy backend. I don't understand "LowerFormalArguments didn't return a valid chain" in SelectionDAGBuilder.cpp file. What is the interface here? What does it mean by returning a Chain? Thanks Jen. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200801/9e468c02/attachment.html>
Eli Friedman via llvm-dev
2020-Aug-03 17:44 UTC
[llvm-dev] Understanding assert in SelectionDAGBuilder.cpp
Have you read http://llvm.org/docs/CodeGenerator.html#instruction-selection-section ? That covers the general DAG representation and the meaning of a “chain”. In general, if you don’t understand how something in SelectionDAG is supposed to work, I’d suggest looking at other targets, and using the dumping options frequently. -Eli From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of jeniffer lesley via llvm-dev Sent: Saturday, August 1, 2020 10:35 AM To: llvm-dev at lists.llvm.org Subject: [EXT] [llvm-dev] Understanding assert in SelectionDAGBuilder.cpp Hi, I am new to LLVM. I am experimenting with a toy backend. I don't understand "LowerFormalArguments didn't return a valid chain" in SelectionDAGBuilder.cpp file. What is the interface here? What does it mean by returning a Chain? Thanks Jen. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200803/367b2d64/attachment.html>
jeniffer lesley via llvm-dev
2020-Aug-06 13:42 UTC
[llvm-dev] Understanding assert in SelectionDAGBuilder.cpp
Thanks, I'll check it out. Is the interface that functions mutate DAG and return Chain nodes and we can traverse DAG using Chain? How do I traverse DAG in BFS order? On Mon, Aug 3, 2020, 11:14 PM Eli Friedman <efriedma at quicinc.com> wrote:> Have you read > http://llvm.org/docs/CodeGenerator.html#instruction-selection-section ? > That covers the general DAG representation and the meaning of a “chain”. > > > > In general, if you don’t understand how something in SelectionDAG is > supposed to work, I’d suggest looking at other targets, and using the > dumping options frequently. > > > > -Eli > > > > *From:* llvm-dev <llvm-dev-bounces at lists.llvm.org> *On Behalf Of *jeniffer > lesley via llvm-dev > *Sent:* Saturday, August 1, 2020 10:35 AM > *To:* llvm-dev at lists.llvm.org > *Subject:* [EXT] [llvm-dev] Understanding assert in > SelectionDAGBuilder.cpp > > > > Hi, > > I am new to LLVM. I am experimenting with a toy backend. I don't > understand > > "LowerFormalArguments didn't return a valid chain" in > SelectionDAGBuilder.cpp file. What is the interface here? What does it mean > by returning a Chain? > > > > Thanks > > Jen. > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200806/d358fec7/attachment.html>
Seemingly Similar Threads
- [LLVMdev] Does mips backend support variable arguments in release version(llvm-2.6)?
- [LLVMdev] Storage-Only Register Class?
- [LLVMdev] Storage-Only Register Class?
- [LLVMdev] broken alignment in stack(caused by bug in SelectionDAGBuilder) causes invalid schedules with r125471 and newer
- [LLVMdev] Strange exception in SelectionDAGBuilder