Displaying 20 results from an estimated 34 matches for "pop_front".
2007 Aug 09
4
[LLVMdev] Changing basic blocks
Hi Tanya and everybody,
Ty for your support.
I too believe it should not be complicated.
But I was not being able to do it.
For instance, I tried to run this code below:
BB->push_back(&(BB->front()));
BB->pop_front();
But it did not work (kinda obvious why).
Nor this:
BB->push_back(BB->begin());
BB->pop_front();
But also did not work. It seams the same instruction may not be duplicated
in the base block.
Finally, after some thinking (and tinkering), this worked like a charm:
MachineInstr*...
2016 Jul 08
2
Re: [PATCH v3 4/8] mllib: Add some imperative list manipulation functions.
...tions do the same as Perl ones.)
>
> I agree, but for consistency I thought it was better to keep those
> names rather than trying to think up new ones which would be different
> from everything else.
Actually I forgot that C++ (STL vector, deque etc) have functions
called push_front, pop_front, push_back, pop_back. Don't know if that
would be better. Is it obvious what front and back mean?
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-builder quickly builds VMs fr...
2007 Aug 08
0
[LLVMdev] Changing basic blocks
> I need a way to reorder instructions inside MachineBasicBlocks or
> MachineFunctions.
> I've been searching for it but I have not found an example in the code yet.
For MachineBasicBlocks, check out this doc:
http://llvm.org/doxygen/classllvm_1_1MachineBasicBlock.html
I believe its basically the same as basic blocks in that you can
manipulate the instruction list.
Otherwise, you
2007 Aug 08
2
[LLVMdev] Changing basic blocks
Hello guys,
I plan to do some pre register allocation optimizations.
I already know my way around LLVM but I could use some more experience.
I need a way to reorder instructions inside MachineBasicBlocks or
MachineFunctions.
I've been searching for it but I have not found an example in the code yet.
Can someone point me where I should look for?
ty,
--
Emilio Wuerges
LAPS - Laboratorio
2012 May 27
1
Thread Problem.
...else if(bytes_read == 0)
{
// End of data
if(!music_queue.empty())
{
ov_clear(&strm.ovf);
// Get next song
strm.raw_ogg = music_queue[0];
music_queue.pop_front();
strm.pos = 0;
if(strm.raw_ogg != NULL)
{
if(ov_open_callbacks(&strm, &strm.ovf, NULL, 0,
my_callbacks) < 0)
{
panic("ov_open_callbacks failed -...
2008 Dec 10
3
How to fix broken ogg/theora files
Hi there,
I haven't been on this list until now, so I wasn't aware of this problem until last night ;-) - sorry for that.
I am working on a patch for oggCut for that issue (looks good actually but I would like to do some testing befor I can release a patch.)
Normal players are not effected by the page time misordering, so I took this issue as "minor". The reason for the
2015 Jun 23
4
[LLVMdev] Improving the quality of debug locations / DbgValueHistoryCalculator
...== loc2.kind &&
loc1.val == loc2.val)
// Not sure how to best implement this.
open_ranges[BB][var].push_back(new DBG_VALUE(loc1));
}
analyze(MF) {
for (BB : MF)
workset.push_back(BB);
while (!workset.empty()) {
changed = false;
for (MI : workset.pop_front())
transfer(MI)
if (changed)
workset.append(BB.successors())
}
}
A couple of observations about the pseudo-code above: The analysis
terminates, because ranges is write-only, making this effectively a
bit-vector problem. It is also safe, because we are only propagating
ranges int...
2016 Jul 08
0
Re: [PATCH v3 4/8] mllib: Add some imperative list manipulation functions.
...t; >
> > I agree, but for consistency I thought it was better to keep those
> > names rather than trying to think up new ones which would be different
> > from everything else.
>
> Actually I forgot that C++ (STL vector, deque etc) have functions
> called push_front, pop_front, push_back, pop_back. Don't know if that
> would be better. Is it obvious what front and back mean?
That would be the attached patch.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpres...
2017 Nov 21
2
[PATCH v3 0/2] common/mlstdutils: Extend the List module.
v2 -> v3:
- Renamed List.assoc_ -> List.assoc_lbl.
- Rebased on top of current master branch.
Rich.
2016 Jul 07
2
Re: [PATCH v3 4/8] mllib: Add some imperative list manipulation functions.
On Thursday 07 July 2016 17:30:03 Richard W.M. Jones wrote:
> This adds imperative list manipulation functions inspired by Perl.
> The functions are passed list refs which get updated in place.
>
> This allows us to replace some awkward pure functional code like:
>
> let xs = ys in
> let xs = if foo then xs @ zs else xs in
>
> with:
>
> let xs = ref ys in
2013 Nov 03
3
[LLVMdev] Appropriate DS for implementing worklist
Hi,
I am writing an analysis which requires creating worklist of basic blocks.
The worklist should be in FIFO order. I checked SmallVector (and similar
others) and found out this is working in LIFO order when I use the
functions push_back and pop_back_val to insert and delete elements in the
worklist.
Can someone suggest an appropriate DS to implement my worklist. Note: I am
not concerned about
2017 Oct 08
4
[PATCH 0/3] common/mlstdutils: Add Std_utils List and Option modules.
In Std_utils we already extend Char and String. These commits take it
a little further by extending List and adding a new Option submodule.
All basically simple refactoring.
Rich.
2020 Mar 26
12
Upgrading LLVM's minimum required CMake version
...cking if a cache variable is defined
* $<IN_LIST:...> generator expression correctly handles empty argument
* Fixes for object library linking propagation
* Link options to manage position independent executables added automatically
CMake 3.15 (released July 17th 2019):
* list(PREPEND), list(POP_FRONT) and list(POP_BACK) added
* New message() types NOTICE, VERBOSE, DEBUG and TRACE
* string(REPEAT) added
* MSVC_RUNTIME_LIBRARY target property and CMAKE_MSVC_RUNTIME_LIBRARY variable to select the runtime library type for MSVC
* $<C_COMPILER_ID:...>, $<CXX_COMPILER_ID:...>, $<COMPILE...
2017 Oct 08
7
[[PATCH v2 0/4] common/mlstdutils: Add Std_utils List and Option modules.
This time including the first commit ...
2012 Oct 03
0
[LLVMdev] [cfe-dev] Does LLVM optimize recursive call?
Hello David Chisnall, John McCall, David Blaikie and other people who
may concern
> If your teachers are really making this sort of superficial generalization,
> they're doing you a disservice.
This hit my head.
Actually I didn't test the performance of those two, the iteration and
the recursion, at all. And in this field of study, testing is very
much important, I believe.
And
2020 Mar 26
4
Upgrading LLVM's minimum required CMake version
...IN_LIST:...> generator expression correctly handles empty argument
>> * Fixes for object library linking propagation
>> * Link options to manage position independent executables added automatically
>>
>> CMake 3.15 (released July 17th 2019):
>> * list(PREPEND), list(POP_FRONT) and list(POP_BACK) added
>> * New message() types NOTICE, VERBOSE, DEBUG and TRACE
>> * string(REPEAT) added
>> * MSVC_RUNTIME_LIBRARY target property and CMAKE_MSVC_RUNTIME_LIBRARY variable to select the runtime library type for MSVC
>> * $<C_COMPILER_ID:...>, $<C...
2020 Apr 02
2
Upgrading LLVM's minimum required CMake version
...cking if a cache variable is defined
* $<IN_LIST:...> generator expression correctly handles empty argument
* Fixes for object library linking propagation
* Link options to manage position independent executables added automatically
CMake 3.15 (released July 17th 2019):
* list(PREPEND), list(POP_FRONT) and list(POP_BACK) added
* New message() types NOTICE, VERBOSE, DEBUG and TRACE
* string(REPEAT) added
* MSVC_RUNTIME_LIBRARY target property and CMAKE_MSVC_RUNTIME_LIBRARY variable to select the runtime library type for MSVC
* $<C_COMPILER_ID:...>, $<CXX_COMPILER_ID:...>, $<COMPILE...
2012 Oct 03
2
[LLVMdev] [cfe-dev] Does LLVM optimize recursive call?
On 3 Oct 2012, at 09:48, John McCall wrote:
> If your teachers are really making this sort of superficial generalization,
> they're doing you a disservice.
I completely agree with John here - we had a case a few years ago where someone spent ages refactoring their algorithm to be iterative and was surprised that it became slower (with the MS compiler). Looking at the assembly, it was
2020 Apr 02
2
Upgrading LLVM's minimum required CMake version
...cking if a cache variable is defined
* $<IN_LIST:...> generator expression correctly handles empty argument
* Fixes for object library linking propagation
* Link options to manage position independent executables added automatically
CMake 3.15 (released July 17th 2019):
* list(PREPEND), list(POP_FRONT) and list(POP_BACK) added
* New message() types NOTICE, VERBOSE, DEBUG and TRACE
* string(REPEAT) added
* MSVC_RUNTIME_LIBRARY target property and CMAKE_MSVC_RUNTIME_LIBRARY variable to select the runtime library type for MSVC
* $<C_COMPILER_ID:...>, $<CXX_COMPILER_ID:...>, $<COMPILE...
2020 Mar 26
2
Upgrading LLVM's minimum required CMake version
...cking if a cache variable is defined
* $<IN_LIST:...> generator expression correctly handles empty argument
* Fixes for object library linking propagation
* Link options to manage position independent executables added automatically
CMake 3.15 (released July 17th 2019):
* list(PREPEND), list(POP_FRONT) and list(POP_BACK) added
* New message() types NOTICE, VERBOSE, DEBUG and TRACE
* string(REPEAT) added
* MSVC_RUNTIME_LIBRARY target property and CMAKE_MSVC_RUNTIME_LIBRARY variable to select the runtime library type for MSVC
* $<C_COMPILER_ID:...>, $<CXX_COMPILER_ID:...>, $<COMPILE...