simdref 0.0.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- simdref/__init__.py +6 -0
- simdref/__main__.py +6 -0
- simdref/annotate.py +448 -0
- simdref/arm_instructions.py +417 -0
- simdref/cli.py +1598 -0
- simdref/display.py +963 -0
- simdref/filters.py +318 -0
- simdref/ingest.py +113 -0
- simdref/ingest_catalog.py +1172 -0
- simdref/ingest_pdf.py +188 -0
- simdref/ingest_sources.py +580 -0
- simdref/lsp.py +208 -0
- simdref/manpages.py +139 -0
- simdref/models.py +225 -0
- simdref/pdfparse/__init__.py +13 -0
- simdref/pdfparse/base.py +116 -0
- simdref/pdfparse/intel.py +614 -0
- simdref/pdfparse/registry.py +19 -0
- simdref/pdfparse/types.py +77 -0
- simdref/pdfrefs.py +95 -0
- simdref/perf.py +220 -0
- simdref/perf_sources/__init__.py +51 -0
- simdref/perf_sources/cores.py +101 -0
- simdref/perf_sources/llvm_mca.py +176 -0
- simdref/perf_sources/llvm_scheduling.py +625 -0
- simdref/perf_sources/merge.py +121 -0
- simdref/queries.py +207 -0
- simdref/riscv.py +446 -0
- simdref/search.py +288 -0
- simdref/storage.py +504 -0
- simdref/templates/__init__.py +0 -0
- simdref/templates/app.js +1590 -0
- simdref/templates/favicon.svg +5 -0
- simdref/templates/index.html +112 -0
- simdref/templates/logo.svg +12 -0
- simdref/templates/style.css +680 -0
- simdref/tui.py +2366 -0
- simdref/web.py +403 -0
- simdref-0.0.0.dist-info/METADATA +240 -0
- simdref-0.0.0.dist-info/RECORD +44 -0
- simdref-0.0.0.dist-info/WHEEL +5 -0
- simdref-0.0.0.dist-info/entry_points.txt +4 -0
- simdref-0.0.0.dist-info/licenses/LICENSE +674 -0
- simdref-0.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="64" height="64" viewBox="0 0 64 64" fill="none">
|
|
2
|
+
<rect x="4" y="4" width="56" height="56" rx="14" fill="#2563eb"/>
|
|
3
|
+
<path d="M16 22h28M16 32h18M16 42h28" stroke="#f8fafc" stroke-width="5" stroke-linecap="round"/>
|
|
4
|
+
<circle cx="46" cy="32" r="6" fill="#fbbf24"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>simdref</title>
|
|
7
|
+
<style>/* __CSS__ */</style>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<header class="header">
|
|
11
|
+
<div class="header-left">
|
|
12
|
+
<span class="logo">simdref</span>
|
|
13
|
+
</div>
|
|
14
|
+
<div class="header-right">
|
|
15
|
+
<span class="meta" id="meta">Loading...</span>
|
|
16
|
+
<button id="theme-toggle" class="icon-btn" type="button" title="Toggle dark mode (d)" aria-label="Toggle dark mode">
|
|
17
|
+
<svg id="theme-icon-light" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="8" cy="8" r="3.5"/><path d="M8 1v2M8 13v2M1 8h2M13 8h2M3.05 3.05l1.41 1.41M11.54 11.54l1.41 1.41M3.05 12.95l1.41-1.41M11.54 4.46l1.41-1.41"/></svg>
|
|
18
|
+
<svg id="theme-icon-dark" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" style="display:none"><path d="M13.5 8.5a5.5 5.5 0 01-7.5 2A5.5 5.5 0 018.5 2a4 4 0 005 6.5z"/></svg>
|
|
19
|
+
</button>
|
|
20
|
+
</div>
|
|
21
|
+
</header>
|
|
22
|
+
|
|
23
|
+
<div class="search-bar">
|
|
24
|
+
<div class="search-wrap">
|
|
25
|
+
<svg class="search-icon" width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" aria-hidden="true"><circle cx="7" cy="7" r="4.5"/><path d="M10.5 10.5L14 14"/></svg>
|
|
26
|
+
<input id="query" type="text" role="searchbox" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" aria-autocomplete="none" data-lpignore="true" data-form-type="other" data-1p-ignore="true" name="simdref-query" placeholder="Search intrinsics or instructions...">
|
|
27
|
+
<kbd class="search-hint">/</kbd>
|
|
28
|
+
</div>
|
|
29
|
+
<button id="isa-toggle" class="isa-toggle-btn" type="button" title="ISA filters (f)">
|
|
30
|
+
<span id="isa-summary">ISA: Default</span>
|
|
31
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M3 5l3 3 3-3"/></svg>
|
|
32
|
+
</button>
|
|
33
|
+
<button id="category-toggle" class="isa-toggle-btn" type="button" title="Category filters (g)">
|
|
34
|
+
<span id="category-summary">Category: All</span>
|
|
35
|
+
<svg width="12" height="12" viewBox="0 0 12 12" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M3 5l3 3 3-3"/></svg>
|
|
36
|
+
</button>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<div id="isa-panel" class="isa-panel">
|
|
40
|
+
<div class="isa-toolbar">
|
|
41
|
+
<div id="isa-families" class="isa-family-chips"></div>
|
|
42
|
+
<div class="isa-presets">
|
|
43
|
+
<button id="isa-default" class="preset-btn" type="button">Default</button>
|
|
44
|
+
<button id="isa-intel" class="preset-btn" type="button">Intel</button>
|
|
45
|
+
<button id="isa-arm32" class="preset-btn" type="button">Arm32</button>
|
|
46
|
+
<button id="isa-arm64" class="preset-btn" type="button">Arm64</button>
|
|
47
|
+
<button id="isa-riscv" class="preset-btn" type="button">RISC-V</button>
|
|
48
|
+
<button id="isa-none" class="preset-btn" type="button">None</button>
|
|
49
|
+
<button id="isa-all" class="preset-btn" type="button">All</button>
|
|
50
|
+
</div>
|
|
51
|
+
</div>
|
|
52
|
+
<div id="isa-subgroups" class="isa-groups"></div>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<div id="kind-bar" class="kind-bar">
|
|
56
|
+
<span class="kind-label">Kind:</span>
|
|
57
|
+
<label class="isa-chip active"><input type="checkbox" data-kind="intrinsic" checked> intrinsics</label>
|
|
58
|
+
<label class="isa-chip active"><input type="checkbox" data-kind="instruction" checked> asm / instructions</label>
|
|
59
|
+
<span class="kind-label" style="margin-left:0.8rem">Perf:</span>
|
|
60
|
+
<label class="isa-chip active"><input type="checkbox" data-perf-kind="measured" checked> measured</label>
|
|
61
|
+
<label class="isa-chip active"><input type="checkbox" data-perf-kind="modeled" checked> modeled</label>
|
|
62
|
+
</div>
|
|
63
|
+
|
|
64
|
+
<div id="category-panel" class="isa-panel hidden">
|
|
65
|
+
<div class="isa-toolbar">
|
|
66
|
+
<div id="category-chips" class="isa-family-chips"></div>
|
|
67
|
+
<div class="isa-presets">
|
|
68
|
+
<button id="category-all" class="preset-btn" type="button">All</button>
|
|
69
|
+
<button id="category-none" class="preset-btn" type="button">None</button>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
|
|
74
|
+
<div class="layout">
|
|
75
|
+
<aside class="results-panel" id="results-panel">
|
|
76
|
+
<div class="results-header">
|
|
77
|
+
<span id="results-count">Loading catalog...</span>
|
|
78
|
+
</div>
|
|
79
|
+
<div class="results-list" id="results" tabindex="0"></div>
|
|
80
|
+
</aside>
|
|
81
|
+
<main class="detail-panel" id="detail" tabindex="0">
|
|
82
|
+
<div class="detail-empty" id="detail-empty">Select a result or search for an intrinsic / instruction.</div>
|
|
83
|
+
</main>
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<div id="shortcuts-overlay" class="overlay hidden">
|
|
87
|
+
<div class="overlay-content">
|
|
88
|
+
<h3>Keyboard Shortcuts</h3>
|
|
89
|
+
<table class="shortcuts-table">
|
|
90
|
+
<tr><td><kbd>/</kbd> <kbd>Ctrl+K</kbd></td><td>Focus search</td></tr>
|
|
91
|
+
<tr><td><kbd>Esc</kbd></td><td>Blur / close</td></tr>
|
|
92
|
+
<tr><td><kbd>j</kbd> <kbd>↓</kbd> <kbd>]</kbd></td><td>Next result</td></tr>
|
|
93
|
+
<tr><td><kbd>k</kbd> <kbd>↑</kbd> <kbd>[</kbd></td><td>Previous result</td></tr>
|
|
94
|
+
<tr><td><kbd>Home</kbd></td><td>First result</td></tr>
|
|
95
|
+
<tr><td><kbd>End</kbd></td><td>Last result</td></tr>
|
|
96
|
+
<tr><td><kbd>Enter</kbd></td><td>Select result</td></tr>
|
|
97
|
+
<tr><td><kbd>Tab</kbd></td><td>Focus detail panel</td></tr>
|
|
98
|
+
<tr><td><kbd>Shift+Tab</kbd></td><td>Focus results panel</td></tr>
|
|
99
|
+
<tr><td><kbd>c</kbd></td><td>Copy name to clipboard</td></tr>
|
|
100
|
+
<tr><td><kbd>s</kbd></td><td>Toggle sidebar</td></tr>
|
|
101
|
+
<tr><td><kbd>f</kbd></td><td>Toggle ISA filter</td></tr>
|
|
102
|
+
<tr><td><kbd>g</kbd></td><td>Toggle category filter</td></tr>
|
|
103
|
+
<tr><td><kbd>d</kbd></td><td>Toggle dark mode</td></tr>
|
|
104
|
+
<tr><td><kbd>?</kbd></td><td>Show shortcuts</td></tr>
|
|
105
|
+
</table>
|
|
106
|
+
<button id="close-shortcuts" class="preset-btn" type="button">Close</button>
|
|
107
|
+
</div>
|
|
108
|
+
</div>
|
|
109
|
+
|
|
110
|
+
<script>/* __JS__ */</script>
|
|
111
|
+
</body>
|
|
112
|
+
</html>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="192" height="40" viewBox="0 0 192 40" fill="none">
|
|
2
|
+
<rect x="1" y="4" width="32" height="32" rx="8" fill="#2563eb"/>
|
|
3
|
+
<path d="M9 14h16M9 20h10M9 26h16" stroke="#f8fafc" stroke-width="2.5" stroke-linecap="round"/>
|
|
4
|
+
<circle cx="27" cy="20" r="3" fill="#fbbf24"/>
|
|
5
|
+
<path d="M46 28V12h9.2c5.2 0 7.4 2.1 7.4 5.2 0 2.2-1.2 3.8-3.4 4.5 2.8.6 4.3 2.2 4.3 5 0 3.4-2.5 5.3-7.7 5.3H46Zm4.1-9.4v5.9h5.1c2 0 3.2-.9 3.2-2.8 0-2.1-1.4-3.1-4.1-3.1h-4.2Zm0-3.1h4.4c2.3 0 3.6-.8 3.6-2.5 0-1.7-1.2-2.5-3.5-2.5h-4.5v5Z" fill="#0f172a"/>
|
|
6
|
+
<path d="M66.1 28V12h4.1v16h-4.1Z" fill="#0f172a"/>
|
|
7
|
+
<path d="M74.7 28V12h4.1v12.6h8.4V28H74.7Z" fill="#0f172a"/>
|
|
8
|
+
<path d="M90.2 28V12h4.1v12.6h8.4V28H90.2Z" fill="#0f172a"/>
|
|
9
|
+
<path d="M105.3 28V12h12.4v3.4h-8.3v2.9h7.4v3.2h-7.4v3h8.5V28h-12.6Z" fill="#0f172a"/>
|
|
10
|
+
<path d="M121.2 28V12h8c5.1 0 7.7 2.1 7.7 6.3 0 3.1-1.4 5.1-4.2 6l4.4 3.7h-6.1l-3.6-3.2h-2V28h-4.2Zm4.2-6.2h3.4c2.5 0 3.8-1 3.8-3.1 0-2.1-1.3-3.2-3.8-3.2h-3.4v6.3Z" fill="#0f172a"/>
|
|
11
|
+
<path d="M139.7 28V12h12.3v3.4h-8.2v3.2h7.2v3.3h-7.2V28h-4.1Z" fill="#0f172a"/>
|
|
12
|
+
</svg>
|