Displaying 20 results from an estimated 48 matches for "numarg".
Did you mean:
numargs
2007 Jan 23
2
[LLVMdev] Semi-random crashes seemingly related to Arguments
...rashes depending on wether they had a name set or not
(all combinations of these two parameters), but those seem to be
quiescent at the time. Any ideas?
Thanks,
Marcel
------- my weird code.m ------------
-argumentAtIndex:(int)argIndex
{
Argument *ArgX;
if ( argIndex < numArgs ) {
int i;
ArgX = ((Function*)function)->arg_begin();
for (i=0 ;i<argIndex;i++) {
++ArgX;
}
[NSString stringWithFormat:@"get argument[%d/%d]=
%x",argIndex,numArgs,ArgX];...
2007 Jan 23
0
[LLVMdev] Semi-random crashes seemingly related to Arguments
...gt; (all combinations of these two parameters), but those seem to be
> quiescent at the time. Any ideas?
>
> Thanks,
>
> Marcel
>
>
> ------- my weird code.m ------------
> -argumentAtIndex:(int)argIndex
> {
> Argument *ArgX;
> if ( argIndex < numArgs ) {
> int i;
> ArgX = ((Function*)function)->arg_begin();
> for (i=0 ;i<argIndex;i++) {
> ++ArgX;
> }
>
> [NSString stringWithFormat:@"get argument[%d/%d]=
> %...
2010 Oct 25
0
[LLVMdev] Ocaml bindings for execution engines
...is the code from bindings/ocam/executionengine/executionengine_ocaml.c.
/* llvalue -> GenericValue.t array -> ExecutionEngine.t -> GenericValue.t */
CAMLprim value llvm_ee_run_function(LLVMValueRef F, value Args,
LLVMExecutionEngineRef EE) {
unsigned NumArgs;
LLVMGenericValueRef Result, *GVArgs;
unsigned I;
NumArgs = Wosize_val(Args);
GVArgs = (LLVMGenericValueRef*) malloc(NumArgs * sizeof(LLVMGenericValueRef));
for (I = 0; I != NumArgs; ++I)
GVArgs[I] = Genericvalue_val(Field(Args, I));
Result = LLVMRunFunction(EE, F, NumArgs, GVArg...
2007 Mar 07
3
[LLVMdev] use of CallInst()
...nstruction *InsertBefore = 0);
However, it seems as though that constructor has been removed. I assume
that I'm suppossed to use the following constructor, but I can't figure
out what to pass as the Args parameter (the second parameter).
CallInst (Value *F, Value *const *Args, unsigned NumArgs, const
std::string &Name="", Instruction *InsertBefore=0)
Can someone help?
Thanks,
Ryan
2007 Mar 07
0
[LLVMdev] use of CallInst()
...>
> However, it seems as though that constructor has been removed. I assume
> that I'm suppossed to use the following constructor, but I can't figure
> out what to pass as the Args parameter (the second parameter).
>
> CallInst (Value *F, Value *const *Args, unsigned NumArgs, const
> std::string &Name="", Instruction *InsertBefore=0)
>
> Can someone help?
Ryan, I suggest you familiarize yourself with
http://llvm.org/doxygen/classes.html and look there for help on the new
API. It is regenerated every night so it should be perpetually up to
dat...
2000 Dec 15
1
Preserving argument splitting with SSH
...fundamental shortcoming of the SSH
protocol that argument splitting is not preserved from client to server,
but instead the argument list is re-split on whitespace. E.g., from my
machine `gellar', I execute:
% ssh gellar args foo bar 'baz bong'
ARG0 = /usr/home/gregb/bin/share/args, NumArgs = 4
1 = "foo"
2 = "bar"
3 = "baz"
4 = "bong"
(where args is just a script that outputs the arguments), instead of
what I get when I run args directly:
% args foo bar 'baz bong'
ARG0 = /usr/home/gregb/bin/share/args, NumArgs = 3
1 = "foo...
2013 Feb 25
2
[LLVMdev] Queries regarding function's arguments data type
...ment list of the function.
2. Based on its data type like character array or integer array, pointer,
int, char, take different action.
3. I have added following code to check its data type.
// F is any function basically of type function *
FunctionType *FTy = F->getFunctionType();
unsigned int numArgs = FTy->getNumParams();
//Currently just checking data type of the 0th argument. Eventually will be
running it in the loop from 0 to numArgs.
errs() << "\n1 Argument type int 32 : " <<
FTy->getParamType(0)->isIntegerTy(32);
errs() << "\n2 Argument type...
2007 Mar 07
1
[LLVMdev] use of CallInst()
...ever, it seems as though that constructor has been removed. I assume
>> that I'm suppossed to use the following constructor, but I can't figure
>> out what to pass as the Args parameter (the second parameter).
>>
>> CallInst (Value *F, Value *const *Args, unsigned NumArgs, const
>> std::string &Name="", Instruction *InsertBefore=0)
>>
>> Can someone help?
>
> Ryan, I suggest you familiarize yourself with
> http://llvm.org/doxygen/classes.html and look there for help on the new
> API. It is regenerated every night so it...
2019 Sep 03
4
[PATCH v4 15/16] virtio-fs: add virtiofs filesystem
...> +
> +/* Allocate and copy args into req->argbuf */
> +static int copy_args_to_argbuf(struct fuse_req *req)
> +{
> + unsigned int offset = 0;
> + unsigned int num_in;
> + unsigned int num_out;
> + unsigned int len;
> + unsigned int i;
> +
> + num_in = req->in.numargs - req->in.argpages;
> + num_out = req->out.numargs - req->out.argpages;
> + len = fuse_len_args(num_in, (struct fuse_arg *)req->in.args) +
> + fuse_len_args(num_out, req->out.args);
> +
> + req->argbuf = kmalloc(len, GFP_ATOMIC);
> + if (!req->argbuf)
&...
2019 Sep 03
4
[PATCH v4 15/16] virtio-fs: add virtiofs filesystem
...> +
> +/* Allocate and copy args into req->argbuf */
> +static int copy_args_to_argbuf(struct fuse_req *req)
> +{
> + unsigned int offset = 0;
> + unsigned int num_in;
> + unsigned int num_out;
> + unsigned int len;
> + unsigned int i;
> +
> + num_in = req->in.numargs - req->in.argpages;
> + num_out = req->out.numargs - req->out.argpages;
> + len = fuse_len_args(num_in, (struct fuse_arg *)req->in.args) +
> + fuse_len_args(num_out, req->out.args);
> +
> + req->argbuf = kmalloc(len, GFP_ATOMIC);
> + if (!req->argbuf)
&...
2013 Aug 07
1
[LLVMdev] Scheme on LLVM IR
> Can't you handle this entirely in the front-end? Just decide by fiat
> that all of your scheme functions will take an extra (hidden to the
> Scheme users) parameter saying how many args they were given. That's
> how C++ deals with the implicit "this" parameter for class methods.
> Then you could either use varargs or bitcast your functions to a
> reasonable
2024 May 28
1
How to call directly "dotTcl" C-function of the tcltk-package from the C-code of an external package?
...the function directly was using the following C-level
approach in which essential parts of the headers are copied from the Rdynpriv.h:
#include <R.h>
#include <Rinternals.h>
#include <R_ext/Rdynload.h>
typedef struct {
char *name;
DL_FUNC fun;
int numArgs;
R_NativePrimitiveArgType *types;
} Rf_DotCSymbol;
typedef Rf_DotCSymbol Rf_DotFortranSymbol;
typedef struct {
char *name;
DL_FUNC fun;
int numArgs;
} Rf_DotCallSymbol;
typedef Rf_DotCallSymbol Rf_DotExternalSymbol;
struct Rf_RegisteredNativeSymbol {
N...
2013 Feb 25
0
[LLVMdev] Queries regarding function's arguments data type
...actual memory object passed into the function will
be. A caller can cast a pointer of one structure type to a different
structure type and pass that into a function.
>
> // F is any function basically of type function *
> FunctionType *FTy = F->getFunctionType();
> unsigned int numArgs = FTy->getNumParams();
>
> //Currently just checking data type of the 0th argument. Eventually
> will be running it in the loop from 0 to numArgs.
> errs() << "\n1 Argument type int 32 : " <<
> FTy->getParamType(0)->isIntegerTy(32);
> errs() <...
2004 Jul 21
0
[LLVMdev] GC questions.
...perand(1), CI->getOperand(2),
Index: llvm/lib/VMCore/Verifier.cpp
===================================================================
RCS file: /var/cvs/llvm/llvm/lib/VMCore/Verifier.cpp,v
retrieving revision 1.115
diff -r1.115 Verifier.cpp
714,715c714,715
< case Intrinsic::gcread: NumArgs = 1; break;
< case Intrinsic::gcwrite: NumArgs = 2; break;
---
> case Intrinsic::gcread: NumArgs = 2; break;
> case Intrinsic::gcwrite: NumArgs = 3; break;
Index: llvm/runtime/GC/GCInterface.h
=================================================================...
2019 Sep 05
0
[PATCH 13/18] virtiofs: Do not access virtqueue in request submission path
...fc = fs->vqs[queue_id].fud->fc;
- dev_dbg(&fs->vqs[queue_id].vq->vdev->dev,
- "%s: opcode %u unique %#llx nodeid %#llx in.len %u out.len %u\n",
- __func__, req->in.h.opcode, req->in.h.unique, req->in.h.nodeid,
- req->in.h.len, fuse_len_args(req->out.numargs, req->out.args));
+ pr_debug("%s: opcode %u unique %#llx nodeid %#llx in.len %u out.len %u"
+ "\n", __func__, req->in.h.opcode, req->in.h.unique,
+ req->in.h.nodeid, req->in.h.len,
+ fuse_len_args(req->out.numargs, req->out.args));
fpq = &fs-&...
2006 Nov 01
0
AEL2 - CUT function usage
Hi,
In Asterisk 1.2.7, my AEL code looks like this:
macro callForwardHunt(numargs,numlist,typelist,ttr)
{
for(x=1;${x}<${numargs}+1;x=${x}+1)
{
CUT(number=numlist,-,${x});
CUT(type=typelist,-,${x});
NoOp(${number});
NoOp(${type});
Dial(${type}${number},${ttr});
};...
2007 Mar 07
2
[LLVMdev] use of CallInst()
> Args needs to be an array of the arguments and NumArgs needs to be the
> size of the array. If you have a std::vector then you can just:
>
> new CallInst(F, &ArgVec[0], ArgVec.size(), ...)
Doesn't the code above make an assumption about how std::vector is
implemented? If ArgVec is defined as
std::vector<Value*> ArgVec;
the...
2010 Dec 23
2
upsd crashes with a "broken pipe" error
In /var/log/syslog
Dec 23 13:04:50 ************** upsmon[2010]: Poll UPS
[rack1ups at localhost] failed - Write error: Broken pipe
After this, there is no longer a upsd daemon running.
Error messages follow:
Dec 23 13:04:50 ************** upsmon[2010]: Communications with UPS
rack1ups at localhost lost
...
Dec 23 13:04:55 ************** upsmon[2010]: UPS [rack1ups at localhost]:
connect
2004 Jul 21
2
[LLVMdev] GC questions.
On Wed, 21 Jul 2004, Tobias Nurmiranta wrote:
>
> Hi, I'm thinking out loud, please give me some feedback.
>
> Regarding llvm.gcread and llvm.gcwrite, wouldn't it be nicer if they are
> implemented as:
>
> llvm.gcread(sbyte** object, uint offset)
> llvm.gcwrite(sbyte* data, sbyte** object, uint offset)
>
> Where you also have the offset into the object. In
2016 Sep 26
2
Incompatible type assertion from llvm-tblgen
...s line causes assert
instr_asm # "\t\t$r1, $addr, " # info.sizeStr,
[(set info.regClass:$r1, (load ADDR_SHLI:$addr))],
itin > {
}
The other related definitions are:
// This class provides load/store address format selection support
//
class Addr< int numArgs, string funcName, dag opInfo >
: Operand<i64>,
ComplexPattern< i64, numArgs, funcName, [], [SDNPWantParent] > {
let MIOperandInfo = opInfo;
}
let PrintMethod = "printMemOperand" in {
def ADDR_RR : Addr< 2, "SelectAddrRegReg",...