[polly] r264460 - Add files forgotten in r264452
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 25 13:32:51 PDT 2016
Author: grosser
Date: Fri Mar 25 15:32:51 2016
New Revision: 264460
URL: http://llvm.org/viewvc/llvm-project?rev=264460&view=rev
Log:
Add files forgotten in r264452
Added:
polly/trunk/lib/External/isl/include/isl/maybe.h
polly/trunk/lib/External/isl/include/isl/maybe_ast_expr.h
polly/trunk/lib/External/isl/include/isl/maybe_basic_set.h
polly/trunk/lib/External/isl/include/isl/maybe_id.h
polly/trunk/lib/External/isl/include/isl/maybe_pw_aff.h
polly/trunk/lib/External/isl/include/isl/maybe_templ.h
Added: polly/trunk/lib/External/isl/include/isl/maybe.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/isl/include/isl/maybe.h?rev=264460&view=auto
==============================================================================
--- polly/trunk/lib/External/isl/include/isl/maybe.h (added)
+++ polly/trunk/lib/External/isl/include/isl/maybe.h Fri Mar 25 15:32:51 2016
@@ -0,0 +1,7 @@
+#ifndef ISL_MAYBE_H
+#define ISL_MAYBE_H
+
+#define ISL_xMAYBE(TYPE) isl_maybe_ ## TYPE
+#define ISL_MAYBE(TYPE) ISL_xMAYBE(TYPE)
+
+#endif
Added: polly/trunk/lib/External/isl/include/isl/maybe_ast_expr.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/isl/include/isl/maybe_ast_expr.h?rev=264460&view=auto
==============================================================================
--- polly/trunk/lib/External/isl/include/isl/maybe_ast_expr.h (added)
+++ polly/trunk/lib/External/isl/include/isl/maybe_ast_expr.h Fri Mar 25 15:32:51 2016
@@ -0,0 +1,8 @@
+#ifndef ISL_MAYBE_AST_EXPR_H
+#define ISL_MAYBE_AST_EXPR_H
+
+#define ISL_TYPE isl_ast_expr
+#include <isl/maybe_templ.h>
+#undef ISL_TYPE
+
+#endif
Added: polly/trunk/lib/External/isl/include/isl/maybe_basic_set.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/isl/include/isl/maybe_basic_set.h?rev=264460&view=auto
==============================================================================
--- polly/trunk/lib/External/isl/include/isl/maybe_basic_set.h (added)
+++ polly/trunk/lib/External/isl/include/isl/maybe_basic_set.h Fri Mar 25 15:32:51 2016
@@ -0,0 +1,8 @@
+#ifndef ISL_MAYBE_BASIC_SET_H
+#define ISL_MAYBE_BASIC_SET_H
+
+#define ISL_TYPE isl_basic_set
+#include <isl/maybe_templ.h>
+#undef ISL_TYPE
+
+#endif
Added: polly/trunk/lib/External/isl/include/isl/maybe_id.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/isl/include/isl/maybe_id.h?rev=264460&view=auto
==============================================================================
--- polly/trunk/lib/External/isl/include/isl/maybe_id.h (added)
+++ polly/trunk/lib/External/isl/include/isl/maybe_id.h Fri Mar 25 15:32:51 2016
@@ -0,0 +1,8 @@
+#ifndef ISL_MAYBE_ID_H
+#define ISL_MAYBE_ID_H
+
+#define ISL_TYPE isl_id
+#include <isl/maybe_templ.h>
+#undef ISL_TYPE
+
+#endif
Added: polly/trunk/lib/External/isl/include/isl/maybe_pw_aff.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/isl/include/isl/maybe_pw_aff.h?rev=264460&view=auto
==============================================================================
--- polly/trunk/lib/External/isl/include/isl/maybe_pw_aff.h (added)
+++ polly/trunk/lib/External/isl/include/isl/maybe_pw_aff.h Fri Mar 25 15:32:51 2016
@@ -0,0 +1,8 @@
+#ifndef ISL_MAYBE_PW_AFF_H
+#define ISL_MAYBE_PW_AFF_H
+
+#define ISL_TYPE isl_pw_aff
+#include <isl/maybe_templ.h>
+#undef ISL_TYPE
+
+#endif
Added: polly/trunk/lib/External/isl/include/isl/maybe_templ.h
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/External/isl/include/isl/maybe_templ.h?rev=264460&view=auto
==============================================================================
--- polly/trunk/lib/External/isl/include/isl/maybe_templ.h (added)
+++ polly/trunk/lib/External/isl/include/isl/maybe_templ.h Fri Mar 25 15:32:51 2016
@@ -0,0 +1,12 @@
+#include <isl/ctx.h>
+#include <isl/maybe.h>
+
+/* A structure that possibly contains a pointer to an object of type ISL_TYPE.
+ * The pointer in "value" is only valid if "valid" is isl_bool_true.
+ * Otherwise, "value" is set to NULL.
+ */
+struct ISL_MAYBE(ISL_TYPE) {
+ isl_bool valid;
+ ISL_TYPE *value;
+};
+typedef struct ISL_MAYBE(ISL_TYPE) ISL_MAYBE(ISL_TYPE);
More information about the llvm-commits
mailing list