search for: array_init

Displaying 7 results from an estimated 7 matches for "array_init".

2016 Apr 11
1
[PATCH] RFC: php: support PHP 7
...opy = estrndup (r, size);\n"; pr " free (r);\n"; - pr " RETURN_STRING (r_copy, 0);\n" + pr " GUESTFS_RETURN_STRING (r_copy, 0);\n" | RStringList _ -> pr " size_t c = 0;\n"; pr " array_init (return_value);\n"; pr " for (c = 0; r[c] != NULL; ++c) {\n"; - pr " add_next_index_string (return_value, r[c], 1);\n"; + pr " guestfs_add_next_index_string (return_value, r[c], 1);\n"; pr " free (r[c]);\n...
2016 Nov 09
2
Optimisation passes introducing address space casts
...y encountered an issue where the `instcombine` pass replaces an `llvm.memcpy` between two distinct address spaces with an `addrspacecast` instruction. As an example, see the trivial OpenCL kernel attached. I’m compiling like this: clang -cc1 -triple spir64-unknown-unknown -x cl -O0 -emit-llvm array_init.cl -o before.ll This yields an `llvm.memcpy` to copy the array initialiser data from the global variable (in `addrspace(2)`) to the `alloca` result (in `addrspace(0)`). I then apply the `instcombine` pass via: opt -S -instcombine before.ll -o after.ll This results in the memcpy being nuked,...
2017 Jan 02
3
Optimisation passes introducing address space casts
...instcombine` pass replaces an `llvm.memcpy` between two distinct address spaces with an `addrspacecast` instruction. >> >> As an example, see the trivial OpenCL kernel attached. I’m compiling like this: >> >> clang -cc1 -triple spir64-unknown-unknown -x cl -O0 -emit-llvm array_init.cl -o before.ll >> >> This yields an `llvm.memcpy` to copy the array initialiser data from the global variable (in `addrspace(2)`) to the `alloca` result (in `addrspace(0)`). >> >> I then apply the `instcombine` pass via: >> >> opt -S -instcombine before.ll...
2017 Jan 03
2
Optimisation passes introducing address space casts
...lvm.memcpy` between two distinct address spaces with an `addrspacecast` instruction. >>>> >>>> As an example, see the trivial OpenCL kernel attached. I’m compiling like this: >>>> >>>> clang -cc1 -triple spir64-unknown-unknown -x cl -O0 -emit-llvm array_init.cl -o before.ll >>>> >>>> This yields an `llvm.memcpy` to copy the array initialiser data from the global variable (in `addrspace(2)`) to the `alloca` result (in `addrspace(0)`). >>>> >>>> I then apply the `instcombine` pass via: >>>> &...
2006 Feb 03
0
rquotad (NFS) quota plugin
...eate, + rquotad_quota_get_resource, + rquotad_quota_set_resource, + + rquotad_quota_transaction_begin, + rquotad_quota_transaction_commit, + rquotad_quota_transaction_rollback, + + rquotad_quota_try_alloc, + rquotad_quota_alloc, + rquotad_quota_free, + + rquotad_quota_last_error, + + ARRAY_INIT + }; + + static int + rquota_get(char *host, getquota_args *qargs, getquota_rslt *qres) + { + struct sockaddr_in rhost; + struct hostent *hent; + struct timeval tout; + enum clnt_stat cstat; + CLIENT *clnt = NULL; + int sock = RPC_ANYSOCK; + + hent = gethostbyname(host); + if (!hent) +...
2013 Feb 04
1
[PATCH] generator: Add visibility to action struct
...ted; + ) external_functions_sorted; pr " { NULL, NULL, NULL } }; @@ -506,7 +506,7 @@ PHP_FUNCTION (guestfs_last_error) pr "}\n"; pr "\n" - ) all_functions_sorted + ) external_functions_sorted and generate_php_struct_code typ cols = pr " array_init (return_value);\n"; diff --git a/generator/python.ml b/generator/python.ml index 3863c71..64c5a8d 100644 --- a/generator/python.ml +++ b/generator/python.ml @@ -249,7 +249,7 @@ free_strings (char **argv) (* generate the function for typ *) emit_put_list_function typ | ty...
2016 Sep 02
6
[PATCH 0/4] generator: Some work to split large C files
By splitting up large C files we can make parallel compiles a bit faster. Rich.