search for: returnvalue

Displaying 20 results from an estimated 44 matches for "returnvalue".

2015 May 22
1
returnValue()
In R devel rev.66393 (2014-08-15) it was possible to do this: trace(optim, exit = quote(str(returnValue()))) but returnValue() does not seem to be available any more. The above was useful to get the output of a function when it was called deep within another function that I have no control over. Has this been replaced by some other equivalent function? P.S. This demonstrates that it no longer wor...
2011 Jun 14
2
[LLVMdev] Avoiding Constant Folding
Hi All, My codegen is trying to generate some thing like this: entry: .... %34 = icmp ne i32 %33, 15 br i1 %34, label %then, label %else then: ; preds = %entry %returnValue = or i1 true, false .... br label %ifmerge else: ; preds = %entry br label %ifmerge ifmerge: ; preds = %else, %then ... %41 = icmp ne i32 %40, 15 br i1 %41, label %then1, label %else3 then1:...
2011 Jun 14
2
[LLVMdev] Avoiding Constant Folding
Hi, >> entry: >> .... >> %34 = icmp ne i32 %33, 15 >> br i1 %34, label %then, label %else >> >> then: ; preds = %entry >> %returnValue = or i1 true, false >> .... >> br label %ifmerge >> >> else: ; preds = %entry >> br label %ifmerge >> >> ifmerge: ; preds = %else, %then >> ... >> %41 = i...
2011 Jun 14
0
[LLVMdev] Avoiding Constant Folding
...cuongbk at gmail.com> wrote: > > Hi All, > > My codegen is trying to generate some thing like this: > > entry: > .... >  %34 = icmp ne i32 %33, 15 >  br i1 %34, label %then, label %else > > then:                                             ; preds = %entry >  %returnValue = or i1 true, false > .... >  br label %ifmerge > > else:                                             ; preds = %entry >  br label %ifmerge > > ifmerge:                                          ; preds = %else, %then > ... >  %41 = icmp ne i32 %40, 15 >  br i1 %41, lab...
2019 Feb 12
2
[RFC] Potential extension to asm statement functionality
...ked until after the compiler's optimization passes have run, but the following case demonstrates that a label defined with an asm statement is still susceptible to being duplicated: #include <stdint.h> uint32_t f(uint32_t x); uint32_t g(uint32_t x); uint32_t f(uint32_t x) { uint32_t returnValue = g(x); if (returnValue > 0U) { returnValue = 0x40000000; } else { returnValue = 0x80000000; } __asm __volatile__ ("\t.global my_hook_fcn\nmy_hook_fcn:\n"); return returnValue; } uint32_t g(uint32_t x) { return x >> 1U; } If the abov...
2014 Jul 29
2
[LLVMdev] to lower "write to argument pointer"
...at @llvm.write.arg(flaot %src, float* %dst) “ I am lowering it with INTRINSIC_W_CHAIN, so the return value and the value to write to dst are generated with some operations using src: " // it is the frame index node corresponding to input pointer SDvalue frindex = Op.getoperand(3); … SDValue returnValue = DAG.getNode(myNode1, DL, VT….); SDValue dstValue = DAG.getNode(myNode2, DL, VT….); // to save the value to dst pointer, I think I need some call like SDValue dstOut = DAG.getStore(chain, DL, dstValue, FrameIndex, MachinePointerInfo(), false, false, 0); “ I have two questions here: (1) shou...
2019 Feb 12
3
[RFC] Potential extension to asm statement functionality
...ked until after the compiler's optimization passes have run, but the following case demonstrates that a label defined with an asm statement is still susceptible to being duplicated: #include <stdint.h> uint32_t f(uint32_t x); uint32_t g(uint32_t x); uint32_t f(uint32_t x) { uint32_t returnValue = g(x); if (returnValue > 0U) { returnValue = 0x40000000; } else { returnValue = 0x80000000; } __asm __volatile__ ("\t.global my_hook_fcn\nmy_hook_fcn:\n"); return returnValue; } uint32_t g(uint32_t x) { return x >> 1U; } If the abov...
2008 Mar 17
2
NoMethodError (...occurred while evaluating nil.split)
...ected an instance of Array. The error occurred while evaluating nil.split The error is raised on function call line of the ''.html.erb'' file. The function is present in the relevant ''helper.rb'' file and contains the following: [code] def splitBonusUnit(data) @returnValue = @data.split(/ /) return @returnValue end [/code] The ''data'' value passed into the function is confirmed to be "2 3"; when the code @data.split(/ /) is entered into the Ruby shell it works and expected and ["2", "3"] is returned. Why is this not...
2011 Jun 14
0
[LLVMdev] Avoiding Constant Folding
...regards, --Cuong Duncan Sands wrote: > > Hi, > >>> entry: >>> .... >>> %34 = icmp ne i32 %33, 15 >>> br i1 %34, label %then, label %else >>> >>> then: ; preds = %entry >>> %returnValue = or i1 true, false >>> .... >>> br label %ifmerge >>> >>> else: ; preds = %entry >>> br label %ifmerge >>> >>> ifmerge: ; preds = %else, %then &gt...
2019 Feb 14
3
[RFC] Potential extension to asm statement functionality
...ked until after the compiler's optimization passes have run, but the following case demonstrates that a label defined with an asm statement is still susceptible to being duplicated: #include <stdint.h> uint32_t f(uint32_t x); uint32_t g(uint32_t x); uint32_t f(uint32_t x) { uint32_t returnValue = g(x); if (returnValue > 0U) { returnValue = 0x40000000; } else { returnValue = 0x80000000; } __asm __volatile__ ("\t.global my_hook_fcn\nmy_hook_fcn:\n"); return returnValue; } uint32_t g(uint32_t x) { return x >> 1U; } If the abov...
2006 Apr 10
0
Proposal for Try.allThese()
...ations where you have a lot of if(object) { /* do stuff with object */ } statements in a row. The return value wasn''t important to me at the time. so I just chucked it into an array. Perhaps someone could suggest something better to return? So here it is: Try.allThese = function(){ var returnValue = []; for (var i = 0; i < arguments.length; i++) { var lambda = arguments[i]; try { returnValue.push(lambda()); } catch (e) { returnValue.push(false); } } return returnValue; }; -- Andrew
2017 May 09
3
R-3.3.3/R-3.4.0 change in sys.call(sys.parent())
Some formula methods for S3 generic functions use the idiom returnValue$call <- sys.call(sys.parent()) to show how to recreate the returned object or to use as a label on a plot. It is often followed by returnValue$call[[1]] <- quote(myName) E.g., I see it in packages "latticeExtra" and "leaps", and I suspect it used in "lattice&quo...
2011 Sep 22
2
[LLVMdev] Need help in converting int to double
...//rhs = mBuilder.CreateLoad(rhs); > > lhs = mBuilder.CreateShl(lhs, rhs); > //lhs = mBuilder.CreatePointerCast(lhs, > PointerType::get(mBuilder.getDoubleTy(),0)); > lhs = convertIntToDouble(lhs); > typelhs = getValueType(lhs); > > > > llvm::Value* returnValue = mBuilder.CreateAlloca(PointerType::get( > mModule->getTypeByName("Value"), 0)); > > llvm::Value* valueStructSize = getValueStructSize(); > llvm::Value* memory = insertCallToMalloc(valueStructSize); > > memory = mBuilder.CreatePointerCast(memo...
2011 Sep 22
0
[LLVMdev] Need help in converting int to double
...uot; //lhs = mBuilder.CreateLoad(lhs); //rhs = mBuilder.CreateLoad(rhs); lhs = mBuilder.CreateShl(lhs, rhs); //lhs = mBuilder.CreatePointerCast(lhs, PointerType::get(mBuilder.getDoubleTy(),0)); lhs = convertIntToDouble(lhs); typelhs = getValueType(lhs); llvm::Value* returnValue = mBuilder.CreateAlloca(PointerType::get( mModule->getTypeByName("Value"), 0)); llvm::Value* valueStructSize = getValueStructSize(); llvm::Value* memory = insertCallToMalloc(valueStructSize); memory = mBuilder.CreatePointerCast(memory, PointerType::get(...
2011 Sep 22
3
[LLVMdev] Need help in converting int to double
Hi, I'm pursuing M.Tech course. As a part of the project work i'm using LLVM as back-end. My project area is "Enhancing the performance of V8 javascript engine using LLVM as a back-end". Now i'm writing code for shift left(SHL) operator. I had my own Value Structure .. it's like this Struct Value { void *val ; char type; } The "char type" holds
2011 Sep 22
1
[LLVMdev] Need help in converting int to double
...//rhs = mBuilder.CreateLoad(rhs); > > lhs = mBuilder.CreateShl(lhs, rhs); > //lhs = mBuilder.CreatePointerCast(lhs, > PointerType::get(mBuilder.getDoubleTy(),0)); > lhs = convertIntToDouble(lhs); > typelhs = getValueType(lhs); > > > > llvm::Value* returnValue = mBuilder.CreateAlloca(PointerType::get( > mModule->getTypeByName("Value"), 0)); > > llvm::Value* valueStructSize = getValueStructSize(); > llvm::Value* memory = insertCallToMalloc(valueStructSize); > > memory = mBuilder.CreatePointerCast(memo...
2014 Mar 04
0
Anybody have issues joining machines to a S4 AD domain using VBS
...ork = CreateObject("WScript.Network") strComputer = objNetwork.ComputerName Set objComputer = GetObject("winmgmts:{impersonationLevel=Impersonate}!\\" & _ strComputer & "\root\cimv2:Win32_ComputerSystem.Name='" & _ strComputer & "'") ReturnValue = objComputer.JoinDomainOrWorkGroup(strDomain, _ strPassword, strDomain & "\" & strUser, NULL, _ JOIN_DOMAIN + ACCT_CREATE) Select Case ReturnValue Case 0 Status = "Success" Case 2 Status = "Missing OU" Case 5 Status = "Access denied" Case 53 Stat...
2011 Aug 18
3
Error message: object of type 'closure' is not subsettable
Dear R-users I need to calibrate kappa, rho, eta, theta, v0 in the following code, see below. However when I run it, I get: y <- function(kappahat, rhohat, etahat, thetahat, v0hat) {sum(difference(k, t, S0, X, r, implvol, q, kappahat, rhohat, etahat, thetahat, v0hat)^2)} > nlminb(start=list(kappa, rho, eta, theta, v0), objective = y, lower =lb, > upper =ub) Error in dots[[1L]][[1L]] :
2014 May 06
1
WG: on High Load using IMAPSYNC : Panic: file ostream-lzma.c: line 147: unreached. Dovecot 2.2.12 with zlib/XZ compression
...the same problem on the mailinglist, using dsync. That user switched to bz2 compression what worked for him. the answer was : > are you on latest patchlevel ? > there are some dsync fixes since 2.2.12 but it is not a problem of dsync. when looking at the code, we get here an unexpected returnvalue when flushing. I propose it would be good practice to write some logging in the default switch cases, to see the unexpected returnvalues in the errorlog. something like : ostream-lzma.c : -- Line 147 : i_unreached(); ++ Line 147 : i_fatal("unexpected lzma errorcode when flushing : %...
2008 Mar 21
4
Prototype.js event.stop(event) FF2 not working
stop: function(event) { if (event.preventDefault) { event.stopPropagation(); event.preventDefault(); } else { event.returnValue = false; event.cancelBubble = true; } } /* br original stop: function(event) { Event.extend(event); event.preventDefault(); event.stopPropagation(); event.stopped = true; } */ }; --~--~---------~--~----~------------~-------~--~----~ You received this messag...