MCPcopy Create free account

hub / github.com/HigherOrderCO-archive/hvm-64 / functions

Functions335 in github.com/HigherOrderCO-archive/hvm-64

↓ 2 callersFunctioncreate_var
Creates a variable uniquely identified by `id`.
util/src/create_var.rs:5
↓ 2 callersMethoddef
(&self)
runtime/src/addr.rs:32
↓ 2 callersMethoddo_ctr
(&mut self, lab: Lab, trg: Trg)
runtime/src/instruction.rs:113
↓ 2 callersMethoddo_op
(&mut self, op: NumTag, trg: Trg)
runtime/src/instruction.rs:136
↓ 2 callersMethoddo_op_num
(&mut self, op: NumTag, trg: Trg, rhs: Num)
runtime/src/instruction.rs:156
↓ 2 callersMethoddo_switch
(&mut self, trg: Trg)
runtime/src/instruction.rs:176
↓ 2 callersMethoddo_wires
(&mut self)
runtime/src/instruction.rs:206
↓ 2 callersMethoddrain
(&mut self)
runtime/src/linker.rs:328
↓ 2 callersMethodencode_def
Converts an ast net to a list of instructions to create the net. `get_def` must return the `Port` corresponding to a given `Ref` name.
host/src/encode.rs:13
↓ 2 callersMethodencode_net
Encode the root of `ast_net` directly into `trg` and encode its redexes into `net` redex list.
host/src/encode.rs:31
↓ 2 callersMethodensure_no_conflicts
(&self, fresh: &mut usize)
ast/src/ast.rs:125
↓ 2 callersFunctionexecute_host
(host: &Host)
tests/tests.rs:28
↓ 2 callersMethodexpand
Expands [`Tag::Ref`] nodes in the tree connected to `root`.
runtime/src/net.rs:65
↓ 2 callersMethodget_sym
(self)
num/src/num.rs:128
↓ 2 callersMethodinline
(&mut self)
transform/src/inline.rs:15
↓ 2 callersMethodinsert_book
Converts all of the nets from the book into runtime defs, and inserts them into the host. The book must not have refs that are not in the book or the
host/src/host.rs:34
↓ 2 callersMethodinsert_book_with_default
Like `insert_book`, but allows specifying a function (`default_def`) that will be run when the name of a definition is not found in the book. The retu
host/src/host.rs:41
↓ 2 callersMethodinto_iter
(self)
host/src/calc_labels.rs:98
↓ 2 callersMethodis_op
(self)
num/src/num.rs:46
↓ 2 callersMethodlink
(&mut self, a: Self::Trg, b: Self::Trg)
host/src/encode.rs:124
↓ 2 callersMethodlink_trg
(&mut self, a: Trg, b: Trg)
runtime/src/linker.rs:297
↓ 2 callersFunctionload_host
(files: &[PathBuf], transform_args: TransformArgs, include: &[PathBuf])
src/main.rs:93
↓ 2 callersFunctionnew_uninit_slice
TODO: use `Box::new_uninit_slice` once stabilized https://github.com/rust-lang/rust/issues/63291
util/src/new_uninit_slice.rs:8
↓ 2 callersFunctionnode
tests/programs/stress_tests/sum_tree.js:16
↓ 2 callersFunctionnormal
(book: Book, mem: Option<usize>)
tests/loaders.rs:40
↓ 2 callersMethodop
(&mut self, op: NumTag, trg: Self::Trg)
host/src/encode.rs:138
↓ 2 callersMethodop_num
(&mut self, a: Port, b: Port)
runtime/src/interact.rs:251
↓ 2 callersMethodparallel_normal
Evaluates a term to normal form in parallel
runtime/src/parallel.rs:35
↓ 2 callersMethodparse_num_lit
(&mut self)
ast/src/parser.rs:142
↓ 2 callersMethodpayload
(self)
num/src/num.rs:108
↓ 2 callersMethodpeek_word
(&self)
runtime/src/trace.rs:281
↓ 2 callersMethodraw
(self)
num/src/num.rs:98
↓ 2 callersMethodreduce
(&mut self, limit: usize)
runtime/src/net.rs:41
↓ 2 callersFunctionreduce_exprs
(host: &Host, exprs: &[Net], opts: &RuntimeOpts)
src/main.rs:176
↓ 2 callersFunctionrefs
Returns the names of all references occurring in `instructions`.
src/compile.rs:215
↓ 2 callersFunctionsanitize_name
Adapts `name` to be a valid suffix for a rust identifier, if necessary.
src/compile.rs:199
↓ 2 callersMethodshould_inline
(&self)
transform/src/inline.rs:87
↓ 2 callersMethodswitch_num
(&mut self, a: Port, b: Port)
runtime/src/interact.rs:201
↓ 2 callersMethodtotal
(&self)
runtime/src/runtime.rs:92
↓ 2 callersMethodtrees
(&self)
ast/src/ast.rs:99
↓ 2 callersMethodtrees_mut
(&mut self)
ast/src/ast.rs:103
↓ 2 callersMethodvisit_def
(&mut self, key: &'b str, depth: Option<usize>, out: Option<&mut LabSet>)
host/src/calc_labels.rs:127
↓ 2 callersMethodvisit_def
(&mut self, name: &str)
transform/src/prune.rs:30
↓ 2 callersMethodvisit_net
(&mut self, net: &'a AstNet, trg: E::Trg)
host/src/encode.rs:48
↓ 2 callersMethodvisit_within_def
(&mut self, key: &str, depth: Option<usize>, mut out: Option<&mut LabSet>)
host/src/calc_labels.rs:166
↓ 2 callersMethodwire
(&self)
runtime/src/port.rs:192
↓ 1 callersFunction_compile_host
Compiles a [`Host`] to Rust, returning a file to replace `gen.rs`. Unlike [`compile_host`], this returns a [`Result`] instead of panicking.
src/compile.rs:31
↓ 1 callersMethodanni2
(&mut self, a: Port, b: Port)
runtime/src/interact.rs:72
↓ 1 callersMethodbits
(&self)
runtime/src/def.rs:51
↓ 1 callersFunctioncalculate_label_sets
Calculates the labels used in each definition of a book. # Background: Naive Algorithms The simplest algorithm to calculate labels would be to go to
host/src/calc_labels.rs:78
↓ 1 callersMethodcall
(def: *const Def<Self>, net: &mut Net, port: Port)
runtime/src/net.rs:83
↓ 1 callersMethodclear
(&mut self)
runtime/src/linker.rs:340
↓ 1 callersFunctioncompile_host
Compiles a [`Host`] to Rust, returning a file to replace `gen.rs`.
src/compile.rs:22
↓ 1 callersFunctioncompile_lab_set
(labs: &LabSet)
src/compile.rs:180
↓ 1 callersFunctioncompile_struct
Compiles a def into a structure.
src/compile.rs:110
↓ 1 callersFunctioncompile_temp_hvm
Compiles the `.hvm` directory, appending the provided `args` to `cargo`.
src/main.rs:207
↓ 1 callersFunctioncreate_temp_hvm
Copies the `hvm-64` source to a temporary `.hvm` directory. Only a subset of `Cargo.toml` is included.
src/compile/include_files.rs:39
↓ 1 callersMethodcreate_wire
(&mut self)
runtime/src/node.rs:43
↓ 1 callersMethodctr
(&mut self, lab: Lab, trg: Self::Trg)
host/src/encode.rs:132
↓ 1 callersFunctionexecute_hvm64
(args: &[&str])
tests/cli.rs:19
↓ 1 callersMethodfmt
(&self, f: &mut Formatter<'_>)
runtime/src/trace.rs:469
↓ 1 callersMethodfork
Forks the net into `tids` child nets, for parallel operation.
runtime/src/parallel.rs:12
↓ 1 callersFunctiongen
tests/programs/stress_tests/sum_tree.js:19
↓ 1 callersFunctiongen
examples/sort/radix/radix_sort_lam.js:9
↓ 1 callersMethodhas
(&self, lab: Lab)
runtime/src/def.rs:30
↓ 1 callersMethodinline_into
(&self, tree: &mut Tree)
transform/src/inline.rs:67
↓ 1 callersMethodinteract
(&mut self, a: Port, b: Port)
runtime/src/interact.rs:6
↓ 1 callersMethodis_era
(&self)
runtime/src/port.rs:161
↓ 1 callersMethodis_ty
(self)
num/src/num.rs:51
↓ 1 callersMethodlab
(&self)
ast/src/ast.rs:157
↓ 1 callersFunctionleaf
tests/programs/stress_tests/sum_tree.js:17
↓ 1 callersMethodleft_half
(&self)
runtime/src/addr.rs:41
↓ 1 callersFunctionlist_got
(index: u32)
tests/lists.rs:8
↓ 1 callersFunctionlist_put
(index: u32, value: u32)
tests/lists.rs:18
↓ 1 callersFunctionload_dylibs
(host: &mut Host, include: &[PathBuf])
src/main.rs:131
↓ 1 callersFunctionmain
()
build.rs:3
↓ 1 callersMethodmake_const
(&mut self, port: Port)
host/src/encode.rs:127
↓ 1 callersMethodop
(&self)
runtime/src/port.rs:179
↓ 1 callersMethodop_num
(&mut self, op: NumTag, trg: Self::Trg, rhs: Num)
host/src/encode.rs:144
↓ 1 callersMethodparse_net
Net = Tree ("&" Tree "~" Tree)
ast/src/parser.rs:30
↓ 1 callersMethodparse_num
(&mut self)
ast/src/parser.rs:116
↓ 1 callersMethodpop
(&mut self)
runtime/src/linker.rs:316
↓ 1 callersMethodpopulate_inlinees
(&mut self, book: &Book)
transform/src/inline.rs:38
↓ 1 callersFunctionprint_stats
(net: &hvm64_runtime::Net, elapsed: Duration)
src/main.rs:195
↓ 1 callersFunctionradix
examples/sort/radix/radix_sort_lam.js:76
↓ 1 callersMethodread_entry
(&mut self, f: &mut impl Write)
runtime/src/trace.rs:245
↓ 1 callersFunctionredex_would_shrink
Returns whether a redex does not allocate memory
runtime/src/linker.rs:347
↓ 1 callersMethodredirect
(&self)
runtime/src/port.rs:211
↓ 1 callersMethodreduce_tree
(&mut self, tree: &mut Tree)
transform/src/eta_reduce.rs:133
↓ 1 callersMethodremaining
(&self)
runtime/src/trace.rs:289
↓ 1 callersMethodresolve_redirect_pri
Resolves redirects when 'b_port' is a principal port.
runtime/src/linker.rs:130
↓ 1 callersFunctionrun
(host: &Host, opts: RuntimeOpts, args: RunArgs)
src/main.rs:82
↓ 1 callersFunctionset_hook
()
runtime/src/trace.rs:475
↓ 1 callersMethodset_tid
(&self, _: usize)
runtime/src/trace.rs:94
↓ 1 callersFunctionsort
examples/sort/radix/radix_sort_lam.js:34
↓ 1 callersMethodswitch
(&mut self, trg: Self::Trg)
host/src/encode.rs:149
↓ 1 callersMethodsync
(&mut self)
runtime/src/trace.rs:89
↓ 1 callersFunctiontest_path
(path: &Path)
tests/tests.rs:57
↓ 1 callersFunctiontest_pre_reduce_run
(mut book: Book)
tests/tests.rs:44
↓ 1 callersFunctiontest_run
(host: &Host)
tests/tests.rs:37
← previousnext →101–200 of 335, ranked by callers