Displaying 20 results from an estimated 20 matches for "moveafter".
2006 May 12
7
RJS and page.select collection size
I need to implement a conditional in my RJS template which looks
something like:
if (page.select(''row1'').first != null)
page << "new TableRow.MoveAfter(''row1'', ''newrow'');"
else
page << "new TableRow.MoveAfter(''row2'', ''newrow'');"
end
Now, dumb question.. My ''if'' doesnt work, how should I properly check if
the returned collection...
2014 Dec 08
2
[LLVMdev] Virtual register problem in X86 backend
...insert(MBB, MBB_erase);
F->insert(MBB, MBB_end);
// Split the last MBB in two
MBB_end->splice(MBB_end->begin(), MBB,
next(MachineBasicBlock::iterator(MI)), MBB->end());
MBB_end->transferSuccessorsAndUpdatePHIs(MBB);
// Move MBB at the right place
MBB_end->moveAfter(MBB);
MBB_erase->moveAfter(MBB);
MBB_cond->moveAfter(MBB);
// Set the new successors
MBB->addSuccessor(MBB_cond);
MBB_cond->addSuccessor(MBB_erase);
MBB_cond->addSuccessor(MBB_end);
MBB_erase->addSuccessor(MBB_cond);
MBB_erase->addSuccessor(MBB_...
2010 Jun 13
2
[LLVMdev] Block management
...eate the function at the beginning stage become some info are not available yet). I tried to create a block without any "parent" (BasicBlock::Create(getGlobalContext(), "init"), fill it, but how to link it with the created function? (i read about "moveBefore" and "moveAfter" but these methods are not usable in this context...
Thanks
Stéphane Letz
2014 Oct 28
2
[LLVMdev] Problem in X86 backend (again)
...ert(MBB, MBB_cond);
F->insert(MBB, MBB_erase);
F->insert(MBB, MBB_end);
// Split the last MBB in two
MBB_end->splice(MBB_end->begin(), MBB, next(MachineBasicBlock::iterator(MI)), MBB->end());
MBB_end->transferSuccessorsAndUpdatePHIs(MBB);
// Move MBB at the right place
MBB_end->moveAfter(MBB);
MBB_erase->moveAfter(MBB);
MBB_cond->moveAfter(MBB);
// Set the new successors
MBB->addSuccessor(MBB_cond);
MBB_erase->addSuccessor(MBB_cond);
MBB_cond->addSuccessor(MBB_end);
MBB_cond->addSuccessor(MBB_erase);
MachineRegisterInfo &MRI = MBB->getParent()->getRegInf...
2008 Oct 14
3
[LLVMdev] CFG modifcations and code gen
...->addSuccessor(newExitPath);
root->removeSuccessor(newExitPath);
root->CorrectExtraCFGEdges(*root->succ_begin(), NULL,
false);
pHigh->CorrectExtraCFGEdges(*pHigh->succ_begin(),
newExitPath, false);
newExitPath->moveAfter(pHigh);
root->getParent()->RenumberBlocks();
So what am I doing wrong?
Thanks,
Micah Villmow
Systems Engineer
Advanced Technology & Performance
Advanced Micro Devices Inc.
4555 Great America Pkwy,
Santa Clara, CA. 95054
P: 408-572-6219
F: 408-572-659...
2008 Oct 14
0
[LLVMdev] CFG modifcations and code gen
...;
> root->removeSuccessor(newExitPath);
> root->CorrectExtraCFGEdges(*root->succ_begin(),
> NULL, false);
> pHigh->CorrectExtraCFGEdges(*pHigh->succ_begin(),
> newExitPath, false);
> newExitPath->moveAfter(pHigh);
> root->getParent()->RenumberBlocks();
>
> So what am I doing wrong?
>
> Thanks,
>
>
> Micah Villmow
> Systems Engineer
> Advanced Technology & Performance
> Advanced Micro Devices Inc.
> 4555 Great America Pkwy,
> Santa Clara...
2010 Jun 13
0
[LLVMdev] Block management
...eate the function at the beginning stage become some info are not available yet). I tried to create a block without any "parent" (BasicBlock::Create(getGlobalContext(), "init"), fill it, but how to link it with the created function? (i read about "moveBefore" and "moveAfter" but these methods are not usable in this context...
You can use Function::getBasicBlockList(). That list supports fully general list operations like "insert", so you can just plop it in wherever you'd like it.
-Chris
2010 Jun 14
1
[LLVMdev] Block management
...eate the function at the beginning stage become some info are not available yet). I tried to create a block without any "parent" (BasicBlock::Create(getGlobalContext(), "init"), fill it, but how to link it with the created function? (i read about "moveBefore" and "moveAfter" but these methods are not usable in this context...
>
> You can use Function::getBasicBlockList(). That list supports fully general list operations like "insert", so you can just plop it in wherever you'd like it.
methods like the basic block constructor or BasicBlock::s...
2014 Dec 10
2
[LLVMdev] Virtual register problem in X86 backend
...>> // Split the last MBB in two
>> MBB_end->splice(MBB_end->begin(), MBB,
>> next(MachineBasicBlock::iterator(MI)), MBB->end());
>> MBB_end->transferSuccessorsAndUpdatePHIs(MBB);
>>
>> // Move MBB at the right place
>> MBB_end->moveAfter(MBB);
>> MBB_erase->moveAfter(MBB);
>> MBB_cond->moveAfter(MBB);
>>
>> // Set the new successors
>> MBB->addSuccessor(MBB_cond);
>> MBB_cond->addSuccessor(MBB_erase);
>> MBB_cond->addSuccessor(MBB_end);
>> MBB_erase...
2018 Aug 27
3
Replacing a function from one module into another one
Hello LLVM Developers,
I'm trying to replace a function defined in one module into another module
(different files). The first issue I ran into was that llvm::Function does
not have a method "moveBefore" or "moveAfter" as the llvm::BasicBlock or
llvm::Instruction do, so I figured I would just move the BasicBlocks of the
replacing function into the function that was being replaced, and then
eliminate the original BasicBlocks. So far I had only one issue while
eliminating the original BasicBlocks, I can only...
2013 May 13
1
[LLVMdev] Problem with MachineFunctionPass and JMP
...try = MF.CreateMachineBasicBlock();
MF.insert(MF.begin(), newEntry);
std::vector<MachineBasicBlock*> origBB;
for(MachineFunction::iterator i = MF.begin(); i != MF.end(); ++i)
origBB.push_back(i);
for(unsigned int i = 0; i < origBB.size(); ++i)
origBB.at(i)->moveAfter(newEntry);
MCInstrInfo tii = *MF.getTarget().getInstrInfo();
MachineInstr *plop = BuildMI(MF, DebugLoc(),tii.get(X86::JMP_4)).addMBB(origBB.at(1));
newEntry->push_back(plop);
return false;
}
And here is the resulting code (it's a simple program with some 'if'):
(n...
2018 Sep 02
2
Replacing a function from one module into another one
...ya via llvm-dev wrote:
> > Hello LLVM Developers,
> >
> > I'm trying to replace a function defined in one module into another
> > module (different files). The first issue I ran into was that
> > llvm::Function does not have a method "moveBefore" or "moveAfter" as
> > the llvm::BasicBlock or llvm::Instruction do, so I figured I would
> > just move the BasicBlocks of the replacing function into the function
> > that was being replaced, and then eliminate the original BasicBlocks.
>
> Cross-module operations are tricky in gener...
2018 Sep 02
2
Replacing a function from one module into another one
...Hello LLVM Developers,
>>> >
>>> > I'm trying to replace a function defined in one module into another
>>> > module (different files). The first issue I ran into was that
>>> > llvm::Function does not have a method "moveBefore" or "moveAfter" as
>>> > the llvm::BasicBlock or llvm::Instruction do, so I figured I would
>>> > just move the BasicBlocks of the replacing function into the function
>>> > that was being replaced, and then eliminate the original BasicBlocks.
>>>
>>> Cro...
2006 Jul 11
0
malformed utf-8 character error
...:TemplateError (malformed UTF-8 character) on line #6 of app/views/personel/edit.rjs:
3:
4: if @successful
5: page.hide element_row_id(@view_options)
6: page.insert_html :bottom, scaffold_tbody_id(@options), :partial => ''new_edit''
7: page << "new TableRow.MoveAfter(''#{element_row_id(@view_options)}'', ''#{element_row_id(@options)}'');"
8: page.show element_row_id(@options)
9: page << "Form.focusFirstElement(''#{element_form_id(@options)}'');"
D:/EErisken/Downloads/ruby/Insta...
2008 Oct 14
2
[LLVMdev] CFG modifcations and code gen
...pHigh->addSuccessor(newExitPath);
root->removeSuccessor(newExitPath);
root->CorrectExtraCFGEdges(*root->succ_begin(),
NULL, false);
pHigh->CorrectExtraCFGEdges(*pHigh->succ_begin(), newExitPath, false);
newExitPath->moveAfter(pHigh);
root->getParent()->RenumberBlocks();
So what am I doing wrong?
Thanks,
Micah Villmow
Systems Engineer
Advanced Technology & Performance
Advanced Micro Devices Inc.
4555 Great America Pkwy,
Santa Clara, CA. 95054
P: 408-572-6219...
2018 Sep 03
2
Replacing a function from one module into another one
...>>> >
>>>>> > I'm trying to replace a function defined in one module into another
>>>>> > module (different files). The first issue I ran into was that
>>>>> > llvm::Function does not have a method "moveBefore" or "moveAfter" as
>>>>> > the llvm::BasicBlock or llvm::Instruction do, so I figured I would
>>>>> > just move the BasicBlocks of the replacing function into the
>>>>> function
>>>>> > that was being replaced, and then eliminate the origin...
2018 Sep 04
2
Replacing a function from one module into another one
...'m trying to replace a function defined in one module into
>>>>>>> another
>>>>>>> > module (different files). The first issue I ran into was that
>>>>>>> > llvm::Function does not have a method "moveBefore" or "moveAfter"
>>>>>>> as
>>>>>>> > the llvm::BasicBlock or llvm::Instruction do, so I figured I would
>>>>>>> > just move the BasicBlocks of the replacing function into the
>>>>>>> function
>>>>>>>...
2018 Sep 06
2
Replacing a function from one module into another one
...o
>>>>>>>>> another
>>>>>>>>> > module (different files). The first issue I ran into was that
>>>>>>>>> > llvm::Function does not have a method "moveBefore" or
>>>>>>>>> "moveAfter" as
>>>>>>>>> > the llvm::BasicBlock or llvm::Instruction do, so I figured I
>>>>>>>>> would
>>>>>>>>> > just move the BasicBlocks of the replacing function into the
>>>>>>>>> func...
2018 Sep 06
2
Replacing a function from one module into another one
...t;>>> another
>>>>>>>>>>> > module (different files). The first issue I ran into was that
>>>>>>>>>>> > llvm::Function does not have a method "moveBefore" or
>>>>>>>>>>> "moveAfter" as
>>>>>>>>>>> > the llvm::BasicBlock or llvm::Instruction do, so I figured I
>>>>>>>>>>> would
>>>>>>>>>>> > just move the BasicBlocks of the replacing function into the
>>>>&...
2006 Jul 12
7
Does anyone work with iso-8859-1 database ?
hello,
Our database is in is-8859-1, and I want to update some text fields
without success due to some accentuate characters ?? ect ...
In my html page (where the charset is iso-8859-19) my textarea
display the accentuate characters well and when the user post the form
... I thought that I just need to save it .... without success since
ruby map one byte for one character ...
So I