-
Notifications
You must be signed in to change notification settings - Fork 15.3k
Closed
Labels
Description
As argument extensions are needed for correctness, I have been working on going through the code base for cases where they are missing. In mlir, I have now found a few, that I would need help with. In particular, I don't know where these functions are emitted, or how to add the proper Attributes (CreateRuntimeFunction? /.td file?). These are the tests that fail, with the problematic function printed as well:
FAIL: MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/6/12 (11 of 2540)
******************** TEST 'MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/6/12' FAILED ********************
[==========] Running 1 test from 1 test suite.
[----------] Global test environment set-up.
[----------] 1 test from MLIRExecutionEngine
[ RUN ] MLIRExecutionEngine.AddInteger
ERROR: Missing extension attribute of returned value from function: // and arg
i32 @foo(i32)
FAIL: MLIR :: CAPI/execution_engine.c (12 of 2540)
******************** TEST 'MLIR :: CAPI/execution_engine.c' FAILED ********************
Running test 'testSimpleExecution'
ERROR: Missing extension attribute of returned value from function: // and arg
range(i32 0, -1) i32 @add(i32)
FAIL: MLIR :: mlir-cpu-runner/simple.mlir (13 of 2540)
******************** TEST 'MLIR :: mlir-cpu-runner/simple.mlir' FAILED ********************
# | ERROR: Missing extension attribute of returned value from function:
# | i32 @int32_main()
FAIL: MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/11/12 (15 of 2540)
******************** TEST 'MLIR-Unit :: ExecutionEngine/./MLIRExecutionEngineTests/11/12' FAILED ********************
ERROR: Missing extension attribute of passed value in call to function:
Callee: void @_mlir_ciface_callback(ptr, i32)
Caller: void @callback(ptr, ptr, i64, i64, i64, i64, i64, i32)
Thanks for any help here. Adding people I find in the logs:
@shahidact @dcaballe @banach-space @ienkovich @tblah @paulwalker-arm @brod4910 @CoTinker @Groverkss