Skip to content

Commit 3fc3b50

Browse files
committed
Tidy generated comments etc
1 parent 2fd517a commit 3fc3b50

File tree

6 files changed

+155
-147
lines changed

6 files changed

+155
-147
lines changed

offload/new-api/API/Common.td

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,6 @@ def : Macro {
2929
let alt_value = "";
3030
}
3131

32-
def : Typedef {
33-
let name = "offload_bool_t";
34-
let value = "uint8_t";
35-
let desc = "compiler-independent type";
36-
}
37-
3832
def : Handle {
3933
let name = "offload_platform_handle_t";
4034
let desc = "Handle of a platform instance";
@@ -62,14 +56,14 @@ def : Enum {
6256
Etor<"ERROR_DEVICE_LOST", "Device hung, reset, was removed, or driver update occurred">,
6357
Etor<"ERROR_UNINITIALIZED", "plugin is not initialized or specific entry-point is not implemented">,
6458
Etor<"ERROR_OUT_OF_RESOURCES", "Out of resources">,
65-
Etor<"ERROR_UNSUPPORTED_VERSION", "[Validation] generic error code for unsupported versions">,
66-
Etor<"ERROR_UNSUPPORTED_FEATURE", "[Validation] generic error code for unsupported features">,
67-
Etor<"ERROR_INVALID_ARGUMENT", "[Validation] generic error code for invalid arguments">,
68-
Etor<"ERROR_INVALID_NULL_HANDLE", "[Validation] handle argument is not valid">,
69-
Etor<"ERROR_INVALID_NULL_POINTER", "[Validation] pointer argument may not be nullptr">,
70-
Etor<"ERROR_INVALID_SIZE", "[Validation] invalid size or dimensions (e.g., must not be zero, or is out of bounds)">,
71-
Etor<"ERROR_INVALID_ENUMERATION", "[Validation] enumerator argument is not valid">,
72-
Etor<"ERROR_UNSUPPORTED_ENUMERATION", "[Validation] enumerator argument is not supported by the device">,
59+
Etor<"ERROR_UNSUPPORTED_VERSION", "generic error code for unsupported versions">,
60+
Etor<"ERROR_UNSUPPORTED_FEATURE", "generic error code for unsupported features">,
61+
Etor<"ERROR_INVALID_ARGUMENT", "generic error code for invalid arguments">,
62+
Etor<"ERROR_INVALID_NULL_HANDLE", "handle argument is not valid">,
63+
Etor<"ERROR_INVALID_NULL_POINTER", "pointer argument may not be nullptr">,
64+
Etor<"ERROR_INVALID_SIZE", "invalid size or dimensions (e.g., must not be zero, or is out of bounds)">,
65+
Etor<"ERROR_INVALID_ENUMERATION", "enumerator argument is not valid">,
66+
Etor<"ERROR_UNSUPPORTED_ENUMERATION", "enumerator argument is not supported by the device">,
7367
Etor<"ERROR_UNKNOWN", "Unknown or internal error">
7468
];
7569
}

offload/new-api/API/Device.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ def : Function {
4646
let params = [
4747
Param<"offload_platform_handle_t", "hPlatform", "handle of the platform instance", PARAM_IN>,
4848
Param<"offload_device_type_t", "DeviceType", "the type of the devices.", PARAM_IN>,
49-
Param<"uint32_t", "NumEntries", "the number of devices to be added to phDevices."
50-
"If phDevices is not NULL, then NumEntries should be greater than zero. Otherwise OFFLOAD_RESULT_ERROR_INVALID_SIZE"
49+
Param<"uint32_t", "NumEntries", "the number of devices to be added to phDevices. "
50+
"If phDevices is not NULL, then NumEntries should be greater than zero. Otherwise OFFLOAD_RESULT_ERROR_INVALID_SIZE "
5151
"will be returned.", PARAM_IN>,
52-
RangedParam<"offload_device_handle_t*", "phDevices", "array of handle of devices."
52+
RangedParam<"offload_device_handle_t*", "phDevices", "Array of device handles. "
5353
"If NumEntries is less than the number of devices available, then platform shall only retrieve that number of devices.", PARAM_OUT_OPTIONAL,
5454
Range<"0", "NumEntries">>,
55-
Param<"uint32_t*", "pNumDevices", "pointer to the number of devices."
55+
Param<"uint32_t*", "pNumDevices", "pointer to the number of devices. "
5656
"pNumDevices will be updated with the total number of devices available.", PARAM_OUT_OPTIONAL>
5757
];
5858
let returns = [

offload/new-api/API/Platform.td

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ def : Function {
1717
];
1818
let params = [
1919
Param<"uint32_t", "NumEntries",
20-
"The number of platforms to be added to phPlatforms. If phPlatforms is not NULL, then"
21-
"NumEntries should be greater than zero, otherwise OFFLOAD_RESULT_ERROR_INVALID_SIZE"
20+
"The number of platforms to be added to phPlatforms. If phPlatforms is not NULL, then "
21+
"NumEntries should be greater than zero, otherwise OFFLOAD_RESULT_ERROR_INVALID_SIZE "
2222
"will be returned.", PARAM_IN>,
2323
RangedParam<"offload_platform_handle_t*", "phPlatforms",
24-
"Array of handle of platforms. If NumEntries is"
25-
"less than the number of platforms available, then offloadPlatformGet"
26-
"shall only retrieve that number of platforms.",
24+
"Array of handle of platforms. If NumEntries is less than the number of "
25+
"platforms available, then offloadPlatformGet shall only retrieve that "
26+
"number of platforms.",
2727
PARAM_OUT_OPTIONAL, Range<"0", "NumEntries">>,
2828
Param<"uint32_t*",
2929
"pNumPlatforms", "returns the total number of platforms available.",
@@ -69,8 +69,8 @@ def : Function {
6969
Param<"offload_platform_handle_t", "hPlatform", "handle of the platform", PARAM_IN>,
7070
Param<"offload_platform_info_t", "propName", "type of the info to retrieve", PARAM_IN>,
7171
Param<"size_t", "propSize", "the number of bytes pointed to by pPlatformInfo.", PARAM_IN>,
72-
TypeTaggedParam<"void*", "pPropValue", "array of bytes holding the info."
73-
"If Size is not equal to or greater to the real number of bytes needed to return the info"
72+
TypeTaggedParam<"void*", "pPropValue", "array of bytes holding the info. "
73+
"If Size is not equal to or greater to the real number of bytes needed to return the info "
7474
"then the OFFLOAD_RESULT_ERROR_INVALID_SIZE error is returned and pPlatformInfo is not used.", PARAM_OUT_OPTIONAL,
7575
TypeInfo<"propName" , "propSize">>,
7676
Param<"size_t*", "pPropSizeRet", "pointer to the actual number of bytes being queried by pPlatformInfo.", PARAM_OUT_OPTIONAL>

0 commit comments

Comments
 (0)