Displaying 8 results from an estimated 8 matches for "preincrement".
2009 Jun 15
3
[LLVMdev] Some df_iterator and po_iterator issues
...atement (which
happens a lot), the iteration may crash. Looking at df_iterator reveals
the reason: the first child of a particular statement is stored too
early for this kind of usage. IMHO this could be fixed by delaying the
computation of the first child until it's needed (that is in the
preincrement operator). The only open question would be: how do we mark
the children iterator invalid before its first use.
--snip--
I added two patches to this mail. The first one (dfi) is a proposal
fixing the problem described in the cut-out above.
The second one (poi) have to be applied anyway, as it fi...
2009 Jul 07
0
[LLVMdev] Some df_iterator and po_iterator issues
...a lot), the iteration may crash. Looking at
> df_iterator reveals the reason: the first child of a particular
> statement is stored too early for this kind of usage. IMHO this
> could be fixed by delaying the computation of the first child until
> it's needed (that is in the preincrement operator). The only open
> question would be: how do we mark the children iterator invalid
> before its first use.
This does sound like a useful use-case, but I am uncomfortable with
making DepthFirstIterator any heavier (by adding "CurrentTopNode" to
it), is there another...
2007 Sep 30
1
Perl example of using termitrator?
I'm having trouble translating from C++ to perl objects.
The TermIterator class looks like to get a set of terms in a document
you might have C++ code like:
Enquire::TermIterator termIt =enquire->get_matching_terms_begin(id);
for(;termIt != enquire->get_matching_terms_end(id);termIt++) {
string term = *termIt;
}
Or something similar. However when I attempt to translate that
2008 Jul 16
0
[LLVMdev] Interesting optimization failure.
Hi Richard,
> I have been working on using arrays and structs as first class objects.
good to hear! The example doesn't make use of that though, does it?
> I have this small function:
>
> int main()
> {
> char ar[10] = "12";
> return ar[4];
> }
...
> define i32 @main() nounwind {
> entry:
> ret i32 49
> }
>
Here I get
2008 Jul 16
3
[LLVMdev] Interesting optimization failure.
Hi,
I have been working on using arrays and structs as first class objects.
I have this small function:
int main()
{
char ar[10] = "12";
return ar[4];
}
If I compile with -O1 I get this bitcode:
; ModuleID = 't0011.bc'
target datalayout =
2008 Sep 14
3
Please help me in Converting this from C# to R
Random r = new Random();
DirectedGraph<SimpleNode> graph = GetGraph();
decimal B = 0.1m;
decimal D = 0.05m;
int nodes = graph.NodesCount;
decimal[] E = new decimal[nodes];
decimal[] P = new decimal[nodes];
for (int i = 7; i <= 10; ++i)
P[i] =
2013 Sep 30
1
[LLVMdev] RFC: llvm-shlib-test (Was: [llvm] r191029 - llvm-c: Make LLVMGetFirstTarget a proper prototype)
Attached is what I got thus far.
What I'm struggling with is proper integration in build system. What
is in there is just wild guesses from my side, both on autoconf and
cmake variants. It would be great if someone with proper knowledge of
the buildsystems could have a look. Also I'm not sure how to properly
handle compilation on msvc - clearly "-std=c11 -Wstrict-prototypes" is
2005 Jan 29
4
A couple of points about flac 1.1.1 on ppc/linux/altivec
On Thu, 27 Jan 2005, John Steele Scott wrote:
> That looks fine to me as well. However, the best solution is something which
> Luca suggested a few months ago, which is to use the functions defined in
> altivec.h. These are C functions which map directly to Altivec machine
> instructions. I am willing to help out, but I don't find the current lpc_asm.s
> very easy to follow, and