search for: getattribute

Displaying 20 results from an estimated 105 matches for "getattribute".

Did you mean: setattribute
2009 Nov 30
3
Specifying sub-filters
...se do contribute. This is the function as I have it right now Mapstraction.prototype.applyFilter = function(o, f) { var vis = true; switch (f[1]) { case ''ge'': if (typeof f[2] == ''object'') { if (o.getAttribute(f[0]) < f[2].pFilter) { vis = this.applyFilter(o, f[2].sFilter); } } else { if (o.getAttribute(f[0]) < f[2]) { vis = false; } } break;...
2009 Apr 16
2
[LLVMdev] Patch: MSIL backend global pointers initialization
...and then iterate over the arguments grabbing their types and construct > function type after that. > So what do you think about that: // CallSites have equal signatures bool MSILWriter::cmpCallSite(CallSite A, CallSite B) { return (getCallSiteFType(A)==getCallSiteFType(B) && A.getAttributes()==B.getAttributes()); } // Comparision for std::lower_bound used in MSILWriter::printExternals() bool MSILWriter::compareCallSite(CallSite A, CallSite B) { return getCallSiteFType(A)<getCallSiteFType(B); } // Constructs function type from given CallSite FunctionType* MSILWriter::getCallSit...
2005 Jul 28
2
autocomplete: how to access a child element of <li>
...e response, i.e: <div class ="autocomplete"> <ul> <li><a href ="overtherainbow.html">somewhere</a></li> </ul> </div> i thought i could do something like el = Event.findElement(event, ''LI''); href = el.firstChild.getAttribute(''href''); but that''s not it... if anybody can awake me from my dogmatic slumber, i will greatly appreciate it... all best, tench
2013 Aug 13
2
[LLVMdev] SimplifyLibCalls doesn't check TLI for LibFunc availability
...te-only mode, this could be just fabs(sqrt(x)). Value *Inf = ConstantFP::getInfinity(CI->getType()); Value *NegInf = ConstantFP::getInfinity(CI->getType(), true); Value *Sqrt = EmitUnaryFloatFnCall(Op1, "sqrt", B, Callee->getAttributes()); Value *FAbs = EmitUnaryFloatFnCall(Sqrt, "fabs", B, Callee->getAttributes()); Value *FCmp = B.CreateFCmpOEQ(Op1, NegInf); Value *Sel = B.CreateSelect(FCmp, Inf, FAbs); return Sel; } [...] } So, before the callO...
2009 Apr 16
0
[LLVMdev] Patch: MSIL backend global pointers initialization
Hi, Artur > // CallSites have equal signatures > bool MSILWriter::cmpCallSite(CallSite A, CallSite B) { >   return (getCallSiteFType(A)==getCallSiteFType(B) && >     A.getAttributes()==B.getAttributes()); > } As it is impossible to honour argument attributes in MSIL I don't see why you should compare attributes. You seems to have the same MSIL call signature for calls with different param attrs. > // Comparision for std::lower_bound used in MSILWriter::printExterna...
2015 Feb 12
3
[LLVMdev] [RFC] Storing default function attributes on the module
...attributes based solely on `CodeGenOptions`. They look like this in assembly: attributes default = { "no-frame-pointer-elim"="false" } Limitations =========== There are a few limitations with this approach (at least, with my reference implementation). - `Function::getAttributes()` only reflects the explicitly specified attributes, skipping those set as module defaults. - If an enum attribute is set as a default, there's no way for a function-attribute to override it. In practice, we could avoid the feature for enum attributes. - `CallSite` instructio...
2006 Jan 03
7
link_to an external url ?
Simple question. Is it possible to generate a link like <a href="http://www.google.com" target="_blank" >google</a> with the link_to function ? Thanks
2013 Aug 13
0
[LLVMdev] SimplifyLibCalls doesn't check TLI for LibFunc availability
...> Value *Inf = ConstantFP::getInfinity(CI->getType());**** > > Value *NegInf = ConstantFP::getInfinity(CI->getType(), true);**** > > Value *Sqrt = EmitUnaryFloatFnCall(Op1, "sqrt", B,**** > > Callee->getAttributes());**** > > Value *FAbs = EmitUnaryFloatFnCall(Sqrt, "fabs", B,**** > > Callee->getAttributes());**** > > Value *FCmp = B.CreateFCmpOEQ(Op1, NegInf);**** > > Value *Sel = B.CreateSelect(FCmp, Inf, FAbs)...
2015 Feb 24
2
[LLVMdev] [RFC] Storing default function attributes on the module
...g and defaults working? (Yes, there were testcases, but let's go with prose here. I found the testcases a bit hard to reason.) > Limitations > =========== > > There are a few limitations with this approach (at least, with my > reference implementation). > > - `Function::getAttributes()` only reflects the explicitly specified > attributes, skipping those set as module defaults. > Ick. Pretty severe limitation? I.e. how would it work to test general attributes on a function during code gen? > - If an enum attribute is set as a default, there's no way for a...
2007 Jun 09
23
hoverclass on droppable zone
Hi guys, I''m trying to make a drag''n''drop portal using sortable element. I would like to apply the "hoverclass" option only on the droppable zone instead of the column border. Any idea a about the solution? Thanks for any help, Sabri --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups
2015 Feb 13
2
[LLVMdev] [RFC] Storing default function attributes on the module
...They look like this in assembly: > > attributes default = { "no-frame-pointer-elim"="false" } > > Limitations > =========== > > There are a few limitations with this approach (at least, with my > reference implementation). > > - `Function::getAttributes()` only reflects the explicitly specified > attributes, skipping those set as module defaults. > - If an enum attribute is set as a default, there's no way for a > function-attribute to override it. In practice, we could avoid the > feature for enum attributes. >...
2015 Feb 24
2
[LLVMdev] [RFC] Storing default function attributes on the module
...intelligent about merged modules, and keep common options > in the default set. > > > > > Limitations > > =========== > > > > There are a few limitations with this approach (at least, with my > > reference implementation). > > > > - `Function::getAttributes()` only reflects the explicitly specified > > attributes, skipping those set as module defaults. > > > > Ick. Pretty severe limitation? I.e. how would it work to test general > attributes on a function during code gen? > > As long as everyone calls `Function::hasFnAt...
2015 Feb 13
3
[LLVMdev] [RFC] Storing default function attributes on the module
...ault = { "no-frame-pointer-elim"="false" } >>> >>> Limitations >>> =========== >>> >>> There are a few limitations with this approach (at least, with my >>> reference implementation). >>> >>> - `Function::getAttributes()` only reflects the explicitly specified >>> attributes, skipping those set as module defaults. >>> - If an enum attribute is set as a default, there's no way for a >>> function-attribute to override it. In practice, we could avoid the >>> feature fo...
2015 Jul 13
2
[LLVMdev] String attributes for function arguments and return values
...tion arguments and return values. We are going to use them in our tree to express higher level language types. Internally attributes framework have everything to do this, it’s even possible to generate string attributes via API right now: Function *function; function->setAttributes(function->getAttributes().addAttribute(context, i, "attribute")); But because it’s not supported in LLParser if you dump the function and try to parse it back it will fail. I have a patch to fix this problem: http://reviews.llvm.org/D11058 I consider this part as a bug fix for existing functionality. The secon...
2011 Sep 22
2
[LLVMdev] How to const char* Value for function argument
...;getNumArgOperands())); callargs.insert(callargs.begin(), callee->getName()); CallInst* newcall = CallInst::Create(launch, callargs, "", call); newcall->takeName(call); newcall->setCallingConv(call->getCallingConv()); newcall->setAttributes(call->getAttributes()); newcall->setDebugLoc(call->getDebugLoc()); call->replaceAllUsesWith(newcall); found = true; break; } The line callargs.insert(callargs.begin(), callee->getName()); is invalid: instead of StringRef I need to supply a Value* for the second argument. How...
2015 Feb 26
1
[LLVMdev] [RFC] Storing default function attributes on the module
...ep common options >> in the default set. >> >> > >> > Limitations >> > =========== >> > >> > There are a few limitations with this approach (at least, with my >> > reference implementation). >> > >> > - `Function::getAttributes()` only reflects the explicitly specified >> > attributes, skipping those set as module defaults. >> > >> > Ick. Pretty severe limitation? I.e. how would it work to test general >> attributes on a function during code gen? >> >> As long as everyone...
2009 Apr 15
0
[LLVMdev] Patch: MSIL backend global pointers initialization
Hi, Artur > The interesting for me part of the CallInst is printf(i8* noalias %0, i32 > 123). > I was diging in doxygen documentation but I really can't see the easy way to > compare those instructions and again finish with reinvented (but working) > wheel ;). Ah, sorry. I missed that you're doing variadic calls, not casting variadic function to definite ones. I think you
2007 Dec 06
1
error during template parsing (??)
...d --server=puppetmaster.example.com --verbose" I get the following error which says nothing to me: err: Could not retrieve configuration: Uncaught exception compile error (erb):241: syntax error, unexpected tIDENTIFIER, expecting $end HashMap map = (HashMap)session.getAttribute("map"); ^ in method puppetmaster.getconfig warning: Could not get config; using cached copy has anyone had this error? I use puppet in version 0.20.1-1 on debian sarge. Yours, Phillip -----BEGIN PGP SIGNATURE----- Version: GnuP...
2017 Jun 08
4
DICompileUnit duplication in LLVM 4.0.0?
...st { ModulePass::getAnalysisUsage(AU); } Function *FunctionDuplication::duplicate(Module &M, Function &Old, FunctionType *NewTy) const { Function *New = Function::Create(NewTy, Old.getLinkage(), "", &M); New->setAttributes(Old.getAttributes()); New->setCallingConv(Old.getCallingConv()); // Map old arguments to the new arguments. ValueToValueMapTy VMap; for (auto OldFI = Old.arg_begin(), OldFE = Old.arg_end(), NewFI = New->arg_begin(); OldFI != OldFE; ++OldFI, ++NewFI) { Argument &OldA = *OldF...
2010 Feb 08
1
[PATCH] Converter: Prefer detected arch of OS if it's available
....pm b/lib/Sys/VirtV2V/Converter.pm index ff4bc05..81abb02 100644 --- a/lib/Sys/VirtV2V/Converter.pm +++ b/lib/Sys/VirtV2V/Converter.pm @@ -224,9 +224,8 @@ sub _configure_os $os->appendChild($type); } - # Set type/@arch unless it's already set - my $arch_attr = $type->getAttributes()->getNamedItem('arch'); - $type->setAttribute('arch', $arch) unless(defined($arch_attr)); + # Set type/@arch based on the detected OS architecture + $type->setAttribute('arch', $arch) if (defined($arch)); } sub _configure_default_devices -- 1.6.6