search for: paramlist

Displaying 11 results from an estimated 11 matches for "paramlist".

2004 Mar 02
3
error() and C++ destructors
Hi, I am writing C++ functions that are to be called via .Call() interface. I'd been using error() (from R.h) to return to R if there is an error, but then I realized that this might be not safe as supposedly error() doesn't throw an exception and therefore some destructors do not get called and some memory may leak. Here is a simple example extern "C" void foo() { string
2014 Jun 12
1
do.call Error for Function Not Present When Manually Called
...ayes gives an error when called by do.call, although it doesn't give any error if I call it manually. Browse[1]> trainParams at classifier function (x, ...) UseMethod("naiveBayes") <environment: namespace:e1071> Browse[1]> trained <- do.call(trainParams at classifier, paramList) Error in names(dimnames(tables[[i]])) <- c(Yname, colnames(x)[i]) : 'names' attribute [4] must be the same length as the vector [2] Browse[1]> summary(paramList) Length Class Mode 925 -none- numeric 37 factor numeric verbose 1 -none- logical...
2008 Mar 25
2
responseXML not working on XML file
...(url){ new Ajax.Request(url, { method: ''post'', parameters:''resultSet=simcall'', onSuccess:parseResponse, onFailure:function(xhrResponse){alert(''nope'');} }); } var parseResponse= function(xhrResponse){ var response=xhrResponse.responseXML; var paramList= response.getElementByTagName(''lastname''); alert(paramList[0].firstChild.nodeValue); } <?xml version="1.0" encoding="iso-8859-1"?> <employees> <employee id="123456"> <lastname>Smith</lastname> <firstname>Edw...
2016 Sep 12
3
RFC: FileCheck Enhancements
Hi, I have question again about modifiers for pattern parameters. Vedant suggested such way. > CHECK-DEFINE-PATTERN: one_or_more(x): x {{+}} But I have some doubts. This should be equal to x+. This approach differs from standard one. In FileCheck I can write CHECK: {{x|y}}{{something}} This line will be equal to regex (x|y)(something). But if I use suggested approach and write same
2005 Apr 07
0
[LLVMdev] arguments to standard library functions
...n(), be = fi->end(); bi != be ; bi++ ){ if(isa<CallInst>(*bi)){ const CallInst* CI = cast<CallInst>(bi); const Function* F = CI->getCalledFunction() ; if( F->isExternal() ){ std::vector<Value*> paramList; Constant *fname = ConstantArray::get(F->getName()); Constant *GEP = ConstantExpr::getGetElementPtr(fname, std::vector<Constant*>(2,Constant::getNullValue(Type::LongTy))); paramList.push_back( GEP); paramList.push_back( C...
2005 Mar 21
3
[LLVMdev] arguments to standard library functions
HI , I understand that the standard C library functions are executed using the native library of the host machine. ( for example when we execute a bytecode to extract the profile info ) Is it possible to extract for each standard library function that is executed , the arguments that the function is called with. For example if printf ("%d", some_int ) when called during runtime
2016 Aug 31
6
RFC: FileCheck Enhancements
...; CHECK: [[<Name>(<Argument>, ...)?]] > > Fleshing this out some more, here is my candidate grammar (see the end of this > email for the current grammar): > > ACTION <- CHECK ':' MATCH '\n' ; > ACTION <- CHECK-DEFINE-PATTERN ':' IDENT PARAMLIST? ':' PATTERN_ELEMENT* '\n' ; > PARAMLIST <- '(' IDENT (',' IDENT)* ')' ; > PATTERN_ELEMENT <- IDENT ; > PATTERN_ELEMENT <- REGEX ; > MATCH <- ; > MATCH <- TEXT MATCH ; > MATCH <- REGEX MATCH ; > MATCH <- VAR MA...
2016 Sep 01
2
RFC: FileCheck Enhancements
...how normal regex-based capturing works. Note that subsequent uses of "MY_CAR" should work as expected (i.e, you can do '[[MY_CAR]]' later in the test). Revised grammar: ACTION <- CHECK ':' MATCH '\n' ; ACTION <- CHECK-DEFINE-PATTERN ':' IDENT PARAMLIST? ':' PATTERN_ELEMENT* '\n' ; PARAMLIST <- '(' IDENT (',' IDENT)* ')' ; PATTERN_ELEMENT <- IDENT | REGEX; MATCH <- (TEXT | REGEX | PATTERN_USE | VAR)* ; REGEX <- '{{' POSIX_REGEX '}}' ; PATTERN_USE <- '[['...
2016 Sep 01
2
RFC: FileCheck Enhancements
...how normal regex-based capturing works. Note that subsequent uses of "MY_CAR" should work as expected (i.e, you can do '[[MY_CAR]]' later in the test). Revised grammar: ACTION <- CHECK ':' MATCH '\n' ; ACTION <- CHECK-DEFINE-PATTERN ':' IDENT PARAMLIST? ':' PATTERN_ELEMENT* '\n' ; PARAMLIST <- '(' IDENT (',' IDENT)* ')' ; PATTERN_ELEMENT <- IDENT | REGEX; MATCH <- (TEXT | REGEX | PATTERN_USE | VAR)* ; REGEX <- '{{' POSIX_REGEX '}}' ; PATTERN_USE <- '[['...
2016 Sep 05
2
RFC: FileCheck Enhancements
...works. > > Note that subsequent uses of "MY_CAR" should work as expected (i.e, you can do '[[MY_CAR]]' later in the test). > > Revised grammar: > > ACTION <- CHECK ':' MATCH '\n' ; > ACTION <- CHECK-DEFINE-PATTERN ':' IDENT PARAMLIST? ':' PATTERN_ELEMENT* '\n' ; > PARAMLIST <- '(' IDENT (',' IDENT)* ')' ; > PATTERN_ELEMENT <- IDENT | REGEX; > MATCH <- (TEXT | REGEX | PATTERN_USE | VAR)* ; > REGEX <- '{{' POSIX_REGEX '}}' ; > PATTERN_USE...
2016 Aug 24
9
RFC: FileCheck Enhancements
Hi all, Some discussions and comments were made in reviews. Much time has already passed since last comment and uploading changed patches. I made small summary report about features here, because there are some doubts about syntax of some features and changes in patches and it'll be great to know more opinions. 1. FileCheck Enhancement - CHECK-WORD (https://reviews.llvm.org/D22353) I replace