Fix issues after integreate (#13503)
Address issues after https://github.com/openxla/iree/pull/13486.
1. Fix a windows build error.
2. Disable sample that fails on macOS (https://github.com/openxla/iree/issues/13501).
diff --git a/build_tools/cmake/ctest_all.sh b/build_tools/cmake/ctest_all.sh
index be9336e..52f7027 100755
--- a/build_tools/cmake/ctest_all.sh
+++ b/build_tools/cmake/ctest_all.sh
@@ -105,6 +105,8 @@
"iree/compiler/bindings/c/loader_test"
#TODO(#12496): Remove after fixing the test on macOS
"iree/compiler/bindings/python/test/transforms/ireec/compile_sample_module"
+ #TODO(#13501): Fix failing sample on macOS
+ "iree/samples/custom_module/async/test/example.mlir"
)
fi
diff --git a/compiler/src/iree/compiler/API/api_exports.c b/compiler/src/iree/compiler/API/api_exports.c
index 72c6e52..0682ea1 100644
--- a/compiler/src/iree/compiler/API/api_exports.c
+++ b/compiler/src/iree/compiler/API/api_exports.c
@@ -591,6 +591,7 @@
extern void mlirValueIsABlockArgument();
extern void mlirValueIsAOpResult();
extern void mlirValuePrint();
+extern void mlirValuePrintAsOperand();
extern void mlirValueReplaceAllUsesOfWith();
extern void mlirVectorTypeGet();
extern void mlirVectorTypeGetChecked();
@@ -1180,6 +1181,7 @@
x += (uintptr_t)&mlirValueIsABlockArgument;
x += (uintptr_t)&mlirValueIsAOpResult;
x += (uintptr_t)&mlirValuePrint;
+ x += (uintptr_t)&mlirValuePrintAsOperand;
x += (uintptr_t)&mlirValueReplaceAllUsesOfWith;
x += (uintptr_t)&mlirVectorTypeGet;
x += (uintptr_t)&mlirVectorTypeGetChecked;
diff --git a/compiler/src/iree/compiler/API/api_exports.def b/compiler/src/iree/compiler/API/api_exports.def
index eb616f0..a40a157 100644
--- a/compiler/src/iree/compiler/API/api_exports.def
+++ b/compiler/src/iree/compiler/API/api_exports.def
@@ -583,6 +583,7 @@
mlirValueIsABlockArgument
mlirValueIsAOpResult
mlirValuePrint
+ mlirValuePrintAsOperand
mlirValueReplaceAllUsesOfWith
mlirVectorTypeGet
mlirVectorTypeGetChecked
diff --git a/compiler/src/iree/compiler/API/api_exports.ld b/compiler/src/iree/compiler/API/api_exports.ld
index d2a86bd..3351f3a 100644
--- a/compiler/src/iree/compiler/API/api_exports.ld
+++ b/compiler/src/iree/compiler/API/api_exports.ld
@@ -584,6 +584,7 @@
mlirValueIsABlockArgument;
mlirValueIsAOpResult;
mlirValuePrint;
+ mlirValuePrintAsOperand;
mlirValueReplaceAllUsesOfWith;
mlirVectorTypeGet;
mlirVectorTypeGetChecked;
diff --git a/compiler/src/iree/compiler/API/api_exports.macos.lst b/compiler/src/iree/compiler/API/api_exports.macos.lst
index 93a9b2f..5456c1d 100644
--- a/compiler/src/iree/compiler/API/api_exports.macos.lst
+++ b/compiler/src/iree/compiler/API/api_exports.macos.lst
@@ -582,6 +582,7 @@
_mlirValueIsABlockArgument
_mlirValueIsAOpResult
_mlirValuePrint
+_mlirValuePrintAsOperand
_mlirValueReplaceAllUsesOfWith
_mlirVectorTypeGet
_mlirVectorTypeGetChecked