Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Commit [3031b2] Maximize Restore History

Back end work for short vector SIMD packs

* Platform-agnostic changes:
- Declare type testing/checking routines.
- Define three primitive types: simd-pack-double for packs
of doubles, simd-pack-single for packs of singles, and
simd-pack-int for packs of integer/unknown.
- Define a heap-representation for 128-bit SIMD packs,
along with reserving a widetag and filling the corresponding
entries in gencgc's tables.
- Make the simd-pack class definition fully concrete.
- Teach IR1 how to expand SIMD-PACK type checks.
- IR2-conversion maps SIMD-PACK types to the right primitive type.
- Increase the limit on the number of storage classes: SIMD packs
went way past the previous (arbitrary?) limit of 40.

* Platform-specific changes, in src/compiler/target/simd-pack:
- Create new storage classes (that are backed by the float-reg [i.e. SSE]
storage base): one for each of double, single and integer sse packs.
- Also create the corresponding immediate-constant and stack storage
classes.
- Teach the assembler and the inline constant code about this new kind
of registers/constants, and how to map constant SIMD-PACKs to which SC.
- Define movement/conversion VOPs for SSE packs, along with VOP routines
needed for basic creation/manipulation of SSE packs.
- The type-checking VOP in generic/late-type-vops is extremely
x86-64-specific... IIRC, there are ordering issues I do not
want to tangle with.

* Implementation idiosyncrasy: while type *tests* (i.e. TYPEP calls) consider
the element type, type *checks* (e.g. THE or DECLARE) only check for
SIMD-PACKness, without looking at the element type. This is allowed by the
standard, is similar to what Python does for FUNCTION types, and helps
code remain efficient even when type checks can't be fully elided.

The vast majority of the code is verbatim or heavily inspired by Alexander
Gavrilov's branch.

Paul Khuong Paul Khuong 2013-05-21

added src/compiler/x86-64/simd-pack.lisp
changed src/code/class.lisp
changed src/code/interr.lisp
changed src/code/pred.lisp
changed src/code/target-type.lisp
changed src/code/typecheckfuns.lisp
changed src/code/typep.lisp
changed src/compiler/generic/early-objdef.lisp
changed src/compiler/generic/interr.lisp
changed src/compiler/generic/objdef.lisp
changed src/compiler/generic/primtype.lisp
changed src/compiler/generic/vm-macs.lisp
changed src/compiler/generic/vm-typetran.lisp
changed src/compiler/x86-64/insts.lisp
changed src/compiler/x86-64/macros.lisp
changed src/compiler/x86-64/type-vops.lisp
changed src/compiler/x86-64/vm.lisp
changed src/compiler/typetran.lisp
changed src/runtime/gc-common.c
changed src/runtime/gencgc.c
changed build-order.lisp-expr
changed package-data-list.lisp-expr
src/compiler/x86-64/simd-pack.lisp Diff Switch to side-by-side view
Loading...
src/code/class.lisp Diff Switch to side-by-side view
Loading...
src/code/interr.lisp Diff Switch to side-by-side view
Loading...
src/code/pred.lisp Diff Switch to side-by-side view
Loading...
src/code/target-type.lisp Diff Switch to side-by-side view
Loading...
src/code/typecheckfuns.lisp Diff Switch to side-by-side view
Loading...
src/code/typep.lisp Diff Switch to side-by-side view
Loading...
src/compiler/generic/early-objdef.lisp Diff Switch to side-by-side view
Loading...
src/compiler/generic/interr.lisp Diff Switch to side-by-side view
Loading...
src/compiler/generic/objdef.lisp Diff Switch to side-by-side view
Loading...
src/compiler/generic/primtype.lisp Diff Switch to side-by-side view
Loading...
src/compiler/generic/vm-macs.lisp Diff Switch to side-by-side view
Loading...
src/compiler/generic/vm-typetran.lisp Diff Switch to side-by-side view
Loading...
src/compiler/x86-64/insts.lisp Diff Switch to side-by-side view
Loading...
src/compiler/x86-64/macros.lisp Diff Switch to side-by-side view
Loading...
src/compiler/x86-64/type-vops.lisp Diff Switch to side-by-side view
Loading...
src/compiler/x86-64/vm.lisp Diff Switch to side-by-side view
Loading...
src/compiler/typetran.lisp Diff Switch to side-by-side view
Loading...
src/runtime/gc-common.c Diff Switch to side-by-side view
Loading...
src/runtime/gencgc.c Diff Switch to side-by-side view
Loading...
build-order.lisp-expr Diff Switch to side-by-side view
Loading...
package-data-list.lisp-expr Diff Switch to side-by-side view
Loading...