Handbook
Glossary
##or
Basic block instructions
Prev:
##not
Next:
##or-imm
Vocabulary
compiler
.
cfg
.
instructions
Definition
IN:
compiler.cfg.instructions
TUPLE:
##or
<
foldable-insn
dst src1 src2 insn#
;
Methods
USING:
accessors
compiler.cfg.gvn.avail
compiler.cfg.instructions
kernel
;
M:
##or
>avail-insn-defs
[
]
change-dst
drop
;
USING:
accessors
compiler.cfg.gvn.avail
compiler.cfg.instructions
kernel
;
M:
##or
>avail-insn-uses
[
dup
>avail-vreg
or*
]
change-src1
[
dup
>avail-vreg
or*
]
change-src2
drop
;
USING:
accessors
arrays
compiler.cfg.gvn.expressions
compiler.cfg.gvn.graph
compiler.cfg.instructions
kernel
sequences.private
;
M:
##or
>expr
\
##or
swap
[
src1>>
vreg>vn
]
keep
[
src2>>
vreg>vn
]
keep
drop
3
f
<array>
2
swap
[
set-array-nth
]
keep
1
swap
[
set-array-nth
]
keep
0
swap
[
set-array-nth
]
keep
;
USING:
accessors
arrays
compiler.cfg.instructions
compiler.cfg.value-numbering.expressions
compiler.cfg.value-numbering.graph
kernel
sequences.private
;
M:
##or
>expr
\
##or
swap
[
src1>>
vreg>vn
]
keep
[
src2>>
vreg>vn
]
keep
drop
3
f
<array>
2
swap
[
set-array-nth
]
keep
1
swap
[
set-array-nth
]
keep
0
swap
[
set-array-nth
]
keep
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.linear-scan.assignment
kernel
;
M:
##or
assign-insn-defs
[
vreg>reg
]
change-dst
drop
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.linear-scan.assignment
kernel
;
M:
##or
assign-insn-uses
[
vreg>reg
]
change-src1
[
vreg>reg
]
change-src2
drop
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.representations.rewrite
kernel
;
M:
##or
convert-insn-defs
[
converted-value
]
change-dst
drop
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.representations.rewrite
kernel
;
M:
##or
convert-insn-uses
[
converted-value
]
change-src1
[
converted-value
]
change-src2
drop
;
USING:
compiler.cfg.instructions
compiler.cfg.representations.preferred
cpu.architecture
kernel
;
M:
##or
defs-vreg-reps
drop
{
int-rep
}
;
USING:
accessors
arrays
compiler.cfg.def-use
compiler.cfg.instructions
;
M:
##or
defs-vregs
dst>>
1array
;
USING:
accessors
compiler.cfg.instructions
compiler.codegen
cpu.architecture
kernel
;
M:
##or
generate-insn
[
dst>>
]
keep
[
src1>>
]
keep
[
src2>>
]
keep
drop
%or
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.renaming
kernel
;
M:
##or
rename-insn-defs
[
rename-value
]
change-dst
drop
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.renaming
kernel
;
M:
##or
rename-insn-uses
[
rename-value
]
change-src1
[
rename-value
]
change-src2
drop
;
USING:
accessors
combinators
compiler.cfg.gvn.math
compiler.cfg.gvn.rewrite
compiler.cfg.instructions
kernel
;
M:
##or
rewrite
{
{
[
dup
diagonal?
]
[
identity
]
}
{
[
dup
src2>>
vreg-immediate-bitwise?
]
[
##or-imm
f
insn>imm-insn
]
}
{
[
dup
src1>>
vreg-immediate-bitwise?
]
[
##or-imm
t
insn>imm-insn
]
}
[
drop
f
]
}
cond
;
USING:
accessors
combinators
compiler.cfg.instructions
compiler.cfg.value-numbering.math
compiler.cfg.value-numbering.rewrite
kernel
;
M:
##or
rewrite
{
{
[
dup
diagonal?
]
[
identity
]
}
{
[
dup
src2>>
vreg-immediate-bitwise?
]
[
##or-imm
f
insn>imm-insn
]
}
{
[
dup
src1>>
vreg-immediate-bitwise?
]
[
##or-imm
t
insn>imm-insn
]
}
[
drop
f
]
}
cond
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.ssa.construction.private
kernel
;
M:
##or
ssa-rename-insn-defs
[
gen-name
]
change-dst
drop
;
USING:
accessors
compiler.cfg.instructions
compiler.cfg.ssa.construction.private
kernel
;
M:
##or
ssa-rename-insn-uses
[
top-name
]
change-src1
[
top-name
]
change-src2
drop
;
USING:
compiler.cfg.instructions
compiler.cfg.representations.preferred
cpu.architecture
kernel
;
M:
##or
uses-vreg-reps
drop
{
int-rep
int-rep
}
;
USING:
accessors
arrays
compiler.cfg.def-use
compiler.cfg.instructions
kernel
;
M:
##or
uses-vregs
[
src1>>
]
[
src2>>
]
bi
2array
;