[Mlir-commits] [mlir] 50ad774 - [mlir][CAPI] Export mlirValueEqual in C API

Alex Zinenko llvmlistbot at llvm.org
Wed Jul 7 02:27:59 PDT 2021


Author: Bairen Yi
Date: 2021-07-07T11:27:51+02:00
New Revision: 50ad774777d28918c0b705712e59f8e9cd6d8e26

URL: https://github.com/llvm/llvm-project/commit/50ad774777d28918c0b705712e59f8e9cd6d8e26
DIFF: https://github.com/llvm/llvm-project/commit/50ad774777d28918c0b705712e59f8e9cd6d8e26.diff

LOG: [mlir][CAPI] Export mlirValueEqual in C API

Somehow it is not exported in C API.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D105422

Added: 
    

Modified: 
    mlir/include/mlir-c/IR.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir-c/IR.h b/mlir/include/mlir-c/IR.h
index b0866385c34a..6924fa88d3a9 100644
--- a/mlir/include/mlir-c/IR.h
+++ b/mlir/include/mlir-c/IR.h
@@ -557,7 +557,7 @@ mlirBlockPrint(MlirBlock block, MlirStringCallback callback, void *userData);
 static inline bool mlirValueIsNull(MlirValue value) { return !value.ptr; }
 
 /// Returns 1 if two values are equal, 0 otherwise.
-bool mlirValueEqual(MlirValue value1, MlirValue value2);
+MLIR_CAPI_EXPORTED bool mlirValueEqual(MlirValue value1, MlirValue value2);
 
 /// Returns 1 if the value is a block argument, 0 otherwise.
 MLIR_CAPI_EXPORTED bool mlirValueIsABlockArgument(MlirValue value);


        


More information about the Mlir-commits mailing list