platform/upstream/orc.git
14 years agoUse VirtualAlloc() to allocate executable memory on Windows.
Ramiro Polla [Fri, 19 Mar 2010 00:11:21 +0000 (21:11 -0300)]
Use VirtualAlloc() to allocate executable memory on Windows.

14 years agoorcutils: Add to build
David Schleef [Fri, 19 Mar 2010 17:24:26 +0000 (10:24 -0700)]
orcutils: Add to build

14 years agoconfigure: Add gnu to mmap list
David Schleef [Fri, 19 Mar 2010 17:22:34 +0000 (10:22 -0700)]
configure: Add gnu to mmap list

14 years agotests: remove compile tests from TESTS
David Schleef [Fri, 19 Mar 2010 05:13:07 +0000 (22:13 -0700)]
tests: remove compile tests from TESTS

These don't work consistently, and not at all if your compiler
is not named "gcc".

14 years agotests: remove unused code
David Schleef [Fri, 19 Mar 2010 05:12:46 +0000 (22:12 -0700)]
tests: remove unused code

14 years agoFix library flags to work with --as-needed
David Schleef [Fri, 19 Mar 2010 05:12:09 +0000 (22:12 -0700)]
Fix library flags to work with --as-needed

14 years agoautogen.sh: remove --enable-maintainer-mode
David Schleef [Thu, 18 Mar 2010 23:58:08 +0000 (16:58 -0700)]
autogen.sh: remove --enable-maintainer-mode

14 years agolib: Make some functions static
David Schleef [Thu, 18 Mar 2010 23:42:29 +0000 (16:42 -0700)]
lib: Make some functions static

There's still several functions that don't have an orc_ prefix
that are leaked into the global namespace, but these were the
worst.  Fixes: #27102.

14 years agoonce: Fix mutex initialization on win32
David Schleef [Thu, 18 Mar 2010 23:32:17 +0000 (16:32 -0700)]
once: Fix mutex initialization on win32

Fixes #27104.

14 years agodoc: fix build from tarball
David Schleef [Thu, 18 Mar 2010 22:42:50 +0000 (15:42 -0700)]
doc: fix build from tarball

14 years agotools: Check target name
David Schleef [Thu, 18 Mar 2010 21:21:10 +0000 (14:21 -0700)]
tools: Check target name

14 years agoc: fix crash in compiler
David Schleef [Mon, 15 Mar 2010 19:06:27 +0000 (12:06 -0700)]
c: fix crash in compiler

14 years agocpu: Fix flags on Solaris
David Schleef [Sun, 7 Mar 2010 19:19:41 +0000 (11:19 -0800)]
cpu: Fix flags on Solaris

Patch from Milan Jurik <milan.jurik@xylab.cz>

14 years agoMake convfl work like C casting
David Schleef [Sat, 9 Jan 2010 07:31:54 +0000 (23:31 -0800)]
Make convfl work like C casting

Obviously need more/better rounding and conversion opcodes, but
this has the benefit of being implementable in C without C99
functions that don't exist on Windows.  ugh.

14 years agotests: Add test.orc
David Schleef [Sat, 9 Jan 2010 02:10:42 +0000 (18:10 -0800)]
tests: Add test.orc

14 years agotests: Add performance tests
David Schleef [Sat, 9 Jan 2010 02:03:08 +0000 (18:03 -0800)]
tests: Add performance tests

14 years agosse: Implement loop unrolling
David Schleef [Fri, 8 Jan 2010 07:15:00 +0000 (23:15 -0800)]
sse: Implement loop unrolling

Disabled by default.  Doesn't really help on Core2.

14 years agotests: remove spurious file
David Schleef [Fri, 8 Jan 2010 07:14:27 +0000 (23:14 -0800)]
tests: remove spurious file

14 years agox86: Favor addl $-1 over decl
David Schleef [Fri, 8 Jan 2010 07:13:34 +0000 (23:13 -0800)]
x86: Favor addl $-1 over decl

Because the optimization manual tells us to.

14 years agotests: Add memcpy_speed from liboil
David Schleef [Fri, 8 Jan 2010 07:11:09 +0000 (23:11 -0800)]
tests: Add memcpy_speed from liboil

14 years agoorcc: call function directly instead of orc_executor_run
David Schleef [Fri, 8 Jan 2010 06:46:32 +0000 (22:46 -0800)]
orcc: call function directly instead of orc_executor_run

14 years agoexecutor: remove debug from fast path
David Schleef [Fri, 8 Jan 2010 06:18:49 +0000 (22:18 -0800)]
executor: remove debug from fast path

14 years agocompiler: how about *using* the backup function?
David Schleef [Fri, 8 Jan 2010 06:18:15 +0000 (22:18 -0800)]
compiler: how about *using* the backup function?

14 years agocodemem: improve temp file name generation
David Schleef [Fri, 8 Jan 2010 06:17:37 +0000 (22:17 -0800)]
codemem: improve temp file name generation

14 years agoUpdate internal functions for orcc fixes
David Schleef [Fri, 8 Jan 2010 05:00:26 +0000 (21:00 -0800)]
Update internal functions for orcc fixes

14 years agoAdd kfreebsd to mmap architectures
David Schleef [Tue, 15 Dec 2009 05:25:53 +0000 (21:25 -0800)]
Add kfreebsd to mmap architectures

14 years agoDocumentation updates
David Schleef [Mon, 14 Dec 2009 03:02:20 +0000 (19:02 -0800)]
Documentation updates

14 years agoupdated release notes
David Schleef [Mon, 14 Dec 2009 02:27:00 +0000 (18:27 -0800)]
updated release notes

14 years agoBack to unreleased
David Schleef [Mon, 14 Dec 2009 02:24:57 +0000 (18:24 -0800)]
Back to unreleased

14 years agoRelease 0.4.3 orc-0.4.3
David Schleef [Mon, 14 Dec 2009 01:44:58 +0000 (17:44 -0800)]
Release 0.4.3

14 years agotests: Fix distcheck
David Schleef [Mon, 14 Dec 2009 01:44:37 +0000 (17:44 -0800)]
tests: Fix distcheck

14 years agoCompile fixes
David Schleef [Sat, 12 Dec 2009 00:42:27 +0000 (16:42 -0800)]
Compile fixes

14 years agoAdd constant loading system
David Schleef [Tue, 24 Nov 2009 00:15:28 +0000 (16:15 -0800)]
Add constant loading system

14 years agoorcc: fix missing const in src params
David Schleef [Mon, 23 Nov 2009 21:37:05 +0000 (13:37 -0800)]
orcc: fix missing const in src params

14 years agoAdd splitlw and splitwb opcodes
David Schleef [Mon, 23 Nov 2009 02:11:20 +0000 (03:11 +0100)]
Add splitlw and splitwb opcodes

14 years agosse: fix load/store with offset
David Schleef [Mon, 23 Nov 2009 02:09:26 +0000 (03:09 +0100)]
sse: fix load/store with offset

14 years agobetter handling for 2-dest opcodes
David Schleef [Mon, 23 Nov 2009 02:08:16 +0000 (03:08 +0100)]
better handling for 2-dest opcodes

14 years agoquiet debugging
David Schleef [Mon, 23 Nov 2009 02:05:48 +0000 (03:05 +0100)]
quiet debugging

14 years agocompiler: don't chain regs if more than one dest
David Schleef [Mon, 23 Nov 2009 02:05:15 +0000 (03:05 +0100)]
compiler: don't chain regs if more than one dest

14 years agotest: convert unsigned and hex printing to new api
David Schleef [Mon, 23 Nov 2009 02:04:21 +0000 (03:04 +0100)]
test: convert unsigned and hex printing to new api

14 years agoBuild fixes due to MSVC
David Schleef [Wed, 2 Dec 2009 23:04:39 +0000 (15:04 -0800)]
Build fixes due to MSVC

14 years agotest: add compile_parse_c merge-base
David Schleef [Fri, 20 Nov 2009 18:22:39 +0000 (19:22 +0100)]
test: add compile_parse_c

14 years agotest: fix printf format for 64-bit types
David Schleef [Fri, 20 Nov 2009 17:51:27 +0000 (18:51 +0100)]
test: fix printf format for 64-bit types

14 years agoaltivec: add merge and select rules
David Schleef [Thu, 19 Nov 2009 16:18:45 +0000 (17:18 +0100)]
altivec: add merge and select rules

14 years agoorcc: Add --target flag
David Schleef [Thu, 19 Nov 2009 11:09:35 +0000 (12:09 +0100)]
orcc: Add --target flag

14 years agosse: load/store at an offset for constant width
David Schleef [Wed, 18 Nov 2009 17:56:21 +0000 (18:56 +0100)]
sse: load/store at an offset for constant width

14 years agoc: Clean up how arrays are loaded/stored
David Schleef [Wed, 18 Nov 2009 12:56:57 +0000 (13:56 +0100)]
c: Clean up how arrays are loaded/stored

14 years agoc: Fix strict aliasing issues
David Schleef [Wed, 18 Nov 2009 12:52:54 +0000 (13:52 +0100)]
c: Fix strict aliasing issues

14 years agoc: remove parts of preamble that duplicate orc.h
David Schleef [Wed, 18 Nov 2009 12:50:58 +0000 (13:50 +0100)]
c: remove parts of preamble that duplicate orc.h

14 years agoAdd source array sampling type
David Schleef [Wed, 18 Nov 2009 10:50:08 +0000 (11:50 +0100)]
Add source array sampling type

14 years agoc64x-c: hacking
David Schleef [Wed, 18 Nov 2009 05:49:59 +0000 (21:49 -0800)]
c64x-c: hacking

14 years agoAdd c64x-c target
David Schleef [Mon, 16 Nov 2009 19:43:13 +0000 (11:43 -0800)]
Add c64x-c target

14 years agosse: split compile function into parts
David Schleef [Sat, 24 Oct 2009 00:15:08 +0000 (17:15 -0700)]
sse: split compile function into parts

14 years agoorcc: exit with error code on error
David Schleef [Mon, 19 Oct 2009 19:02:32 +0000 (12:02 -0700)]
orcc: exit with error code on error

14 years agosse: minor improvement in m counting
David Schleef [Mon, 19 Oct 2009 18:59:09 +0000 (11:59 -0700)]
sse: minor improvement in m counting

14 years agotest: handle testing of float opcodes better
David Schleef [Mon, 19 Oct 2009 18:58:23 +0000 (11:58 -0700)]
test: handle testing of float opcodes better

14 years agofloat: remove some sse rules
David Schleef [Mon, 19 Oct 2009 18:30:06 +0000 (11:30 -0700)]
float: remove some sse rules

These were moved to the main library

14 years agoorcc: implement --assembly for asm output
David Schleef [Mon, 19 Oct 2009 17:39:58 +0000 (10:39 -0700)]
orcc: implement --assembly for asm output

Probably not useful yet.

14 years agosse: some optimizations for constant n,m
David Schleef [Mon, 19 Oct 2009 17:39:36 +0000 (10:39 -0700)]
sse: some optimizations for constant n,m

14 years agosse: Special case for constant n programs
David Schleef [Mon, 19 Oct 2009 04:02:30 +0000 (21:02 -0700)]
sse: Special case for constant n programs

14 years agotests: handle float opcodes
David Schleef [Thu, 15 Oct 2009 19:32:44 +0000 (12:32 -0700)]
tests: handle float opcodes

14 years agoAdd C rules for float opcodes
David Schleef [Thu, 15 Oct 2009 19:29:05 +0000 (12:29 -0700)]
Add C rules for float opcodes

14 years agoarm: another compile fix
David Schleef [Tue, 6 Oct 2009 21:26:22 +0000 (14:26 -0700)]
arm: another compile fix

14 years agoarm: fix compile
David Schleef [Tue, 6 Oct 2009 20:08:40 +0000 (13:08 -0700)]
arm: fix compile

14 years agoarm: Fix minor code generation bugs
David Schleef [Tue, 6 Oct 2009 19:45:15 +0000 (12:45 -0700)]
arm: Fix minor code generation bugs

14 years agofloat: remove float ops moved to main lib
David Schleef [Tue, 6 Oct 2009 18:34:16 +0000 (11:34 -0700)]
float: remove float ops moved to main lib

14 years agoDon't install orc tests.
David Schleef [Tue, 6 Oct 2009 17:43:06 +0000 (10:43 -0700)]
Don't install orc tests.

14 years agotest: fix profiling code
David Schleef [Tue, 6 Oct 2009 01:56:20 +0000 (18:56 -0700)]
test: fix profiling code

14 years agoorc-test: change OrcRandom to OrcRandomContext
David Schleef [Thu, 1 Oct 2009 17:31:23 +0000 (10:31 -0700)]
orc-test: change OrcRandom to OrcRandomContext

14 years agoorc-test: add profiling from liboil
David Schleef [Thu, 1 Oct 2009 17:29:35 +0000 (10:29 -0700)]
orc-test: add profiling from liboil

14 years agoc: fix bug outputting accumulators incorrectly
David Schleef [Thu, 1 Oct 2009 17:27:06 +0000 (10:27 -0700)]
c: fix bug outputting accumulators incorrectly

14 years agoorcc: Fix output for 2d
David Schleef [Wed, 30 Sep 2009 20:46:34 +0000 (13:46 -0700)]
orcc: Fix output for 2d

14 years agoMove 32-bit float ops to core library
David Schleef [Wed, 30 Sep 2009 03:15:34 +0000 (20:15 -0700)]
Move 32-bit float ops to core library

14 years agoarm: readd some deleted functions
David Schleef [Sun, 20 Sep 2009 06:26:58 +0000 (23:26 -0700)]
arm: readd some deleted functions

14 years agoarm: add arm code from neon branch
David Schleef [Sun, 20 Sep 2009 05:50:19 +0000 (22:50 -0700)]
arm: add arm code from neon branch

14 years agoarm: add orc_arm_flush_cache()
David Schleef [Sun, 20 Sep 2009 05:33:31 +0000 (22:33 -0700)]
arm: add orc_arm_flush_cache()

14 years agoarm: rename to orc_arm_emit_load_imm()
David Schleef [Sun, 20 Sep 2009 05:29:51 +0000 (22:29 -0700)]
arm: rename to orc_arm_emit_load_imm()

14 years agoarm: remove orc_arm_exec_ptr
David Schleef [Sun, 20 Sep 2009 05:28:25 +0000 (22:28 -0700)]
arm: remove orc_arm_exec_ptr

14 years agoarm: cleanuos and fixes
Wim Taymans [Sat, 19 Sep 2009 18:07:20 +0000 (20:07 +0200)]
arm: cleanuos and fixes

14 years agorules-arm: fix compilation
Wim Taymans [Sat, 19 Sep 2009 11:37:58 +0000 (13:37 +0200)]
rules-arm: fix compilation

14 years agorules-arm: implement remaining opcodes
Wim Taymans [Sat, 19 Sep 2009 11:09:39 +0000 (13:09 +0200)]
rules-arm: implement remaining opcodes

14 years agoarm: cleanups and fixes
Wim Taymans [Fri, 18 Sep 2009 21:10:51 +0000 (23:10 +0200)]
arm: cleanups and fixes

14 years agorules-arm: don't thrash inputs
Wim Taymans [Thu, 17 Sep 2009 23:02:55 +0000 (01:02 +0200)]
rules-arm: don't thrash inputs

14 years agorules-arm: make parallel sign function
Wim Taymans [Thu, 17 Sep 2009 22:35:37 +0000 (00:35 +0200)]
rules-arm: make parallel sign function

14 years agorules-arm: more opcodes, more fixes
Wim Taymans [Thu, 17 Sep 2009 21:07:18 +0000 (23:07 +0200)]
rules-arm: more opcodes, more fixes

14 years agorules-arm: fix avgu instruction
Wim Taymans [Wed, 16 Sep 2009 20:28:59 +0000 (22:28 +0200)]
rules-arm: fix avgu instruction

14 years agorules-arm: more rules
Wim Taymans [Tue, 15 Sep 2009 18:00:54 +0000 (20:00 +0200)]
rules-arm: more rules

14 years agorules-arm: add more instructions
Wim Taymans [Tue, 15 Sep 2009 17:20:26 +0000 (19:20 +0200)]
rules-arm: add more instructions

14 years agorules-arm: add some more instructions
Wim Taymans [Tue, 15 Sep 2009 15:47:19 +0000 (17:47 +0200)]
rules-arm: add some more instructions

14 years agorules-arm: add some more instructions
Wim Taymans [Tue, 15 Sep 2009 13:10:51 +0000 (15:10 +0200)]
rules-arm: add some more instructions

14 years agoprogram: add some convenience macros
Wim Taymans [Tue, 15 Sep 2009 17:20:07 +0000 (19:20 +0200)]
program: add some convenience macros

14 years agovolscale: refer to variables with their enum
Wim Taymans [Mon, 14 Sep 2009 17:29:20 +0000 (19:29 +0200)]
volscale: refer to variables with their enum

Try to refer to variables with their enum instead of their string names as this
saves some lookup overhead.

14 years agovolscale: use right array indexes
Wim Taymans [Mon, 14 Sep 2009 16:57:49 +0000 (18:57 +0200)]
volscale: use right array indexes

14 years agovolscale: improve example
Wim Taymans [Mon, 14 Sep 2009 16:14:44 +0000 (18:14 +0200)]
volscale: improve example

14 years agovolscale: add volume scaling example
Wim Taymans [Mon, 14 Sep 2009 15:28:48 +0000 (17:28 +0200)]
volscale: add volume scaling example

Add an example for adding a new instruction.

14 years agorenames _instr_ to _emit_ in the convenience macros
Wim Taymans [Mon, 14 Sep 2009 15:10:26 +0000 (17:10 +0200)]
renames _instr_ to _emit_ in the convenience macros

Use _emit_ for the convenience function names to stay consistent with the other
emit functions.

14 years agorules-altivec: use convenience macros
Wim Taymans [Mon, 14 Sep 2009 11:46:58 +0000 (13:46 +0200)]
rules-altivec: use convenience macros

14 years agopowerpc: add convenience macros
Wim Taymans [Mon, 14 Sep 2009 11:46:03 +0000 (13:46 +0200)]
powerpc: add convenience macros

14 years agorules-altivec: fix compilation
Wim Taymans [Mon, 14 Sep 2009 09:36:52 +0000 (11:36 +0200)]
rules-altivec: fix compilation

14 years agorules-altivec: cleanups
Wim Taymans [Sun, 13 Sep 2009 17:34:25 +0000 (19:34 +0200)]
rules-altivec: cleanups

Make code more readable.