search for: getvalue

Displaying 20 results from an estimated 349 matches for "getvalue".

2016 Feb 07
3
Assignment in environment
Dear all, I have a function "fn" with its own environment, i.e. env <- environment(fn) and env is not .GlobalEnv. And another function getValue <- function(x) environment(x)$mylist which returns the list object "mylist" which is in "env". If I want to modify "mylist", I could write 'getValue<-' <- function(x, value) { environment(x)$mylist <- value} which gives not the desired result, e...
2008 Aug 26
8
[Bug 17307] New: sfwdec-mozilla plugin stops playing sounds
...zilla plugins stops playing sound after ~10 seconds. I'm using pulseaudio and my ~/.asoundrc looks like this: pcm.!default { type pulse } ctl.!default { type pulse } The output my browser gives me is this: $ epiphany -p http://gnomecoder.wordpress.com/2008/08/26/luz-at-play/ ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1 (1) ** Message: GetValue variable 2 (2) ** Message: GetValue variable 1...
2008 Feb 09
4
[LLVMdev] tblgen and sign-extended constants too large for type
...============================= --- utils/TableGen/CodeGenDAGPatterns.cpp (revision 8028) +++ utils/TableGen/CodeGenDAGPatterns.cpp (working copy) @@ -685,10 +685,17 @@ // Make sure that the value is representable for this type. if (Size < 32) { int Val = (II->getValue() << (32-Size)) >> (32-Size); - if (Val != II->getValue()) - TP.error("Sign-extended integer value '" + itostr(II->getValue())+ - "' is out of range for type '" + - getEnumName(getT...
2010 Jan 05
0
[LLVMdev] [llvm-commits] [llvm] r92458 - in /llvm/trunk: lib/Target/README.txt lib/Transforms/Scalar/InstructionCombining.cpp test/Transforms/InstCombine/or.ll
...return ReplaceInstUsesWith(I, B); >> } >> } >> - V1 = 0; V2 = 0; V3 = 0; >> + >> + // ((V | N) & C1) | (V & C2) --> (V|N) & (C1|C2) >> + // iff (C1&C2) == 0 and (N&~C1) == 0 >> + if ((C1->getValue() & C2->getValue()) == 0) { >> + if (match(A, m_Or(m_Value(V1), m_Value(V2))) && >> + ((V1 == B && MaskedValueIsZero(V2, ~C1->getValue())) || // (V|N) >> + (V2 == B && MaskedValueIsZero(V1, ~C1->getValue())))) /...
2013 Oct 31
1
an rpy2, R cgi type question
...ackages import SignatureTranslatedAnonymousPackage as STAP with open("bz2.R","r") as f: string=''.join(f.readlines()) etest = STAP(string,"etest") etest.etest(500) # Create instance of FieldStorage form = cgi.FieldStorage() # Get data from fields if form.getvalue('subject'): subject = form.getvalue('subject') else: subject = "Not set" if form.getvalue('func1'): func1 = form.getvalue('func1') else: func1 = "Not entered" print "Content-type:text/html\r\n\r\n" print "<html&...
2009 Apr 13
1
[LLVMdev] Porting LLVM backend is no fun yet
Dan Gohman wrote: > There certainly are wishlist items for TableGen and TableGen-based > instruction descriptions, though I don't know of an official list. > Offhand, > a few things that come to mind are the ability to handle nodes with > multiple results, Is there an official workaround, BTW? - Volodya
2008 Sep 12
3
[LLVMdev] Difficulty with reusing DAG nodes.
...ToISelQueue(Op1); AddToISelQueue(Op2); unsigned Op; Op = (Opcode == ISD::UMUL_LOHI ? Nios2::MULxu : Nios2::MULx); SDNode *Hi = CurDAG->getTargetNode(Op, MVT::Flag, Op1, Op2); SDNode *Lo = CurDAG->getTargetNode(Nios2::MUL, MVT::Flag, Op1, Op2); if (!N.getValue(0).use_empty()) ReplaceUses(N.getValue(0), SDValue(Lo,0)); if (!N.getValue(1).use_empty()) ReplaceUses(N.getValue(1), SDValue(Hi,0)); return NULL; } The code generator complains: nios2-elf-ecc: /home/rich/llvm-trunk-new/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp...
2011 Dec 20
4
[LLVMdev] Proposal for -filetype=obj full big endian support
...he effort was started, but never completed. The proposal is to extend the MCDataFragment class to include a container of offset/size that one can traverse generating each element in the correct endianess: // Pseudo code for (iterator it = begin(), ie = end(); it != ie; ++it) { switch (it.getValueSize()) { default: assert(0 && "Invalid size!"); case 1: OW->Write8 (uint8_t (it.getValue())); break; case 2: OW->Write16(uint16_t(it.getValue())); break; case 4: OW->Write32(uint32_t(it.getValue())); break; case 8: OW->Write64(uint...
2009 Jan 23
4
getValue() in a Controller problem, help please.
Hello there, I''m trying to do something like: render :update do |page| page[:client_list].replace_html render(:partial => ''client_list'', :object => @clients_list) name = page[:name].getValue(); end but I''m not getting the value, or somehow use $("name").getValue() inside of the controller. How can I do that? tks, David Sousa -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are...
2011 Nov 19
0
[LLVMdev] How to make Polly ignore some non-affine memory accesses
...-236,7 +241,9 @@ > BasePointer = dyn_cast<SCEVUnknown>(SE->getPointerBase(AccessFunction)); > > if (!BasePointer) > + { > INVALID(AffFunc, "No base pointer"); > + } This change is unneeded and unrelated. > > BaseValue = BasePointer->getValue(); > > @@ -245,8 +252,9 @@ > > AccessFunction = SE->getMinusSCEV(AccessFunction, BasePointer); > > - if (!isAffineExpr(&Context.CurRegion, AccessFunction, *SE, BaseValue)) > + if (!isAffineExpr(&Context.CurRegion, AccessFunction, *SE, BaseValue)&& !All...
2011 Jul 13
2
[LLVMdev] overflow check
...ant> (C) && isa<Constant>(V)) { ConstantInt *CV = dyn_cast<ConstantInt>(V); ConstantInt *CB = dyn_cast<ConstantInt>(B); ConstantInt *CC = dyn_cast<ConstantInt>(C); if (CV && CB && CC) { const APInt &VVal = CV->getValue(); const APInt &BVal = CB->getValue(); const APInt &CVal = CC->getValue(); ****** But isn't APInt considered to represent unsigned integers ? Is there another way of doing this ? Thanks in advance, Pranav
2016 Feb 07
1
Assignment in environment
> On 07 Feb 2016, at 14:46 , Duncan Murdoch <murdoch.duncan at gmail.com> wrot8[e: > [snippage] > > but in fact, this doesn't work: > > getValue(fn)[[1]] <- 3 > Error in getValue(fn)[[1]] <- 3 : could not find function "getValue" > > I suspect this is a parser problem. Umm, no... The canonical semantics are that foo(x)[[....]] <- bar is internally converted to *tmp* <- foo(x) *tmp*[[....]] <- bar x &...
2005 Aug 19
0
Form.Element.getValue for checkboxes and radios?
I notice that Form.Element.getValue() takes a single element or id and returns the element name and value. How does one handle getting the values of checkboxes and/or radios which share the same control name, save getting them one at a time? <fieldset> <legend>Medical History</legend> <input name=&qu...
2005 May 03
2
[LLVMdev] VC++ build broken
...tant *Div(const ConstantClass *V1, const ConstantClass *V2) { if (V2->isExactlyValue(0.0)) return ConstantClass::get(*Ty, INFINITY); if (V2->isExactlyValue(-0.0)) return ConstantClass::get(*Ty, -INFINITY); if (V2->isNullValue()) return 0; BuiltinType R = (BuiltinType)V1->getValue() / (BuiltinType)V2->getValue(); return ConstantClass::get(*Ty, R); } does not compile with VC++. The symbol INFINITY is undefined, nor is there an equivalent I can find.
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
...> --- utils/TableGen/CodeGenDAGPatterns.cpp (revision 8028) > +++ utils/TableGen/CodeGenDAGPatterns.cpp (working copy) > @@ -685,10 +685,17 @@ > // Make sure that the value is representable for this type. > if (Size < 32) { > int Val = (II->getValue() << (32-Size)) >> (32-Size); > - if (Val != II->getValue()) > - TP.error("Sign-extended integer value '" + > itostr(II->getValue())+ > - "' is out of range for type '" + > -...
2008 Feb 12
0
[LLVMdev] tblgen and sign-extended constants too large for type
...== > --- utils/TableGen/CodeGenDAGPatterns.cpp (revision 8028) > +++ utils/TableGen/CodeGenDAGPatterns.cpp (working copy) > @@ -685,10 +685,17 @@ > // Make sure that the value is representable for this type. > if (Size < 32) { > int Val = (II->getValue() << (32-Size)) >> (32-Size); > - if (Val != II->getValue()) > - TP.error("Sign-extended integer value '" + > itostr(II->getValue())+ > - "' is out of range for type '" + > -...
2011 Dec 20
2
[LLVMdev] Proposal for -filetype=obj full big endian support
...pleted. > > The proposal is to extend the MCDataFragment class to include a container > of offset/size that one can traverse generating each element in the correct > endianess: > > // Pseudo code > for (iterator it = begin(), ie = end(); it != ie; ++it) { > switch (it.getValueSize()) { > default: > assert(0 && "Invalid size!"); > case 1: OW->Write8 (uint8_t (it.getValue())); break; > case 2: OW->Write16(uint16_t(it.getValue())); break; > case 4: OW->Write32(uint32_t(it.getValue())); break; >...
2007 Mar 30
1
[LLVMdev] Cleanups in ROTL/ROTR DAG combiner code
...Gen/SelectionDAG/LegalizeDAG.cpp (.../branches/llvm-spu) (revision 2118) @@ -2683,10 +2683,24 @@ case ISD::ROTR: Tmp1 = LegalizeOp(Node->getOperand(0)); // LHS Tmp2 = LegalizeOp(Node->getOperand(1)); // RHS - - assert(TLI.isOperationLegal(Node->getOpcode(), Node->getValueType(0)) && - "Cannot handle this yet!"); Result = DAG.UpdateNodeOperands(Result, Tmp1, Tmp2); + switch (TLI.getOperationAction(Node->getOpcode(), Node->getValueType(0))) { + default: + assert(0 && "ROTL/ROTR legalize operation not suppo...
2011 Dec 20
0
[LLVMdev] Proposal for -filetype=obj full big endian support
...ed. > > The proposal is to extend the MCDataFragment class to include a container > of offset/size that one can traverse generating each element in the correct > endianess: > > // Pseudo code > for (iterator it = begin(), ie = end(); it != ie; ++it) { > switch (it.getValueSize()) { > default: > assert(0 && "Invalid size!"); > case 1: OW->Write8 (uint8_t (it.getValue())); break; > case 2: OW->Write16(uint16_t(it.getValue())); break; > case 4: OW->Write32(uint32_t(it.getValue())); break; >...
2018 Jan 24
2
[llvm] r322838 - [ADT] Split optional to only include copy mechanics and dtor for non-trivial types.
...t; } > > - const T *getPointer() const { > - assert(hasVal); > - return reinterpret_cast<const T *>(storage.buffer); > - } > T *getPointer() { > assert(hasVal); > return reinterpret_cast<T *>(storage.buffer); > } > - const T &getValue() const LLVM_LVALUE_FUNCTION { > + const T *getPointer() const { > assert(hasVal); > - return *getPointer(); > + return reinterpret_cast<const T *>(storage.buffer); > } > - T &getValue() LLVM_LVALUE_FUNCTION { > - assert(hasVal); > - return *g...