@celox-sim/celox-napi 0.1.25 → 0.1.27

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.
Files changed (2) hide show
  1. package/index.d.ts +27 -0
  2. package/package.json +8 -8
package/index.d.ts CHANGED
@@ -119,11 +119,38 @@ export interface NapiInstanceSegment {
119
119
  index: number
120
120
  }
121
121
 
122
+ /** Per-pass optimizer control. All fields default to true when omitted. */
123
+ export interface NapiOptimizeOptions {
124
+ storeLoadForwarding?: boolean
125
+ hoistCommonBranchLoads?: boolean
126
+ bitExtractPeephole?: boolean
127
+ optimizeBlocks?: boolean
128
+ splitWideCommits?: boolean
129
+ commitSinking?: boolean
130
+ inlineCommitForwarding?: boolean
131
+ eliminateDeadWorkingStores?: boolean
132
+ reschedule?: boolean
133
+ }
134
+
122
135
  /** Options for creating a simulator/simulation handle. */
123
136
  export interface NapiOptions {
124
137
  fourState?: boolean
125
138
  vcd?: string
139
+ /**
140
+ * Shorthand to enable/disable all SIRT optimization passes.
141
+ * `true` = all on, `false` = all off. Overridden by `optimize_options` if both set.
142
+ */
126
143
  optimize?: boolean
144
+ /** Per-pass optimizer flags. */
145
+ optimizeOptions?: NapiOptimizeOptions
146
+ /** Cranelift backend optimization level: "none", "speed", or "speed_and_size". */
147
+ craneliftOptLevel?: string
148
+ /** Register allocator algorithm: "backtracking" or "single_pass". */
149
+ regallocAlgorithm?: string
150
+ /** Enable alias analysis in the Cranelift egraph pass. Default: true. */
151
+ enableAliasAnalysis?: boolean
152
+ /** Enable the Cranelift IR verifier. Default: true. */
153
+ enableVerifier?: boolean
127
154
  falseLoops?: Array<NapiFalseLoop>
128
155
  trueLoops?: Array<NapiTrueLoop>
129
156
  /** Clock polarity: "posedge" or "negedge". */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@celox-sim/celox-napi",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "description": "Celox simulator NAPI bindings",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -44,12 +44,12 @@
44
44
  },
45
45
  "license": "MIT OR Apache-2.0",
46
46
  "optionalDependencies": {
47
- "@celox-sim/celox-napi-linux-x64-gnu": "0.1.25",
48
- "@celox-sim/celox-napi-linux-arm64-gnu": "0.1.25",
49
- "@celox-sim/celox-napi-linux-x64-musl": "0.1.25",
50
- "@celox-sim/celox-napi-linux-arm64-musl": "0.1.25",
51
- "@celox-sim/celox-napi-darwin-x64": "0.1.25",
52
- "@celox-sim/celox-napi-darwin-arm64": "0.1.25",
53
- "@celox-sim/celox-napi-win32-x64-msvc": "0.1.25"
47
+ "@celox-sim/celox-napi-linux-x64-gnu": "0.1.27",
48
+ "@celox-sim/celox-napi-linux-arm64-gnu": "0.1.27",
49
+ "@celox-sim/celox-napi-linux-x64-musl": "0.1.27",
50
+ "@celox-sim/celox-napi-linux-arm64-musl": "0.1.27",
51
+ "@celox-sim/celox-napi-darwin-x64": "0.1.27",
52
+ "@celox-sim/celox-napi-darwin-arm64": "0.1.27",
53
+ "@celox-sim/celox-napi-win32-x64-msvc": "0.1.27"
54
54
  }
55
55
  }