search for: arg2

Displaying 20 results from an estimated 784 matches for "arg2".

Did you mean: arg
2015 Jun 22
2
[LLVMdev] bb-vectorizer transforms only part of the block
...ass that can be tweaked? Thanks, Frank ; ModuleID = '<stdin>' target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" target triple = "x86_64-unknown-linux-gnu" define void @main(i64 %lo, i64 %hi, float* noalias %arg0, float* noalias %arg1, float* noalias %arg2) { entrypoint: %0 = getelementptr float* %arg1, i64 64 %1 = getelementptr float* %arg2, i64 64 %2 = getelementptr float* %arg0, i64 64 %3 = bitcast float* %arg1 to <4 x float>* %4 = bitcast float* %0 to <4 x float>* %5 = bitcast float* %arg2 to <4 x float>* %6...
2015 Jul 01
3
[LLVMdev] SLP vectorizer on AVX feature
...out yesterday ~/toolchain/install/llvm-3.6/bin/opt -datalayout -basicaa -slp-vectorizer -instcombine < func_4x4x4_scalar_p_scalar.ll -S the output goes like: ; ModuleID = '<stdin>' define void @main(i64 %lo, i64 %hi, float* noalias %arg0, float* noalias %arg1, float* noalias %arg2) { entrypoint: %0 = bitcast float* %arg1 to <4 x float>* %1 = load <4 x float>* %0, align 4 %2 = bitcast float* %arg2 to <4 x float>* %3 = load <4 x float>* %2, align 4 %4 = fadd <4 x float> %3, %1 %5 = bitcast float* %arg0 to <4 x float>* st...
2007 Apr 18
0
[PATCH] paravirt_ops: Clean up paravirt patchable wrappers
...: "=a" (__eax), "=d" (__edx), "=c" (__ecx) \ - : "0" ((u32)(arg1)), \ - paravirt_type(__op), \ - paravirt_clobber(CLBR_ANY) \ - : "memory", "cc"); \ - }) - -#define PVOP_CALL2(__rettype, __op, arg1, arg2) \ - ({ \ - __rettype __ret; \ - if (sizeof(__rettype) > sizeof(unsigned long)) { \ - unsigned long long __tmp; \ - unsigned long __ecx; \ - asm volatile(paravirt_alt(PARAVIRT_CALL) \ - : "=A" (__tmp), "=c" (__ecx) \ - : "a&quot...
2007 Apr 18
0
[PATCH] paravirt_ops: Clean up paravirt patchable wrappers
...: "=a" (__eax), "=d" (__edx), "=c" (__ecx) \ - : "0" ((u32)(arg1)), \ - paravirt_type(__op), \ - paravirt_clobber(CLBR_ANY) \ - : "memory", "cc"); \ - }) - -#define PVOP_CALL2(__rettype, __op, arg1, arg2) \ - ({ \ - __rettype __ret; \ - if (sizeof(__rettype) > sizeof(unsigned long)) { \ - unsigned long long __tmp; \ - unsigned long __ecx; \ - asm volatile(paravirt_alt(PARAVIRT_CALL) \ - : "=A" (__tmp), "=c" (__ecx) \ - : "a&quot...
2007 Sep 06
1
labelling specific points xyplot
...taframe) to my chosen points : I've figures this out, but I am passing my whole dataframe as an extra argument (arg1) which I realize is probably useless, so if anybody can give me a way to work around this... xyplot(pp~nn,groups=vari,data=test,auto.key=list(space="right"),arg1=test,arg2="2",arg3="loc", panel=function(x,y,groups,arg1,arg2,arg3,...) { panel.superpose(x,y,groups,...) ?tiq<-rep("",times=length(x)) ?tiq[groups==arg2]<-as.character(arg1[groups==arg2,arg3]) ?tiq<-as.character(?tiq) panel.text(x,y,labels=?tiq,pos=1...
2015 May 09
4
[LLVMdev] [LSR] hoisting loop invariants in reverse order
...c); // {a*b*c, +, b*c} bar((pixel_idx + 1) * c); // {(a*b+1)*c, +, b*c} bar((pixel_idx + 2) * c); // {(a*b+2)*c, +, b*c} bar((pixel_idx + 3) * c); // {(a*b+3)*c, +, b*c} } } and LSR produced void foo(float *input, int a, int b, int c, int n) { * int arg3 = (a * b + 3) * c;* * int arg2 = (a * b + 2) * c;* * int arg1 = (a * b + 1) * c;* * int arg0 = a * b * c;* for (int node_x = 0; node_x < n; ++node_x) { bar(arg0); bar(arg1); bar(arg2); bar(arg3); arg0 += b * c; arg1 += b * c; arg2 += b * c; arg3 += b * c; } } (with obvious redundant opera...
2009 Jul 24
9
getting extra characters with printf(copyin(a, b))
...econd time through, I get far more than 5 characters. If I stop and restart the DTrace script, I get good output the first time. This is on OpenSolaris 2009.06. This is quite easy to reproduce. The script is the following, where arg1 is not a string but a pointer to the key from the command and arg2 is the length of that key. memcached*::command-get / (signed int) arg3 != -1 / { printf("get %s, FOUND KEY\n", stringof(copyin(arg1, arg2))); } memcached*::command-get / (signed int) arg3 == -1 / { printf("get %s, NOT FOUND\n", stringof(copyin(arg1, arg2))); } memcache...
2014 Aug 07
3
[LLVMdev] MCJIT generates MOVAPS on unaligned address
...l alignment (float*). This x86 instruction requires the memory address to be 16 byte aligned which 88 plus something aligned to 4 byte isn't. Here the according IR code which was produced from the SLP vectorizer: define void @func(float* noalias %arg0, float* noalias %arg1, float* noalias %arg2) { entrypoint: ... %104 = getelementptr float* %arg0, i32 22 ... %204 = bitcast float* %104 to <4 x float>* store <4 x float> %198, <4 x float>* %204 This in itself not wrong. However, shouldn't the lowering pass recognize the wrong alignment? I am using LLVM 3.4.2...
2023 Nov 14
1
[PATCH v3 1/2] Permit %L and %l percent escapes in ssh Include
...-1030,7 +1030,8 @@ process_config_line_depth(Options *options, struct passwd *pw, const char *host, const char *original_host, char *line, const char *filename, int linenum, int *activep, int flags, int *want_final_pass, int depth) { - char *str, **charptr, *endofnumber, *keyword, *arg, *arg2, *p; + char *str, **charptr, *endofnumber, *keyword, *arg, *arg2, *arg_pre, *p; + char thishost[NI_MAXHOST], shorthost[NI_MAXHOST]; char **cpptr, ***cppptr, fwdarg[256]; u_int i, *uintptr, uvalue, max_entries = 0; int r, oactive, negated, opcode, *intptr, value, value2, cmdline = 0; @@ -1951,...
2023 Dec 20
2
[PATCH RESEND 0/2] Permit %L and %l percent escapes in Include
Using these escapes, the include directive can be crafted to include differing, host-specific configuration. Ronan Pigott (2): Permit %L and %l percent escapes in ssh Include Permit %L and %l percent escapes in sshd Include readconf.c | 16 +++++++++++++--- servconf.c | 17 ++++++++++++++--- 2 files changed, 27 insertions(+), 6 deletions(-) base-commit:
2017 Jun 06
3
Force argument to have quotes
...le of the issue with comments. ### This is a sample structure of the configuration file scoreConfig <- structure(list(Function = c("myFunction1", "myFunction1", "myFunction1", "myFunction2", "myFunction2"), Argument = c("arg1", "arg2", "arg3", "arg1", "arg2"), Value = c("5", "10", "Hello", "5", "10"), Class = c("numeric", "numeric", "character", "numeric", "numeric")), .Names = c("Functio...
2006 May 25
13
functions calling functions
I think I may be missing a fundamental concept I hope someone can help me with. I have functions that won''t call other functions. Particularly after an Ajax request. In the following object the ajax request onComplete calls the ajaxFetched function successfully. ajaxFetched tries to call function2 but function2 does not execute. Any ideas or workarounds? thanks Kevin o =
2014 Aug 07
3
[LLVMdev] How to broaden the SLP vectorizer's search
On 7 August 2014 17:33, Chad Rosier <mcrosier at codeaurora.org> wrote: > You might consider filing a bug (llvm.org/bugs) requesting a flag, but I > don't know if the code owners want to expose such a flag. I'm not sure that's a good idea as a raw access to that limit, as there are no guarantees that it'll stay the same. But maybe a flag turning some
2005 Aug 12
3
Funny output from write syscall
I have a clause that look like this: syscall::write:entry /execname == "ntpd" && self->recspec/ { speculate(self->recspec); printf(" fd=%d buf=%d\n%s",arg0,arg2, stringof(copyin(arg1,arg2-1))); } The ntpd program always write a \n trminated string in this context, so I used the "arg2-1" to drop the \n. This works fine about 90% of the time, but every once in a while, the printf prints out more data than arg2 specified. It gets...
2019 Feb 20
3
branching in extensions.conf?
Is there any less cumbersome way of doing conditionalized/branching in extensions.conf other than something like: exten => s,n,GotoIf($["${SIP}" = "PJSIP" ]?pjsip) exten => s,n,Dial(${ARG2},20,TtWw) exten => s,n,Goto(afterdial) exten => s,n(pjsip),Dial(${PJSIP_DIAL_CONTACTS(${STRREPLACE(ARG2,"PJSIP/","")})},20,TtWw) exten => s,n(afterdial),Goto(s-${DIALSTATUS},1) Granted the particular above example could probably be better written to simply modify $ARG2...
2011 Jun 01
1
Function to save plots
...es: method1, method2, goldstandard. Right now, for each plot I have to run: png('test1_method1.png') plot(performance(prediction(test1$method1, test1$goldstandard), "tpr", "fpr")) dev.off() Here is the function I tried to create but I failed: roc <- function(arg1, arg2){ png(paste(arg1, arg2, "png", sep="_")) plot(performance(prediction(arg1$arg2, arg1$goldstandard), "tpr", "fpr")) dev.off() } I wanted to pass the test name as arg1, and the method name as arg2. Here are my problems: 1) arg1$arg2 causes an error mess...
2023 Nov 14
0
[PATCH v3 2/2] Permit %L and %l percent escapes in sshd Include
...af8f2df15a2 100644 --- a/servconf.c +++ b/servconf.c @@ -1297,7 +1297,8 @@ process_server_config_line_depth(ServerOptions *options, char *line, struct connection_info *connectinfo, int *inc_flags, int depth, struct include_list *includes) { - char *str, ***chararrayptr, **charptr, *arg, *arg2, *p, *keyword; + char *str, ***chararrayptr, **charptr, *arg, *arg2, *arg_pre, *p, *keyword; + char thishost[NI_MAXHOST], shorthost[NI_MAXHOST]; int cmdline = 0, *intptr, value, value2, n, port, oactive, r, found; int ca_only = 0; SyslogFacility *log_facility_ptr; @@ -2130,6 +2131,12 @@ proce...
2006 Jun 20
1
Determine the data type of a function to an argument
...ion? For example, given the following: calculate <- function(...) { args <- list(...) argName = names(args) if (arg1 == character) cat("arg1 is a character") else cat("arg1 is numeric") if (arg2 == character) cat("arg2 is a character") else cat("arg2 is a numeric") } value = calculate(arg1='222' arg2=333) Programatically, how can I determine if arg1 is a character and arg2 is numeric? Many Thanks: Alex
2010 Feb 10
1
How to solve: Error in * unused argument(s) ?
...use functions bellow (see example code bellow), but instead I get the following error message: *Error in foo2(...) : unused argument(s) (arg3 = 3)* #--------------------- # example code #--------------------- foo1 <- function(arg1,...) { print(arg1) foo2(...) foo3(...) } foo2 <- function(arg2) { print(arg2) } foo3 <- function(arg3) { print(arg3) } foo1(arg1 = 1, arg2 = 2, arg3 =3) #--------------------- I tried looking through the R Language Definition, but couldn't find something that helped me understand the issue (way it should happen, and what is a smart strategy to av...
2007 Apr 30
1
Simple dial plan inquiry
Hi all, This is a simple concept, however I'm not entirely comfortable with available applications and functions available to me to make this happen. I have a simple dialout macro such as the following: [macro-dialout]; arg1 = callerid number; arg2 = phone numberl exten => s,1,Set(CALLERID(number)=${ARG1}) exten => s,2,GotoIf($[${LEN(${ARG2})} = 10]?3:4) exten => s,3,Set(ARG2=1${ARG2}) exten => s,4,Dial(${TRUNK}/${ARG2},,m) exten => s,5,Congestion()exten => s,105,Busy() This macro overrides one SIP endpoint which I use for...