search for: getattributes

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

2009 Nov 30
3
Specifying sub-filters
Hello everyone. I have been looking at the filtering on Mapstraction and realized that it does not allow for sub-filters. I have modified the applyFilter function to accommodate sub filters. for example if I wanted to filter all houses that are blue and green and also all warehouses irrespective of color now I can use map.addFilter(''Type'', ''eq'', { pFilter:
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::getCallSite...
2005 Jul 28
2
autocomplete: how to access a child element of <li>
hi. i promise this will be my last question for the day. still playing with autocompleter, everything is working ok, but i''m having difficulties accessing just the href attribute of <a> element, which is a child of <li> in the autocomplete response, i.e: <div class ="autocomplete"> <ul> <li><a href
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 callOp...
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::printExternal...
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` instruction...
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::hasFnAtt...
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 for...
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 second...
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 c...
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 (??)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I am rather new to puppet and set up a puppet server and some clients. during "puppetd --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
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 = *OldFI...
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