summaryrefslogtreecommitdiff
path: root/unsorted/TargetOptimizer-ppc-mach.c
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-01-15 12:14:05 +0000
committerAsh Wolf <ninji@wuffs.org>2023-01-15 12:14:05 +0000
commit35d488e972a9dd75ce3867c000405f128b79c615 (patch)
treee3319a23d9aa0d4725f88a99fdd5131488a334a9 /unsorted/TargetOptimizer-ppc-mach.c
parent8078e7f897aaae9b492b22475060052d68b9c547 (diff)
downloadMWCC-35d488e972a9dd75ce3867c000405f128b79c615.tar.gz
MWCC-35d488e972a9dd75ce3867c000405f128b79c615.zip
reorganise things a bit to align further with the actual names/structure
Diffstat (limited to 'unsorted/TargetOptimizer-ppc-mach.c')
-rw-r--r--unsorted/TargetOptimizer-ppc-mach.c71
1 files changed, 0 insertions, 71 deletions
diff --git a/unsorted/TargetOptimizer-ppc-mach.c b/unsorted/TargetOptimizer-ppc-mach.c
deleted file mode 100644
index 6c86356..0000000
--- a/unsorted/TargetOptimizer-ppc-mach.c
+++ /dev/null
@@ -1,71 +0,0 @@
-#include "parser.h"
-
-char schedule_ppc_default;
-
-int TargetSetOptFlags(short val, Boolean set) {
- switch (val) {
- case 'Pe':
- pBackEnd.peephole = set;
- break;
- case 'Sn':
- pBackEnd.schedule = 0;
- break;
- case 'Sh':
- pBackEnd.schedule = set;
- break;
- case 'S?':
- pBackEnd.processor = schedule_ppc_default;
- break;
- case 'SG':
- pBackEnd.processor = schedule_ppc_default = PrefCPU_Generic;
- break;
- case 'S1':
- pBackEnd.processor = schedule_ppc_default = PrefCPU_601;
- break;
- case 'S3':
- pBackEnd.processor = schedule_ppc_default = PrefCPU_603;
- break;
- case 'S#':
- pBackEnd.processor = schedule_ppc_default = PrefCPU_603e;
- break;
- case 'S4':
- pBackEnd.processor = schedule_ppc_default = PrefCPU_604;
- break;
- case 'S%':
- pBackEnd.processor = schedule_ppc_default = PrefCPU_604e;
- break;
- case 'S7':
- pBackEnd.processor = schedule_ppc_default = PrefCPU_750;
- break;
- case 'SA':
- pBackEnd.processor = schedule_ppc_default = PrefCPU_Altivec;
- break;
- default:
- return 0;
- }
-
- return 1;
-}
-
-void TargetDisplayOptimizationOptions(Handle txt) {
- PrefCPU p;
-
- if (!pBackEnd.schedule) {
- HPrintF(txt, "\t- no instruction scheduling\n");
- } else {
- HPrintF(txt, "\t- schedule for %s\n",
- !(p = (PrefCPU) pBackEnd.processor) ? "generic PPC" :
- (p == PrefCPU_601) ? "601" :
- (p == PrefCPU_603) ? "603" :
- (p == PrefCPU_603e) ? "603e" :
- (p == PrefCPU_604) ? "604" :
- (p == PrefCPU_604e) ? "604e" :
- (p == PrefCPU_750) ? "750" :
- (p == PrefCPU_Altivec) ? "Altivec" :
- "???"
- );
- }
-}
-
-void TargetSetPragmaOptimizationsToUnspecified(void) {
-}