search for: nodety

Displaying 20 results from an estimated 59 matches for "nodety".

2009 Jan 16
1
[LLVMdev] Problem using ilist container
...-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090116/18390546/attachment.html> -------------- next part -------------- /usr/local/llvm/src/include/llvm/ADT/ilist.h: In static member function 'static NodeTy* llvm::ilist_nextprev_traits<NodeTy>::getPrev(NodeTy*) [with NodeTy = llvm::Instruction*]': /usr/local/llvm/src/include/llvm/ADT/ilist.h:268: instantiated from 'NodeTy* llvm::iplist<NodeTy, Traits>::getTail() [with NodeTy = llvm::Instruction*, Traits = llvm::ilist_traits<ll...
2014 Sep 01
3
[LLVMdev] understanding DAG: node creation
Hi, I'm not sure. But in your lowered DAG the chain nodes are the first operands for you custom nodes, however for the other nodes the chain is the last operand. I seem to remember that during targetlowering the chain is the first operand and then it seems to switch over after ISelDAG, this confused me and may have something to do with the issue that you are seeing. I really don't
2009 Jun 23
2
[LLVMdev] lli aborts on arm QEMU
I get the following error when I try to run arm lli on QEMU: lli: llvm-arm/src/llvm/include/llvm/ADT/ilist.h:197: typename bidirectional_iterator<NodeTy, int>::reference llvm::ilist_iterator<NodeTy>::operator*() const [with NodeTy = llvm::RecyclerStruct]: Assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"' failed. 0 lli 0x006abbfc Stack dump: 0. Program arguments: ./lli hello2.bc 1. Running pass ...
2012 Dec 20
2
[LLVMdev] LLVM segmentation fault / need use Instruction instead of Instruction*
Hello, Thank you for your answer. If I want to use then I have error: ‘NodeTy* llvm::ilist_half_node<NodeTy>::getPrev() [with NodeTy = llvm::Instruction]’ is protected error: ‘llvm::ilist_half_node<llvm::Instruction>’ is not an accessible base of ‘llvm::Instruction’ Do you know any other method to access the previous instruction of a terminator instruction? PS:...
2016 Aug 25
2
InstList insert depreciated?
.../home/shehbaz/project/llvm/include/llvm/IR/BasicBlock.h:18:0, from /home/shehbaz/project/llvm/include/llvm/IR/Function.h:25, from /home/shehbaz/project/plugin/FSlice.cpp:7: /home/shehbaz/project/llvm/include/llvm/ADT/ilist.h:461:12: note: candidate: llvm::iplist<NodeTy, Traits>::iterator llvm::iplist<NodeTy, Traits>: :insert(llvm::iplist<NodeTy, Traits>::iterator, NodeTy*) [with NodeTy = llvm::Instruction; Traits = llvm::SymbolTableListTraits<llvm::Instruction >; llvm::iplist<NodeTy, Traits>::iterator = llvm::ilist_iterator<llvm::Ins...
2009 Sep 27
5
[LLVMdev] A basicblock iterator bug in llvm
...tr2, i32 0, i32 0)) nounwind ; <i32> [#uses=0] IsFirst First Inst: %1 = call i32 (i8*, ...)* @printf(i8* noalias getelementptr ([42 x i8]* @.str1, i32 0, i32 0)) nounwind ; <i32> [#uses=0] opt: /home/heming/defens/llvm-2.5/include/llvm/ADT/ilist.h:173: llvm::ilist_iterator<NodeTy>& llvm::ilist_iterator<NodeTy>::operator--() [with NodeTy = llvm::Instruction]: Assertion `Traits::getNext(NodePtr) && "--'d off the beginning of an ilist!"' failed. 0 opt 0x08642be4 1 opt 0x08642f26 2...
2009 Jun 24
0
[LLVMdev] lli aborts on arm QEMU
hannibal hannibal wrote: > I get the following error when I try to run arm lli on QEMU: > > lli: llvm-arm/src/llvm/include/llvm/ADT/ilist.h:197: typename bidirectional_iterator<NodeTy, int>::reference llvm::ilist_iterator<NodeTy>::operator*() const [with NodeTy = llvm::RecyclerStruct]: Assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"' failed. > 0 lli 0x006abbfc > Stack dump: > 0. Program arguments: ./lli hello2.bc >...
2010 Jun 18
1
[LLVMdev] Erasing Instruction
Hi, Can anyone tell me how to erase an instruction, (specially a load/store instruction) ? If I use Instr->eraseFromParent(), I get following error. Note the instruction does not have any use. opt: /home/chayan/llvm/llvm-2.6/include/llvm/ADT/ilist.h:218: llvm::ilist_iterator<NodeTy>& llvm::ilist_iterator<NodeTy>::operator++() [with NodeTy = llvm::Instruction]: Assertion `NodePtr && "++'d off the end of an ilist!"' failed. 0 opt 0x084560a8 Stack dump: 0. Running pass 'Function Pass Manager' on module '<stdin>'. 1....
2012 Dec 20
0
[LLVMdev] LLVM segmentation fault / need use Instruction instead of Instruction*
...rent" itself (the problem appears for the BB with only one element)? On Thu, Dec 20, 2012 at 12:42 PM, Alexandru Ionut Diaconescu < alexandruionutdiaconescu at gmail.com> wrote: > Hello, > > Thank you for your answer. If I want to use > > then I have > > error: ‘NodeTy* llvm::ilist_half_node<NodeTy>::getPrev() [with NodeTy = > llvm::Instruction]’ is protected > error: ‘llvm::ilist_half_node<llvm::Instruction>’ is not an accessible > base of ‘llvm::Instruction’ > > Do you know any other method to access the previous instruction of a >...
2012 Dec 20
1
[LLVMdev] LLVM segmentation fault / need use Instruction instead of Instruction*
...element)? > > > > > > On Thu, Dec 20, 2012 at 12:42 PM, Alexandru Ionut Diaconescu < > alexandruionutdiaconescu at gmail.com> wrote: > >> Hello, >> >> Thank you for your answer. If I want to use >> >> then I have >> >> error: ‘NodeTy* llvm::ilist_half_node<NodeTy>::getPrev() [with NodeTy = >> llvm::Instruction]’ is protected >> error: ‘llvm::ilist_half_node<llvm::Instruction>’ is not an accessible >> base of ‘llvm::Instruction’ >> >> Do you know any other method to access the previous i...
2012 Dec 20
0
[LLVMdev] LLVM segmentation fault / need use Instruction instead of Instruction*
I may be mistaken as I just took a quick look, but in ilist_node the function "getPrevNode()" actually calls a method on the previous node: NodeTy *getPrevNode() { NodeTy *Prev = this->getPrev(); // Check for sentinel. if (!Prev->getNext()) return 0; return Prev; } http://llvm.org/docs/doxygen/html/ilist__node_8h_source.html#l00058 Try checking if current->getPrev() is null before calling current->getPrevNode(). S...
2009 Sep 27
0
[LLVMdev] A basicblock iterator bug in llvm
...> [#uses=0] > IsFirst First Inst:     %1 = call i32 (i8*, ...)* @printf(i8* noalias   > getelementptr ([42 x i8]* @.str1, i32 0, i32 0)) nounwind               ; <i32>   > [#uses=0] > opt: /home/heming/defens/llvm-2.5/include/llvm/ADT/ilist.h:173:   > llvm::ilist_iterator<NodeTy>&   > llvm::ilist_iterator<NodeTy>::operator--() [with NodeTy =   > llvm::Instruction]: Assertion `Traits::getNext(NodePtr) && "--'d off   > the beginning of an ilist!"' failed. > 0   opt                    0x08642be4 > 1   opt                  ...
2012 Dec 20
3
[LLVMdev] LLVM segmentation fault / need use Instruction instead of Instruction*
Hello John, I was following your procedures and I isolated the problem. The problem are represented by the basic blocks with only one element. for (Function::iterator II = F.begin(), EE = F.end(); II != EE; ++II, ++ii) { BasicBlock* BB=II; if (BB->getTerminator()) { Instruction* current = BB->getTerminator(); Instruction* previous;
2009 Sep 27
0
[LLVMdev] A basicblock iterator bug in llvm
...> [#uses=0] > IsFirst First Inst:     %1 = call i32 (i8*, ...)* @printf(i8* noalias   > getelementptr ([42 x i8]* @.str1, i32 0, i32 0)) nounwind               ; <i32>   > [#uses=0] > opt: /home/heming/defens/llvm-2.5/include/llvm/ADT/ilist.h:173:   > llvm::ilist_iterator<NodeTy>&   > llvm::ilist_iterator<NodeTy>::operator--() [with NodeTy =   > llvm::Instruction]: Assertion `Traits::getNext(NodePtr) && "--'d off   > the beginning of an ilist!"' failed. > 0   opt                    0x08642be4 > 1   opt                  ...
2009 May 12
1
[LLVMdev] SparseBitVector compile warning
...R:\SDKs\llvm\trunk\include\llvm/ADT/SparseBitVector.h(275) : see reference to class template instantiation 'llvm::SparseBitVectorElement<ElementSize>' being compiled R:\SDKs\llvm\trunk\include\llvm/ADT/SparseBitVector.h(58) : warning C4099: 'llvm::ilist_sentinel_traits<NodeTy>' : type name first seen using 'struct' now seen using 'class' with [ NodeTy=llvm::SparseBitVectorElement<128> ] R:\SDKs\llvm\trunk\include\llvm/ADT/SparseBitVector.h(283) : see reference to class template instantiation 'l...
2009 Nov 13
1
[LLVMdev] legalize dag problem
thanks for the help ..I do add the chain and the result. My code is like this ... SDValue Ops[] = { load->getChain(), load->getOperand(1), load->getBasePtr(), des }; DAG.getNode(CustomOpc, NodeTys, Ops, 4); thanks again! shrey On Thu, Nov 12, 2009 at 4:41 PM, Anton Korobeynikov <anton at korobeynikov.info> wrote: >> My problem is that the second call asserts inside legalize ops at >> ResultVals[Op.getResNo()]; b'cos ResultVals has only 1 element and >> Op...
2009 Nov 03
0
[LLVMdev] Problem running lli on ARM
...86 machine and then copied it to target and from target if i try to run the bitcode using lli tool i am getting the following error. * * *# ../../llvm-2.6-arm/bin/lli nestedloop.bc lli: /home/prasanth/LLVM_ARM/llvm-**target/llvm-2.6/include/llvm/**ADT/ilist.h:197: typename bidirectional_iterator<NodeTy, int>::reference llvm::ilist_iterator<NodeTy>::**operator*() const [with NodeTy = llvm::RecyclerStruct]: Assertion `Traits::getNext(NodePtr) != 0 && "Dereferencing end()!"' failed. 0 lli 0x007702b4 Stack dump: 0. Program arguments: ../../llvm-2.6-arm/bin/lli ne...
2010 Jan 11
0
[LLVMdev] LICM ilist question.
...op preheader. When I process the instructions backward as shown in the following code, I got the following error right after the "hoist(I)" is done. Can anyone advise whether I am misusing BasicBlock::iterator? /opt/llvms/src/llvm_26/ include/llvm/ADT/ilist.h:213: llvm::ilist_iterator<NodeTy>& llvm::ilist_iterator<NodeTy>::operator--() [with NodeTy = llvm::Instruction]: Assertion `NodePtr && "--'d off the beginning of an ilist!"' failed. *LICM::HOistRegion(DomTreeNode *N)* { assert(N != 0 && "Null dominator tree node?");...
2009 Sep 27
1
[LLVMdev] A basicblock iterator bug in llvm
...First Inst:     %1 = call i32 (i8*, ...)* @printf(i8* noalias   >> getelementptr ([42 x i8]* @.str1, i32 0, i32 0)) nounwind           >>     ; <i32>   >> [#uses=0] >> opt: /home/heming/defens/llvm-2.5/include/llvm/ADT/ilist.h:173:   >> llvm::ilist_iterator<NodeTy>&   >> llvm::ilist_iterator<NodeTy>::operator--() [with NodeTy =   >> llvm::Instruction]: Assertion `Traits::getNext(NodePtr) && "--'d off   >> the beginning of an ilist!"' failed. >> 0   opt                    0x08642be4 >> 1   o...
2016 Aug 17
5
code to sort otherwise-unsortable "ilist"s, e.g. symbol tables
...; and crashing? If so, then ditto for e.g. "my_ilist.sort(my_comparator)", please. Regards, Abe ===== snippet from altered "llvm/include/llvm/ADT/ilist.h" ===== ===== context within "ilist.h": the 2nd "public:" section of "template<typename NodeTy, typename Traits=ilist_traits<NodeTy> > class iplist : public Traits" ===== template <class Compare> void sort_without_temporary_list(Compare comp) { // The list is empty, vacuously sorted. if (empty()) return; // The list has a single element, va...