search for: x_len

Displaying 4 results from an estimated 4 matches for "x_len".

Did you mean: s_len
2008 Oct 23
2
[LLVMdev] Helping the optimizer along (__assume)
...bit slipping in a _Pragma or other implementation-extension constructs to inject flow of control constraints?) That is, instead of hoping for an extern "C" function so that a debug wrapper could be written to check function preconditions as: #ifndef NDEBUG #ifdef assert #define foo(x,x_len) (assert(NULL!=x),assert(0<x_len),foo(x,x_len)) #endif #endif I'd like to have the following always "bubble up" syntax errors: template<class T> int foo(T* x, size_t x_len) { assert(NULL!=x); assert(0<x_len); // .... } and then.... const char* test = NULL;...
2008 Oct 22
0
[LLVMdev] Helping the optimizer along (__assume)
On Oct 22, 2008, at 3:28 PM, Paul Biggar wrote: > As part of our PHP compiler (phpcompiler.org), it would be great to be > able to annotate our generated C code with, for example, (var != > NULL), or (var->type == STRING), and have that information passed > around (esp interprocedurally at link-time) by the LLVM optimizers. For some odd reason I was thinking this was going to be
2016 Nov 15
1
creating a long list puts R in a state where many things stop working
...create a long list e.g. with x <- vector(mode="list", length=3e9) many bad things start to happen e.g. some things stop working with a spurious error message: gc() # Error in gc() : # long vectors not supported yet: /home/hpages/src/R-3.3.2/src/main/memory.c:1137 x_lens <- lengths(x) # Error in lengths(x) : # long vectors not supported yet: /home/hpages/src/R-3.3.2/src/main/memory.c:1668 But then some of them work again: gc() # used (Mb) gc trigger (Mb) max used (Mb) # Ncells 57046 3.1 368000 19.7 350000 18.7...
2008 Oct 22
9
[LLVMdev] Helping the optimizer along (__assume)
Hi, I'm interested in whether or not there is a way of providing source-level annotations to help LLVM with optimizations, similar to VisualC++'s __assume facility (http://msdn.microsoft.com/en-us/library/1b3fsfxw.aspx). As part of our PHP compiler (phpcompiler.org), it would be great to be able to annotate our generated C code with, for example, (var != NULL), or (var->type ==