[Mlir-commits] [mlir] c50972d - [mlir] fix CAPI/translation.c test

Alex Zinenko llvmlistbot at llvm.org
Thu Nov 23 05:41:49 PST 2023


Author: Alex Zinenko
Date: 2023-11-23T13:37:13Z
New Revision: c50972d67e40d7ded23f65d600a7f668bfed3824

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

LOG: [mlir] fix CAPI/translation.c test

It should not have been checking for irrelevant function injections in
the first place.

Added: 
    

Modified: 
    mlir/test/CAPI/translation.c

Removed: 
    


################################################################################
diff  --git a/mlir/test/CAPI/translation.c b/mlir/test/CAPI/translation.c
index 5a555e492cf0932..e58a01d8c171d0a 100644
--- a/mlir/test/CAPI/translation.c
+++ b/mlir/test/CAPI/translation.c
@@ -46,8 +46,6 @@ static void testToLLVMIR(MlirContext ctx) {
   LLVMModuleRef llvmModule = mlirTranslateModuleToLLVMIR(operation, llvmCtx);
 
   // clang-format off
-  // CHECK: declare ptr @malloc(i64 %{{.*}})
-  // CHECK: declare void @free(ptr %{{.*}})
   // CHECK: define i64 @add(i64 %[[arg1:.*]], i64 %[[arg2:.*]]) {
   // CHECK-NEXT:   %[[arg3:.*]] = add i64 %[[arg1]], %[[arg2]]
   // CHECK-NEXT:   ret i64 %[[arg3]]


        


More information about the Mlir-commits mailing list