Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup backend #379

Merged
merged 7 commits into from
Sep 16, 2011
Merged

Cleanup backend #379

merged 7 commits into from
Sep 16, 2011

Conversation

braddr
Copy link
Member

@braddr braddr commented Sep 13, 2011

A series of function moves/extractions. Each commit is fairly small. Each commit was built and tested through dmd, druntime, and phobos.

The point behind all of them is pull x86 specific code out of cgcod and cgen into cod# files.

Leave platform generic logic in cgcod.c
Move x86 specific logic into cod3.c
  -- no functional changes, just cut/paste wrap in function
  -- only change inside the switch is s/*retsym/**retsym/
regmask is platform specific so doesn't belong in cgcod.
  -- no code changes, pure cut/paste
cse_save is a generic block of code with one snippit of platform specific code.
  -- pure cut/paste, no code changes other than the function wrapper
gencodelem is platform agnostic, so move to an agnostic file.
  -- pure cut/paste, no code changes
More platform agnostic code movement out of platform specific files
Functions moved:
    genregs
    gentstreg
    genpush
    genpop
    genmovreg
    genmulimm
    genshift
    movregconst
    genjmp
WalterBright added a commit that referenced this pull request Sep 16, 2011
@WalterBright WalterBright merged commit ff4c059 into dlang:master Sep 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants