Commit Graph

20901 Commits (28d38b38f0c928b87e02de541e32d85758818e9f)

Author SHA1 Message Date
Joe Groff 2737a136a9 cpu.x86: fix bootstrap load error 2010-05-15 15:28:22 -07:00
Joe Groff 567ab15274 cuda: move init-cuda from cuda.utils 2010-05-15 15:28:02 -07:00
Joe Groff c93596bb7b cuda.demos.prefix-sum: add init-cuda 2010-05-15 15:01:32 -07:00
Joe Groff 41ba3c9c83 cpu.x86: don't enable bit-count intrinsic by default 2010-05-15 14:52:00 -07:00
Joe Groff ed1ede52af cpu.x86.features: ( int alien-assembly ) c-bool> ==> ( bool alien-assembly ) 2010-05-15 14:33:19 -07:00
Joe Groff c06ebe502e cpu.x86: enable bit-count intrinsic if POPCNT available 2010-05-15 14:00:12 -07:00
Joe Groff ad74f99ec1 compiler.cfg.intrinsics: intrinsic for fixnum-bit-count 2010-05-15 13:59:47 -07:00
Joe Groff b56adf5091 compiler.cfg.instructions: ##bit-count insn 2010-05-15 13:57:35 -07:00
Joe Groff a7de341809 math.bitwise: factor M\ fixnum (bit-count) to a separate word so it can be made intrinsic 2010-05-15 13:27:26 -07:00
Joe Groff 7753198b86 cpu.x86.features: add popcnt? test 2010-05-15 13:26:14 -07:00
Joe Groff 8588f5a4fe cpu.x86.assembler: SETcc instructions 2010-05-15 13:14:27 -07:00
Joe Groff 3b28648fa3 cpu.x86.assembler: BT family instructions 2010-05-15 13:08:22 -07:00
Jon Harper a372117ad7 gl-texture-int is now in opengl.textures 2010-05-15 21:44:08 +02:00
Jon Harper 9bfc733f51 fix images.viewer + documentation 2010-05-15 21:33:22 +02:00
Joe Groff 4d0508a995 opengl.textures: borrow get-texture-float and get-texture-int helper words from gpu.textures 2010-05-15 12:09:50 -07:00
Joe Groff cb589c1f73 cuda: more API cleanups:
- remove useless with-cuda and with-cuda-program combinators
	- eliminate redundant cuda-device, cuda-context variables
	- rearrange arguments of with-*cuda-context to ( device flags quot -- )
	- don't pass context to with-cuda-context quot
	- add context-device word to ask for current device
2010-05-15 11:47:19 -07:00
Slava Pestov 374e928261 compiler.cfg.value-numbering.comparisons: ##test-imm rewrite rule must check that the immediate fits 2010-05-15 03:19:24 -04:00
Joe Groff aeee276044 gpu.buffers: "with-mapped-buffer-array" helper word that wraps a mapped GL buffer in a specialized-array for easy inspection 2010-05-14 16:54:06 -07:00
Joe Groff 9280e545b1 cuda.gl: add free-resource word to release interop handles 2010-05-14 16:17:03 -07:00
Joe Groff 8cbc74ffe1 cuda: add "cuda.gl" vocab with words for cuda/opengl/gpu interop 2010-05-14 16:00:27 -07:00
Joe Groff 4b7ed99982 cuda: in with-cuda-context, sync context when cleaning up so that destroying context doesn't fail due to asynchronous errors 2010-05-14 16:00:27 -07:00
Joe Groff 857a2ff13b gpu.render: allow uchar-array, ushort-array, and uint-array to be passed directly to render as element arrays 2010-05-14 16:00:27 -07:00
Slava Pestov bd55712f82 compiler: fix bad unit test 2010-05-14 18:37:11 -04:00
Slava Pestov 3e68cdb709 cpu.x86.bootstrap: use TEST instruction 2010-05-14 18:37:10 -04:00
Slava Pestov 0dbc9eaae0 compiler.cfg: more silly optimizations 2010-05-14 18:37:09 -04:00
Slava Pestov 210e88b901 compiler.cfg.instructions: change vreg-insn from a mixin into a superclass 2010-05-14 18:37:09 -04:00
Slava Pestov 5ac0252f04 compiler.cfg.linear-scan: pointless optimizations 2010-05-14 18:37:08 -04:00
Slava Pestov b5cde08732 compiler.cfg.ssa.live-ranges: clean up 2010-05-14 18:37:08 -04:00
Slava Pestov b360a4a514 bootstrap.compiler.timing: small update 2010-05-14 18:37:07 -04:00
Slava Pestov 9bb3c0d71b compiler.cfg.alias-analysis: simplify and speed up 2010-05-14 18:37:07 -04:00
Slava Pestov 5a36954a86 compiler.cfg: use x86 TEST instruction to optimize 'bitand 0 =' 2010-05-14 18:37:06 -04:00
Joe Groff f4e10849dd sequences.cords: specialize vshuffle-elements to use vshuffle2-elements on cord components 2010-05-14 13:29:37 -07:00
Joe Groff 40c75a996e math.vectors.simd.intrinsics: fix scalar fallback for (simd-vshuffle2-elements) 2010-05-14 02:47:39 -07:00
Joe Groff 349397e67c math.vectors, math.vectors.simd: add user-facing vshuffle2 word 2010-05-14 02:47:05 -07:00
Joe Groff e96a7a8c5e compiler.cfg.intrinsics.simd: mod shuffle indices for shuffle-2-vectors-imm intrinsic so they wrap like a real instruction would 2010-05-14 01:20:05 -07:00
Joe Groff f202c97b52 math.vectors.simd.intrinsics: (simd-vshuffle2-elements) intrinsic that creates a vector by selecting elements from two input vectors. use ##shuffle-vector-halves-imm to implement for double-2s with SSE 2010-05-14 01:16:29 -07:00
Joe Groff 1c96a37e47 compiler.cfg.instructions: ##shuffle-vector-halves-imm insn to map to SSE's two-input SHUFPS/SHUFPD 2010-05-14 00:20:21 -07:00
Slava Pestov 4ad32f53fe math.vectors.simd.cords: implement new-sequence and like methods on cords to make cross product work 2010-05-13 21:55:19 -04:00
Slava Pestov d6b4540624 cpu.x86.32: check for SSE2 on bootstrap since Factor now requires it 2010-05-13 18:25:46 -04:00
Joe Groff 3cb6ba7118 Merge branch 'master' of factorcode.org:/git/factor 2010-05-13 14:41:40 -07:00
Joe Groff d649daaf4f math: declare quotation stack effects on each-integer, times, find-integer, all-integers? 2010-05-13 14:30:19 -07:00
Slava Pestov db0f40e481 compiler: small fixes and cleanups 2010-05-13 02:48:20 -04:00
Joe Groff ab5b5d84cb x11: convert XSupportsLocale return value to factor bool before testing (bug reported by ceninan) 2010-05-12 18:07:33 -07:00
Slava Pestov b336204c02 compiler.cfg.builder.alien: fix for x86-32 2010-05-12 18:07:11 -04:00
Joe Groff dc2f06bddc Merge branch 'master' of factorcode.org:/git/factor 2010-05-12 13:49:02 -07:00
Joe Groff a5960a9a3a new cuda.types vocab containing CUDA vector types (int2, float4, etc.) with CUDA alignment 2010-05-12 13:48:44 -07:00
Slava Pestov 5e290d5648 Refactor x86-32 stack cleanup logic 2010-05-12 02:09:11 -04:00
Slava Pestov 09e1cf58be Temporary fixes for x86-32 until FFI boxing is rewritten 2010-05-12 01:41:49 -04:00
Slava Pestov fc166bce0a vm: fix longlong accessors 2010-05-11 23:24:48 -04:00
Slava Pestov 5a102c717d Eliminate compiler.alien 2010-05-11 23:24:47 -04:00