Update of /cvsroot/monetdb/pathfinder/compiler/algebra
In directory
sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28996/compiler/algebra
Modified Files:
Tag: M5XQ
builtins.c
Log Message:
propagated changes of Friday Dec 04 2009
from the XQFT branch to the M5XQ branch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/12/04 - sjoerd: compiler/algebra/builtins.c,1.131.2.2
propagated changes of Friday Dec 04 2009
from the development trunk to the XQFT branch
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2009/12/04 - jflokstra: compiler/algebra/builtins.c,1.134
Implemented translation to a MIL function of the following new tijah
functions.
- tijah:terms(element*) as string*
- tijah:terms(element*,node) as string*
- tijah:tf-all(string) as integer
- tijah:tf-all(string,node) as integer
- tijah:tf(element*,string) as integer
- tijah:tf(element*,string,node) as integer
- tijah:fb-terms(element*) as string*
- tijah:fb-terms(element*,node) as string*
The main MIL functions are still empty and Henning will fill te blanks.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Index: builtins.c
===================================================================
RCS file: /cvsroot/monetdb/pathfinder/compiler/algebra/builtins.c,v
retrieving revision 1.121.2.10
retrieving revision 1.121.2.11
diff -u -d -r1.121.2.10 -r1.121.2.11
--- builtins.c 10 Nov 2009 18:58:08 -0000 1.121.2.10
+++ builtins.c 4 Dec 2009 14:48:57 -0000 1.121.2.11
@@ -7417,6 +7417,140 @@
);
}
+/* the new term functions */
+
+struct PFla_pair_t PFbui_tijah_terms (const PFla_op_t *loop,
+ bool ordering,
+ PFla_op_t **side_effects,
+ struct PFla_pair_t *args) {
+ return PFbui_tijah_query_HANDLER(
+ loop,
+ ordering,
+ side_effects,
+ PFT_TERMS,
+ aat_str,
+ pft_query_param1(&args[0],
+ PFTIJAH_NODEKIND)
+ );
+}
+
+struct PFla_pair_t PFbui_tijah_terms_o (const PFla_op_t *loop,
+ bool ordering,
+ PFla_op_t **side_effects,
+ struct PFla_pair_t *args) {
+ return PFbui_tijah_query_HANDLER(
+ loop,
+ ordering,
+ side_effects,
+ PFT_TERMS_O,
+ aat_str,
+ pft_query_param2(&args[0],
+ PFTIJAH_NODEKIND,
+ &args[1],
+ PFTIJAH_NODEKIND)
+ );
+}
+
+struct PFla_pair_t PFbui_tijah_tfall (const PFla_op_t *loop,
+ bool ordering,
+ PFla_op_t **side_effects,
+ struct PFla_pair_t *args) {
+ return PFbui_tijah_query_HANDLER(
+ loop,
+ ordering,
+ side_effects,
+ PFT_TFALL,
+ aat_int,
+ pft_query_param1(&args[0],
+ aat_str)
+ );
+}
+
+struct PFla_pair_t PFbui_tijah_tfall_o (const PFla_op_t *loop,
+ bool ordering,
+ PFla_op_t **side_effects,
+ struct PFla_pair_t *args) {
+ return PFbui_tijah_query_HANDLER(
+ loop,
+ ordering,
+ side_effects,
+ PFT_TFALL_O,
+ aat_int,
+ pft_query_param2(&args[0],
+ aat_str,
+ &args[1],
+ PFTIJAH_NODEKIND)
+ );
+}
+
+struct PFla_pair_t PFbui_tijah_tf (const PFla_op_t *loop,
+ bool ordering,
+ PFla_op_t **side_effects,
+ struct PFla_pair_t *args) {
+ return PFbui_tijah_query_HANDLER(
+ loop,
+ ordering,
+ side_effects,
+ PFT_TF,
+ aat_int,
+ pft_query_param2(&args[0],
+ PFTIJAH_NODEKIND,
+ &args[1],
+ aat_str)
+ );
+}
+
+struct PFla_pair_t PFbui_tijah_tf_o (const PFla_op_t *loop,
+ bool ordering,
+ PFla_op_t **side_effects,
+ struct PFla_pair_t *args) {
+ return PFbui_tijah_query_HANDLER(
+ loop,
+ ordering,
+ side_effects,
+ PFT_TF_O,
+ aat_int,
+ pft_query_param3(&args[0],
+ PFTIJAH_NODEKIND,
+ &args[1],
+ aat_str,
+ &args[2],
+ PFTIJAH_NODEKIND)
+ );
+}
+
+struct PFla_pair_t PFbui_tijah_fbterms (const PFla_op_t *loop,
+ bool ordering,
+ PFla_op_t **side_effects,
+ struct PFla_pair_t *args) {
+ return PFbui_tijah_query_HANDLER(
+ loop,
+ ordering,
+ side_effects,
+ PFT_FBTERMS,
+ aat_str,
+ pft_query_param1(&args[0],
+ PFTIJAH_NODEKIND)
+ );
+}
+
+struct PFla_pair_t PFbui_tijah_fbterms_o (const PFla_op_t *loop,
+ bool ordering,
+ PFla_op_t **side_effects,
+ struct PFla_pair_t *args) {
+ return PFbui_tijah_query_HANDLER(
+ loop,
+ ordering,
+ side_effects,
+ PFT_FBTERMS_O,
+ aat_str,
+ pft_query_param2(&args[0],
+ PFTIJAH_NODEKIND,
+ &args[1],
+ PFTIJAH_NODEKIND)
+ );
+}
+
#endif /* PFTIJAH */
/**
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Monetdb-pf-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-pf-checkins