search for: argt

Displaying 20 results from an estimated 49 matches for "argt".

Did you mean: arg
2012 Jan 09
1
[PATCH 1/2] generator: Rename java_structs to camel_structs to better reflect their purpose
This map was originally included just for the java bindings, but is generally useful to any binding which uses camel case by requirement or convention. --- generator/generator_haskell.ml | 4 ++-- generator/generator_java.ml | 10 +++++----- generator/generator_main.ml | 2 +- generator/generator_structs.ml | 12 +++++------- generator/generator_structs.mli | 8 ++++---- 5
2004 Aug 17
0
[LLVMdev] JIT API example (fibonacci)
...XP 1500. Cool! Hey Valery, before we add this to the CVS repo, can you take a look at some of the changes I made to your HowToUseJIT example and use them to simplify this example too? For example, instead of code like this: // the type is 'int ()' std::vector<const Type*> ArgT(1); ArgT[0] = Type::IntTy; // now create full type of the "fib" function: FunctionType *FibT = FunctionType::get(Type::IntTy, // type of result ArgT, /*not vararg*/false); // Now create...
2004 Aug 17
4
[LLVMdev] JIT API example (fibonacci)
Hi LLVMers, the example attached I have used to prove that JIT and some visible optimizations are really invoked. Proved OK. I got 30% speed-up in comparison to gcc 3.3.3 on my Athlon XP 1500. Nice. P.S. guys, no fears, I don't plan to flood the cvs repository with my "brilliant" examples ;) --- Valery A.Khamenya -------------- next part -------------- An
2016 Dec 08
4
[PATCH] generator: Share Common_utils code.
...String.length suffix + 2 in - pr ",\n%s%s" indent (spaces namelen) + pr ",\n%s%s" indent (String.spaces namelen) ) ); comma := true @@ -230,7 +231,8 @@ and generate_actions_pod_entry ({ c_name = c_name; List.iter ( fun argt -> let n = name_of_optargt argt in - pr " GUESTFS_%s_%s, " (String.uppercase c_name) (String.uppercase n); + pr " GUESTFS_%s_%s, " (String.uppercase_ascii c_name) + (String.uppercase_ascii n); match argt with | OBool n ->...
2012 Jan 17
2
[PATCH 1/2] c: NFC Remove redundant parentheses
...2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/generator/generator_c.ml b/generator/generator_c.ml index 4324ec0..9cfb2b7 100644 --- a/generator/generator_c.ml +++ b/generator/generator_c.ml @@ -1187,7 +1187,7 @@ trace_send_line (guestfs_h *g) let n = name_of_optargt argt in let uc_shortname = String.uppercase shortname in let uc_n = String.uppercase n in - pr " if ((optargs->bitmask & GUESTFS_%s_%s_BITMASK))\n" + pr " if (optargs->bitmask & GUESTFS_%s_%s_BITMASK)\n"...
2004 Aug 09
1
[LLVMdev] API on JIT, code snippets
...Module *M = new Module("test"); > > > // We are about to create the add1 function: > Function *Add1F; > > { > // first create type for the single argument of add1 function: > // the type is 'int ()' > std::vector<const Type*> ArgT(1); > ArgT[0] = Type::IntTy; > > // now create full type of the add1 function: > FunctionType *Add1T = FunctionType::get(Type::IntTy, // type of result: int ()' > ArgT, > /*not vararg*/false); > > // Now create the add1 function entry...
2004 Aug 09
5
[LLVMdev] API on JIT, code snippets
...Module *M = new Module("test"); > > > // We are about to create the add1 function: > Function *Add1F; > > { > // first create type for the single argument of add1 function: > // the type is 'int ()' > std::vector<const Type*> ArgT(1); > ArgT[0] = Type::IntTy; > > // now create full type of the add1 function: > FunctionType *Add1T = FunctionType::get(Type::IntTy, // type of result: int ()' > ArgT, > /*not vararg*/false); > > // Now create the add1 function entry...
2004 Aug 17
5
[LLVMdev] JIT API example (fibonacci)
...t; > > > > // We are about to create the "fib" function: > > Function *FibF; > > > > { > > // first create type for the single argument of fib function: > > // the type is 'int ()' > > std::vector<const Type*> ArgT(1); > > ArgT[0] = Type::IntTy; > > > > // now create full type of the "fib" function: > > FunctionType *FibT = FunctionType::get(Type::IntTy, // type of result > > ArgT, > > /*not vararg*/false); > > > > // No...
2004 Aug 17
0
[LLVMdev] JIT API example (fibonacci)
...M = new Module("test"); > > > // We are about to create the "fib" function: > Function *FibF; > > { > // first create type for the single argument of fib function: > // the type is 'int ()' > std::vector<const Type*> ArgT(1); > ArgT[0] = Type::IntTy; > > // now create full type of the "fib" function: > FunctionType *FibT = FunctionType::get(Type::IntTy, // type of result > ArgT, > /*not vararg*/false); > > // Now create the fib function entry and...
2004 Aug 09
0
[LLVMdev] API on JIT, code snippets
...; > > > > > > // We are about to create the add1 function: > > Function *Add1F; > > > > { > > // first create type for the single argument of add1 function: > > // the type is 'int ()' > > std::vector<const Type*> ArgT(1); > > ArgT[0] = Type::IntTy; > > > > // now create full type of the add1 function: > > FunctionType *Add1T = FunctionType::get(Type::IntTy, // type of result: int ()' > > ArgT, > > /*not vararg*/false); > > > >...
2004 Aug 09
0
[LLVMdev] API on JIT, code snippets
Reid wrote: > I have to agree with Misha on this. None of us knows "everything" about > LLVM and as you can see, Misha responded three hours before I did :). > Asking questions here is encouraged, so please feel free to post them on > LLVMdev. We'll always help where we can. well, OK :) Please find the attachment with the first approach to such an example i've
2004 Aug 17
0
[LLVMdev] JIT API example (fibonacci)
...t;>> // We are about to create the "fib" function: >>> Function *FibF; >>> >>> { >>> // first create type for the single argument of fib function: >>> // the type is 'int ()' >>> std::vector<const Type*> ArgT(1); >>> ArgT[0] = Type::IntTy; >>> >>> // now create full type of the "fib" function: >>> FunctionType *FibT = FunctionType::get(Type::IntTy, // type of result >>> ArgT, >>> /*not vararg*/false); >>> &gt...
2004 Aug 09
3
[LLVMdev] API on JIT, code snippets
Valery, I have to agree with Misha on this. None of us knows "everything" about LLVM and as you can see, Misha responded three hours before I did :). Asking questions here is encouraged, so please feel free to post them on LLVMdev. We'll always help where we can. Thanks, Reid. On Mon, 2004-08-09 at 06:37, Misha Brukman wrote: > On Mon, Aug 09, 2004 at 12:32:33PM +0400, Valery
2004 Aug 18
1
[LLVMdev] JIT API example (fibonacci)
...create the "fib" function: > >>> Function *FibF; > >>> > >>> { > >>> // first create type for the single argument of fib function: > >>> // the type is 'int ()' > >>> std::vector<const Type*> ArgT(1); > >>> ArgT[0] = Type::IntTy; > >>> > >>> // now create full type of the "fib" function: > >>> FunctionType *FibT = FunctionType::get(Type::IntTy, // type of result > >>> ArgT, > >>> /*not va...
2012 Jul 14
6
[PATCH 0/6] Allow non-optargs functions to gain optional arguments.
This rather complex set of patches allow non-optargs functions to gain optional arguments, while preserving source and binary backwards compatibility. The problem is that we cannot add an optional argument to an existing function. For example, we might want to add flags to the 'lvresize' API which currently has no optional arguments.
2012 Aug 14
7
[PATCH 0/7] Add tar compress, numericowner, excludes flags.
https://bugzilla.redhat.com/show_bug.cgi?id=847880 https://bugzilla.redhat.com/show_bug.cgi?id=847881 This patch series adds various optional arguments to the tar-in and tar-out commands. Firstly (1/7) an optional "compress" flag is added to select compression. This makes the calls tgz-in/tgz-out/txz-in/txz-out deprecated, and expands the range of compression types available.
2004 Aug 10
1
[LLVMdev] API on JIT, code snippets
...Module *M = new Module("test"); > > > // We are about to create the add1 function: > Function *Add1F; > > { > // first create type for the single argument of add1 function: > // the type is 'int ()' > std::vector<const Type*> ArgT(1); > ArgT[0] = Type::IntTy; > > // now create full type of the add1 function: > FunctionType *Add1T = FunctionType::get(Type::IntTy, // type of result: int ()' > ArgT, > /*not...
2004 Aug 10
0
[LLVMdev] API on JIT, code snippets
Reid Spencer, thank you for your quick responce, finally i got to my PC at home. You wrote: > Attached are three files: "valery.cpp" which contains your original, > "reid.cpp" which contains corrections to most of the FIXME items and > "diffs" which shows the differences between them. The differences > should be instructive on what to do. You were
2012 Jan 17
3
GObject bindings
This is the first iteration of the GObject bindings. I have 'kicked the tyres' on these, meaning I have ensured that a bunch of basic manual tests work as expected. I'm in the process of adding more comprehensive tests. Here's an example simple javascript program which uses these bindings: === const Guestfs = imports.gi.Guestfs; print('Starting'); var g = new
2010 Oct 21
2
[PATCH 0/2] First part of fix for CVE-2010-3851
These two patches implement the first (and hardest) part of the fix for CVE-2010-3851. This adds a way to specify the format when adding a drive, avoiding qemu's auto-detection. In order to avoid an explosion of different add_drive_* functions (we have 4 already), we have implemented a way to specify optional arguments to functions, so all we need is a single new 'add_drive_opts'