Explorer Metadata¶
Generated page
This page is generated by gen_mipp_docs.py from the JSON Schemas of the generator (generator/helpers_headers/schemas/, generator/helpers_tests/schemas/). To change it, edit the description fields of the schemas, not this page.
Presentation of an ISA in the API Explorer, in simd_ext/<isa>/<isa>_explorer.json: display name and order, Compiler Explorer (Godbolt) settings, and the feature tiers or flags that the user can toggle. Read by gen_mipp_api_data.py, which validates it and copies it into docs/assets/data/mipp_api_index.json.
Files (in generator/) |
Schema |
|---|---|
simd_ext/<isa>/<isa>_explorer.json |
helpers_headers/schemas/explorer_isa_schema.json |
Example¶
{
"compiler": {
"id": "cg142",
"arch": "x86",
"label": "x86-64 GCC",
"base_flags": "-O3"
},
"description": "Streaming SIMD Extensions (x86 / x86-64 128-bit vector extensions)",
"display_name": "SSE",
"features": {
"mode": "mixed",
"default": "SSE4.2",
"items": [
{
"id": "SSE",
"label": "SSE",
"define": "__SSE__",
"flag": "-msse",
"type": "tier",
"default": true,
"locked": true,
"description": "Streaming SIMD Extensions (Base)"
},
{
"id": "SSE4.2",
"label": "SSE4.2",
"define": "__SSE4_2__",
"flag": "-msse4.2",
"type": "tier",
"default": true,
"locked": false,
"description": "Streaming SIMD Extensions 4.2"
},
{
"id": "FMA",
"label": "FMA",
"define": "__FMA__",
"flag": "-mfma",
"type": "flag",
"default": false,
"locked": false,
"description": "Fused Multiply-Add (FMA3) on 128-bit registers: a CPU that also has AVX"
}
]
},
"headers": [
"<immintrin.h>"
],
"name": "sse",
"order": 10
}
Fields¶
| Field | Type | Description |
|---|---|---|
$schema |
string | Optional reference to this schema, for the editors. |
description |
string | Optional short description or architectural notes. |
name |
string | Required. Identifier of the ISA matching the directory name. |
display_name |
string | Required. Human-friendly display name of the ISA. |
order |
integer | Display order for UI tabs and sorting (e.g. 10 for SSE, 20 for AVX...) |
headers |
array of string | Explicit C/C++ header inclusions override (e.g. for scalar). |
ignored_intrinsics |
array of string | List of vendor intrinsic function names to ignore from matching. |
compiler |
object | Required. Default compiler of the Compiler Explorer links. |
compiler.id |
string | Required. Godbolt identifier of a C compiler (e.g. cg142, carm64g1420, rv64-cclang): the Flat C code is compiled as C. |
compiler.arch |
string | Required. Architecture family (x86, arm, riscv). |
compiler.label |
string | Required. Human-readable label for the default compiler. |
compiler.base_flags |
string | Required. Base compilation flags (can contain {simd_width} template). |
compiler.execute |
boolean | false when Compiler Explorer cannot run the programs of this target (no execution host): the "Run in Godbolt" link is hidden. Default: true. |
compiler.compiler_32 |
object | Compiler used for the 32-bit variant of the ISA (e.g. ARMv7 for NEON). |
compiler.compiler_32.id |
string | Required. Godbolt compiler identifier. |
compiler.compiler_32.arch |
string | Required. Architecture family. |
compiler.compiler_32.label |
string | Required. Human-readable label. |
compiler.compiler_32.base_flags |
string | Required. Base compilation flags. |
compiler.compiler_32.execute |
boolean | false when Compiler Explorer cannot run the programs of this target. |
compiler.flags_by_size |
map of string | Optional map of vector/buffer size in bits to arch-specific flags. |
compiler.flags_by_size.<size> |
string | |
features |
object | Required. Hardware features shown as toggles in the Explorer. |
features.mode |
string | Required. How features are organized: 'hierarchy' (ordered tiers like SSE), 'flags' (orthogonal toggles), 'mixed' (tiers + flags), or 'none'. Values: hierarchy, flags, mixed, none. |
features.default |
string | Default selected tier ID if mode is 'hierarchy' or 'mixed'. |
features.items |
array of object | Required. List of feature flags or hierarchical tiers. |
features.items[].description |
string | Tooltip or documentation string. |
features.items[].id |
string | Required. Unique feature identifier within this ISA (e.g. BW, FMA, SSE4.2). Two ISAs can use the same identifier: the Explorer keeps the state of a flag per ISA. |
features.items[].label |
string | Required. Short label for UI buttons. |
features.items[].define |
string | Required. C preprocessor symbol (e.g. AVX512BW, __ARM_FEATURE_FMA). |
features.items[].type |
string | Type of item: 'tier' for hierarchical levels or 'flag' for orthogonal toggles (used in 'mixed' mode). Values: tier, flag. |
features.items[].flag |
string | Compiler flag to enable this feature. |
features.items[].default |
boolean | Whether this feature is active by default. |
features.items[].locked |
boolean | Whether this feature is locked/read-only in the UI. |