1 // RUN: %offload-tblgen -gen-api -I %S/../../../liboffload/API %s | %fcheck-generic --check-prefix=CHECK-API
2 // RUN: %offload-tblgen -gen-exports -I %S/../../../liboffload/API %s | %fcheck-generic --check-prefix=CHECK-EXPORTS
3 // RUN: %offload-tblgen -gen-func-names -I %S/../../../liboffload/API %s | %fcheck-generic --check-prefix=CHECK-FUNC-MACRO
5 // Check that the function variant with code location information is generated
6 // and is otherwise the same as the regular function
11 let name = "FunctionA";
12 let desc = "Function A description";
13 let details = [ "Function A detailed information" ];
15 Param<"uint32_t", "ParamA", "Parameter A description">,
16 Param<"uint32_t*", "ParamB", "Parameter B description">,
19 Return<"OL_ERRC_INVALID_VALUE", ["When a value is invalid"]>
23 // CHECK-API-DAG: ol_result_t{{.*}} FunctionA
24 // CHECK-API-DAG: ol_result_t{{.*}} FunctionAWithCodeLoc
25 // CHECK-EXPORTS: FunctionAWithCodeLoc
26 // CHECK-FUNC-MACRO: OFFLOAD_FUNC(FunctionAWithCodeLoc)