Home | History | Annotate | Download | only in Interpreter

Lines Matching refs:Args

195   std::vector<ffi_type*> args(NumArgs);
200 args[ArgNo] = ffiTypeFor(ArgTy);
219 if (ffi_prep_cif(&cif, FFI_DEFAULT_ABI, NumArgs, rtype, &args[0]) == FFI_OK) {
300 ArrayRef<GenericValue> Args) {
301 assert(Args.size() == 1);
302 TheInterpreter->addAtExitHandler((Function*)GVTOP(Args[0]));
309 static GenericValue lle_X_exit(FunctionType *FT, ArrayRef<GenericValue> Args) {
310 TheInterpreter->exitCalled(Args[0]);
315 static GenericValue lle_X_abort(FunctionType *FT, ArrayRef<GenericValue> Args) {
325 ArrayRef<GenericValue> Args) {
326 char *OutputBuffer = (char *)GVTOP(Args[0]);
327 const char *FmtStr = (const char *)GVTOP(Args[1]);
364 sprintf(Buffer, FmtBuf, uint32_t(Args[ArgNo++].IntVal.getZExtValue()));
380 sprintf(Buffer, FmtBuf, Args[ArgNo++].IntVal.getZExtValue());
382 sprintf(Buffer, FmtBuf,uint32_t(Args[ArgNo++].IntVal.getZExtValue()));
385 sprintf(Buffer, FmtBuf, Args[ArgNo++].DoubleVal); break;
387 sprintf(Buffer, FmtBuf, (void*)GVTOP(Args[ArgNo++])); break;
389 sprintf(Buffer, FmtBuf, (char*)GVTOP(Args[ArgNo++])); break;
407 ArrayRef<GenericValue> Args) {
411 NewArgs.insert(NewArgs.end(), Args.begin(), Args.end());
419 ArrayRef<GenericValue> args) {
420 assert(args.size() < 10 && "Only handle up to 10 args to sscanf right now!");
422 char *Args[10];
423 for (unsigned i = 0; i < args.size(); ++i)
424 Args[i] = (char*)GVTOP(args[i]);
427 GV.IntVal = APInt(32, sscanf(Args[0], Args[1], Args[2], Args[3], Args[4],
428 Args[5], Args[6], Args[7], Args[8], Args[9]));
433 static GenericValue lle_X_scanf(FunctionType *FT, ArrayRef<GenericValue> args) {
434 assert(args.size() < 10 && "Only handle up to 10 args to scanf right now!");
436 char *Args[10];
437 for (unsigned i = 0; i < args.size(); ++i)
438 Args[i] = (char*)GVTOP(args[i]);
441 GV.IntVal = APInt(32, scanf( Args[0], Args[1], Args[2], Args[3], Args[4],
442 Args[5], Args[6], Args[7], Args[8], Args[9]));
449 ArrayRef<GenericValue> Args) {
450 assert(Args.size() >= 2);
454 NewArgs.insert(NewArgs.end(), Args.begin()+1, Args.end());
457 fputs(Buffer, (FILE *) GVTOP(Args[0]));
462 ArrayRef<GenericValue> Args) {
463 int val = (int)Args[1].IntVal.getSExtValue();
464 size_t len = (size_t)Args[2].IntVal.getZExtValue();
465 memset((void *)GVTOP(Args[0]), val, len);
474 ArrayRef<GenericValue> Args) {
475 memcpy(GVTOP(Args[0]), GVTOP(Args[1]),
476 (size_t)(Args[2].IntVal.getLimitedValue()));